From owner-freebsd-arm@freebsd.org Tue Apr 16 06:16:28 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFE1E158A879 for ; Tue, 16 Apr 2019 06:16:27 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 46FB375E1F for ; Tue, 16 Apr 2019 06:16:27 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id 01983158A878; Tue, 16 Apr 2019 06:16:27 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0F3B158A877 for ; Tue, 16 Apr 2019 06:16:26 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C119175E14 for ; Tue, 16 Apr 2019 06:16:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From; bh=Cok3wHNUTTi5uYx9OoD/jolKEsj+LzxeWnM6E4ipA5I=; b=dG/gnF9M73mGMGNUjHSMn8lOVp9xtw9+1wOHSimXkl6CumYvksg6slAXZTbXzLsyypFlVTvJ2eHHV9Ij2OT2QN1SaNE/+X0xBgZ5SQ7lD7hkD+pW1Ke4yyFG2AJLF37MyySXj43P9ByiISP5ntxpQX4UQVbhHMZdI7Ci8uqF7lVg/73lIcNhrHYwLp5atphHisukhF85YuexNVDXcUJroIdUWyNz5TE5rR3XepxY/XuLT4e6mf5lNJiBlH2UJs71finh6rvABMjlMj3/+JfMc8vdHCDeW3S/tqrrwnY5QQXwVN5i4ldHmyTA4mlp1o017Cr+bUvWoZS7/u6kVEBGNA==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1hGHNz-000F9S-4y for arm@freebsd.org; Tue, 16 Apr 2019 09:16:03 +0300 From: Daniel Braniss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: i2c almost working for me, was Re: i2c still not working for me Date: Tue, 16 Apr 2019 09:16:02 +0300 References: <12F641C3-9FAA-4A3A-BA18-A7302F3A0F5E@cs.huji.ac.il> <20190409095819.c560dbc156c46e5ca0244e3e@bidouilliste.com> <23A47048-642A-481C-B7BE-B61E55F82955@cs.huji.ac.il> <20190409171604.GA4581@bluezbox.com> <6119CE3B-6042-4DDC-82BE-B0C0C7ADA838@cs.huji.ac.il> To: "freebsd-arm@freebsd.org" In-Reply-To: <6119CE3B-6042-4DDC-82BE-B0C0C7ADA838@cs.huji.ac.il> Message-Id: <5D4799BC-08DF-4F3D-81A4-C2D938F4AF93@cs.huji.ac.il> X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: C119175E14 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=dG/gnF9M X-Spamd-Result: default: False [-2.66 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[huji.ac.il]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.60)[ipnet: 132.64.0.0/13(-1.65), asn: 378(-1.32), country: EU(-0.01)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; MX_GOOD(-0.01)[kabab.cs.huji.ac.il,post.cs.huji.ac.il]; RCVD_IN_DNSWL_NONE(0.00)[210.116.65.132.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.27)[-0.271,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:EU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2019 06:16:28 -0000 > On 11 Apr 2019, at 09:56, Daniel Braniss wrote: >=20 > if no device is connected, I2CRDWR hangs,=20 > it also happens with i2c(8) -s, only reboot helps. >=20 > ichb1: twsi_reset: Using IIC_FASTEST/UNKNOWN mode with speed param=3D2a > iichb1: TWSI_WRITE: Writing 0 to 18 > iichb1: TWSI_WRITE: Writing 2a to 14 > iichb1: TWSI_WRITE: Writing 40 to c > iichb1: TWSI_WRITE: Writing c4 to c > iichb1: twsi_transfer: transmitting 2 messages > iichb1: TWSI_READ: read f8 from 10 > iichb1: twsi_transfer: status=3Df8 > iichb1: twsi_transfer: msg[0] flags: 0 > iichb1: twsi_transfer: msg[0] len: 9 > iichb1: TWSI_WRITE: Writing e4 to c >=20 > and now it=E2=80=99s hung [=E2=80=A6] even with a working device, this happens sometimes: my app gets ENXIO from the ioctl(fd, I2CRDWR, &data) and on the console: =E2=80=A6 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 38 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 gic0: Spurious interrupt detected: last irq: 29 on CPU2 the good news: my app is killable :-)=