aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/amdsmu/amdsmu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/amdsmu/amdsmu.c b/sys/dev/amdsmu/amdsmu.c
index 45e5cf7e944d..0e4f0bc17e22 100644
--- a/sys/dev/amdsmu/amdsmu.c
+++ b/sys/dev/amdsmu/amdsmu.c
@@ -323,8 +323,12 @@ amdsmu_resume_check(device_t dev, enum power_stype stype)
if (stype != POWER_STYPE_SUSPEND_TO_IDLE)
return;
- if (m->s0i3_last_entry_status != 0)
+ if (m->s0i3_last_entry_status != 0) {
+ device_printf(dev,
+ "spent %lu seconds in S0i3 during last suspend\n",
+ m->time_last_in_s0i3 / 1000000);
return;
+ }
device_printf(dev,
"failed to enter S0i3 during last suspend; "