From owner-freebsd-arm@freebsd.org Thu Apr 18 07:12:51 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 EC44F158A463 for ; Thu, 18 Apr 2019 07:12:50 +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 3D7E181B29 for ; Thu, 18 Apr 2019 07:12:50 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id EEC45158A462; Thu, 18 Apr 2019 07:12:49 +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 CBF66158A461 for ; Thu, 18 Apr 2019 07:12:49 +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 4B56D81B28 for ; Thu, 18 Apr 2019 07:12:49 +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=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=9z6fkvPcgBW4bDag2cbCbgdIW61UmFMZMl20TvrxO/A=; b=0BzllEHGqda89o46PQEGFdebuQ/Ep8HVC83wITauTzZGhvKJY/4gdl8P+SkPohJqF8QqsQS56AR9TjPxPfCKaq2c63NufghTqPsOkhLPCkzcb6V/RVfFSDXErTukjVzk0apUwFB2qgoTBxgfyB/yx6vDVzx7+gzqmM3lx8Ky2ZFkO04Oq8XjCQ2MVx2U2CK+iW7OPYUzX0dcx9gA+h56DGEVkoBUh6JexX20KbL1QGmJP/cQM1FbX/OVZcFpLxrcCfaq8Ng0Uc2QaN8fkCMRwFADMHsSrumLgEJ3nMjsAnjSAH8WsFVUSlvTEmBWV+W+vCGW/Mgkki9in9GV6v2tAw==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1hH1Dl-000FGf-Op; Thu, 18 Apr 2019 10:12:33 +0300 From: Daniel Braniss Message-Id: 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: Thu, 18 Apr 2019 10:12:33 +0300 In-Reply-To: <20190417222601.c037efe0cb48987c81032bac@bidouilliste.com> Cc: "freebsd-arm@freebsd.org" To: Emmanuel Vadot 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> <5D4799BC-08DF-4F3D-81A4-C2D938F4AF93@cs.huji.ac.il> <20190417222601.c037efe0cb48987c81032bac@bidouilliste.com> X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 4B56D81B28 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.971,0] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 18 Apr 2019 07:12:51 -0000 > On 17 Apr 2019, at 23:26, Emmanuel Vadot = wrote: >=20 > On Tue, 16 Apr 2019 09:16:02 +0300 > Daniel Braniss > = wrote: >=20 >>=20 >>=20 >>> 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?s hung >> [?] >=20 > I don't see that on my OrangePi One or Pine64-LTS. well, mine is are Nanopi Neo, maybe it=E2=80=99s a dts issue? I also have a orangepi-zero but it will take me some time to make a sdcard >=20 >>=20 >> even with a working device, this happens sometimes: >>=20 >> my app gets ENXIO from the ioctl(fd, I2CRDWR, &data) and on the = console: >> ? >> 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 >>=20 >> the good news: my app is killable :-) >=20 > I would need more details for this. it was caused by i2c issues - the cable was a bit too long. BTW, does changing the frequency work? ie dev.iicbus.0.frequency >=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm = >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org = " >=20 >=20 > --=20 > Emmanuel Vadot > = >