public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: george anzinger <george@mvista.com>
Cc: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>,
	Mikael Pettersson <mikpe@csd.uu.se>, Ingo Molnar <mingo@elte.hu>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: NMI watchdog question.
Date: Wed, 6 Nov 2002 20:07:26 +0000	[thread overview]
Message-ID: <20021106200726.GA2388@compsoc.man.ac.uk> (raw)
In-Reply-To: <3DC97233.2BBD511@mvista.com>

On Wed, Nov 06, 2002 at 11:49:07AM -0800, george anzinger wrote:

> So the performance counters are only used on UP machines?

no. nmi_watchdog=1 -> I/O APIC is used iff available and it works
nmi_watchdog=2 -> local APIC LVTPC set to interrupt in NMI mode when
perfctr overflows.

=2 can be used on both UP and SMP, =1 is only available on UP for the
rare machines that have an I/O APIC on a UP motherboard (I believe there
are some, but I don't know if the code is set up to do so properly).

> Also, what is the point of turning off the nmi in this way
> (i.e. nmi_watchdog = 0;)?  If the interrupts are not
> generated the test of the flag will not be done in traps.c. 
> Is it tested else where?

NMIs can have other sources. In particular if we get an NMI from an
unknown source, we want to tell the user we're dazed and confused.

Currently, if we boot with nmi_watchdog=2 on SMP /and/ that io_apic.c
code sets nmi_watchdog to 0, it seems we will get an incorrect "dazed
and confused" every time the perfctr overflows (which will take a while
to overflow the full 40 bits, but ...)

[hmm, actually this would depend on exactly what order the setup is
done, I'm too lazy to check]

So I think that test definitely needs to be there, but it needs to be

	if (nmi_watchdog == NMI_IO_APIC)

as Maciej ACKed.

regards
john

-- 
"When a man has nothing to say, the worst thing he can do is to say it
memorably."
	- Calvin Trillin

  reply	other threads:[~2002-11-06 20:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06  5:50 NMI watchdog question george anzinger
2002-11-06 10:53 ` Mikael Pettersson
2002-11-06 17:59   ` george anzinger
2002-11-06 18:12     ` John Levon
2002-11-06 18:58       ` Maciej W. Rozycki
2002-11-06 18:55     ` Maciej W. Rozycki
2002-11-06 19:49       ` george anzinger
2002-11-06 20:07         ` John Levon [this message]
2002-11-07 16:20           ` Bill Davidsen
2002-11-07 16:30             ` Maciej W. Rozycki
2002-11-07 16:44             ` Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2005-03-06  0:53 Pallai Roland
     [not found] <3EShS-A1-9@gated-at.bofh.it>
2005-03-06 15:14 ` Robert Hancock
2005-03-06 18:51 Pallai Roland
2005-03-07 10:16 Mikael Pettersson
2005-03-07 13:00 ` Pallai Roland
2005-03-08  2:28 Pallai Roland

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=20021106200726.GA2388@compsoc.man.ac.uk \
    --to=levon@movementarian.org \
    --cc=george@mvista.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=mikpe@csd.uu.se \
    --cc=mingo@elte.hu \
    /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