Skip to content

ACPI: PM: s2idle: Harden the premature EC wakeups handling

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version New

Get series with b4
b4 am 9291082.ZuhHelrm8h@kreacher

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ACPICA: Allow acpi_any_gpe_status_set() to skip one GPEdrivers/acpi/acpica/achware.h drivers/acpi/acpica/evxfgpe.c drivers/acpi/acpica/hwgpe.c +2 more+53 -170 replies
2/2ACPI: PM: s2idle: Refine active GPEs checkdrivers/acpi/ec.c drivers/acpi/internal.h drivers/acpi/sleep.c+16 -90 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchOndřej Caletka
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] ACPI: PM: s2idle: Harden the premature EC wakeups handling

Hi All,

It turns out that the checks added by commit fdde0ff8590b ("ACPI: PM: s2idle:
Prevent spurious SCIs from waking up the system") were not precise enough and there are cases in which it actually doesn't prevent the system from resuming due to a spurious wakeup event coming from the EC.

To fix that issue, allow acpi_any_gpe_status_set() to skip one GPE from the check carried out by it (patch [1/2]) and use that for skipping the EC GPE from that check in the suspend-to-idle loop, which then allows the wakeup events coming from the EC to be checked more precisely (patch [2/2]).

Thanks!