Re: [PATCH] msm: watchdog: support watchdog on 8x60 and 8960

From: Jamie Iles
Date: Wed Mar 30 2011 - 12:14:32 EST


On Wed, Mar 30, 2011 at 09:03:26AM -0700, Daniel Walker wrote:
> On Tue, 2011-03-29 at 21:40 -0700, Jeff Ohlstein wrote:
> > Daniel Walker wrote:
> > > Are you saying this is mostly a debugging facility ? The interrupts off
> > > thing I can see as just debugging, but I don't understand the bus
> > > lockups part.
> > >
> >
> > It isn't just a debugging facility. It is still beneficial to the end user
> > in that it restarts the system if there is a bus lockup or a faulty
> > interrupt
> > handler in a rarely used codepath. This is better than the alternative
> > of draining
> > the battery and turning off. We want this to be turned on independent of
> > what userspace
> > one is using, unless they explicitly turn it off themselves.
>
> It doesn't sound too different that all the other watchdogs in
> drivers/watchdog/ .. Your just detecting lockups right?

There are some watchdogs in there such as
drivers/watchdog/at91sam9_wdt.c that can't be stopped once enabled so
the driver sets up a soft timer in the kernel that kicks the watchdog to
prevent the system rebooting.

With this approach you could have the watchdog always enabled and being
kicked even if the userspace daemon wasn't running, but with the
flexibility of kicking it from userspace if you wanted.

Jamie
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/