linux-yocto/arch/x86/pci
Werner Sembach 8852e056e2 PCI: Avoid putting some root ports into D3 on TUXEDO Sirius Gen1
commit b1049f2d68 upstream.

commit 9d26d3a8f1 ("PCI: Put PCIe ports into D3 during suspend") sets the
policy that all PCIe ports are allowed to use D3.  When the system is
suspended if the port is not power manageable by the platform and won't be
used for wakeup via a PME this sets up the policy for these ports to go
into D3hot.

This policy generally makes sense from an OSPM perspective but it leads to
problems with wakeup from suspend on the TUXEDO Sirius 16 Gen 1 with a
specific old BIOS. This manifests as a system hang.

On the affected Device + BIOS combination, add a quirk for the root port of
the problematic controller to ensure that these root ports are not put into
D3hot at suspend.

This patch is based on

  https://lore.kernel.org/linux-pci/20230708214457.1229-2-mario.limonciello@amd.com

but with the added condition both in the documentation and in the code to
apply only to the TUXEDO Sirius 16 Gen 1 with a specific old BIOS and only
the affected root ports.

Fixes: 9d26d3a8f1 ("PCI: Put PCIe ports into D3 during suspend")
Suggested-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250114222436.1075456-1-wse@tuxedocomputers.com
Co-developed-by: Georg Gottleuber <ggo@tuxedocomputers.com>
Signed-off-by: Georg Gottleuber <ggo@tuxedocomputers.com>
Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Cc: <stable@vger.kernel.org> # 6.1+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-17 09:40:26 +01:00
..
acpi.c PCI: Detect and trust built-in Thunderbolt chips 2024-12-14 20:00:14 +01:00
amd_bus.c range.h: Move resource API and constant to respective files 2023-08-18 10:19:00 -07:00
broadcom_bus.c
bus_numa.c range.h: Move resource API and constant to respective files 2023-08-18 10:19:00 -07:00
bus_numa.h
ce4100.c x86/pci: Mark local functions as 'static' 2023-05-18 11:56:10 -07:00
common.c
direct.c
early.c
fixup.c PCI: Avoid putting some root ports into D3 on TUXEDO Sirius Gen1 2025-02-17 09:40:26 +01:00
i386.c
init.c
intel_mid_pci.c x86/pci/intel_mid_pci: Fix PCIBIOS_* return code handling 2024-08-03 08:53:21 +02:00
irq.c x86/PCI: Use struct_size() in pirq_convert_irt_table() 2023-07-13 11:33:20 -05:00
legacy.c
Makefile
mmconfig_32.c
mmconfig_64.c
mmconfig-shared.c x86/pci: Skip early E820 check for ECAM region 2024-06-12 11:13:01 +02:00
numachip.c
olpc.c
pcbios.c
sta2x11-fixup.c
xen.c x86/pci/xen: Fix PCIBIOS_* return code handling 2024-08-03 08:53:21 +02:00