Date: Tue, 6 Oct 2020 10:32:02 +0300 From: Daniel Braniss <danny@cs.huji.ac.il> To: Andriy Gapon <avg@FreeBSD.org> Cc: "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: nanopi/allwinner i2c not working. Message-ID: <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> In-Reply-To: <E2E23A4F-9D51-4803-BFF1-B5B2BBE56576@cs.huji.ac.il> References: <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> <d154f62f-cf41-aaac-4bae-89ee48163afa@FreeBSD.org> <E2E23A4F-9D51-4803-BFF1-B5B2BBE56576@cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 5 Oct 2020, at 17:54, Daniel Braniss <danny@cs.huji.ac.il> wrote: >=20 >=20 >=20 >> On 5 Oct 2020, at 17:19, Andriy Gapon <avg@FreeBSD.org> wrote: >>=20 >> On 05/10/2020 11:47, Daniel Braniss wrote: >>> Hi, >>> latest 12.2-stable r366421, >>>=20 >>> when nothing is connected, >>> i2c -s >>> just hangs >>> and reboot is required. >>>=20 >>>=20 >>> if anything is connected, it just goes into a loop: >>> # i2c -s >>> Hardware may not support START/STOP scanning; trinterrupt storm = detected on "gic0,s6:"; throttling interrupt source >>> ying less-reliable read method. >>> interrupt storm detected on "gic0,s6:"; throttling interrupt source >>> interrupt storm detected on "gic0,s6:"; throttling interrupt source >>> =E2=80=A6 >>>=20 >>> im willing to help debug this, but need help. >>=20 >> What NanoPi model is this? > nanopi neo v1.3 and v1.4 >=20 >>=20 >> Can you try to merge r365397 and check if it helps? >> If it does not, can you additionally try = https://reviews.freebsd.org/D26049 <https://reviews.freebsd.org/D26049> = ? > i think i tested this a while back, with the same results. >>=20 >> If the problem persists, can you try setting hw.i2c.twsi_debug=3D1 = and collect >> some logs? >=20 > last time i tested, debug was on, and it worked, but when turned off = it hung. >=20 > I have to compile twsi with debug, and will report back ASAP. >=20 this is what happens with debug on, =E2=80=A6 iichb0: twsi_intr: Got interrupt Current msg=3D0 iichb0: TWSI_READ: read 8 from 10 iichb0: twsi_intr: initial status=3D8 iichb0: twsi_intr: Send the address iichb0: TWSI_WRITE: Writing 48 to 8 iichb0: TWSI_WRITE: Writing c4 to c iichb0: twsi_intr: Done with interrupts iichb0: twsi_intr: Got interrupt Current msg=3D0 iichb0: TWSI_READ: read 8 from 10 iichb0: twsi_intr: initial status=3D8 iichb0: twsi_intr: Send the address iichb0: TWSI_WRITE: Writing 48 to 8 iichb0: TWSI_WRITE: Writing c4 to c iichb0: twsi_intr: Done with interrupts ... > thanks, > danny >=20 >=20 >>=20 >> Thanks! >>=20 >> --=20 >> Andriy Gapon >=20 > _______________________________________________ > freebsd-arm@freebsd.org <mailto:freebsd-arm@freebsd.org> mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm = <https://lists.freebsd.org/mailman/listinfo/freebsd-arm> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org = <mailto:freebsd-arm-unsubscribe@freebsd.org>"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7934CE38-DC3F-450A-A131-19A7F88DA9EC>