perf_counter, x86: Make NMI lockups more robust
authorIngo Molnar <mingo@elte.hu>
Tue, 26 May 2009 06:10:00 +0000 (08:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 26 May 2009 07:52:03 +0000 (09:52 +0200)
commitaaba98018b8295dfa2119345d17f833d74448cd0
tree680995e29b5fde045340dbddf3a22f23e72f63c9
parent79202ba9ff8cf570a75596f42e011167734d1c4b
perf_counter, x86: Make NMI lockups more robust

We have a debug check that detects stuck NMIs and returns with
the PMU disabled in the global ctrl MSR - but i managed to trigger
a situation where this was not enough to deassert the NMI.

So clear/reset the full PMU and keep the disable count balanced when
exiting from here. This way the box produces a debug warning but
stays up and is more debuggable.

[ Impact: in case of PMU related bugs, recover more gracefully ]

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c
This page took 0.024879 seconds and 5 git commands to generate.