Re: iTCO watchdog last reboot reason?
From: Naveen Kumar P
Date: Tue Aug 04 2020 - 13:09:40 EST
On Tue, Aug 4, 2020 at 9:45 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> On 8/4/20 7:41 AM, Naveen Kumar P wrote:
> > [ Please keep me in CC as I'm not subscribed to the list]
> >
> > Hi everyone,
> >
> > I enabled the iTCO watchdog in my Linux system.
> >
> > sudo cat /dev/watchdog perfectly reboots my system. But, is there a
> > way to find out on each boot if the machine was rebooted due to a
> > watchdog timeout or not?
> >
> > Any ideas?
> >
>
> If the hardware supports it, the driver could set the reboot reason
> in its probe function.
Thank you Guenter for the quick response. Can you please point me to
the corresponding patch?
>
> Guenter