From nobody Sun Mar 31 19:10:59 2024 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 4V73dy3BjDz5GDCC for ; Sun, 31 Mar 2024 19:11:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V73dx1Qydz4Pwr for ; Sun, 31 Mar 2024 19:11:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711912274; bh=cKB0Ke71kU9qZTFdWjLp2YjKnnTNaWAwrieXTF0bruE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ReSLDgRDQCoDk9FqnkMYTiNmUil0VWg0i7KYKzda69CUgqnkAizU4MI2elwzzOVLPQtSTb2qzdZk00mDu39/m6KkbyKOLz/3IOLpXcvkeO6sha+zIKxKbK4N+mMIhbxse69lZydvFGLuBzeG2F2n2/0nRmXlhjQ6i9GveAW9ABZlOR/T1Udag9U1WhQl4Zo91GJ1LjaUqeMx1vK5Tujf3Jszbg87j3/mSpwOOJmkyYqcIp6DecS5BQEt+RALUdZ3R9cmllOXinth54feRBpWKtWd9xiuBn2OjklNRy4RGTQwuojwA+Bf+LFewamqNuO5qIPkJqtH1CffPiaYHhCvEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711912274; bh=pjZI8rKNTHMzd7QDIucBguoh2aEa3CFQOZl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9h4blojH6QlYFoDhDSTJdTXC8wTvhFizrtQUBKOGLjVJATEzOXWn53R73pcTh1aJL9zSIS 3EQnPKvALLeQqrR30vOPIHfimSxkshc8gujuGrQ69LDxfcGqqCJ6BKybw.p10TTl09XMI5tGw8uU xHQmwS0bYyt5vn4r6lFBw1ADi87QsWgGYpCvr2iArdN0a1thlc6QqrlWL81qdMKI2LlE59mDhnYU 1bC16ry4_RTun0Vs6m6IBfGaSXKBqYeyELpOUjPbilbVRAF0LCM_UFPy1yR.E5dzXkuRJpa7UGC_ uVC0fF13k8U2bcCvq_7X40pudYLU2t_RlYmloJ4rvIfqtfSR_n91.E7VU8O0conY7cBJ5a57A2AO vgIToPKmdT8wPzLyeJo3szJuOnxTThlVbnD78NWcqxEx2YpeQw.SI5Bu_.HcSCAxL41Ii5lH3sU7 GrDBfKWexrcF.vcC_PVilXgoRZC9krZQTPwJRjg.rSzz8lrOog1IL9rIsNnZmCoHjdrlSgaMqole PMLR1M9h6.eBL3X0Z95.KDbbC1G7qh3pTaKvl1VZJjiLsFhaXaToOC9iCIMPTocTfUu0MPnzXrSh 9VVY- X-Sonic-MF: X-Sonic-ID: 616da6de-f310-4685-99d3-cedefc5295d8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 31 Mar 2024 19:11:14 +0000 Received: by hermes--production-gq1-5c57879fdf-6xjwd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c93635af89178c64b05616b06b892ffc; Sun, 31 Mar 2024 19:11:10 +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 16.0 \(3774.400.31\)) Subject: Re: 15.0 on RPi4, USB broken: uhub_reattach_port: port 2 reset failed, error=USB_ERR_TIMEOUT From: Mark Millard In-Reply-To: Date: Sun, 31 Mar 2024 12:10:59 -0700 Cc: FreeBSD ARM List , freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <04AA156F-129B-41C2-AB3D-B762585F8BC0@yahoo.com> References: To: Lexi Winter X-Mailer: Apple Mail (2.3774.400.31) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4V73dx1Qydz4Pwr On Mar 30, 2024, at 12:44, Lexi Winter wrote: > i'm using 15.0 (f66a994d59) on an 4GB RPi4 with a USB<>SATA adapter = for > the root disk: >=20 > usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage = device ASM1153USB3.0TOSATA ASM1153USB3.0TOSATA (0x174c:0x55aa) > ugen0.3: at usbus0 > umass0 on uhub1 > umass0: on usbus0 > umass0: SCSI over Bulk-Only; quirks =3D 0x0100 > umass0:1:0: Attached to scbus1 > da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 > da0: Fixed Direct Access SPC-4 SCSI = device > da0: Serial Number 123456789019 > da0: 40.000MB/s transfers > da0: 228936MB (468862128 512 byte sectors) > da0: quirks=3D0x2 >=20 > when connected via USB 2, this works fine. when connected via USB = 3.0, > the device sometimes fails to attach on boot, causing mountroot to = fail. > i can reproduce this reliably with both GENERIC-NODEBUG and a custom > modular kernel, and sometimes (but not every boot) with GENERIC. >=20 > when the problem happens, with USB_DEBUG enabled, the kernel logs: >=20 > uhub_reattach_port: port 2 reset failed, error=3DUSB_ERR_TIMEOUT > uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 2 >=20 > however, if i boot with "boot -v", the device is reliably detected > correctly. since -v shouldn't cause any functional changes, i suspect > this may be some kind of timing issue. >=20 > i've tried increasing some of the USB timings (hw.usb.timings.*) but > this didn't seem to have any effect. is there anything else i could = try > that might affect this, or is this perhaps a known issue? >=20 Here is my config.txt material related to such issues: # # Local addition that avoids USB3 SSD boot failures that look like: # uhub_reattach_port: port ? reset failed, error=3DUSB_ERR_TIMEOUT # uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port = ? # WARNING, not sufficient for "boot -s": that needs the full = force_turbo=3D1 initial_turbo=3D60 As far as I can tell, without using one of the turbo settings, the more modern RPI firmware is varying the speed of the clock in the early boot time frame and FreeBSD is working in a way that requires more uniformity for such. (May be delays based on just loop counting?) =3D=3D=3D Mark Millard marklmi at yahoo.com