diff options
| author | Saranya Gopal <saranya.gopal@intel.com> | 2026-11-06 18:28:14 +0530 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-11-09 16:52:44 +0100 |
| commit | 4fad962a6080266170714f77a9dc1b97fb09980f (patch) | |
| tree | e595989cb7cebe577e63a551618f25ddf2260cd0 /rust/kernel/alloc/allocator | |
| parent | 7475ea8b58616b33c04afb976cf0fbaad9dd63fb (diff) | |
ACPI: s2idle: Handle shared _Ixx GPEs without an EC
When first_ec is NULL, acpi_ec_dispatch_gpe() previously treated any
active GPE as a wake source. On platforms where an _Ixx GPE is shared
by user-wakeup and background events, that can cause unnecessary
wakeups.
Make acpi_ec_dispatch_gpe() return an int and return -ENODEV when no
EC instance is available so that acpi_s2idle_wake() can handle that
case: on x86, treat the first GPE armed for wake via an _Ixx method
like the EC GPE, mirroring acpi_ec_dispatch_gpe(). That is, report a
wakeup if the status bit is set for any enabled GPE other than the
_Ixx one. Otherwise, cancel the SCI-related wakeup and dispatch the
_Ixx GPE if its status bit is set, so the events behind it can be
processed. Drivers handling genuine wake events are expected to
report them via pm_wakeup_event(), which the common s2idle path will
catch after synchronizing event processing.
If no _Ixx GPEs have been armed, and in the non-x86 fallback, the
previous any-GPE status check is retained. If GPEs are armed via more
than one _Ixx method, the first one is used as the wake indicator and
the remaining ones are treated as regular wake sources.
Fixes: 46767b17fda3 ("ACPI: PM: s2idle: Add _Ixx GPE wake indicator support")
Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>
Link: https://patch.msgid.link/20261106125814.1112331-1-saranya.gopal@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
