]> git.baikalelectronics.ru Git - kernel.git/commit
kgdb: fix NMI hangs
authorJason Wessel <jason.wessel@windriver.com>
Fri, 15 Feb 2008 20:55:53 +0000 (14:55 -0600)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 18:05:38 +0000 (20:05 +0200)
commit2ebce71a227c0d3ffb140212834a8239008caf87
tree529406a1a001a33546d7044d7d23bf8659a81962
parentb5ee59f1fe2e73a782d63e0e05cfacfc0f937cc4
kgdb: fix NMI hangs

This patch fixes the hang regression with kgdb when the NMI interrupt
comes in while the master core is returning from an exception.

Adjust the NMI logic such that KGDB will not stop NMI exceptions from
occurring by in general returning NOTIFY_DONE.  It is not possible to
distinguish the debug NMI sync vs the normal NMI apic interrupt so
kgdb needs to catch the unknown NMI if it the debugger was previously
active on one of the cpus.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/kgdb.c
arch/x86/kernel/traps_32.c
arch/x86/kernel/traps_64.c
include/asm-x86/kdebug.h