Skip to content

Commit 8d33091

Browse files
Lin MingIngo Molnar
authored andcommitted
perf, x86, Pentium4: Clear the P4_CCCR_FORCE_OVF flag
If on Pentium4 CPUs the FORCE_OVF flag is set then an NMI happens on every event, which can generate a flood of NMIs. Clear it. Reported-by: Vince Weaver <vweaver1@eecs.utk.edu> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: <stable@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 151772d commit 8d33091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/cpu/perf_event_p4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ static int p4_hw_config(struct perf_event *event)
497497
event->hw.config |= event->attr.config &
498498
(p4_config_pack_escr(P4_ESCR_MASK_HT) |
499499
p4_config_pack_cccr(P4_CCCR_MASK_HT | P4_CCCR_RESERVED));
500+
501+
event->hw.config &= ~P4_CCCR_FORCE_OVF;
500502
}
501503

502504
rc = x86_setup_perfctr(event);

0 commit comments

Comments
 (0)