]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 3 Oct 2019 15:38:09 +0000 (23:38 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 25 Nov 2019 13:56:43 +0000 (14:56 +0100)
commit22f4414413ebe959f0b8826e86daadea04090269
tree2ac3d4577a8efd3e42c4a2e2eea95b464732b4d7
parent94e037662c5acf1337b116c5bcf2171660fe4ebe
x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect

BugLink: https://bugs.launchpad.net/bugs/1846470
The AMD FCH USB XHCI Controller advertises support for generating PME#
while in D0.  When in D0, it does signal PME# for USB 3.0 connect events,
but not for USB 2.0 or USB 1.1 connect events, which means the controller
doesn't wake correctly for those events.

  00:10.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7914] (rev 20) (prog-if 30 [XHCI])
        Subsystem: Dell FCH USB XHCI Controller [1028:087e]
        Capabilities: [50] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)

Clear PCI_PM_CAP_PME_D0 in dev->pme_support to indicate the device will not
assert PME# from D0 so we don't rely on it.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203673
Link: https://lore.kernel.org/r/20190902145252.32111-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
(cherry picked from commit 6c4c5a0f0180137dba328d4f3cf9bd48961e7d24 linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/pci/fixup.c