From nobody Sun Dec 19 21:13:12 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 25D7218FADE6 for ; Sun, 19 Dec 2021 21:13:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHFnN5T7mz4skL for ; Sun, 19 Dec 2021 21:13:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639948400; bh=jZP4lRvHeOrPdIa8nKFcepii9aAalz5lqMUhqofDAHw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=IXYZp2/6n/z98w/mcj+IFCXVatNpK0basIlGKm8w0mIBlmBN16D/IntZ8EgkkzlOsxPdUIf3WSJS+J+7lahsmXDo+1y3RgiQj2IRuuuB/FZIPqbBuBpKDTbiTemJ5rgtm0AzWSLuiVd07GicR5oaAXBn43RuOaDie/a24g5qapdCeQG/l6Y2t/DBCGEAflDPDNx+kWI6p3LUNTn4GPHAe9I/D+MTgZMkgZWqbvgtH1wd9DETrqYKYJC6jWqFLhaLcZxWTcH3RG5EA7IuijfvdpiuzXk11uNs+eQFMS4n5LAqZKhudFGRPQDUFZSAgQUBP6I6yUowAZjGPrTUIzVdnQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639948400; bh=grH9sB8xHaFW5Mt11zT/3bT+DX8Wdts809BVppbUN+m=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=G0Rxut26XoPIZZZ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XVMXFGHw6 OKLava_D1XfZEI9ldK_GCUVSpdw6r05vChhcg.a.r2ASI4iDjkOlEgS.h61NNv_wU2BsQdDc1Yj. lmSyoKsIwnk.zVWXvyCP1ksgIRIFr3lkS_bhIFw2gUT75ASNnDuJQ30vF_ugumT93yjpMkpPoac8 hUwNeQXhxUlJEgEipALNRVgAPmhPs4sQSOPLAfSW0bTxl5twBTBXcPERkWSXm_9p_7blQtozfHAp .2UiZNG8x0EiqM_.VpHFhSdsZ6QxYnguORzdN38hFqQpyg2nB3GcNkT0q7Tx0mQUBcGxLyOEizGa dALU0NiFzp0g.bSO0tJe7JguaLyVCIF_FXcT_tLFp.7UlUasyBQk5DnVqofecFY9JdIBPxZcycwN 9zsi_8nWVeEU1NCv1d4OzGZEBXAQ9Z1CJsI5gSXCfNYY43mxsj7qpEOVDeYHG6a0eO5iyiBEg8Fz x.f5ahhzY1Sp0kz5yeGp4wqzKiNasOgiKUkwuETnsIkevd_GYCyQAbaOkLy0hV0.NX.UUxdIArRN VlfbODRUniSyc5wzR X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 Dec 2021 21:13:20 +0000 Received: by kubenode531.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 1ecc0b9644d1622cb38999c345c6c526; Sun, 19 Dec 2021 21:13:15 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Dealing with slow USB disks, was: Re: Saving environment variables in u-boot In-Reply-To: <20211219192854.GB14873@www.zefox.net> Date: Sun, 19 Dec 2021 13:13:12 -0800 Cc: Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <28D85D32-7C9A-45FC-8965-DBE8E0DF5A5D@yahoo.com> References: <20211217013613.GA4452@www.zefox.net> <20211218005946.GA7670@www.zefox.net> <5C44D0E6-2FF1-4EEB-B21A-83333D6FCF46@yahoo.com> <9D416106-660F-40BB-98D2-1354B53D2FEF@yahoo.com> <20211218223543.GA9484@www.zefox.net> <772E3794-B762-429F-B2A5-F504EA293C59@yahoo.com> <20211219043422.GA12811@www.zefox.net> <288258B0-40B0-44EC-B449-7A8FB81575F8@yahoo.com> <20211219192854.GB14873@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JHFnN5T7mz4skL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Dec-19, at 11:28, bob prohaska wrote: > On Sun, Dec 19, 2021 at 12:55:12AM -0800, Mark Millard wrote: >>=20 >> http://www.zefox.net/~fbsd/slow_usb_notes shows: >>=20 >> umass0 on uhub1 >> umass0: on = usbus1 >> umass0: SCSI over Bulk-Only; quirks =3D 0x8100 >> umass0:0:0: Attached to scbus0 >> . . . >> a0 at umass-sim0 bus 0 scbus0 target 0 lun 0 >> da0: Fixed Direct Access SPC-4 SCSI device >> da0: Serial Number 000000000000A >> da0: 40.000MB/s transfers >> da0: 953869MB (1953525168 512 byte sectors) >> da0: quirks=3D0x2 >>=20 >> = https://jamesachambers.com/fixing-storage-adapters-for-raspberry-pi-via-fi= rmware-updates/ >>=20 >> has material about SABRENT adapters: >>=20 >> QUOTE >> Sabrent and Orico both have the worst track records for working = storage adapters for the Pi. I don???t recommend them at all but they = can sometimes be fixed. >> END QUOTE >>=20 >> (Not that all models are bad.) >>=20 >> I've not found anything to identify the specific product >> that you are using. He lists some specific ones as >> problematical but possibly fixable: >>=20 >> ??? EC-SSHD* >> ??? EC-UASP* >> ??? EC-UK30* >> ??? EC-UM3W* >> ??? EC-DFLT* >> ??? EC-NVME* >> ??? EC-TFNE* >> ??? EC-TFNB* >>=20 >> (The above are JMicro based.) Can you identify your adapter >> type? >>=20 >=20 > The enclosure is simply marked SABRENT EC_UASP,=20 > The usb-sata bridge is marked JMS576 > 2026 QH8A3A A > E76H20013 THat is one of the ones listed on = https://jamesachambers.com/fixing-storage-adapters-for-raspberry-pi-via-fi= rmware-updates/ as potentially fixable (with quirks possibly involved). See: https://www.sabrent.com/download/jmicron-sabrent-update-tool/ for SABRENT's Firmware-Update Tool. Looks like Windows7+ is a required context for doing the firmware update. I've not checked if FreeBSD has any quirks in place. The quirks material on the https://jamesachambers.com/. . . page is not for FreeBSD, but RaspiOS (and similar). > The "product brief" is at > https://www.jmicron.com/file/download/1015/JMS576_Product+Brief.pdf > but it's more advertising than technical. It claims Windows and Mac > support, the omission of linux/bsd isn't surprising.=20 >=20 > I've tried power-cycling the disk, it doesn't seem to have any > effect on discovery using usb reset. >=20 > There is one slightly odd thing: Once the disk is found, it does > not stay found. Left sitting at the u-boot prompt after discovery > a subsequent usb reset frequently fails to find the disk and it's > durably lost. A total system reset seems required to find it. >=20 > One other observation... I tried smartctl on both Pi3 and P4. On > the Pi3 it failed: >=20 > root@pelorus:/usr/ports/sysutils/smartmontools # smartctl -a /dev/da0 > smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.0-STABLE arm64] (local = build) > Copyright (C) 2002-20, Bruce Allen, Christian Franke, = www.smartmontools.org >=20 > Read NVMe Identify Controller failed: scsi error unsupported field in = scsi command >=20 > On the Pi4 it worked: >=20 > root@nemesis:/usr/local/poudriere # smartctl -a /dev/da0 > smartctl 7.2 2021-09-14 r5236 [FreeBSD 14.0-CURRENT arm64] (local = build) > Copyright (C) 2002-20, Bruce Allen, Christian Franke, = www.smartmontools.org >=20 > =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D > Model Family: Seagate Barracuda 2.5 5400 > Device Model: ST1000LM048-2E7172 > Serial Number: ZDEM543B > ....[voluminous output snipped] >=20 > Might the difference in behavior be significant?=20 >=20 Unsure. But . . . The power (current) requirements to get this drive spinning is double what a USB2 port has for a maximum in the USB2 standard: The drive is problematical unless power is being drawn from 2 USB2 ports for the one drive. EC-UASP does not seem to support such dual-USB2-port use. (The RPi*'s are not designed to provide extra power on a USB2 port as far as I know.) That things do not work well for USB2 port use is not surprising. The startup current requirement is nearly as large as the total current for USB on the RPi*'s. (The RPi*'s support less of a total than the sum of the individual ports maximums: only 1200mA total.) SSD's are a better match to RPi* power than spinning rust is, unless the spinning rust has its own power supply and is already powered before the RPi* is powered. There are types of cases that have such independent power instead of being bus-powered. Bus-powered spinning rust is a problem for single-port USB2 (and possibly even single-port USB3). =3D=3D=3D Mark Millard marklmi at yahoo.com