Re: [PATCH RFC] watchdog: core: Ignore userspace keepalives once the system goes down

From: Guenter Roeck

Date: Thu Nov 19 2026 - 12:12:21 EST


On 11/19/26 08:53, Arun Iyengar via B4 Relay wrote:
From: Arun Iyengar <aiyengar1990@xxxxxxxxx>

A watchdog left running through a reboot should reset a system whose
reboot hangs. But a daemon still pinging after reboot(2), such as
systemd after "systemctl reboot -ff", keeps a hang in device_shutdown()
from ever being reset.


If systemd is still running and able to send watchdog pings, the system
is not really hanging.

Ignore userspace keepalives once system_state is past SYSTEM_RUNNING,
as da9062_wdt and da9063_wdt do since commit 2f61b3a74699 ("watchdog:
da9062: da9063: prevent pings ahead of machine reset").


Those drivers have a very specific reason to stop pings during poweroff,
because not doing so could result in failed restart / poweroff sequences
(as the commit message explains).

Signed-off-by: Arun Iyengar <aiyengar1990@xxxxxxxxx>
---
RFC: this changes every driver. A reboot or power-off whose
device_shutdown() outlasts the timeout now ends in a watchdog reset.


Which would be unacceptable.

I don't know what problem you are actually trying to solve, but in
its current form this is a NACK.

Guenter