Date: Mon, 20 Jan 2020 06:37:26 +1100 From: Peter Jeremy <peter@rulingia.com> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: freebsd-arm@freebsd.org Subject: Re: SATA on BananaPi M1 Message-ID: <20200119193726.GA97848@server.rulingia.com> In-Reply-To: <20200118231701.GA65624@server.rulingia.com> References: <20200117104142.GM25924@server.rulingia.com> <20200118174144.ad45c9296f7bab8f70f35131@bidouilliste.com> <20200118231701.GA65624@server.rulingia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-Jan-19 10:17:01 +1100, Peter Jeremy <peter@rulingia.com> wrote: >On 2020-Jan-18 17:41:44 +0100, Emmanuel Vadot <manu@bidouilliste.com> wrot= e: >> I've just test SATA on my A20-Olinuxino and it works if I first tell >>u-boot to detect drives ("scsi scan"). I have the same behavior as you >>if I don't. >.. >> Could you test if you have the same behavior ? > >Yes. If I run "scsi scan" then both u-boot and FreeBSD correctly see >the disk. Thanks for that suggestion. This suggests that >ahci_a10_phy_reset() is missing some magic bits but it also suggests >where to look for them. I had a look at the u-boot-2019.10 sources (this isn't the same as the "U-Boot 2019.07 (Nov 01 2019 - 01:59:08 +0000) Allwinner Technology" I have on my BPi but I hoped they'd be close enough). The PHY reset/ init code is functionally the same as FreeBSD apart from a few DELAY() values. I tried extending the FreeBSD delays to be the same as those in the U-Boot sources and FreeBSD still failed to see my disk. On the positive side, once a "scsi scan" has seen a disk, I can power cycle the disk and the FreeBSD detach/attach code will correctly recognize that the disk has gone away or returned. --=20 Peter Jeremy --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKSBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl4kr/FfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzTJkQ/2NRRRMZESsZX8ERuNwy24spvZaf7Z8NuZ2yvzfI27AfJXPn62qxVK3a8J mzskW8OQQwEaINlJnxAOvswk7voVTQxo1Q05ctGOZdotggw4w2WkegZpllPv1K29 l/42mPh487ypMCxIJ4dlUVw3+wQeKz407NIYQc7Ct1SqFOfEm+88kFCm7LODqL21 bY3J+f6vfbWQNDQm94SE3EBqv3Jg2A/UWyZ+SgulxDQMJTcU+qi57UVcBkXmwi4s CYeQ6I0+Dw8d1GiSdQm1QpmP1GurnLbKO82I/wPmkNq8SUdUyz37mUmVfYEXxPZ4 DkeIRxCsiwFXBmiEe0ObeNNuRaBWvtFVaQ2dFsUQThGcuA3PQB+8DPsIXIMWELz+ qCahUMuu0NeXCJ5vzokFg3qur5YIZR855/xu3jUzU6puDWuS8HCiSZasjYQ4LG84 vx18elflBY2hy7MgoParYogshWdzKVooxB+ld1qzcSbbdD1nFt4CLCHWZ0UfmrRH L8OOsEa9/drkNvJbKTlyrdBgHU6OiWGb7uWcy0/4ftF3UpzF+EbjjQr30KRUMqOq Vhkyo08Th9u18Wimd7RKljVSK44wrNjDY6nhYsSvhzDTdiuPq2sFcL5iwcyBZKvx jO3XJ5DSX4a6sHSrZ0al+BzZfTF4yTFUbWhjBjsl3LlUf6iB1w== =6cRf -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200119193726.GA97848>