linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Naveen Kumar P <naveenkumar.parna@gmail.com>,
	linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: iTCO watchdog last reboot reason?
Date: Tue, 4 Aug 2020 09:15:46 -0700	[thread overview]
Message-ID: <83ff62ab-42c8-df6c-32c1-c1df2f8cda7a@roeck-us.net> (raw)
In-Reply-To: <CAMciSVWzH3fuo8eStwRUwGJ+VsJjctLucOZo-EVx07ktXzObFA@mail.gmail.com>

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.

Guenter

  reply	other threads:[~2020-08-04 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-04 14:41 iTCO watchdog last reboot reason? Naveen Kumar P
2020-08-04 16:15 ` Guenter Roeck [this message]
2020-08-04 17:09   ` Naveen Kumar P
2020-08-04 17:18     ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ff62ab-42c8-df6c-32c1-c1df2f8cda7a@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=naveenkumar.parna@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).