Skip to content

: ACPI / PM: Rework wakeup GPE handling for suspend-to-idle

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PM / sleep: Export dpm_suspend_late/noirq() and dpm_resume_early/noirq()drivers/base/power/main.c include/linux/pm.h kernel/power/suspend.c+19 -70 replies
2/5PM / sleep: Rename platform suspend/resume functions in suspend.ckernel/power/suspend.c+10 -100 replies
3/5ACPICA: Clear all non-wakeup GPEs in acpi_hw_enable_wakeup_gpe_block()drivers/acpi/acpica/hwgpe.c+4 -40 replies
4/5ACPICA: Introduce acpi_enable_all_wakeup_gpes()drivers/acpi/acpica/evxfgpe.c include/acpi/acpixf.h+33 -02 replies
5/5ACPI / sleep: Rework the handling of ACPI GPE wakeup from suspend-to-idledrivers/acpi/osl.c drivers/acpi/sleep.c include/linux/suspend.h +1 more+39 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5]: ACPI / PM: Rework wakeup GPE handling for suspend-to-idle

Hi,

This series is based on the pm-genirq branch of linux-pm.git which has been included into linux-next for a few weeks. That branch reworks the handling of wakeup interrupts in general so that enable_irq_wake() can be used to indicate that the given interrupt is to be used to wake up from suspend-to-idle as well as from the other sleep states. At the same time, using IRQF_NO_SUSPEND with wakeup interrupts is not regarded as correct any more.

Along these lines, rework the handling of wakeup GPEs for suspend-to-idle so as to make use of the new mechanism.

This has been tested on Toshiba Portege R500 with ACPI button wakeup and with ACPI-based PCI Wake-on-LAN.

[1/5] Export dpm_suspend_late(), dpm_suspend_noirq(), dpm_resume_noirq() and
dpm_resume_early() from the PM core.
[2/5] Rename local functions in the suspend core to better reflect their purpose. [3/5] Rework ACPICA's acpi_hw_enable_wakeup_gpe_block() to disable all non-wakeup
GPEs along with enabling the wakeup ones.
[4/5] Introduce acpi_enable_all_wakeup_gpes() in ACPICA (along the lines of the
analogous function for runtime GPEs).
[5/5] Modify the handling of wakeup GPEs for suspend-to-idle.

Thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.