From nobody Mon Dec 20 01:13:42 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 2922F18F761F for ; Mon, 20 Dec 2021 01:13:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-55.consmr.mail.gq1.yahoo.com (sonic316-55.consmr.mail.gq1.yahoo.com [98.137.69.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 4JHM6h5rBwz4RZK for ; Mon, 20 Dec 2021 01:13:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639962826; bh=g7Q7X1JRLEhmRwLakpY17mh5No0TIHLzeiqfoXqop9k=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=cB093MXrL6jAShYyD8oGCIYWSJQ7RMelRU+cfVVx2upGWUIfrdQgP2/xIqbMEpQ/2mL5RUmBGPlVXYZsggGoiiVymcE6uZN4Ec9/U1azHoqCB56NVYCgiKczmYDvHS1uQBoCJK2CGJZzxC0HGVe2YtfwJQScORyf0GbEDjqSB0EN7pnTmRaHT6zG18f1sp1fn9SJpXAMLfFDvjq8RpDB7YKb9FG4lC0E67kWsXwx444ui8ManYvfzS+ICl9voyWGFYgLbZ9nP+ievj8xTD4BWR+AkoZTPne9z6kHnpZx9pPjbrbgNC97iK3kwKJV8LHfaB8S3Jqgr7w8m33Iz3hsFA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639962826; bh=MCdzCmATCanVso8ISDdAfYM3wrotJ70y9riPntGiGBG=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=KrzcRYRf9s124FkU8B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hdbFvSE15jvfV4g4dFrRZ 4kfpTKncBkYmGnKIFwJyrN_ZV.d01YNhaRVeU3eE_aQuhbiQotNTP6pI0EA.V4RTpsf2amQqwHh9 zNozNiUPi2hYRxIKzsK42os5OYwRllyS.xoUFqQ14xwgkuoiUm6ZLlcBJcqoOVReNRlE.9hWqtmA cWhSGTcS9CuYUvf.9yd.yAshLDgQXRMg7UAruj5BKev4Jt51M3bkp.Ks7QV6BBbQvtvBNnemBSCT wxrqkGNaAIkY5QBzfc8eN24KLwsRqehPxuzy9HGrrjBKg9DVOf5FQh9JVZWCoSRKklZA1jry3MGW ePiUINXikXPpGlrCcGKH5BKtQFgXGe2H0deu7__li_BDD.6_k4M.VJaxne3kQJcH8M80JM2a7s33 cU_3YZkjag4tviTAGmv66AY46FAyp2d_uP924sTiy7CcQfcqMjZ1X8FgJwZ7Ou3wxmNyPeJrHsBS _4XVNX89hsrb_OqWb1FMfT0whTEGw6d_JAftFUxGsoy_zqA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 20 Dec 2021 01:13:46 +0000 Received: by kubenode507.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 82fa1c84ca766ce5265086548c34a0a1; Mon, 20 Dec 2021 01:13:44 +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: Date: Sun, 19 Dec 2021 17:13:42 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> <6105a8a6-e760-2183-72fd-92e5a60aa8df@gmail.com> <20211219005134.GA12292@www.zefox.net> <4910504f-3051-9a95-d8e4-95434042196d@gmail.com> <20211219161816.GA14873@www.zefox.net> <6edfdb4a-8ed3-7ef3-c3b2-7d2d7fd3206c@gmail.com> <1387CAB3-CFE7-4C47-8A9C-24D6E56D8C3C@yahoo.com> To: MJ , bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JHM6h5rBwz4RZK 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 15:48, MJ wrote: > On 20/12/2021 9:55 am, Mark Millard wrote: >> On 2021-Dec-19, at 13:39, MJ wrote: >>> On 20/12/2021 3:18 am, bob prohaska wrote: >>>> On Sun, Dec 19, 2021 at 10:03:47PM +1100, MJ wrote: >>>>>=20 >>>>> I would think a mechanical USB is going to pull a "lot" of power = when beginning spin-up, but once rotating should be easily powered by a = USB hub. Though this would not explain how it works on RPI4 unless the = powered hub you're using is USB2. >>>>>=20 >>>> That's what I thought too. I certainly didn't expect the disk to = work >>>> without a powered hub. The Pi4 is a different animal; it has USB3 = ports >>>> and more power available. That the mechanical disk works at all on = the >>>> Pi3's USB2 ports without assistance is quite surprising. >>>=20 >>> See here: = https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#typi= cal-power-requirements >>> It mentions 1.2A, which covers your load, but, I would suspect if = you attached, for example, a USB 'thumb' drive or other devices you = would cause problems. >> Unfortunately there is more involved: USB2's standard >> indicates 500mA (0.5A) at maximum on 1 standard USB2 >> port. It takes 2 USB2 ports to get to a total of 1000mA >> (1A) (unless a port is designed to go beyond the >> standard). To my knowledge most RPi*'s are not designed >> to support more than the standard USB2 power on any of >> its USB2 ports. (The 3A+, Zero W/WH, and Zero are >> apparently exceptions, depending on the power supply >> used and such.) >=20 >=20 > You are correct, however, it seems the RPI foundation violates the = "standard" and creates their own for Bs: >=20 > = https://raspberrypi.stackexchange.com/questions/51615/raspberry-pi-power-l= imitations > (Section: How much current can be drawn from the USB ports?) >=20 Quoting that material: QUOTE The USB hub on the B models does not appear to be compliant to the USB specification and does not limit current. Individual ports can supply in excess of 500 mA independent of negotiation, subject to the overall maximum limit and adequate power supply. END QUOTE That such is not documented by the RPi* materials suggests that they consider it unsafe/unreasonable to depend on the behavior on at least some RPi*'s (if it is indeed as described). Still, it may explain why the bus-poered single-USB2 port spin-ups have gone as well as they have. There is also a claim there of a part present but not documented on the published schematics. This might mean that the status relative to that part has varied in time without the model number(s) changing. Depending on the part's behavior without checking for its existence on the specific RPi* might be a risk. =3D=3D=3D Mark Millard marklmi at yahoo.com