linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* /dev/watchdog for onchip MPC860 watchdog?
@ 1999-10-15  3:30 Graham Stoney
  1999-10-18 20:24 ` Dan Malek
  0 siblings, 1 reply; 12+ messages in thread
From: Graham Stoney @ 1999-10-15  3:30 UTC (permalink / raw)
  To: linuxppc-embedded


Dear Embeddees,

I'm wondering if anyone is working on a driver to provide the /dev/watchdog
interface to the MPC860's on-chip watchdog?

Thanks,
Graham

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <380B6A1B.E5D02094@netx4.com>]
* Re: /dev/watchdog for onchip MPC860 watchdog?
@ 1999-10-20  7:33 Raphael Massin
  1999-10-20 17:56 ` Dan Malek
  0 siblings, 1 reply; 12+ messages in thread
From: Raphael Massin @ 1999-10-20  7:33 UTC (permalink / raw)
  To: jeff; +Cc: linuxppc-embedded, dmalek, massin


> 
> 
> I've also been thinking about this...
> 
> If the boot process goes bad, then the interrupt driven watchdog will
> keep getting reset and prevent the watchdog from firing...leading to a
> unrecoverable hang.  So, what's the likely hood of the boot process
> going bad?
> 
> Our application requires downloading new kernels and applications and this
> may
> increase the likely hood that a kernel fails to complete the boot process.
> 
> This idea has a window of vunerability but how much and how likely???
> 
> Maybe the timer can be set longer than the longest bootup time or at least
> until the first daemon gets going?
> 
> jeff
> 

Hello,

I'm using the watchdog timer on a custom board since several months. To
prevent a CPU reset during the kernel is uncompressing, i prorammed it
to generate a Non Maskable Interrupt instead of system reset. Those NMIs
are handled by a special function in the Linux kernel. This function
can reset the board, using a specific I/O, when too many NMIs occurred
without any watchdog timer (SWSR) servicing.

Today, i refresh the timer in my real time application that is launched
immediately after the kernel init. This scheme must work for any board
launching an appli/real time module after kernel init. For other configurations,
Dan's idea seems perfect.

	Raphael

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: /dev/watchdog for onchip MPC860 watchdog?
@ 2000-07-13  7:24 Tania Boak
  2000-07-13  7:47 ` Graham Stoney
  0 siblings, 1 reply; 12+ messages in thread
From: Tania Boak @ 2000-07-13  7:24 UTC (permalink / raw)
  To: massin; +Cc: linuxppc-embedded


Hi Raphael

I'm interested in the application you mentioned in your message:

http://lists.linuxppc.org/listarcs/linuxppc-embedded/199910/msg00028.html



> I'm using the watchdog timer on a custom board since several months.
> To
> prevent a CPU reset during the kernel is uncompressing, i prorammed it
> to generate a Non Maskable Interrupt instead of system reset. Those
> NMIs
> are handled by a special function in the Linux kernel. This function
> can reset the board, using a specific I/O, when too many NMIs occurred
> without any watchdog timer (SWSR) servicing.
>
> Today, i refresh the timer in my real time application that is
> launched
> immediately after the kernel init. This scheme must work for any board
> launching an appli/real time module after kernel init. For other
> configurations,
> Dan's idea seems perfect.

I'm trying to find a way to use the on chip watchdog to provide an
automatic reboot should the software on our custom board go to never
never land.  At the moment I don't need to provide the /dev/watchdog
interface, but I may in the future.  Dan's idea about not servicing the
SWSR while /dev/watchdog is open sounds good for that.  But for now, I
just need a way to keep the watchdog timer from expiring as long as
things are working "normally".  I like the idea of using an application
to write to the SWSR rather than doing it from the timer interrupt in
the kernel because I can envision cases where interrupts but not much
else may be working.

But I don't know how to guarantee that the application will be able to
service the watchdog in any given interval of time.  How do you
distinguish between the case where the system has stopped working and
the case where the system is busy but still functioning?

Any help you can give would be appreciated.  If anyone else has an
opinion as to the best place to service the watchdog in order to provide
protection from a hung system, I'd love to hear it.

Thanks


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2000-07-13  7:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-15  3:30 /dev/watchdog for onchip MPC860 watchdog? Graham Stoney
1999-10-18 20:24 ` Dan Malek
     [not found] <380B6A1B.E5D02094@netx4.com>
1999-10-19  8:56 ` Graham Stoney
1999-10-19 19:51   ` Dan Malek
1999-10-20  1:56     ` Jeff Millar
1999-10-20 17:47       ` Dan Malek
1999-10-21  3:49       ` Graham Stoney
1999-10-21  4:06         ` Cort Dougan
  -- strict thread matches above, loose matches on Subject: below --
1999-10-20  7:33 Raphael Massin
1999-10-20 17:56 ` Dan Malek
2000-07-13  7:24 Tania Boak
2000-07-13  7:47 ` Graham Stoney

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).