public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CONFIG_HW_WATCHDOG in 1.1.6
Date: Tue, 20 Mar 2007 13:10:24 +0100	[thread overview]
Message-ID: <20070320121024.A672C35261B@atlas.denx.de> (raw)
In-Reply-To: Your message of "Tue, 20 Mar 2007 09:56:28 +0100." <45FFA1BC.2040809@gmx.net>

In message <45FFA1BC.2040809@gmx.net> you wrote:
>
> What's the preferred policy to trigger the watchdog in U-Boot? Trigger 
> using a timer interrupt (as in lib_ppc/interrupts.c) or add calls to 
> WATCHDOG_RESET() to every function which may take longer than some 
> fraction of the minimal watchdog period (which is?)?

The minimal watchdog period we've seen in real systems so far  is  80
milliseconds, including some tolerance of +/- 20%, so we need to keep
it < 50 millisec.

Normally, we trigger the WD in the timer tick  (i.  e.  every  milli-
second);  additionally,  we  have  a  WD  trigger in udelay(), so any
(possibly long) delays based on this are automatically safe.

This should reduce the number of places where a manual WATCHDOG_RESET
is needed to very few.

> I know there are functions which disable interrupts and thus have to 
> trigger the watchdog themself (like do_bootm).

I think most of these places are already safe.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Include the success of others in your dreams for your own success.

  reply	other threads:[~2007-03-20 12:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20  0:43 [U-Boot-Users] CONFIG_HW_WATCHDOG in 1.1.6 vb
2007-03-20  1:36 ` Wolfgang Denk
2007-03-20  8:56   ` Daniel Hobi
2007-03-20 12:10     ` Wolfgang Denk [this message]
2007-03-20 22:00   ` vb
2007-03-20 23:02     ` Wolfgang Denk
2007-03-20 23:12       ` vb
2007-03-20  8:52 ` Daniel Hobi
2007-03-20 15:23   ` vb
2007-03-20 21:19     ` Wolfgang Denk

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=20070320121024.A672C35261B@atlas.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /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