From nobody Wed Mar 16 15:52:43 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 E8C801A2EA5D for ; Wed, 16 Mar 2022 15:52:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJZYK5kbhz3rj5 for ; Wed, 16 Mar 2022 15:52:53 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1647445966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=djhKB11X4/X0it76x62+XTGbr3D164RY5xsFVNqgVJI=; b=tM9EDqS1tthWyud9Tm2sH1mtOSD0zJpa6s5wG31CYkv3QtQ+v7972/mai6QlRCDApkpl93 jl4nfTp0t8kY6f5wI971k23SMxVhm2ly2PPJMLm3+97sKl4HzkzXLTNdLnj/8ycv8IEP8l x47ldyji+o9HaPbm5W7YIqYIiHJjdLc= Received: from skull.home.blih.net (lfbn-idf2-1-1209-14.w90-92.abo.wanadoo.fr [90.92.34.14]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d7e795af (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 16 Mar 2022 15:52:45 +0000 (UTC) Date: Wed, 16 Mar 2022 16:52:43 +0100 From: Emmanuel Vadot To: Hans Petter Selasky Cc: John F Carr , freebsd-arm Subject: Re: USB regression on Overdrive 1000 Message-Id: <20220316165243.f4e6936f6e13f94586c11371@bidouilliste.com> In-Reply-To: References: <9831B325-242D-4143-B043-F150A9646672@exchange.mit.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KJZYK5kbhz3rj5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=tM9EDqS1; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi Hans, On Wed, 16 Mar 2022 16:50:59 +0100 Hans Petter Selasky wrote: > 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. This need to go to 13.1, thanks. > --HPS > -- Emmanuel Vadot