Skip to content

Commit 9b2da60

Browse files
committed
Merge branches 'pm-runtime' and 'pm-sleep' into linux-next
* pm-runtime: PM: runtime: fix denying of auto suspend in pm_suspend_timer_fn() PM: sysfs: Move debug runtime PM attributes to runtime_attrs[] PM: runtime: Add new devm functions * pm-sleep: PM: freezer: Rewrite restarting tasks log to remove stray *done.* PM: sleep: Introduce pm_sleep_transition_in_progress() PM: sleep: Introduce pm_suspend_in_progress() PM: sleep: Print PM debug messages during hibernation ucsi_ccg: Disable async suspend in ucsi_ccg_probe() PM: hibernate: add configurable delay for pm_test PM: wakeup: Delete space in the end of string shown by pm_show_wakelocks() PM: wakeup: Add missing wakeup source attribute relax_count PM: sleep: Remove unnecessary !! PM: sleep: Use two lines for "Restarting..." / "done" messages PM: sleep: Make suspend of devices more asynchronous PM: sleep: Suspend async parents after suspending children PM: sleep: Resume children after resuming the parent PM: hibernate: Remove size arguments when calling strscpy()
3 parents 06b3377 + 40d3b40 + eca6413 commit 9b2da60

17 files changed

Lines changed: 299 additions & 59 deletions

File tree

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,13 @@
18281828
lz4: Select LZ4 compression algorithm to
18291829
compress/decompress hibernation image.
18301830

1831+
hibernate.pm_test_delay=
1832+
[HIBERNATION]
1833+
Sets the number of seconds to remain in a hibernation test
1834+
mode before resuming the system (see
1835+
/sys/power/pm_test). Only available when CONFIG_PM_DEBUG
1836+
is set. Default value is 5.
1837+
18311838
highmem=nn[KMG] [KNL,BOOT,EARLY] forces the highmem zone to have an exact
18321839
size of <nn>. This works even on boxes that have no
18331840
highmem otherwise. This also works to reduce highmem

arch/x86/pci/fixup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,13 @@ static void amd_rp_pme_suspend(struct pci_dev *dev)
970970
struct pci_dev *rp;
971971

972972
/*
973-
* PM_SUSPEND_ON means we're doing runtime suspend, which means
973+
* If system suspend is not in progress, we're doing runtime suspend, so
974974
* amd-pmc will not be involved so PMEs during D3 work as advertised.
975975
*
976976
* The PMEs *do* work if amd-pmc doesn't put the SoC in the hardware
977977
* sleep state, but we assume amd-pmc is always present.
978978
*/
979-
if (pm_suspend_target_state == PM_SUSPEND_ON)
979+
if (!pm_suspend_in_progress())
980980
return;
981981

982982
rp = pcie_find_root_port(dev);

0 commit comments

Comments
 (0)