lkml.org 
[lkml]   [2023]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v10 0/7] Fix wakeup problems on some AMD platforms
Date
Problems have been reported on AMD laptops with suspend/resume
where particular root ports are put into D3 and then the system is unable
to resume properly.

The issue boils down to the currently selected kernel policy for root port
behavior at suspend time:
0) If the machine is from 2015 or later
1) If a PCIe root port is power manageable by the platform then platform
will be used to determine the power state of the root port at suspend.
2) If the PCIe root is not power manageable by the platform then the kernel
will check if it was configured to wakeup.
3) If it was, then it will be put into the deepest state that supports
wakeup from PME.
4) If it wasn't, then it will be put into D3hot.

This patch adjusts it so that device constraints for low power idle are
considered if the device is not power manageable by the platform.

Mario Limonciello (7):
ACPI: Add comments to clarify some #ifdef statements
ACPI: Adjust #ifdef for *_lps0_dev use
ACPI: x86: s2idle: Fix a logic error parsing AMD constraints table
ACPI: x86: s2idle: Add more debugging for AMD constraints parsing
ACPI: x86: s2idle: Store if constraint is enabled
ACPI: x86: s2idle: Add a function to get constraints for a device
PCI: Use device constraints to decide PCI target state fallback policy

drivers/acpi/x86/s2idle.c | 75 ++++++++++++++++++++++++++++-----------
drivers/pci/pci.c | 15 ++++++++
include/linux/acpi.h | 14 +++++---
3 files changed, 79 insertions(+), 25 deletions(-)

--
2.34.1

\
 
 \ /
  Last update: 2023-08-04 23:02    [W:0.117 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site