mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: Corey Minyard <cminyard@mvista.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	"Heater, Daniel (IndSys, GEFanuc,
	VMIC)" <Daniel.Heater@gefanuc.com>,
	"'Zwane Mwaikambo'" <zwane@holomorphy.com>,
	Dipankar Sarma <dipankar@gamebox.net>,
	linux-kernel@vger.kernel.org
Subject: Re: NMI handling rework for x86
Date: Fri, 15 Nov 2002 17:48:33 +0000	[thread overview]
Message-ID: <20021115174833.GB83229@compsoc.man.ac.uk> (raw)
In-Reply-To: <3DD5011F.9010409@mvista.com>

On Fri, Nov 15, 2002 at 08:13:51AM -0600, Corey Minyard wrote:

> I don't think that's a good idea for two reasons:
> 
>    * If the oprofile code is only using the counter that the NMI
>      watchdog is not using, it will silently cause the NMI watchdog to
>      stop working.  I know that's not the case now, but it could be in
>      the future.

Uh, this is fine. We always call the NMI watchdog handler, so it will
see apic irqs get stuck, and work anyway.

>    * The oprofile code will always reset the counter, so the NMI
>      watchdog will never see the timeout, so it doesn't matter.

wrong. If we are using counters 0 and 1, and 1 overflows, oprofile
resets that, then 0 overflows, the NMI watchdog will see it and
incorrectly reset it. You HAVE to avoid the reset - you can test it if
you don't believe me.

> It's currently kind of an unnatural relationship.  IMHO, it would be 
> better to have a separate handler for the perf counters that they both 
> use.  But that's beyond the scope of this right now.

Yes.

> +/* This is for I/O APIC, until we can figure out how to tell if it's from the
> +   I/O APIC.  If the NMI  was not handled before now, we handle it. */
> +static int dummy_watchdog_reset(int handled)
> +{
> +	return !handled;
> +}

And if it was handled previously, you reset it to not handled ? Uh ?

regards
john

  reply	other threads:[~2002-11-15 17:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15  4:30 Corey Minyard
2002-11-15  4:40 ` Zwane Mwaikambo
2002-11-15  6:10   ` Dipankar Sarma
2002-11-15  7:40     ` Zwane Mwaikambo
2002-11-15  8:13       ` Dipankar Sarma
2002-11-15  8:18         ` Zwane Mwaikambo
2002-11-15  8:50           ` Dipankar Sarma
2002-11-15 17:41           ` John Levon
2002-11-15 22:46             ` Zwane Mwaikambo
2002-11-15  5:12 ` John Levon
2002-11-15  5:19   ` John Levon
2002-11-15 14:13   ` Corey Minyard
2002-11-15 17:48     ` John Levon [this message]
2002-11-15 19:00       ` Corey Minyard
2002-11-15 19:28         ` John Levon
2002-11-15 19:35           ` Corey Minyard
2002-11-17  2:00         ` John Levon
2002-11-17  2:31           ` Zwane Mwaikambo
2002-11-18 16:48             ` Corey Minyard
2002-11-18 15:34           ` Corey Minyard
2002-11-15  5:20 ` Randy.Dunlap
2002-11-15  9:50 ` Mikael Pettersson

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=20021115174833.GB83229@compsoc.man.ac.uk \
    --to=levon@movementarian.org \
    --cc=Daniel.Heater@gefanuc.com \
    --cc=cminyard@mvista.com \
    --cc=dipankar@gamebox.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=zwane@holomorphy.com \
    /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

all inboxes | Powered by JetHome®