public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: Daniel Newby <daniel.a.newby@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: how to allow board writers to customize driver behavior (watchdog here)
Date: Thu, 24 May 2007 18:32:22 +0900	[thread overview]
Message-ID: <20070524093222.GA3452@linux-sh.org> (raw)
In-Reply-To: <ba1ee50c0705240147t3d2ebf43w8cb0335bc7c239e4@mail.gmail.com>

On Thu, May 24, 2007 at 03:47:45AM -0500, Daniel Newby wrote:
> On 5/24/07, Paul Mundt <lethal@linux-sh.org> wrote:
> > It sounds like your constraining your driver based on terminology.
> >Watchdogs on most embedded platforms support either a 'reset' mode or
> >otherwise act as periodic timers, trying to push both of these
> >functionalities in to a watchdog driver is rather pointless.
> >CONFIG_WATCHDOG implies 'reset' mode by definition.
> 
> I agree for a product in the hands of a customer:  let the watchdog
> pull your bacon out of the fire.
> 
> But what about debugging?  Suppose your embedded computer with custom
> drivers locks up solid every few hundred hours.  It would be nice if
> the watchdog gave a stack dump instead erasing the evidence.  How about
> having "action=reset" and "action=debug"?
> 
Again, CONFIG_WATCHDOG implies reset by definition. If you'd like to
propose pluggable policies for CONFIG_WATCHDOG and post the code for
that, go right ahead.

For soft lockups, there's already the softlockup code which does what
you seem to be leaning towards. For hard lockups (which is where
CONFIG_WATCHDOG comes in handy), you're likely not going to get any
output anyways. In either case, wiggling this in to CONFIG_WATCHDOG is
very much changing the meaning of what CONFIG_WATCHDOG means today, and
doesn't seem to buy us anything.

  reply	other threads:[~2007-05-24  9:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24  4:21 how to allow board writers to customize driver behavior (watchdog here) Mike Frysinger
2007-05-24  5:23 ` Paul Mundt
2007-05-24  8:47   ` Daniel Newby
2007-05-24  9:32     ` Paul Mundt [this message]
2007-05-24 15:08     ` Mike Frysinger
2007-05-24 13:29   ` Robin Getz
2007-05-24 15:23     ` Paul Mundt
2007-05-24 17:32       ` Robin Getz
2007-05-25  4:04         ` Paul Mundt
2007-05-25 10:09           ` Daniel Newby
2007-05-25 17:55             ` Mike Frysinger
2007-05-24 15:12   ` Mike Frysinger
2007-05-24 10:01 ` Alan Cox

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=20070524093222.GA3452@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=daniel.a.newby@gmail.com \
    --cc=linux-kernel@vger.kernel.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