perf/x86/intel: Add support for IvyBridge model 58 Uncore
authorVince Weaver <[email protected]>
Mon, 29 Apr 2013 19:52:27 +0000 (15:52 -0400)
committerIngo Molnar <[email protected]>
Tue, 30 Apr 2013 08:56:45 +0000 (10:56 +0200)
According to Intel Vol3b 18.9, the IvyBridge model 58 uncore is
the same as that of SandyBridge.

I've done some simple tests and with this patch things seem to
work on my mac-mini.

Signed-off-by: Vince Weaver <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1304291549320.15827@vincent-weaver-1.um.maine.edu
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event_intel_uncore.c

index 0d5ec6d6d335a6a6f1c586e84907d148c2a5c0d9..22ebaa89af1002d3e787dcdd0aae763713d59a5b 100644 (file)
@@ -2853,6 +2853,7 @@ static int __init uncore_cpu_init(void)
                msr_uncores = nhm_msr_uncores;
                break;
        case 42: /* Sandy Bridge */
+       case 58: /* Ivy Bridge */
                if (snb_uncore_cbox.num_boxes > max_cores)
                        snb_uncore_cbox.num_boxes = max_cores;
                msr_uncores = snb_msr_uncores;