]> git.hungrycats.org Git - linux/commit
clocksource/drivers/timer-tegra186: Reserve and service a kernel watchdog
authorKartik Rajput <kkartik@nvidia.com>
Thu, 7 May 2026 15:45:57 +0000 (21:15 +0530)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Wed, 10 Jun 2026 05:25:54 +0000 (07:25 +0200)
commit46fb093b87a0d92e391b6f6cadd63c3ef50a59b2
tree7ea48039e725b6f11b3b601366309bba8a998ae2
parent5eb5d8eaeacf09f924458dacd590b7f9b1607cea
clocksource/drivers/timer-tegra186: Reserve and service a kernel watchdog

Tegra SoCs supports multiple watchdog timers. If the kernel crashes or
hangs before userspace enables a watchdog, the system cannot recover and
may remain bricked, e.g. after a failed OTA update. The driver currently
leaves all watchdogs disabled until userspace configures them.

Reserve first available watchdog as a kernel-only watchdog for Tegra186
and Tegra234. Arm it during probe (120s timeout) and keep it alive in
the driver IRQ handler. Do not register it to userspace. Other available
watchdogs remain exposed to userspace. This guarantees the system can
reset itself in case of a hang or crash even when userspace never starts.

Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260507154557.2082697-5-kkartik@nvidia.com
drivers/clocksource/timer-tegra186.c