perf/x86: Add a microcode revision check for SNB-PEBS
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 8 Jun 2012 12:50:50 +0000 (14:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Jul 2012 19:55:57 +0000 (21:55 +0200)
commitc93dc84cbe32435be3ffa2fbde355eff94955c32
treeb650cfcea486aa0dd1612f187156c7b84fb97661
parentf285f92f7e4c9af20149130c8fd5027131b39b0e
perf/x86: Add a microcode revision check for SNB-PEBS

Recent Intel microcode resolved the SNB-PEBS issues, so conditionally
enable PEBS on SNB hardware depending on the microcode revision.

Thanks to Stephane for figuring out the various microcode revisions.

Suggested-by: Stephane Eranian <eranian@google.com>
Acked-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-v3672ziwh9damwqwh1uz3krm@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/microcode_core.c