From: Brian Morrison <bdm@fenrir.org.uk>
To: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: linux-usb@vger.kernel.org,
Linux kernel regressions list <regressions@lists.linux.dev>
Subject: Re: USB regression in kernel 6.2.2
Date: Tue, 14 Mar 2023 14:00:08 +0000 [thread overview]
Message-ID: <20230314140008.79a90c38@deangelis.fenrir.org.uk> (raw)
In-Reply-To: <d5ff9480-57bd-2c39-8b10-988ad0d14a7e@linux.intel.com>
On Mon, 13 Mar 2023 12:06:59 +0200
Mathias Nyman <mathias.nyman@linux.intel.com> wrote:
>
>
> In your v6.2 logs the usb bus numbers are interleaved, in the v6.1
> they are not. xhci driver registers two usb buses per host, one
> High-Speed and one SuperSpeed.
>
> in v6.2:
>
> [ 1.094679] xhci_hcd 0000:00:14.0: new USB bus registered,
> assigned bus number 1 [ 1.094695] xhci_hcd 0000:04:00.0: new USB
> bus registered, assigned bus number 2 [ 1.096690] xhci_hcd
> 0000:00:14.0: new USB bus registered, assigned bus number 3 [
> 1.100549] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus
> number 4
>
> in 6.1:
>
> [ 1.071987] xhci_hcd 0000:00:14.0: new USB bus registered,
> assigned bus number 1 [ 1.073300] xhci_hcd 0000:00:14.0: new USB
> bus registered, assigned bus number 2 [ 1.076445] xhci_hcd
> 0000:04:00.0: new USB bus registered, assigned bus number 3 [
> 1.082133] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus
> number 4
>
> 0000:00:14.0 is your Intel xHC
> 0000:04:00.0 is your Renesas xHC
>
> This change could be due to 6.2 commit:
>
> 4c2604a9a689 usb: xhci-pci: Set PROBE_PREFER_ASYNCHRONOUS
>
> Not sure why it would cause this regression, but worth testing it.
I have now reverted the above commit, it's only the one line in
xhci-pci.c and it took a couple of hours to rebuild my kernel rpms which
wasn't too bad.
With this change all of my USB devices are present again and the 3
/dev/ttyUSB* nodes are all present and usable.
I found this in the linux-usb list archives:
https://www.spinics.net/lists/kernel/msg4569289.html
and the first part of this patch series here:
https://www.spinics.net/lists/kernel/msg4569288.html
Should both of these patches be reverted? I assume so but I don't think
I have anything that uses an ehci device to test it.
I know nothing about how this all works other than finding this:
"Note that the end goal is to switch the kernel to use asynchronous
probing by default, so annotating drivers with
PROBE_PREFER_ASYNCHRONOUS is a temporary measure that allows us to
speed up boot process while we are validating the rest of the drivers."
which is at:
https://www.kernel.org/doc/html/v4.14/driver-api/infrastructure.html
so by the looks of it either this driver needs to initialise
synchronously or there is a further problem which causes the bus
ordering to be wrong but it also seems to be a work in progress so I
don't know how this will eventually play out.
>
> Can you try to revert that commit?
> Or alternatively unbind and rebind the hosts from the xhci driver:
>
> echo 0000:00:14.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
> echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
>
> (all your usb devices should now be disconnected)
>
> echo 0000:00:14.0 > /sys/bus/pci/drivers/xhci_hcd/bind
> <wait a couple seconds>
> echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/bind
This suggestion only worked on one of the two USB ports, I mention it
only for completeness, the revert above is a 100% fix.
--
Brian Morrison
next prev parent reply other threads:[~2023-03-14 14:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 13:21 USB regression in kernel 6.2.2 Brian Morrison
2023-03-08 9:52 ` Linux regression tracking #adding (Thorsten Leemhuis)
2023-03-08 15:16 ` Mathias Nyman
2023-03-08 16:45 ` Brian Morrison
2023-03-09 20:04 ` Brian Morrison
2023-03-12 0:03 ` Brian Morrison
2023-03-13 10:06 ` Mathias Nyman
2023-03-14 14:00 ` Brian Morrison [this message]
2023-03-15 11:19 ` Mathias Nyman
2023-03-15 14:53 ` Alan Stern
2023-03-17 18:37 ` Brian Morrison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230314140008.79a90c38@deangelis.fenrir.org.uk \
--to=bdm@fenrir.org.uk \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=regressions@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).