5.14.14+ USB regression caused by "usb: core: hcd: Add support for deferring roothub registration" series
Subsystems (3)
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/
Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956
And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576
Can we get this patch-series reverted from the 5.14.y releases please ?
Regards,
Hans
Greg Kroah-Hartman
maintainerQuoted 13 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956
Quoted 7 lines
And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure, but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
thanks,
greg k-h
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
Regards,
Hans
+ Alan, Chris, Mathias, linux-usb
Hi Hans,
Quoted 32 lines · Hans de Goede
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Quoted 7 lines
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
Is the issue with PCIe USB devices or platform USB device? Is it specific to super speed devices or high speed device?
Thanks,
Kishon
Quoted 41 lines · Kishon Vijay Abraham I
+ Alan, Chris, Mathias, linux-usb
Hi Hans,
Quoted 36 lines · Hans de Goede
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
Quoted 6 lines
Quoted 3 lines
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
Is the issue with PCIe USB devices or platform USB device? Is it specific to super speed devices or high speed device?
Look at the bug reports. They are on standard PCs (so PCIe controllers) and some of them involve full speed (mouse and keyboard) devices. Although it looks like the problem has little to do with the device and a lot to do with the controller.
Is there a good way to get more information about what is going wrong? For example, by enabling tracepoints in the xhci-hcd driver?
Alan Stern
Quoted 54 lines · Alan Stern
Quoted 41 lines · Kishon Vijay Abraham I
+ Alan, Chris, Mathias, linux-usb
Hi Hans,
Quoted 36 lines · Hans de Goede
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
Quoted 6 lines
Quoted 3 lines
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
Is the issue with PCIe USB devices or platform USB device? Is it specific to super speed devices or high speed device?
Look at the bug reports. They are on standard PCs (so PCIe controllers) and some of them involve full speed (mouse and keyboard) devices. Although it looks like the problem has little to do with the device and a lot to do with the controller.
Quoted 5 lines
Is there a good way to get more information about what is going wrong? For example, by enabling tracepoints in the xhci-hcd driver?
Alan Stern
To enable xhci traces and dynamic debug at boot please add:
"usbcore.dyndbg=+p xhci_hcd.dyndbg=+p trace_event=xhci-hcd trace_buf_size=80M" to the kernel cmdline before booting.
(info added to https://bugzilla.redhat.com/show_bug.cgi?id=2019788 as well)
Symptoms look similar to an old race issue where two usb devices were reset at the same time. xHC HW can't handle this, and to prevent it the hcd->address0_mutex was added.
for details see:
https://lkml.org/lkml/2016/2/8/312
-Mathias
Quoted 66 lines · Mathias Nyman
Quoted 54 lines · Alan Stern
Quoted 41 lines · Kishon Vijay Abraham I
+ Alan, Chris, Mathias, linux-usb
Hi Hans,
Quoted 36 lines · Hans de Goede
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
Quoted 6 lines
Quoted 3 lines
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
Is the issue with PCIe USB devices or platform USB device? Is it specific to super speed devices or high speed device?
Look at the bug reports. They are on standard PCs (so PCIe controllers) and some of them involve full speed (mouse and keyboard) devices. Although it looks like the problem has little to do with the device and a lot to do with the controller.
Quoted 5 lines
Is there a good way to get more information about what is going wrong? For example, by enabling tracepoints in the xhci-hcd driver?
Alan Stern
To enable xhci traces and dynamic debug at boot please add:
"usbcore.dyndbg=+p xhci_hcd.dyndbg=+p trace_event=xhci-hcd trace_buf_size=80M" to the kernel cmdline before booting.
(info added to https://bugzilla.redhat.com/show_bug.cgi?id=2019788 as well)
Quoted 8 lines
Symptoms look similar to an old race issue where two usb devices were reset at the same time. xHC HW can't handle this, and to prevent it the
hcd->address0_mutexwas added.for details see:
https://lkml.org/lkml/2016/2/8/312-Mathias
Looks like it really is an issue with address0_mutex in hub.c not preventing two xhci slots from entering default state at the same time during retry.
Seems extending the mutex across retries resolved this, details:
https://bugzilla.redhat.com/show_bug.cgi?id=2019788
I'll post that patch here on linux-usb for review shortly
-Mathias
Greg Kroah-Hartman
maintainerQuoted 32 lines · Hans de Goede
Hi,
Quoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 6 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure,
Thanks.
Quoted 2 lines
but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
Quoted 7 lines
Yes I assume this is still an issue there too, but I was hoping that Kishon can take a look and maybe actually fix things, since just reverting presumably regresses whatever these patches were addressing.
We've aprox 1-3 weeks before distros like Arch and Linux will switch to 5.15.y kernels. So we have some time to come up with a fix there, where as for 5.14.y this is hitting users now.
I've reverted them from all stable kernels for now. Unless this gets figured out by 5.16-rc1, I will revert it from there then as well.
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 17 lines · Greg Kroah-Hartman
Quoted 16 lines · Hans de Goede
Hi Greg,
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 7 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
Sure, but can you also submit patches to get into 5.15.y and 5.16-rc1 that revert these changes as they should still be an issue there, right?
I've reverted these in my tree now so that the revert will get into 5.16-rc1.
thanks,
greg k-h
Thorsten Leemhuis
maintainerQuoted 12 lines · Hans de Goede
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956
Quoted 7 lines
And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
#regzbot ^introduced: b7a0a792f864583207c593b50fd1b752ed89f4c1 #regzbot ignore-activity
Greg KH
maintainerQuoted 16 lines · Thorsten Leemhuis
Quoted 15 lines · Hans de Goede
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
Quoted 7 lines
Quoted 4 lines
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Can we get this patch-series reverted from the 5.14.y releases please ?
#regzbot ^introduced:
b7a0a792f864583207c593b50fd1b752ed89f4c1#regzbot ignore-activity
Process question. Is there anything I need to do here when this is resolved? I'm thinking of reverting the offending patches in 5.16-rc1, but when/if that happens, how will the regzbot know this?
thanks,
greg k-h
Thorsten Leemhuis
maintainerQuoted 20 lines · Greg KH
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Hans de Goede
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Can we get this patch-series reverted from the 5.14.y releases please ?
#regzbot ^introduced:
b7a0a792f864583207c593b50fd1b752ed89f4c1#regzbot ignore-activityProcess question. Is there anything I need to do here when this is resolved? I'm thinking of reverting the offending patches in 5.16-rc1, but when/if that happens, how will the regzbot know this?
You don't need to do something special, but you need to do something ;-) Regzbot will know the regression got resolved if the commit message of the fix (a proper one or a revert) in mainline links to the report with a Link: tag. Hence, the commit should have something like this:
Link:
https://lore.kernel.org/stable/[email protected]/
This is something you and many other developers often do already -- and something that submitting-patches.rst since a few days states
explicitly: https://git.kernel.org/torvalds/c/1f57bd42b77c
But even if you forget that: As a regression tracker I still have an eye on things and likely would tell regzbot about it myself, *if* I notice the fix/revert got merged (and if not, I might send a quick 'hey' what's up here' mail, which will be a bit annoying for the involved parties, but that's how it is).
Side note: regbot will even notice if a patch with above Link-Tag gets posted to one of the mainline list and link to it.
That afaics answered the question, but TWIMC: this report created some challenges for me/regzbot due to two aspects:
1) the report specifies two commits as culprit
2) the problematic changes are in mainline, 5.15.y and 5.14.y, and I'm unsure as of now how to handle such situations
For the first aspect I for now settled on "well, just mentioned the second of the two commits, that's good enough for regzbot, the details are in the report anyway".
I'm ignoring the second aspect for now and told regzbot only about the commit in mainline, as my focus for regzbot is on mainline. I guess to handle this properly, it would be possible to enhance regzbot and then tall it about 807ac762afee (that's the backport of b7a0a792f864 to 5.14) as well. But you and Sasha afaics handle things like this already quite well afaics. But if that would make your life easier, just let me know, than I'll put it higher on my todo list.
Ciao, Thorsten
Greg KH
maintainerQuoted 29 lines · Thorsten Leemhuis
Quoted 20 lines · Greg KH
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Hans de Goede
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Can we get this patch-series reverted from the 5.14.y releases please ?
#regzbot ^introduced:
b7a0a792f864583207c593b50fd1b752ed89f4c1#regzbot ignore-activityProcess question. Is there anything I need to do here when this is resolved? I'm thinking of reverting the offending patches in 5.16-rc1, but when/if that happens, how will the regzbot know this?
Quoted 7 lines
You don't need to do something special, but you need to do something ;-) Regzbot will know the regression got resolved if the commit message of the fix (a proper one or a revert) in mainline links to the report with a Link: tag. Hence, the commit should have something like this:
Close, the patch will have this link tag:
Link: https://lore.kernel.org/r/[email protected]
Is that ok?
I've committed the reverts to my tree and pushed them out so they show up in the next linux-next release and will get the reverts to Linus before 5.16-rc1. Let's see if the bot can notice them :)
thanks,
greg k-h
Thorsten Leemhuis
maintainerQuoted 35 lines · Greg KH
Quoted 34 lines · Thorsten Leemhuis
Quoted 20 lines · Greg KH
Quoted 19 lines · Thorsten Leemhuis
Quoted 18 lines · Hans de Goede
We (Fedora) have been receiving multiple reports about USB devices stopping working starting with 5.14.14 .
An Arch Linux user has found that reverting the first 2 patches from this series:
https://lore.kernel.org/all/[email protected]/Fixes things (the 3th patch is just some mostly unrelated refactoring/cleanup).
See here for the Arch-linux discussion surrounding this:
https://bbs.archlinux.org/viewtopic.php?pid=2000956#p2000956And here are 2 Fedora bug reports of Fedora users being unable to use their machines due their mouse + kbd not working:
https://bugzilla.redhat.com/show_bug.cgi?id=2019542
https://bugzilla.redhat.com/show_bug.cgi?id=2019576Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Can we get this patch-series reverted from the 5.14.y releases please ?
#regzbot ^introduced:
b7a0a792f864583207c593b50fd1b752ed89f4c1#regzbot ignore-activityProcess question. Is there anything I need to do here when this is resolved? I'm thinking of reverting the offending patches in 5.16-rc1, but when/if that happens, how will the regzbot know this?
You don't need to do something special, but you need to do something ;-) Regzbot will know the regression got resolved if the commit message of the fix (a proper one or a revert) in mainline links to the report with a Link: tag. Hence, the commit should have something like this:
Quoted 7 lines
Quoted 2 lines
Close, the patch will have this link tag:
Link: https://lore.kernel.org/r/[email protected]Is that ok?
Yes, of course it is, in fact I just forgot to do s/stable/r/ when writing above mail. But an url with /stable/ in it would work, too, as Regzbot in this case will not care what's between lore.kernel.org/ and the /<msgid> part.
Quoted 3 lines
I've committed the reverts to my tree and pushed them out so they show up in the next linux-next release and will get the reverts to Linus before 5.16-rc1. Let's see if the bot can notice them :)
It should even notice them in linux-next and mark the regression as "to be fixed" until the commits land mainline. Just to be sure I wanted to wait for this to happen before writing this mail, but forgot it's Saturday today -- there thus is no new linux-next, so I have to wait till Monday. :-/
Ciao, Thorsten