Skip to contentSkip to conversation

5.8 regression: Low-speed interrupt transfers not working on (some?) 9 Series Chipset xHCI Controllers

DISCUSSION Hans de Goede 3 participants 7 messages Sep 2, 2020 – Sep 8, 2020 USB

lore
Share & tools
lore
#0 lore raw

Hi,

I've been working with 2 Fedora users who both report that there keyboard and mouse has stopped working after upgrading to 5.7.17 -> 5.8.4 .

After some back and forth I have found the following common pattern:

1. Both reporters have a "9 Series Chipset Family USB xHCI Controller"
2. Both reporters have a lo-speed (1.5M) keyboard and mouse connected to that XHCI controller
3. The kbd/mouse gets detected but does not send events.

So there seems to be an issue with lo-speed USB interrupt-transfers not working on the "9 Series Chipset Family USB xHCI Controller".

One reporter is using a DELL Precicion T5610 laptop, the PCI id of the XHCI controller there is 8086:8cb1 and both 5.7 and 5.8 dmesg say:

[    3.324639] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810
[    3.324643] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported

The other reporter is using a Gigabyte H97-D3H motherboard. This reporter reports that plugging the kbd/mouse into the USB ports which are connected to the H97's EHCI controller works around the problem.

I have tried to reproduce this on some of my own systems, but I do not have any hardware of this exact generation and I could not reproduce it on the closest hardware which I do have.

Matthias, if you have some idea which 4.8 change might have caused this I can build rpms with a test kernel with that change reverted for the reporters to test.

Regards,

Hans

#1 lore raw

Hi

Quoted 13 lines · Hans de Goede

Hi,

I've been working with 2 Fedora users who both report that there keyboard and mouse has stopped working after upgrading to 5.7.17 -> 5.8.4 .

After some back and forth I have found the following common pattern:

1. Both reporters have a "9 Series Chipset Family USB xHCI Controller"
2. Both reporters have a lo-speed (1.5M) keyboard and mouse connected to that XHCI controller
3. The kbd/mouse gets detected but does not send events.

Quoted 8 lines

So there seems to be an issue with lo-speed USB interrupt-transfers not working on the "9 Series Chipset Family USB xHCI Controller".

One reporter is using a DELL Precicion T5610 laptop, the PCI id of the XHCI controller there is 8086:8cb1 and both 5.7 and 5.8 dmesg say:

[    3.324639] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810 [    3.324643] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported

Are there any logs of this?
Dynamic debug of xhci and usb core would help.

echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control

Quoted 5 lines

The other reporter is using a Gigabyte H97-D3H motherboard. This reporter reports that plugging the kbd/mouse into the USB ports which are connected to the H97's EHCI controller works around the problem.

Quoted 7 lines

I have tried to reproduce this on some of my own systems, but I do not have any hardware of this exact generation and I could not reproduce it on the closest hardware which I do have.

Matthias, if you have some idea which 4.8 change might have caused this I can build rpms with a test kernel with that change reverted for the reporters to test.

Can't see anything obvious that would cause this on the xhci side. Best guess would have been:

8f97250c21f0 xhci: Don't clear hub TT buffer on ep0 protocol stall
- but it's already in 5.7.17.

536dd97c6952 xhci: Fix enumeration issue when setting max packet size for FS devices
- but is for Full-speed devices, and also in 5.7.17

If there is a hub (possibly built in) between the roothub and the keyboard then this could be related to the TT buffer of the hub. Just before 5.7 there were fixes related to this, and would concern LS and FS devices.

what does lsusb -t say?
Are there any changes on the hid side that could case this?

-Mathias

#2 lore raw

Hi,

Quoted 19 lines · Mathias Nyman

Hi

Quoted 16 lines · Hans de Goede

Hi,

I've been working with 2 Fedora users who both report that there keyboard and mouse has stopped working after upgrading to 5.7.17 -> 5.8.4 .

After some back and forth I have found the following common pattern:

1. Both reporters have a "9 Series Chipset Family USB xHCI Controller"
2. Both reporters have a lo-speed (1.5M) keyboard and mouse connected to that XHCI controller
3. The kbd/mouse gets detected but does not send events.

So there seems to be an issue with lo-speed USB interrupt-transfers not working on the "9 Series Chipset Family USB xHCI Controller".

