]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Jan 2024 18:08:18 +0000 (12:08 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Jan 2024 23:29:15 +0000 (17:29 -0600)
commitf93e71aea6c60ebff8adbd8941e678302d377869
tree0469fa20fb8a2ff8d68deb01af8ca0547e7f4617
parentb85ea95d086471afb4ad062012a4d73cd328fa86
Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"

This reverts commit 08d0cc5f34265d1a1e3031f319f594bd1970976c.

Michael reported that when attempting to resume from suspend to RAM on ASUS
mini PC PN51-BB757MDE1 (DMI model: MINIPC PN51-E1), 08d0cc5f3426
("PCI/ASPM: Remove pcie_aspm_pm_state_change()") caused a 12-second delay
with no output, followed by a reboot.

Workarounds include:

  - Reverting 08d0cc5f3426 ("PCI/ASPM: Remove pcie_aspm_pm_state_change()")
  - Booting with "pcie_aspm=off"
  - Booting with "pcie_aspm.policy=performance"
  - "echo 0 | sudo tee /sys/bus/pci/devices/0000:03:00.0/link/l1_aspm"
    before suspending
  - Connecting a USB flash drive

Link: https://lore.kernel.org/r/20240102232550.1751655-1-helgaas@kernel.org
Fixes: 08d0cc5f3426 ("PCI/ASPM: Remove pcie_aspm_pm_state_change()")
Reported-by: Michael Schaller <michael@5challer.de>
Link: https://lore.kernel.org/r/76c61361-b8b4-435f-a9f1-32b716763d62@5challer.de
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: <stable@vger.kernel.org>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/aspm.c