From owner-freebsd-arm@freebsd.org Thu Jan 16 09:44:31 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 B99D623072B for ; Thu, 16 Jan 2020 09:44:31 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yzmt4LXnz3GC3; Thu, 16 Jan 2020 09:44:29 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id 00G9iEgu004625 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 Jan 2020 20:44:20 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id 00G9i9jV012272 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 16 Jan 2020 20:44:09 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id 00G9i9Od012271; Thu, 16 Jan 2020 20:44:09 +1100 (AEDT) (envelope-from peter) Date: Thu, 16 Jan 2020 20:44:09 +1100 From: Peter Jeremy To: Emmanuel Vadot Cc: Kyle Evans , "freebsd-arm@freebsd.org" Subject: Re: Banana Pi M1 SATA problems Message-ID: <20200116094409.GJ25924@server.rulingia.com> References: <20200112080247.GF25924@server.rulingia.com> <20200113095740.GG25924@server.rulingia.com> <20200113111932.9e8e648733d530b70011456f@bidouilliste.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2NLGdgz3UMHa/lqP" Content-Disposition: inline In-Reply-To: <20200113111932.9e8e648733d530b70011456f@bidouilliste.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47yzmt4LXnz3GC3 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-7.66 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[rulingia.com]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-3.26)[ip: (-9.72), ipnet: 2001:19f0:5800::/38(-4.86), asn: 20473(-1.67), country: US(-0.05)] 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, 16 Jan 2020 09:44:31 -0000 --2NLGdgz3UMHa/lqP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-Jan-13 11:19:32 +0100, Emmanuel Vadot wrote: >On Mon, 13 Jan 2020 20:57:40 +1100 >Peter Jeremy wrote: > >> On 2020-Jan-12 09:22:14 -0600, Kyle Evans wrote: >> >On Sun, Jan 12, 2020 at 2:03 AM Peter Jeremy wrote: >> >> I'm trying to get my (new) Banana Pi M1 to talk to a SATA drive. >> >> Unfortunately, something is disabling the SATA port. >> > >> >Try updating past r356600; earlier than that and probably 12.1-RELEASE >> >we were shutting down the regulator. hw.regulator.disable_unused=3D0 >> >should also work around it. Actually, r356600 increases the breakage. It attaches the regulator defined by "target-supply" to the ahci device, however there is no target-supply field on the ahci device in sun7i-a20-bananapi.dts and the ahci_5v regulator is disabled so achi0 no longer probes. After I added following patch, the behaviour went returned to the previous - ahci0 attaches but ahcich0 is disabled. Index: gnu/dts/arm/sun7i-a20-bananapi.dts =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gnu/dts/arm/sun7i-a20-bananapi.dts (revision 356657) +++ gnu/dts/arm/sun7i-a20-bananapi.dts (working copy) @@ -95,6 +95,7 @@ }; =20 &ahci { + target-supply =3D <®_ahci_5v>; status =3D "okay"; }; =20 @@ -252,6 +253,10 @@ =20 #include "axp209.dtsi" =20 +®_ahci_5v { + status =3D "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt =3D <1000000>; >> I need hw.regulator.disable_unused=3D"0" because the BPi powers itself >> off completely without it. I am building a new world+kernel at r356657 >> but that will take a while because it has triggered a clang rebuild. > This problem should be fixed with r356609. This part does work, thanks. --=20 Peter Jeremy --2NLGdgz3UMHa/lqP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl4gMGJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzTAhxAAhfYmUkLEt7RyefhSLSmDPb9fL5jKuvu2QX9pfwC0enk3J+mSLwzE9jRL 3Romem0uroYed67Sey4qlpWZiWTVS16W1PlKsEMJmj+M63G2POi+CTerYNATLWuD iBEHKki4iFNRA9yNGviGeQm02pR4XLQacaIuE9gcI01GcaF+a0Q0Eck5CIl8iOiE IrVp4uv7TFqwS9A8Zw+RBPLQhu1WX355GxoomxD6l+EXu9DfT4PKGKfAIkPq7OUR 8o+5pm7T7DQh/f83LdDBtb/T1qBkCQYorOr9C3kCeyMSzsNuLhZfts0bnEliXiiz aqNI21Gl7iVLVdQ+ypWg3SSeZRIiwc/qGgW9UU8zYTMbczLo5Dhh9KOBP4JnZJ/g nzhzLUcvNmooVCvDeFZvxNqxzibRop9+C/JNn6ciwul/MXgbX4Y5QdjMSsupRfOA PbsmRKbOeuBxam40FNT4lFIW/d+GLoT4AyVBi0qotXFLyKu5AI0crLSqstqT49KK 0g7ZijbH4j5mJAACmaGkCa5vYpLSK/tDq/SpIu8sgH6aJwUXFFG4+qwpWpE29GlP 9u6VkcORnXLIU6TUeXTDgPDt8FR005LLBSCI08qrW39K7MfiyaA+4OylkZ2dQECN W9QwiQ2pLgFQdYTFIf3NrEA6ombixWYZV0FfgEgC2yOEGpbtFkw= =eGdx -----END PGP SIGNATURE----- --2NLGdgz3UMHa/lqP--