Re: [PATCH v2] PM / core: Allow configuring the DPM watchdog to warn earlier than panic
From: Tomasz Figa
Date: Thu Jan 09 2025 - 21:50:38 EST
On Fri, Jan 10, 2025 at 6:01 AM Douglas Anderson <dianders@xxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxx>
> ---
>
> Changes in v2:
> - Print the warning at warn level, not emergency level.
> - Add help text to DPM_WATCHDOG_WARNING_TIMEOUT.
>
> drivers/base/power/main.c | 24 +++++++++++++++++++-----
> kernel/power/Kconfig | 21 ++++++++++++++++++++-
> 2 files changed, 39 insertions(+), 6 deletions(-)
>
Thanks for addressing my comments.
Reviewed-by: Tomasz Figa <tfiga@xxxxxxxxxxxx>
Best regards,
Tomasz