From owner-freebsd-arm@freebsd.org Wed Oct 7 08:56:20 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 662514290F5 for ; Wed, 7 Oct 2020 08:56:20 +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 4C5p901Mllz4ZBF for ; Wed, 7 Oct 2020 08:56:20 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.nyi.freebsd.org (Postfix) id 2C2BF42934F; Wed, 7 Oct 2020 08:56:20 +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 2BEF842942B for ; Wed, 7 Oct 2020 08:56:20 +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 4C5p8z6gXYz4Yxl; Wed, 7 Oct 2020 08:56:19 +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=4GcKZKw/AcTvzx35o5BGialwqGA6jnavhaWj4is1/tM=; b=xfmVRaT3V/d9augdTFeMRoVetsPriyyvJ0Ue3z4XS/m6frQqJr22RBF6OjCBTQvyUHuzxK3hB8RUcrNOTqxw7aW/ZcP30AHsTfLDmaXpSbmNOKi6by6GQ7g5djCy2GAiQz3cxDNITEl7gY6zsduBXgNIS6SW2J0RsLfmeryFdgM8TUdu9zGHhHumyJgOWgBwIvpgCy1dO7d9G6eJkkyU1CA6Wdwr/WWh3wQ3FlvJ/FhPRe76pVKRNYwkC4V4nVGyBjZ0ZgXeZhOdv5+Tkv2KDuM20GG2HG7YJO8HUricXBTeJeFBOBcf2GxePGyPTXJAcDVcqj+aHYw2MfpGyKgbqw==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1kQ5FB-000Osz-OA; Wed, 07 Oct 2020 11:56:17 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: nanopi/allwinner i2c not working. From: Daniel Braniss In-Reply-To: <82ac00f2-0463-3861-dd39-9c079978be27@FreeBSD.org> Date: Wed, 7 Oct 2020 11:56:17 +0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <3B6E9040-3498-4FEF-829D-0FAF9E63B1E0@cs.huji.ac.il> References: <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> <20201006104119.28f2262d47107d41025d193f@bidouilliste.com> <29A34854-E792-48CE-AF0A-E4C605BDFC3B@cs.huji.ac.il> <6416CA90-AB4C-4F8A-BCF4-7C9E5A4F2F8D@cs.huji.ac.il> <0ba109b4-784f-19ed-e52d-a40b75af872c@FreeBSD.org> <7C27FB6C-BF0D-4DAE-99D0-50849D2FBA5E@cs.huji.ac.il> <43a5d626-634c-2cc2-e8a5-ad4326a2d6e2@FreeBSD.org> <77DC054E-07B2-48F8-8051-C2796EE991B2@cs.huji.ac.il> <260839FF-7297-4FDC-82AC-13797938AC29@cs.huji.ac.il> <9FE1F947-4975-411C-91D1-94C43E5495C8@cs.huji.ac.il> <82ac00f2-0463-3861-dd39-9c079978be27@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.3445.9.7) X-Rspamd-Queue-Id: 4C5p8z6gXYz4Yxl 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: Wed, 07 Oct 2020 08:56:20 -0000 > On 7 Oct 2020, at 11:33, Andriy Gapon wrote: >=20 > On 07/10/2020 10:54, Daniel Braniss wrote: >> with D26049: >> i2s -s works with and without debug >>=20 >> my test runs ok with debug on, but failed with debug off. >> timing issue? >=20 > That's interesting. > I also have an H3-based system and did not see anything like that with = any of > I2C devices that I have. > The latest driver is completely interrupt driven and there are no = fixed delays. > The controller datasheet does not seem to mandate any delays as well. > Perhaps the problem is on the device's side? > Also, it could be that the older driver (in 12.1) was slower, so more = forgiving > of any wiring / connector problems. >=20 > Not sure how to proceed when debug mode works fine and non-debug = fails. > Perhaps DTrace would be less overhead than the debug printf-s. >=20 > Ah, another thought, with debugging enabled, could you please do a bus = reset and > see what mode and clock param get printed? iichb0: twsi_calc_baud_rate: Bus clock is at 24000000 iichb0: twsi_reset: Using clock param=3D59 >=20 > --=20 > Andriy Gapon