[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18909.35969.369573.720803@cargo.ozlabs.ibm.com>
Date: Thu, 9 Apr 2009 15:49:53 +1000
From: Paul Mackerras <paulus@...ba.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf_counter: powerpc: add nmi_enter/nmi_exit calls
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists