]> git.baikalelectronics.ru Git - kernel.git/commit
PM: wakeup: Add extra debugging statement for multiple active IRQs
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 25 Aug 2022 01:36:30 +0000 (20:36 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 3 Sep 2022 18:04:33 +0000 (20:04 +0200)
commit3b3c66d5dac5de8029f92c06ade0d9f9e3a48fb6
tree0241d4fd6599df85cc304f40eb6e19439faed5b6
parent1a0e48bd354fb7c675b3a2e3a4cf84e36007d513
PM: wakeup: Add extra debugging statement for multiple active IRQs

Since commit 504ea64d1f1f9 ("PM: s2idle: ACPI: Fix wakeup interrupts
handling") was introduced the kernel can now handle multiple
simultaneous interrupts during wakeup.  Ths uncovered some existing
subtle firmware bugs where multiple IRQs are unintentionally active.

To help with fixing those bugs add an extra message when PM debugging
is enabled that can show the individual IRQs triggered as if a variety
are fired they'll potentially be lost as /sys/power/pm_wakeup_irq only
contains the first one that triggered the wakeup after resume is
complete but all may be needed to demonstrate the whole picture.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=215770
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
[ rjw: Added empty line after if () ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c