* [PATCH 0/2] ACPI: PM: s2idle: Print debug messages in two new places
@ 2022-02-01 19:16 Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 1/2] ACPI: PM: Print additional debug message in acpi_s2idle_wake() Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 2/2] ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe() Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2022-02-01 19:16 UTC (permalink / raw)
To: Linux ACPI; +Cc: LKML, Linux PM
Hi All,
This series causes PM debug messages to be printed in two new places to help
diagnose issues related to wakeup from suspend-to-idle.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] ACPI: PM: Print additional debug message in acpi_s2idle_wake()
2022-02-01 19:16 [PATCH 0/2] ACPI: PM: s2idle: Print debug messages in two new places Rafael J. Wysocki
@ 2022-02-01 19:18 ` Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 2/2] ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe() Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2022-02-01 19:18 UTC (permalink / raw)
To: Linux ACPI; +Cc: LKML, Linux PM
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Make acpi_s2idle_wake() print an additional debug message when the
SCI is going to be rearmed for system wakeup to help diagnose
wakeup-related issues.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/acpi/sleep.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux-pm/drivers/acpi/sleep.c
===================================================================
--- linux-pm.orig/drivers/acpi/sleep.c
+++ linux-pm/drivers/acpi/sleep.c
@@ -764,6 +764,8 @@ bool acpi_s2idle_wake(void)
return true;
}
+ pm_pr_dbg("Rearming ACPI SCI for wakeup\n");
+
rearm_wake_irq(acpi_sci_irq);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe()
2022-02-01 19:16 [PATCH 0/2] ACPI: PM: s2idle: Print debug messages in two new places Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 1/2] ACPI: PM: Print additional debug message in acpi_s2idle_wake() Rafael J. Wysocki
@ 2022-02-01 19:18 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2022-02-01 19:18 UTC (permalink / raw)
To: Linux ACPI; +Cc: LKML, Linux PM
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Make acpi_ec_dispatch_gpe() print an additional debug message after
seeing the EC GPE status bit set to help diagnose wakeup-related
issues.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/acpi/ec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Index: linux-pm/drivers/acpi/ec.c
===================================================================
--- linux-pm.orig/drivers/acpi/ec.c
+++ linux-pm/drivers/acpi/ec.c
@@ -2071,8 +2071,11 @@ bool acpi_ec_dispatch_gpe(void)
*/
spin_lock_irq(&first_ec->lock);
- if (acpi_ec_gpe_status_set(first_ec))
+ if (acpi_ec_gpe_status_set(first_ec)) {
+ pm_pr_dbg("ACPI EC GPE status set\n");
+
work_in_progress = advance_transaction(first_ec, false);
+ }
spin_unlock_irq(&first_ec->lock);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-01 19:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 19:16 [PATCH 0/2] ACPI: PM: s2idle: Print debug messages in two new places Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 1/2] ACPI: PM: Print additional debug message in acpi_s2idle_wake() Rafael J. Wysocki
2022-02-01 19:18 ` [PATCH 2/2] ACPI: EC / PM: Print additional debug message in acpi_ec_dispatch_gpe() Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).