perf/x86/intel/p6: Add userspace RDPMC quirk for PPro
authorPeter Zijlstra <peterz@infradead.org>
Wed, 5 Feb 2014 19:48:51 +0000 (20:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 9 Feb 2014 12:08:24 +0000 (13:08 +0100)
commite97df76377b8b3b1f7dfd5d6f8a1d5a31438b140
treecd326431ed849d6778b31990970b8fcafac71a2c
parent2737fce8bc8dea2852289df29b4f92e6a7fb7c91
perf/x86/intel/p6: Add userspace RDPMC quirk for PPro

PPro machines can die hard when PCE gets enabled due to a CPU erratum.
The safe way it so disable it by default and keep it disabled.

See erratum 26 in:

  http://download.intel.com/design/archives/processors/pro/docs/24268935.pdf

Reported-and-Tested-by: Mark Davies <junk@eslaf.co.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Stephane Eranian <eranian@google.com>
Cc: Vince Weaver <vince@deater.net>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140206170815.GW2936@laptop.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_p6.c