git: cd96657b6708 - main - amdsmu: Print how long system spent in S0i3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Oct 2026 21:21:57 UTC
The branch main has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=cd96657b6708e42caa55531f8118bff6dcb38769
commit cd96657b6708e42caa55531f8118bff6dcb38769
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-10-13 21:20:23 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-10-13 21:21:26 +0000
amdsmu: Print how long system spent in S0i3
It's practical to have this printed out proactively, at least while this
is still very experimental.
Sponsored by: The FreeBSD Foundation
---
sys/dev/amdsmu/amdsmu.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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; "