linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -tip] kgdb, x86: Pull up NMI notifier handler priority
@ 2011-03-23 20:32 Cyrill Gorcunov
  2011-03-23 21:16 ` Don Zickus
  2011-03-24  3:30 ` Dongdong Deng
  0 siblings, 2 replies; 9+ messages in thread
From: Cyrill Gorcunov @ 2011-03-23 20:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Lin Ming, Don Zickus, Jason Wessel, lkml

kgdb needs IPI to be sent and handled before perf
or anything else NMI, otherwise kgdb hangs with bootup
self-tests (found on P4 HT SMP machine). Raise its priority
so that we're called first in a notifier chain.

Reported-by: Don Zickus <dzickus@redhat.com>
Tested-by: Lin Ming <ming.m.lin@intel.com>
CC: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---

Don, Jason, take a look please.

 arch/x86/kernel/kgdb.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Index: linux-2.6.git/arch/x86/kernel/kgdb.c
=====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/kgdb.c
+++ linux-2.6.git/arch/x86/kernel/kgdb.c
@@ -592,9 +592,12 @@ static struct notifier_block kgdb_notifi
 	.notifier_call	= kgdb_notify,

 	/*
-	 * Lowest-prio notifier priority, we want to be notified last:
+	 * We might need to send an IPI and
+	 * do cpu roundup before anything else
+	 * in notifier chain so high priority
+	 * is needed.
 	 */
-	.priority	= NMI_LOCAL_LOW_PRIOR,
+	.priority	= NMI_LOCAL_HIGH_PRIOR,
 };

 /**

-- 
    Cyrill

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-01 11:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 20:32 [PATCH -tip] kgdb, x86: Pull up NMI notifier handler priority Cyrill Gorcunov
2011-03-23 21:16 ` Don Zickus
2011-03-23 21:33   ` Cyrill Gorcunov
2011-03-24  3:30 ` Dongdong Deng
2011-03-24  5:24   ` Cyrill Gorcunov
2011-03-31 17:40     ` Jason Wessel
2011-03-31 20:25       ` Cyrill Gorcunov
2011-04-01  9:26       ` Dongdong Deng
2011-04-01 11:39         ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).