[SRU][Unstable][PULL] Add s2idle support on AMD Renoir and Cezanne

Kai-Heng Feng kai.heng.feng at canonical.com
Tue May 4 14:58:13 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1927067

[Impact]
S2idle doesn't work on AMD Renoir and Cezanne.

[Fix]
Backport AMD PMC driver and pull many new patches let AMDGPU support s2idle.

[Test]
Suspend the laptop and the system freezes.
With the patch applied, suspend works but with some caveats:
1) Keyboard sometimes can't wake up the laptop.
2) Touchpad sometimes can wake up the laptop.
3) RTC can't wake up the laptop.

[Where problems could occur]
Most changes are limited to logic of suspend/resume, and specific to Renoir GFX.
However, there are some refactoring patches may cause unintended
results, so AMDGPU may break for sleep/hibernation/runtime suspend on
non-Renoir GFXs.

--

The following changes since commit 4b17dee927ac07648423a24bb56c0d6f21da63de:

  Revert "UBUNTU: SAUCE: PCI: Disable broken RTIT_BAR of Intel TH"
(2021-04-30 16:13:22 +0200)

are available in the Git repository at:

  https://git.launchpad.net/~kaihengfeng/+git/linux amd-s0ix-5.12

for you to fetch changes up to 4a15502ba6fb56e0693e327082daec0298e99436:

  UBUNTU: SAUCE: platform/x86: force LPS0 functions for AMD
(2021-05-04 20:17:07 +0800)

----------------------------------------------------------------
Alex Deucher (2):
      UBUNTU: SAUCE: platform/x86: Add missing LPS0 functions for AMD
      UBUNTU: SAUCE: platform/x86: force LPS0 functions for AMD

Kai-Heng Feng (1):
      UBUNTU: SAUCE: Move ASPM quirk flag to MSB

Marcin Bachry (1):
      UBUNTU: SAUCE: PCI: quirks: Quirk PCI d3hot delay for AMD xhci

Prike Liang (2):
      UBUNTU: SAUCE: usb: pci-quirks: disable D3cold on AMD xhci
suspend for s2idle
      UBUNTU: SAUCE: nvme: put some AMD PCIE downstream NVME device to
simple suspend/resume path

Prike.Liang (1):
      UBUNTU: SAUCE: ACPI / idle: override and update c-state latency
when not conformance with s0ix

 drivers/acpi/processor_idle.c | 17 +++++++++++++++++
 drivers/acpi/x86/s2idle.c     | 11 +++++++++++
 drivers/nvme/host/pci.c       |  5 +++++
 drivers/pci/quirks.c          | 12 ++++++++++++
 drivers/usb/host/xhci-pci.c   |  6 +++++-
 drivers/usb/host/xhci.h       |  1 +
 include/linux/pci.h           |  4 +++-
 include/linux/pci_ids.h       |  2 ++
 8 files changed, 56 insertions(+), 2 deletions(-)



More information about the kernel-team mailing list