mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf_counter: powerpc: add nmi_enter/nmi_exit calls
Date: Thu, 9 Apr 2009 15:49:53 +1000	[thread overview]
Message-ID: <18909.35969.369573.720803@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20090409052002.GE5352@elte.hu>

Ingo Molnar writes:

> I'm wondering, what was the real impact? Was it a crash or some 
> other misbehavior? This impact line:
> 
> 	Impact: powerpc bug fix
> 
> is a bit too generic to be useful in practice. Something like:
> 
> 	Impact: fix stuck NMIs on powerpc
> 	Impact: fix NMI crash on powerpc
> 
> would have been more descriptive about the real, hands-on impact of 
> this patch.

I was looking at Peter's patches and I noticed he used in_nmi(), and I
wondered "what's that?", so I went looking and found it, and realized
that I needed to be calling nmi_enter/exit for it to work.  I never
actually booted a kernel that had the patch to use in_nmi() but not my
patch to call nmi_enter/exit.

The impact would have been that in_nmi() always returned 0, so I
expect that I would have seen deadlocks and/or memory corruption had I
booted a kernel without my fix.

Paul.

  reply	other threads:[~2009-04-09  5:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09  4:42 Paul Mackerras
2009-04-09  5:20 ` Ingo Molnar
2009-04-09  5:49   ` Paul Mackerras [this message]
2009-04-09  6:05     ` Ingo Molnar
2009-04-09  5:30 ` [tip:perfcounters/core] " Paul Mackerras
2009-04-09  5:57 ` Paul Mackerras

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=18909.35969.369573.720803@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®