Skip to contentSkip to conversation

Lowspeed USB device enumerationg under 5.4.288, but not under 6.8.1

DISCUSSION Fischer, Simon 2 participants 2 messages May 6 Regressions

lore
Share & tools
lore
#0 lore raw
Quoted 36 lines · Michal
Quoted 8 lines · Simon

Dear list,

I've tried to dig deeper into the issues, tried different quirks and small patches, but was unable to solve this or find the root cause. As this seems to be a regression of 6.8 from 5.4, I hope this is the correct list?

Quoted 5 lines

I got setup with a low speed isochronous USB device (Optec filter wheel), that is connected to a Dell R6515 server via a Lindy 300m 2 Port Fibre Optic USB 3.0 Extender (which enumerates as a chain of USB3 super speed hubs). The server is running Ubuntu 24.04 with a 6.8.1 RT kernel. When connecting the device, it fails to enumerate:

Hi,

Are you still fighting with this?

I'm afraid I have no better suggestions than others: bisect it. To avoid bisecting all commits, you could manually bisect major releases and then test USB commits added by the "bad" release, as the problem likely came from USB subsystem.

By "low speed", do you mean the 1Mbps data rate defined by USB 1.x? That's odd, such devices aren't allowed to use isochronous endpoints so it would be big luck if they work at all with any SW and HW.

Would you mind posting its 'lsusb -v', from the working system?

Your log shows a failure to enumerate some SuperSpeed device, while any USB1/USB2 device should be showing on another bus (probably 1), unless your range extender somehow changes "apparent" speed.

Quoted 6 lines

Also, if the problem reproduces on current kernels, you could try sending logs (from a current kernel) to linux-usb in order to reach more USB developers.

Regards,
Michal

Hi Michal,

thanks for coming back. I had as of yet postponing an update for workload reasons, but mostly because my Outlook is very bad at following the rules of this mailing list :-)

I have been able to reproduce the problem with a current (6.19) kernel and independent of PREEMPT_RT status. But I have also been able to identify that the difference between my Ubuntu provided 5.4 and 6.8 kernels that leads to the problem, is actually the CONFIG_HZ build config parameter.

Ubuntu's 6.8 kernel is by default built with CONFIG_HZ=1000, while the old 5.4 kernel was built with CONFIG_HZ=250. If I rebuild Ubuntu's 5.4 with 1000Hz, I also cannot talk to the devices, and when I compile 6.19 or 6.8 with 250Hz, they work (currently running a rebuilt Ubuntu 6.8.1 with only that one parameter updated, I sometimes still see errors, but an automatic retry of the driver is then successful).

So, a regression this is not :-)

Since I cannot imagine in what way the system interrupt frequency would directly affect this part in such a reproducible and significant manner, I would think it more likely that the USB core or xhci drivers actually use that setting value somewhere themselves and maybe wrongly. So this should probably realy go to some other list. If you know which, I would greatly appreciate you forwarding my information or telling me where to take it.

Thanks a lot & best regards
Simon

Quoted 28 lines
Quoted 28 lines

[...]

When booting into a 5.4.288 PREEMPT_RT kernel we were using before with, everything works fine (device enumerates and works). When exchanging the USB Extender for a Lindy 200m Fibre Optic USB 2.0 Extender, everything works fine with the 6.8.1 kernel. I cannot inject a USB 2.0 hub before the extender, because it is a super speed device and not compatible.

Any suggestions how to fix or further investigate the issue would be greatly appreciated!

Kind regards
Simon Fischer

Developer
Department E5 - CoDaC

Max Planck Institute for Plasmaphysics
Wendelsteinstrasse 1
17491 Greifswald, Germany

Phone: +49(0)3834 88 1215

#1 lore raw
Quoted 6 lines · Simon

I have been able to reproduce the problem with a current (6.19) kernel and independent of PREEMPT_RT status. But I have also been able to identify that the difference between my Ubuntu provided 5.4 and 6.8 kernels that leads to the problem, is actually the CONFIG_HZ build config parameter.

Quoted 7 lines

Ubuntu's 6.8 kernel is by default built with CONFIG_HZ=1000, while the old 5.4 kernel was built with CONFIG_HZ=250. If I rebuild Ubuntu's 5.4 with 1000Hz, I also cannot talk to the devices, and when I compile 6.19 or 6.8 with 250Hz, they work (currently running a rebuilt Ubuntu 6.8.1 with only that one parameter updated, I sometimes still see errors, but an automatic retry of the driver is then successful).

Quite fascinating ;)

BTW, I would still be interested to see 'lsusb -v' of any low-speed isochronous device. Can such a thing seriously work with xhci?

Quoted 9 lines

So, a regression this is not :-)

Since I cannot imagine in what way the system interrupt frequency would directly affect this part in such a reproducible and significant manner, I would think it more likely that the USB core or xhci drivers actually use that setting value somewhere themselves and maybe wrongly. So this should probably realy go to some other list. If you know which, I would greatly appreciate you forwarding my information or telling me where to take it.

Per Documentation/admin-guide/reporting-issues.rst, try your best guess which kernel part might be responsible and report there.

In short: [email protected]

Regards,
Michal