From: "Jeff David" <jdavid@amperion.com>
To: "Brian Kuschak" <bkuschak@yahoo.com>,
<linuxppc-embedded@lists.linuxppc.org>,
<ppcboot-users@lists.sourceforge.net>,
"Robert Labrecque" <lbrecque@us.ibm.com>
Subject: RE: 4xx watchdog handling
Date: Wed, 22 Oct 2003 08:08:38 -0400 [thread overview]
Message-ID: <C6D44AA99ECEB540A5498F15F92DA07D6888AD@amperion01> (raw)
This is a problem with the 405H which may have been experienced and
possibly solved by someone out there in the user community.
We're using the ppc4xx watchdog handler that comes with Linux 2.4.17.
It uses the PIT, as described by Brian, below.
What we've seen is that the watchdog sometimes expires unexpectedly
during the ppc405wd_open function, specifically, when the Watchdog Reset
Control (WRC) bits are written to the TCR register. (These bits control
the reset function.)
According to the manual, however, the reset function should not occur
when the ENW and WIS bits are cleared in the TSR register. I have added
code to make absolutely certain that they are cleared just before
setting the WRC bits.
The only thing that I have not tried yet, is to turn off critical
interrupts (which control the watchdog interrupt) during the setting of
the WRC bits, but these seems drastic and unnecessary, since the
watchdog interrupt is not even enabled! Does this seem like a viable
solution?
There is nothing in the 405 errata about this. Has anybody else
experienced this problem?
Thanks,
Jeff
> -----Original Message-----
> From: Brian Kuschak [mailto:bkuschak@yahoo.com]
> Sent: Friday, November 01, 2002 2:14 PM
> To: linuxppc-embedded@lists.linuxppc.org
> Cc: bkuschak@yahoo.com
> Subject: 4xx watchdog handling
>
>
>
> Regarding the way 2.4.19 handles the 4xx watchdog:
>
> The 4xx timer interrupt, the PIT, is the lowest
> priority exception (18). All the external IRQs come in
> at a higher priority (16). This is opposite of x86,
> where the timer ISR is highest priority (0).
>
> This would seem to negate the effectiveness of drivers
> which implement "work limits" in their ISRs (like many
> ethernet drivers). These drivers do an RFI after
> doing a certain amount of work, leaving the interrupt
> pending and returning later to finish up. In the case
> of 4xx, a pending PIT interrupt would not be serviced
> due to its lower priority. In the case of heavy IRQ
> load, the watchdog can expire.
>
> Has anyone considered implementing the 4xx watchdog
> interrupt itself as the place to refresh the watchdog?
> We could still use the existing method of a heartbeat
> counter decremented each time, but just do the
> refreshing in a watchdog ISR rather than the timer
> ISR. This way the watchdog could be reliably
> refreshed even during heavy IRQ loads.
>
> Any comments?
>
> -Brian
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next reply other threads:[~2003-10-22 12:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-22 12:08 Jeff David [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 19:13 4xx watchdog handling Brian Kuschak
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=C6D44AA99ECEB540A5498F15F92DA07D6888AD@amperion01 \
--to=jdavid@amperion.com \
--cc=bkuschak@yahoo.com \
--cc=lbrecque@us.ibm.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=ppcboot-users@lists.sourceforge.net \
/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