From nobody Wed Mar 16 15:50:59 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 DCD951A2E6E4 for ; Wed, 16 Mar 2022 15:51:14 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4KJZWP6KtDz3rQj for ; Wed, 16 Mar 2022 15:51:13 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E63CB26019E; Wed, 16 Mar 2022 16:51:11 +0100 (CET) Message-ID: Date: Wed, 16 Mar 2022 16:50:59 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: USB regression on Overdrive 1000 Content-Language: en-US To: John F Carr Cc: freebsd-arm References: <9831B325-242D-4143-B043-F150A9646672@exchange.mit.edu> From: Hans Petter Selasky In-Reply-To: <9831B325-242D-4143-B043-F150A9646672@exchange.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KJZWP6KtDz3rQj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.99 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-0.78)[-0.777]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-0.92)[-0.918]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 3/16/22 16:43, John F Carr wrote: > >> On Mar 16, 2022, at 10:51 , Hans Petter Selasky wrote: >> >> 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 console. It doesn't register a "CAMuhub0" device and it never finds the USB stick 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 filesystem. >>> 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 usbus0 >>> 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 device Generic Mass Storage Device (0x14cd:0x125d) >>> usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device 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=1, set address failed! (USB_ERR_TIMEOUT, ignored) >>> Root mount waiting for: usbus0 >>> ... >>> xhci0: Resetting controller >> >> Hi, >> >> Can you cherry pick this commit: >> >> https://cgit.freebsd.org/src/commit/?id=33cbbf268f7d0f3daff0c2aa06836d932faf56a9 >> >> to your 13-stable and enable it in the loader either manually or in /boot/loader.conf: >> >> set hw.usb.xhci.dcepquirk=1 >> >> hw.usb.xhci.dcepquirk=1 >> >> --HPS > > That fixed it. I attached a diff to recognize the USB controller in my system. > Hi, Here you go: https://cgit.freebsd.org/src/commit/?id=19837718ab51756183046e5162b8b3b7b3cb8c3d Will be MFC'ed to 13-stable next week. I will try to get these patches int 13.1, but no promise. --HPS