From nobody Wed Mar 16 15:43:10 2022 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 9A5951A2C9DF for ; Wed, 16 Mar 2022 15:43:43 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from outgoing-exchange-5.mit.edu (outgoing-exchange-5.mit.edu [18.9.28.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.outgoing-exchange.mit.edu", Issuer "InCommon RSA Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJZLl1YhPz3qKS for ; Wed, 16 Mar 2022 15:43:43 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-5.mit.edu (8.14.7/8.12.4) with ESMTP id 22GFhA25012323; Wed, 16 Mar 2022 11:43:42 -0400 Received: from OC11EXPO29.exchange.mit.edu (18.9.4.102) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 16 Mar 2022 11:42:52 -0400 Received: from OC11EXPO29.exchange.mit.edu (18.9.4.102) by oc11expo29.exchange.mit.edu (18.9.4.102) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 16 Mar 2022 11:43:11 -0400 Received: from OC11EXPO29.exchange.mit.edu ([18.9.4.102]) by oc11expo29.exchange.mit.edu ([18.9.4.102]) with mapi id 15.00.1497.023; Wed, 16 Mar 2022 11:43:10 -0400 From: John F Carr To: Hans Petter Selasky CC: freebsd-arm Subject: Re: USB regression on Overdrive 1000 Thread-Topic: USB regression on Overdrive 1000 Thread-Index: AQHYOTwvT6JTIbjcM0e48iyzgwO8ZKzCWz+AgAAOagA= Date: Wed, 16 Mar 2022 15:43:10 +0000 Message-ID: <9831B325-242D-4143-B043-F150A9646672@exchange.mit.edu> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [108.7.221.50] Content-Type: multipart/mixed; boundary="_002_9831B325242D4143B043F150A9646672exchangemitedu_" 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 X-Rspamd-Queue-Id: 4KJZLl1YhPz3qKS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=mit.edu; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 18.9.28.59 as permitted sender) smtp.mailfrom=jfc@mit.edu X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_COUNT_FIVE(0.00)[5]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:18.9.28.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; HAS_ATTACHMENT(0.00)[]; RWL_MAILSPIKE_EXCELLENT(0.00)[18.9.28.59:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[18.9.28.59:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3, ipnet:18.9.0.0/16, country:US]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --_002_9831B325242D4143B043F150A9646672exchangemitedu_ Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable > On Mar 16, 2022, at 10:51 , Hans Petter Selasky wrote: >=20 > On 3/16/22 14:46, John F Carr wrote: >> I updated my kernel from 13.0-STABLE from early December to 13.1-STABLE = from yesterday and I am having USB problems on my Overdrive 1000 ARM box. = I see some usb_msc_auto_quirk messages I haven't seen before and there is a= long delay "Root mount waiting for: usbus0". It does boot eventually off = of the internal drive, ada0, but it continues to spew USB errors to the con= sole. It doesn't register a "CAMuhub0" device and it never finds the USB s= tick plugged into the external port which should appear as da0. Any ideas? >> dmesg output attached, "good" comes from "boot kernel.old". The if_msk = error is probably caused by a mismatch between old kernel and new root file= system. >> CPU 3: ARM Cortex-A57 r1p2 affinity: 1 1 >> Release APs...done >> usbus0: 5.0Gbps Super Speed USB v3.0 >> Trying to mount root from zfs:zroot/ROOT/default []... >> ugen0.1: <(0x1b73) XHCI root HUB> at usbus0 >> uhub0 on usbus0 >> uhub0: <(0x1b73) XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usb= us0 >> ada0 at ahcich1 bus 0 scbus1 target 0 lun 0 >> ada0: ACS-2 ATA SATA 3.x device >> ... >> Root mount waiting for: usbus0 >> usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device = Generic Mass Storage Device (0x14cd:0x125d) >> usb_msc_auto_quirk: UQ_MSC_NO_TEST_UNIT_READY set for USB mass storage d= evice Generic Mass Storage Device (0x14cd:0x125d) >> usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage dev= ice Generic Mass Storage Device (0x14cd:0x125d) >> usb_msc_auto_quirk: UQ_MSC_NO_SYNC_CACHE set for USB mass storage device= Generic Mass Storage Device (0x14cd:0x125d) >> Root mount waiting for: usbus0 >> xhci0: Resetting controller >> Root mount waiting for: usbus0 >> usbd_req_re_enumerate: addr=3D1, set address failed! (USB_ERR_TIMEOUT, i= gnored) >> Root mount waiting for: usbus0 >> ... >> xhci0: Resetting controller >=20 > Hi, >=20 > Can you cherry pick this commit: >=20 > https://cgit.freebsd.org/src/commit/?id=3D33cbbf268f7d0f3daff0c2aa06836d9= 32faf56a9 >=20 > to your 13-stable and enable it in the loader either manually or in /boot= /loader.conf: >=20 > set hw.usb.xhci.dcepquirk=3D1 >=20 > hw.usb.xhci.dcepquirk=3D1 >=20 > --HPS That fixed it. I attached a diff to recognize the USB controller in my sys= tem. --_002_9831B325242D4143B043F150A9646672exchangemitedu_ Content-Type: application/octet-stream; name="xhci.diff" Content-Description: xhci.diff Content-Disposition: attachment; filename="xhci.diff"; size=514; creation-date="Wed, 16 Mar 2022 15:43:10 GMT"; modification-date="Wed, 16 Mar 2022 15:43:10 GMT" Content-ID: <18F81D820AC25B4EA8F670255AD7E800@exchange.mit.edu> Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3N5cy9kZXYvdXNiL2NvbnRyb2xsZXIveGhjaV9wY2kuYyBiL3N5cy9kZXYv dXNiL2NvbnRyb2xsZXIveGhjaV9wY2kuYw0KaW5kZXggYmUxMmQ4YzMzMzguLjMxYTNjODgyYmYy IDEwMDY0NA0KLS0tIGEvc3lzL2Rldi91c2IvY29udHJvbGxlci94aGNpX3BjaS5jDQorKysgYi9z eXMvZGV2L3VzYi9jb250cm9sbGVyL3hoY2lfcGNpLmMNCkBAIC0yODcsNiArMjg3LDcgQEAgeGhj aV9wY2lfYXR0YWNoKGRldmljZV90IHNlbGYpDQogCXNjLT5zY19pb19zaXplID0gcm1hbl9nZXRf c2l6ZShzYy0+c2NfaW9fcmVzKTsNCiANCiAJc3dpdGNoIChwY2lfZ2V0X2RldmlkKHNlbGYpKSB7 DQorCWNhc2UgMHgxMDA5MWI3MzoJLyogRnJlc2NvIExvZ2ljIEZMMTAwOSBVU0IgMy4wIEhvc3Qg Q29udHJvbGxlciAqLw0KIAljYXNlIDB4ODI0MTEwNGM6CS8qIFRVU0I3M3gwIFVTQjMuMCB4SENJ IENvbnRyb2xsZXIgKi8NCiAJCXNjLT5zY19ub19kZWNvbmZpZ3VyZSA9IDE7DQogCQlicmVhazsN Cg== --_002_9831B325242D4143B043F150A9646672exchangemitedu_--