All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@iguana.be>, linux-watchdog@vger.kernel.org
Subject: Re: [PATCH v1] watchdog: intel-mid_wdt: Keep watchdog running
Date: Fri, 10 Mar 2017 18:28:12 +0200	[thread overview]
Message-ID: <1489163292.20145.194.camel@linux.intel.com> (raw)
In-Reply-To: <20170308191652.GB4486@roeck-us.net>

On Wed, 2017-03-08 at 11:16 -0800, Guenter Roeck wrote:
> On Wed, Mar 08, 2017 at 05:11:10PM +0200, Andy Shevchenko wrote:
> > On Wed, 2017-03-08 at 06:21 -0800, Guenter Roeck wrote:
> > > On 03/08/2017 03:10 AM, Andy Shevchenko wrote:
> > > > Firmware followed by bootloader leaves watchdog running.

> > > Is that always the case ?
> > 
> > Yes if no-one patched boot loader specifically to avoid this.
> > 
> > >  If not, does it hurt if the watchdog is pinged
> > > while not active ?
> > > 
> > > Also, this assumes that its default timeout is in the default
> > > range
> > > configured by the driver, ie not (much) lower than 30 seconds.
> > 
> > Correct. It is hard coded in SCU firmware (60 seconds IIRC). U-Boot
> > for
> > now doesn't change it.
> > 
> > > Not objecting, but it would help to have comments in the code
> > > explaining
> > > the context in some more detail.
> > 
> > Last time you were not satisfied by the line which stops the running
> > watchdog [1]. I found a way how to keep it running gracefully, which
> > I
> > proposed to do at that time (assuming boot loader doesn't stop it)
> > [2].
> > 
> > I'm confused now what is preferable way to do the things?
> > 
> 
> The suggested patch is ok. I was just asking for additional comments,
> along the line of 1) the SCU firmware sets the timeout to 60s, the
> default
> timeout of 30s is therefore safe, and 2) that the watchdog is by
> default
> enabled in the SCU firmware (and, if appropriate, that it doesn't get
> a
> hiccup if it is pinged if it should have been disabled for some
> unspecified
> / unknown reason).

Okay, I will send v2 with additional comments.

Thanks for clarifying!

P.S. It looks like we have to add some lines in the driver for U-Boot to
make developer pay attention to the potential asynchronization.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

      reply	other threads:[~2017-03-10 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 11:10 [PATCH v1] watchdog: intel-mid_wdt: Keep watchdog running Andy Shevchenko
2017-03-08 14:21 ` Guenter Roeck
2017-03-08 15:11   ` Andy Shevchenko
2017-03-08 19:16     ` Guenter Roeck
2017-03-10 16:28       ` Andy Shevchenko [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=1489163292.20145.194.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=wim@iguana.be \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.