]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PM: s2idle: Refine active GPEs check
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Mar 2020 10:55:48 +0000 (11:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Mar 2020 11:57:27 +0000 (12:57 +0100)
commit156d6e97bae77f1f6e31e2dbb1b8205ef332e322
tree82bf955cf0a12f1d42f44f1a1026dfd659762e96
parent70fb8121c1b3b50da426facf7a53c9ae194f359c
ACPI: PM: s2idle: Refine active GPEs check

The check for any active GPEs added by commit f3d8a96ecdef ("ACPI:
PM: s2idle: Prevent spurious SCIs from waking up the system") turns
out to be insufficiently precise to prevent some systems from
resuming prematurely due to a spurious EC wakeup, so refine it
by first checking if any GPEs other than the EC GPE are active
and skipping all of the SCIs coming from the EC that do not produce
any genuine wakeup events after processing.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206629
Fixes: f3d8a96ecdef ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system")
Reported-by: Ondřej Caletka <ondrej@caletka.cz>
Tested-by: Ondřej Caletka <ondrej@caletka.cz>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c
drivers/acpi/internal.h
drivers/acpi/sleep.c