Quoted 7 lines
Quoted 5 lines

One reporter is using a DELL Precicion T5610 laptop, the PCI id of the XHCI controller there is 8086:8cb1 and both 5.7 and 5.8 dmesg say:

[    3.324639] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810 [    3.324643] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported

Are there any logs of this?

Yes, sorry I should have included a bugzilla link, the bugzilla has lsusb -t and dmesg out from both users with both kernels:

https://bugzilla.redhat.com/show_bug.cgi?id=1874300

But it seems that at least part of the problem is the xhci driver being built as a module with the Fedora 5.8 kernels where as 5.7 had it builtin, so first let me investigate that angle further before you spend more time on this.

Regards,

Hans

Quoted 38 lines

Dynamic debug of xhci and usb core would help.

echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control

Quoted 5 lines

The other reporter is using a Gigabyte H97-D3H motherboard. This reporter reports that plugging the kbd/mouse into the USB ports which are connected to the H97's EHCI controller works around the problem.

Quoted 7 lines

I have tried to reproduce this on some of my own systems, but I do not have any hardware of this exact generation and I could not reproduce it on the closest hardware which I do have.

Matthias, if you have some idea which 4.8 change might have caused this I can build rpms with a test kernel with that change reverted for the reporters to test.

Can't see anything obvious that would cause this on the xhci side. Best guess would have been:

8f97250c21f0 xhci: Don't clear hub TT buffer on ep0 protocol stall
- but it's already in 5.7.17.

536dd97c6952 xhci: Fix enumeration issue when setting max packet size for FS devices
- but is for Full-speed devices, and also in 5.7.17

If there is a hub (possibly built in) between the roothub and the keyboard then this could be related to the TT buffer of the hub. Just before 5.7 there were fixes related to this, and would concern LS and FS devices.

what does lsusb -t say?
Are there any changes on the hid side that could case this?

-Mathias

#3 lore raw
In reply to Mathias Nyman

Hi,

Quoted 19 lines · Mathias Nyman

Hi

Quoted 16 lines · Hans de Goede

Hi,

I've been working with 2 Fedora users who both report that there keyboard and mouse has stopped working after upgrading to 5.7.17 -> 5.8.4 .

After some back and forth I have found the following common pattern:

1. Both reporters have a "9 Series Chipset Family USB xHCI Controller"
2. Both reporters have a lo-speed (1.5M) keyboard and mouse connected to that XHCI controller
3. The kbd/mouse gets detected but does not send events.

So there seems to be an issue with lo-speed USB interrupt-transfers not working on the "9 Series Chipset Family USB xHCI Controller".

Quoted 7 lines
Quoted 5 lines

One reporter is using a DELL Precicion T5610 laptop, the PCI id of the XHCI controller there is 8086:8cb1 and both 5.7 and 5.8 dmesg say:

[    3.324639] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810 [    3.324643] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported

Are there any logs of this?

Yes, sorry I should have included a bugzilla link, the bugzilla has lsusb -t and dmesg out from both users with both kernels:

https://bugzilla.redhat.com/show_bug.cgi?id=1874300

But it seems that at least part of the problem is the xhci driver being built as a module with the Fedora 5.8 kernels where as 5.7 had it builtin, so first let me investigate that angle further before you spend more time on this.

Regards,

Hans

Quoted 38 lines

Dynamic debug of xhci and usb core would help.

echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control

Quoted 5 lines

The other reporter is using a Gigabyte H97-D3H motherboard. This reporter reports that plugging the kbd/mouse into the USB ports which are connected to the H97's EHCI controller works around the problem.

Quoted 7 lines

I have tried to reproduce this on some of my own systems, but I do not have any hardware of this exact generation and I could not reproduce it on the closest hardware which I do have.

Matthias, if you have some idea which 4.8 change might have caused this I can build rpms with a test kernel with that change reverted for the reporters to test.

Can't see anything obvious that would cause this on the xhci side. Best guess would have been:

8f97250c21f0 xhci: Don't clear hub TT buffer on ep0 protocol stall
- but it's already in 5.7.17.

536dd97c6952 xhci: Fix enumeration issue when setting max packet size for FS devices
- but is for Full-speed devices, and also in 5.7.17

