[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D8A58E1.5090509@openvz.org>
Date: Wed, 23 Mar 2011 23:32:33 +0300
From: Cyrill Gorcunov <gorcunov@...nvz.org>
To: Ingo Molnar <mingo@...hat.com>
CC: Lin Ming <ming.m.lin@...el.com>, Don Zickus <dzickus@...hat.com>,
Jason Wessel <jason.wessel@...driver.com>,
lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH -tip] kgdb, x86: Pull up NMI notifier handler priority
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@...hat.com>
Tested-by: Lin Ming <ming.m.lin@...el.com>
CC: Jason Wessel <jason.wessel@...driver.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@...nvz.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
--
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