Re: [PATCH 1/2] drivers: watchdog: Add support for panic notifier callback

From: Guenter Roeck
Date: Fri Feb 21 2025 - 00:04:17 EST


On 2/20/25 18:35, George Cherian wrote:
Watchdog is not turned off in kernel panic situation.
In certain systems this might prevent the successful loading
of kdump kernel. The kdump kernel might hit a watchdog reset
while it is booting.

To avoid such scenarios add a panic notifier call back function
which can stop the watchdog. This provision can be enabled on per
driver basis if the user wishes to by setting the flag
WDOG_STOP_ON_PANIC from respective drivers.


I think this makes sense in principal, but it should not be driver specific.

Guenter