[PATCH 0/2] power: reset: pscrr: record reset cause on panic and watchdog pretimeout
From: Faruque Ansari
Date: Tue Jul 14 2026 - 05:53:57 EST
This series extends the Power State Change Reason Register (PSCRR)[1]
framework to capture two additional reset causes.
1. Kernel panic — a panic notifier writes PSCR_KERNEL_PANIC to NVMEM
before the system resets, so the next boot can distinguish a panic
from other reset causes.
2. Watchdog pretimeout — set_psc_reason(PSCR_WATCHDOG_PRETIMEOUT) is
called from watchdog_notify_pretimeout(), when the watchdog fire its
pre-reset notification before resetting the system, so the reason gets
saved and we know its was a watchdog timeout that caused the reset.
[1] https://lore.kernel.org/lkml/20250618120255.3141862-1-o.rempel@xxxxxxxxxxxxxx/
To: Sebastian Reichel <sre@xxxxxxxxxx>
To: Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>
To: Guenter Roeck <linux@xxxxxxxxxxxx>
To: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
To: Benson Leung <bleung@xxxxxxxxxxxx>
To: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>
To: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
To: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
Cc: linux-pm@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-watchdog@xxxxxxxxxxxxxxx
Cc: linux-arm-msm@xxxxxxxx
Cc: kernel@xxxxxxxxxxxxxx
Cc: Liam Girdwood" <lgirdwood@xxxxxxxxx>
Cc: Mark Brown" <broonie@xxxxxxxxxx>
Cc: Rafael J. Wysocki" <rafael@xxxxxxxxxx>
Cc: Zhang Rui" <rui.zhang@xxxxxxxxx>
Cc: Lukasz Luba" <lukasz.luba@xxxxxxx>
Cc: Søren Andersen" <san@xxxxxxx>
Cc: Guenter Roeck" <groeck@xxxxxxxxxxxx>
Cc: Matti Vaittinen" <mazziesaccount@xxxxxxxxx>
Cc: Ahmad Fatoum" <a.fatoum@xxxxxxxxxxxxxx>
Cc: Andrew Morton" <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: avaneesh.dwivedi@xxxxxxxxxxxxxxxx
Cc: Umang Chheda <umang.chheda@xxxxxxxxxxxxxxxx>
Signed-off-by: Faruque Ansari <faruque.ansari@xxxxxxxxxxxxxxxx>
---
Faruque Ansari (2):
power: reset: pscrr: add kernel panic reason tracking
watchdog: pscrr: add watchdog pretimeout reason tracking
drivers/power/reset/pscrr.c | 33 +++++++++++++++++++++++++++++++++
drivers/watchdog/watchdog_pretimeout.c | 3 +++
include/linux/power/power_on_reason.h | 2 ++
include/linux/reboot.h | 2 ++
kernel/reboot.c | 2 ++
5 files changed, 42 insertions(+)
---
base-commit: 9696e3e0e12695f18c26e339bc609a2d56b51c5a
change-id: 20260714-pscrr-reboot-reason-2b4e16ccb6b8
Best regards,
--
Faruque Ansari <faruque.ansari@xxxxxxxxxxxxxxxx>