: NMI watchdog support for sparc64
David Miller
maintainercover : NMI watchdog support for sparc64
As promised here is the patch set.
Most of the changes involve moving the existing perf counter NMI bits out of the oprofile code and into a shared area.
Then we build the NMI watchdog support on top of it.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Fri, 30 Jan 2009 00:25:49 -0800 (PST)
Quoted 7 lines
As promised here is the patch set.
Most of the changes involve moving the existing perf counter NMI bits out of the oprofile code and into a shared area.
Then we build the NMI watchdog support on top of it.
FWIW, I've some good news and bad news about these patches.
The good news is that I got the new NMI watchdog to trigger for the system hang case I've been trying to track down. So I can try to debug that problem now :-)
The bad news is that the NMI watchdog can trigger spuriously when using NOHZ and I have to figure out a way to fix that.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Sun, 01 Feb 2009 02:05:09 -0800 (PST)
Quoted 2 lines
The bad news is that the NMI watchdog can trigger spuriously when using NOHZ and I have to figure out a way to fix that.
I've just pushed the following fix for this bug.
sparc64: On non-Niagara, need to touch NMI watchdog in NOHZ mode.
When we're idling in NOHZ mode, timer interrupts are not running.
Evidence of processing timer interrupts is what the NMI watchdog uses to determine if the CPU is stuck.
On Niagara, we'll yield the cpu. This will make the cpu, at worst, hang out in the hypervisor until an interrupt arrives. This will prevent the NMI watchdog timer from firing.
However on non-Niagara we just loop executing instructions which will cause the NMI watchdog to keep firing. It won't see timer interrupts happening so it will think the cpu is stuck.
Fix this by touching the NMI watchdog in the cpu idle loop on non-Niagara machines.
--- arch/sparc/kernel/process_64.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
arch/sparc/kernel/process_64.c +4 -1
@@ -29,6 +29,7 @@#include <linux/cpu.h> #include <linux/elfcore.h> #include <linux/sysrq.h> +#include <linux/nmi.h> #include <asm/uaccess.h> #include <asm/system.h>
@@ -52,8 +53,10 @@static void sparc64_yield (int cpu) { -if (tlb_type != hypervisor) +if (tlb_type != hypervisor) { +touch_nmi_watchdog ();return ; + }clear_thread_flag (TIF_POLLING_NRFLAG );smp_mb__after_clear_bit ();
Signature · 1 line
1.6.1.2.253.ga34a