mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
PM: sleep: Allow configuring the DPM watchdog to warn earlier than panic
Allow configuring the DPM watchdog to warn about slow suspend/resume functions without causing a system panic(). This allows you to set the DPM_WATCHDOG_WARNING_TIMEOUT to something like 5 or 10 seconds to get warnings about slow suspend/resume functions that eventually succeed. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Link: https://patch.msgid.link/20250109125957.v2.1.I4554f931b8da97948f308ecc651b124338ee9603@changeid [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
96484d21ae
commit
56cabb937f
+20
-1
@@ -257,11 +257,30 @@ config DPM_WATCHDOG
|
||||
boot session.
|
||||
|
||||
config DPM_WATCHDOG_TIMEOUT
|
||||
int "Watchdog timeout in seconds"
|
||||
int "Watchdog timeout to panic in seconds"
|
||||
range 1 120
|
||||
default 120
|
||||
depends on DPM_WATCHDOG
|
||||
|
||||
config DPM_WATCHDOG_WARNING_TIMEOUT
|
||||
int "Watchdog timeout to warn in seconds"
|
||||
range 1 DPM_WATCHDOG_TIMEOUT
|
||||
default DPM_WATCHDOG_TIMEOUT
|
||||
depends on DPM_WATCHDOG
|
||||
help
|
||||
If the DPM watchdog warning timeout and main timeout are
|
||||
different then a non-fatal warning (with a stack trace of
|
||||
the stuck suspend routine) will be printed when the warning
|
||||
timeout expires. If the suspend routine gets un-stuck
|
||||
before the main timeout expires then no other action is
|
||||
taken. If the routine continues to be stuck and the main
|
||||
timeout expires then an emergency-level message and stack
|
||||
trace will be printed and the system will panic.
|
||||
|
||||
If the warning timeout is equal to the main timeout (the
|
||||
default) then the warning will never happen and the system
|
||||
will jump straight to panic when the main timeout expires.
|
||||
|
||||
config PM_TRACE
|
||||
bool
|
||||
help
|
||||
|
||||
Reference in New Issue
Block a user