Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171958533
D59672.id186705.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
673 B
Referenced Files
None
Subscribers
None
D59672.id186705.diff
View Options
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3906,6 +3906,17 @@
EVENTHANDLER_INVOKE(power_resume, stype);
+ if (stype == POWER_STYPE_SUSPEND_TO_IDLE) {
+ devclass_t dc = devclass_find("amdsmu");
+
+ if (dc == NULL || devclass_get_count(dc) == 0) {
+ device_printf(sc->acpi_dev,
+ "Resumed from suspend-to-idle but amdsmu(4) is not attached; "
+ "unable to verify S0i3 entry. It is unlikely the system "
+ "entered a deep sleep state.\n");
+ }
+ }
+
/* Allow another sleep request after a while. */
callout_schedule(&acpi_sleep_timer, hz * ACPI_MINIMUM_AWAKETIME);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 15, 10:29 PM (6 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38976132
Default Alt Text
D59672.id186705.diff (673 B)
Attached To
Mode
D59672: acpi: Warn if no amdsmu(4) loaded after suspend-to-idle resume
Attached
Detach File
Event Timeline
Log In to Comment