From owner-freebsd-arm@freebsd.org Mon Oct 5 14:54:39 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3DADD4267C5 for ; Mon, 5 Oct 2020 14:54:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4kCL5Qxnz41V7 for ; Mon, 5 Oct 2020 14:54:38 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.nyi.freebsd.org (Postfix) id BA635426A1E; Mon, 5 Oct 2020 14:54:38 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA3104267C4 for ; Mon, 5 Oct 2020 14:54:38 +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 4C4kCL2NZlz41V6; Mon, 5 Oct 2020 14:54:38 +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=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=Rsqb1ucdSbbdzsiuceuKWjw42kTGqRv15HiymABXUyc=; b=sK8d20UanOyrS+JgtxOpQUR7JARpi0W4Hbj3dKDWYgQAJk3jEoxSOfWc3iKTq5Jm1H5+p/QdX95XAA2gKefBVB9NYbPcXzpGQemTtEnaF/g2WvgKzI1Ex+l+10rTxG5KMEQkJ5IsKZkw9RBSLjqHwDmUY1oxN2U5/C9ClyUkTVykLUHw8MZXMoVqYrrI+OA3hNVE3bDH4OEJYduSQfZygdOSy+xdSt1vm+ilcIgOQ/zgHA84kg8qT7DAY4Lk38FRqc5VLhw8Xg1+kVNNH1PyIUpFA9Mhokl0kbZwXKKPII71LztJy9wcKx/Y7ueg8A1o6c+wEVR5w3RZhT1IwHk4Ng==; Received: from mbpro2.bk.cs.huji.ac.il ([132.65.179.20] helo=localhost.localdomain) by kabab.cs.huji.ac.il with esmtp id 1kPRsn-0000vg-MP; Mon, 05 Oct 2020 17:54:33 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.0.3.2.33\)) Subject: Re: nanopi/allwinner i2c not working. From: Daniel Braniss In-Reply-To: Date: Mon, 5 Oct 2020 17:54:32 +0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> To: Andriy Gapon X-Mailer: Apple Mail (2.3654.0.3.2.33) X-Rspamd-Queue-Id: 4C4kCL2NZlz41V6 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:IL] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 14:54:39 -0000 > On 5 Oct 2020, at 17:19, Andriy Gapon 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 > Can you try to merge r365397 and check if it helps? > If it does not, can you additionally try = 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? last time i tested, debug was on, and it worked, but when turned off it = hung. I have to compile twsi with debug, and will report back ASAP. thanks, danny >=20 > Thanks! >=20 > --=20 > Andriy Gapon