Re: [PATCH] PM: sleep: Add DPM watchdog to late/early/noirq phases

From: Doug Anderson

Date: Fri Aug 21 2026 - 18:42:22 EST


Hi,

On Fri, Aug 21, 2026 at 10:06 AM Mayank Rungta <mrungta@xxxxxxxxxx> wrote:
>
> Extend the DPM watchdog to wrap device_suspend_late, device_suspend_noirq,
> device_resume_early, and device_resume_noirq callbacks. If a driver hangs
> during these transitions, the watchdog will fire and dump a stack trace
> to help identify the offending driver.
>
> To prevent false-positive timeouts, the watchdog is set only after
> waiting for subordinate (during suspend) and superior (during resume)
> devices.
>
> Signed-off-by: Mayank Rungta <mrungta@xxxxxxxxxx>
> ---
> Testing:
> - Tested on an ARM64 SoC (Pixel platform running a 6.18-based kernel with
> DPM watchdog enabled; Android 6.18 kernel has latest DPM changes
> backported).
>
> drivers/base/power/main.c | 25 ++++++++++++++++++++++---
> 1 file changed, 22 insertions(+), 3 deletions(-)

I reviewed this patch for Mayank before he sent it. It seems correct /
useful to me, so I'm happy with:

Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>