If there is a hub (possibly built in) between the roothub and the keyboard then this could be related to the TT buffer of the hub. Just before 5.7 there were fixes related to this, and would concern LS and FS devices.

what does lsusb -t say?
Are there any changes on the hid side that could case this?

-Mathias

#4 lore raw

Hi,

Quoted 33 lines · Hans de Goede

Hi,

Quoted 19 lines · Mathias Nyman

Hi

Quoted 16 lines · Hans de Goede

Hi,

I've been working with 2 Fedora users who both report that there keyboard and mouse has stopped working after upgrading to 5.7.17 -> 5.8.4 .

After some back and forth I have found the following common pattern:

1. Both reporters have a "9 Series Chipset Family USB xHCI Controller"
2. Both reporters have a lo-speed (1.5M) keyboard and mouse connected to that XHCI controller
3. The kbd/mouse gets detected but does not send events.

So there seems to be an issue with lo-speed USB interrupt-transfers not working on the "9 Series Chipset Family USB xHCI Controller".

Quoted 7 lines
Quoted 5 lines

One reporter is using a DELL Precicion T5610 laptop, the PCI id of the XHCI controller there is 8086:8cb1 and both 5.7 and 5.8 dmesg say:

[    3.324639] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810 [    3.324643] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported

Are there any logs of this?

Yes, sorry I should have included a bugzilla link, the bugzilla has lsusb -t and dmesg out from both users with both kernels:

Quoted 6 lines

https://bugzilla.redhat.com/show_bug.cgi?id=1874300

But it seems that at least part of the problem is the xhci driver being built as a module with the Fedora 5.8 kernels where as 5.7 had it builtin, so first let me investigate that angle further before you spend more time on this.

Ok, so having the xhci driver moved to being builtin again (it became a module by accident because of the new XHCI_RENESAS Kconfig option) resolves the issue for both users reporting this issue.

For 1 user this makes sense, because he needed the kbd in the initrd and the xhci module was not being included.

For the other user, the original reporter of:
https://bugzilla.redhat.com/show_bug.cgi?id=1874300

this is not expected though, he does not need his kbd/mouse to boot, and once at the gdm login screen then if xhci is a module or not should not matter.

