From owner-freebsd-arm@freebsd.org Wed Apr 17 20:26:13 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 D23EB1578A3D for ; Wed, 17 Apr 2019 20:26:12 +0000 (UTC) (envelope-from manu@bidouilliste.com) 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 4A18692364 for ; Wed, 17 Apr 2019 20:26:12 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0D6091578A3C; Wed, 17 Apr 2019 20:26:12 +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 C029B1578A3B for ; Wed, 17 Apr 2019 20:26:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F1A292363 for ; Wed, 17 Apr 2019 20:26:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id ab08042c; Wed, 17 Apr 2019 22:26:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=8J+Yw5vvoy0WN7LCt1jjHs9bJac=; b=cPC4jUaCxmmhoO06zu+xsO4VC5Pc 48HjvALk0Y1BZVBwunneCzgixH7ezGGp2sxZ95qMMDYQ7wbx8INU/88JjyYT3r/Z UJyR6IHpUCsD3k2+IKc0UIPz9ncKux7X5JXsJO94bWHb+aTuyVVFFiWabYPGJbxA Drxjw3GjqeasWZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=YZlDybNVNJxo3WFoA3wrkBBPMl6vusQkcnKMBGy6H+tyypqM+qIS7PNA yC7bbFPTm/w2Go8BTAEwE+89axA0BOmCqAFLEQmV3kCnsoYQYgKC6J15xp5Ck/a1 9FMoW3W64BSZ5sUra3tttdun9u5c/JdmKaaCoUvodfkRRT1Q9Lc= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 7dd44550 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 17 Apr 2019 22:26:01 +0200 (CEST) Date: Wed, 17 Apr 2019 22:26:01 +0200 From: Emmanuel Vadot To: Daniel Braniss Cc: "freebsd-arm@freebsd.org" Subject: Re: i2c almost working for me, was Re: i2c still not working for me Message-Id: <20190417222601.c037efe0cb48987c81032bac@bidouilliste.com> In-Reply-To: <5D4799BC-08DF-4F3D-81A4-C2D938F4AF93@cs.huji.ac.il> 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 9F1A292363 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=cPC4jUaC; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.75 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.49)[-0.489,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.89)[-0.889,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; MX_GOOD(-0.01)[mx-backup.blih.net,mail.blih.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.85)[-0.852,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.39)[ip: (-0.95), ipnet: 212.83.160.0/19(2.97), asn: 12876(-0.07), country: FR(-0.01)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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: Wed, 17 Apr 2019 20:26:13 -0000 On Tue, 16 Apr 2019 09:16:02 +0300 Daniel Braniss wrote: >=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 > [?] I don't see that on my OrangePi One or Pine64-LTS. >=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 :-) I would need more details for this. > _______________________________________________ > 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 Emmanuel Vadot