From: Ivan Mikhaylov <i.mikhaylov@yadro.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>,
Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
<linux-watchdog@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: watchdog start on restart
Date: Thu, 3 Sep 2020 16:26:18 +0300 [thread overview]
Message-ID: <7a58bc3f80783170ecc38371aad7addc04397787.camel@yadro.com> (raw)
In-Reply-To: <d6aa46c5-a1ac-c32e-5cc6-bf9a15a53b65@csgroup.eu>
On Thu, 2020-09-03 at 13:13 +0200, Christophe Leroy wrote:
> You want to start the watchdog just before calling 'reboot' but want to
> make sure that the watchdog will not reset the board before all
> userspace has shut down correctly ?
Yes, just for an example, in the nature exists some aspeed2400/2500 board which
has 2 watchdog devices and 2 spi flash memories. By default it starts from 1 spi
flash. When watchdog triggers, on next boot, it's automatically starts from 2
flash, also you can manually switch from 1 spi flash to 2 with 2 watchdog device
by trigger of it, like transparent reload from 1 spi flash side to 2.
> But what is the purpose of the watchdog then, isn't it there to make
> sure that the machine gets reboot within a given timeout anyway in case
> some userspace takes too long to shut down ?
Usually, yes.
Thanks.
prev parent reply other threads:[~2020-09-03 14:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 13:02 Ivan Mikhaylov
2020-09-02 13:19 ` Christophe Leroy
2020-09-03 10:19 ` Ivan Mikhaylov
2020-09-02 13:36 ` Guenter Roeck
2020-09-03 10:23 ` Ivan Mikhaylov
2020-09-03 11:13 ` Christophe Leroy
2020-09-03 13:26 ` Ivan Mikhaylov [this message]
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=7a58bc3f80783170ecc38371aad7addc04397787.camel@yadro.com \
--to=i.mikhaylov@yadro.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wim@linux-watchdog.org \
/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
all inboxes | Powered by JetHome®