Upon re-reading his comments I think I got one part of this bug-report wrong. He ran "lsusb -t" with his mouse + kbd in the non-working XHCI ports, but he did so with a working kernel (if I'm reading the report correctly this second reading). So I think that his mouse/kbd might actually be not detected at all when plugged into xhci ports and xhci is build as a module. To me that seems to make more sense then interrupt-transfers not working.

My theory is that the ports are being turned off by the kernel when it turns of unused ACPI power-resources before switching to the initrd; and that for some reason they are not turned back-on when the XHCI module loads.

Anyways for now building in the xhci module worksaround this, but IMHO it would be good to get to the bottom of this issue.

Regards,

Hans

#5 lore raw

Re: 5.8 regression: XHCI driver not binding to Renesas controllers (was Low-speed interrupt transfers not working on (some?) 9 Series Chipset xHCI Controllers)

Hi,

On 9/7/20 9:57 AM, Hans de Goede wrote:
<snip>

Quoted 34 lines
Quoted 11 lines
Quoted 1 line

Are there any logs of this?

Yes, sorry I should have included a bugzilla link, the bugzilla has lsusb -t and dmesg out from both users with both kernels:

https://bugzilla.redhat.com/show_bug.cgi?id=1874300

But it seems that at least part of the problem is the xhci driver being built as a module with the Fedora 5.8 kernels where as 5.7 had it builtin, so first let me investigate that angle further before you spend more time on this.

Ok, so having the xhci driver moved to being builtin again (it became a module by accident because of the new XHCI_RENESAS Kconfig option) resolves the issue for both users reporting this issue.

For 1 user this makes sense, because he needed the kbd in the initrd and the xhci module was not being included.

For the other user, the original reporter of:
https://bugzilla.redhat.com/show_bug.cgi?id=1874300

this is not expected though, he does not need his kbd/mouse to boot, and once at the gdm login screen then if xhci is a module or not should not matter.

Upon re-reading his comments I think I got one part of this bug-report wrong. He ran "lsusb -t" with his mouse + kbd in the non-working XHCI ports, but he did so with a working kernel (if I'm reading the report correctly this second reading). So I think that his mouse/kbd might actually be not detected at all when plugged into xhci ports and xhci is build as a module. To me that seems to make more sense then interrupt-transfers not working.

Quoted 7 lines

My theory is that the ports are being turned off by the kernel when it turns of unused ACPI power-resources before switching to the initrd; and that for some reason they are not turned back-on when the XHCI module loads.

Anyways for now building in the xhci module worksaround this, but IMHO it would be good to get to the bottom of this issue.

Ok, so I got this bug completely wrong, their are 2 different issues:

1. xhci built as module, xhci module not available in initrd -> not a kernel bug

2. xhci built as module, while using a renesas xhci controller (these were quite poplar for a while when Intel chipsets didn't have a builtin XHCI yet). When this happens users (2 users so far) are seeing the following errors:

Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: FW has invalid version :8216
Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: Direct firmware load for renesas_usb_fw.mem failed with error -2
Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: request_firmware failed: -2
Sep 01 10:47:36 kernel: xhci_hcd: probe of 0000:05:00.0 failed with error -2

Which is fixed by this upstream commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d66a57be2f9a315fc10d0f524f670fec903e0fb4

Which has also been added to 5.8.6, so I believe that this is fully resolved now, sorry for the wrong bug report.

Regards,

Hans

#6 lore raw

Re: 5.8 regression: XHCI driver not binding to Renesas controllers (was Low-speed interrupt transfers not working on (some?) 9 Series Chipset xHCI Controllers)

Quoted 60 lines · Hans de Goede

Hi,

On 9/7/20 9:57 AM, Hans de Goede wrote:
<snip>

Quoted 34 lines
Quoted 11 lines
Quoted 1 line

Are there any logs of this?

Yes, sorry I should have included a bugzilla link, the bugzilla has lsusb -t and dmesg out from both users with both kernels:

https://bugzilla.redhat.com/show_bug.cgi?id=1874300

But it seems that at least part of the problem is the xhci driver being built as a module with the Fedora 5.8 kernels where as 5.7 had it builtin, so first let me investigate that angle further before you spend more time on this.

Ok, so having the xhci driver moved to being builtin again (it became a module by accident because of the new XHCI_RENESAS Kconfig option) resolves the issue for both users reporting this issue.

For 1 user this makes sense, because he needed the kbd in the initrd and the xhci module was not being included.

For the other user, the original reporter of:
https://bugzilla.redhat.com/show_bug.cgi?id=1874300

this is not expected though, he does not need his kbd/mouse to boot, and once at the gdm login screen then if xhci is a module or not should not matter.

Upon re-reading his comments I think I got one part of this bug-report wrong. He ran "lsusb -t" with his mouse + kbd in the non-working XHCI ports, but he did so with a working kernel (if I'm reading the report correctly this second reading). So I think that his mouse/kbd might actually be not detected at all when plugged into xhci ports and xhci is build as a module. To me that seems to make more sense then interrupt-transfers not working.

Quoted 7 lines

My theory is that the ports are being turned off by the kernel when it turns of unused ACPI power-resources before switching to the initrd; and that for some reason they are not turned back-on when the XHCI module loads.

Anyways for now building in the xhci module worksaround this, but IMHO it would be good to get to the bottom of this issue.

Ok, so I got this bug completely wrong, their are 2 different issues:

1. xhci built as module, xhci module not available in initrd -> not a kernel bug

2. xhci built as module, while using a renesas xhci controller (these were quite poplar for a while when Intel chipsets didn't have a builtin XHCI yet). When this happens users (2 users so far) are seeing the following errors:

Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: FW has invalid version :8216
Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: Direct firmware load for renesas_usb_fw.mem failed with error -2
Sep 01 10:47:36 kernel: xhci_hcd 0000:05:00.0: request_firmware failed: -2
Sep 01 10:47:36 kernel: xhci_hcd: probe of 0000:05:00.0 failed with error -2
Quoted 5 lines

Which is fixed by this upstream commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d66a57be2f9a315fc10d0f524f670fec903e0fb4

Which has also been added to 5.8.6, so I believe that this is fully resolved now, sorry for the wrong bug report.

No problem, glad it's all now working properly, thanks for the follow-up.

greg k-h