New: PCI_COMMAND randomly flips to 0 after system resume, breaks the xHCI device
[+to linux-pci]
Quoted 19 lines · On Wed, Mar 03, 2021 at 05:08:37PM +0000, [email protected]…
https://bugzilla.kernel.org/show_bug.cgi?id=212039
Bug ID: 212039
Summary:PCI_COMMANDrandomly flips to 0 after system resume,
breaks the xHCI device
Product: Drivers
Version: 2.5
Kernel Version: mainline, linux-next
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: PCI
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Quoted 2 lines
After system resume, the read on
PCI_COMMANDmay randomly be 0 inpci_read_config_word(), which is called by__pci_set_master().
Comment #3 says this is not reproducible on Intel RVP.
What platform *does* it occur on? Does it always happen on that platform?
(You said "randomly" above, but I don't know it that means it happens on some platforms but not others, or it happens sometimes on a give platform but not always.)
Quoted 5 lines
So it only enables Bus Master in next
pci_read_config_word(), disabling "Memory Space", "I/O Space" at the same time.This makes xHCI driver fail to access MMIO register, render USB unusable.
Apparently this only affect the xHCI device? That's weird; the code that restores config registers after resume should be pretty generic, so a bug there should affect lots of devices. But maybe there's some firmware component since it seems to happen on some platforms but not others.
Quoted 23 lines · Bjorn Helgaas
[+to linux-pci]
Quoted 19 lines · On Wed, Mar 03, 2021 at 05:08:37PM +0000, [email protected]…
https://bugzilla.kernel.org/show_bug.cgi?id=212039
Bug ID: 212039
Summary:PCI_COMMANDrandomly flips to 0 after system resume,
breaks the xHCI device
Product: Drivers
Version: 2.5
Kernel Version: mainline, linux-next
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: PCI
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Quoted 4 lines
Quoted 2 lines
After system resume, the read on
PCI_COMMANDmay randomly be 0 inpci_read_config_word(), which is called by__pci_set_master().Comment #3 says this is not reproducible on Intel RVP.
This bug report is mainly for Intel internal use. A public bug is mandatory.
Quoted 3 lines
What platform *does* it occur on? Does it always happen on that platform?
Tigerlake-H. Only a specific model (but all different configs) is affected.
Quoted 4 lines
(You said "randomly" above, but I don't know it that means it happens on some platforms but not others, or it happens sometimes on a give platform but not always.)
As of now, it only happens to this specific model.
Quoted 4 lines
Quoted 4 lines
So it only enables Bus Master in next
pci_read_config_word(), disabling "Memory Space", "I/O Space" at the same time.
Quoted 8 lines
Quoted 2 lines
This makes xHCI driver fail to access MMIO register, render USB unusable.
Apparently this only affect the xHCI device? That's weird; the code that restores config registers after resume should be pretty generic, so a bug there should affect lots of devices. But maybe there's some firmware component since it seems to happen on some platforms but not others.
Actually, more devices are affected. But this bug is most detrimental to USB controller, because this model requires USB keyboard and mouse to be useful. So I single it out as the main point for the bug report.
Kai-Heng