Re: [PATCH 0/2] power: reset: pscrr: record reset cause on panic and watchdog pretimeout
From: Oleksij Rempel
Date: Wed Jul 15 2026 - 02:21:11 EST
Hi Faruque,
On Tue, Jul 14, 2026 at 03:22:33PM +0530, Faruque Ansari wrote:
> 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.
Thank you, LGTM!
Right now I'm on a netdev conference, will need to take a closer look
after it.
Best Regards,
Oleksij
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |