From: Ben Hutchings <ben@decadent.org.uk>
To: sparclinux@vger.kernel.org
Subject: Re: [sparc] BUG: NMI Watchdog detected LOCKUP on CPU0
Date: Sun, 08 Apr 2012 21:12:06 +0000 [thread overview]
Message-ID: <1333919526.7150.152.camel@deadeye> (raw)
In-Reply-To: <1333819298.7150.63.camel@deadeye>
[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]
On Sat, 2012-04-07 at 13:40 -0400, David Miller wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> Date: Sat, 07 Apr 2012 18:21:38 +0100
>
> > cheetah_xcall_deliver() does appear to be relevant to the problem and it
> > looks like it could loop indefinitely - though presumably only if a
> > processor is behaving strangely?
>
> I can only loop indefinitely if one of the cpus is hung and
> does not respond to the cross-call interrupt.
Well, it has to keep responding with a NACK, right?
Will the recipient NACK if the cross-call interrupt is disabled, or do
the processors have a buffer/FIFO for such IRQs?
If there's no buffer then what stops two processors live-locking here?
(The 'random time' where some interrupts are enabled isn't really very
random, so it seems to be possible for two processors to go round the
loop in lock-step.)
> > It appears to periodically enable and disable interrupts, but then
> > I'm not sure how the PSTATE.IE and PIL interrupt control fields
> > interact and I don't think this will reset the NMI watchdog.
>
> PSTATE.IE controls delivery of all interrupts, both PIL
> based and vectored interrupts.
>
> PIL only controls delivery of PIL interrupts.
>
> The NMI watchdog interrupt is a special PIL interrupt, and
> most of the standard local_irq_disable() et al. routines on
> sparc will adjust the %pil such that NMI watchdog interrupts
> are still delivered.
>
> See include/asm/pil.h for details.
Obviously the NMI watchdog is not being disabled, but I was wondering
how its timer gets reset.
Having RTFS, it appears that it is never really reset but is held off by
either an hrtimer interrupt or an explicit call to watchdog_nmi_touch()
during each interval. If I'm not mistaken, the hrtimer interrupt is
being disabled by xcall_deliver() and remains disabled.
Ben.
--
Ben Hutchings
If more than one person is responsible for a bug, no one is at fault.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-04-08 21:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-07 17:21 [sparc] BUG: NMI Watchdog detected LOCKUP on CPU0 Ben Hutchings
2012-04-07 17:40 ` David Miller
2012-04-08 21:12 ` Ben Hutchings [this message]
2012-04-08 21:49 ` David Miller
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=1333919526.7150.152.camel@deadeye \
--to=ben@decadent.org.uk \
--cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.