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

From: Guenter Roeck
Date: Wed Mar 05 2025 - 19:01:10 EST


On 3/5/25 02:33, Andy Shevchenko wrote:
On Wed, Mar 05, 2025 at 10:10:25AM +0000, 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 by
passing watchdog.stop_on_panic=1 via kernel command-line parameter.

...

First of all, do we really need a new module parameter for that? Why can't it
be done automatically if kdump is expected?


Sounds like a good idea to me.

Guenter