Thread (6 messages) 6 messages, 3 authors, 2016-01-12
STALE3789d

[PATCH] MIPS: add nmi_enter() + nmi_exit() to nmi_exception_handler()

From: Petri Gynther <hidden>
Date: 2015-10-19 18:50:26
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

We need to enter NMI context when NMI interrupt fires.

Signed-off-by: Petri Gynther <redacted>
---
 arch/mips/kernel/traps.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index fdb392b..efcedd4 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1856,12 +1856,14 @@ void __noreturn nmi_exception_handler(struct pt_regs *regs)
 {
 	char str[100];
 
+	nmi_enter();
 	raw_notifier_call_chain(&nmi_chain, 0, regs);
 	bust_spinlocks(1);
 	snprintf(str, 100, "CPU%d NMI taken, CP0_EPC=%lx\n",
 		 smp_processor_id(), regs->cp0_epc);
 	regs->cp0_epc = read_c0_errorepc();
 	die(str, regs);
+	nmi_exit();
 }
 
 #define VECTORSPACING 0x100	/* for EI/VI mode */
-- 
2.6.0.rc2.230.g3dd15c0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help