* Proper way to disable hibernate for a platform
@ 2026-01-11 9:58 Thomas Glanzmann
0 siblings, 0 replies; only message in thread
From: Thomas Glanzmann @ 2026-01-11 9:58 UTC (permalink / raw)
To: Rafael J. Wysocki, Pavel Machek, linux-pm; +Cc: Sven Peter, asahi
Hallo,
arm based macs do not support hibernation at the moment, sometimes they
crash, sometimes they try to stop the cpu, can't and abort the attempt.
What is the porper way to tell hibernation code that suspend is not
available on that platform?
Looking at the code in kernel/power/hibernate.c it appears that
hibernation_available is the right place to do it:
bool hibernation_available(void)
{
return nohibernate == 0 &&
!security_locked_down(LOCKDOWN_HIBERNATION) &&
!secretmem_active() && !cxl_mem_active();
}
Or is there a better way? How would a platform agnostic interface best look
like, something allong the lines:
dmi_check_system(hibernate_blacklist)
Or ist there a better way?
Cheers,
Thomas
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-11 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-11 9:58 Proper way to disable hibernate for a platform Thomas Glanzmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox