Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Add new MSRs and MSR bits used for Intel Skylake PMU support

Add new MSRs (LBR_INFO) and some new MSR bits used by the Intel Skylake
PMU driver.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: eranian@google.com
Link: http://lkml.kernel.org/r/1431285767-27027-4-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Andi Kleen and committed by
Ingo Molnar
b83ff1c8 a7b58d21

+13
+6
arch/x86/include/asm/msr-index.h
··· 73 73 #define MSR_LBR_CORE_FROM 0x00000040 74 74 #define MSR_LBR_CORE_TO 0x00000060 75 75 76 + #define MSR_LBR_INFO_0 0x00000dc0 /* ... 0xddf for _31 */ 77 + #define LBR_INFO_MISPRED BIT_ULL(63) 78 + #define LBR_INFO_IN_TX BIT_ULL(62) 79 + #define LBR_INFO_ABORT BIT_ULL(61) 80 + #define LBR_INFO_CYCLES 0xffff 81 + 76 82 #define MSR_IA32_PEBS_ENABLE 0x000003f1 77 83 #define MSR_IA32_DS_AREA 0x00000600 78 84 #define MSR_IA32_PERF_CAPABILITIES 0x00000345
+7
arch/x86/include/asm/perf_event.h
··· 159 159 */ 160 160 #define INTEL_PMC_IDX_FIXED_BTS (INTEL_PMC_IDX_FIXED + 16) 161 161 162 + #define GLOBAL_STATUS_COND_CHG BIT_ULL(63) 163 + #define GLOBAL_STATUS_BUFFER_OVF BIT_ULL(62) 164 + #define GLOBAL_STATUS_UNC_OVF BIT_ULL(61) 165 + #define GLOBAL_STATUS_ASIF BIT_ULL(60) 166 + #define GLOBAL_STATUS_COUNTERS_FROZEN BIT_ULL(59) 167 + #define GLOBAL_STATUS_LBRS_FROZEN BIT_ULL(58) 168 + 162 169 /* 163 170 * IBS cpuid feature detection 164 171 */