util/inteltool: Add server 5065x CPU model support

Adds the MSR table for server family 6 model 85 (5065x) processors (Sky
Lake, Cascade Lake, Cooper Lake).

The cores number for these processors exceeds the limit of 8 cores
(it is hardcoded in cpu.c). For this reason, the patch also adds code
that determines the number of processor cores at run time.

These changes are in accordance with the documentation:
[*] pages: 2-265 ... 2-286, 2-297 ... 2-308.
    Intel(R) 64 and IA-32 Architectures, Software Developer’s Manual,
    Volume 4: Model-Specific Registers. May 2019.
    Order Number: 335592-070US

Change-Id: I27a4f5c38a7317bc3e0ead4349dccfef1338a7f2
Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35917
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Andrey Petrov <anpetrov@fb.com>
This commit is contained in:
Maxim Polyakov 2019-10-08 17:33:59 +03:00 committed by Patrick Georgi
parent 395a740bbf
commit 9af10bf90f
1 changed files with 381 additions and 2 deletions

View File

@ -160,6 +160,11 @@ static int get_number_of_cpus(void)
return sysconf(_SC_NPROCESSORS_ONLN);
}
static int get_number_of_cores(void)
{
return sysconf(_SC_NPROCESSORS_CONF);
}
static int is_sgx_supported(int cpunum)
{
cpuid_result_t cpuid_regs;
@ -221,7 +226,7 @@ int print_sgx(void)
int print_intel_core_msrs(void)
{
unsigned int i, core, id;
unsigned int i, core, id, core_num = get_number_of_cores();
msr_t msr;
#define IA32_PLATFORM_ID 0x0017
@ -1813,6 +1818,379 @@ int print_intel_core_msrs(void)
{ 0x0DDF, "IA32_LBR_INFO_31"},
};
/*
* Intel® 64 and IA-32 Architecture Software Developers Manual
* Volume 4: Model-Specific Registers
* Order Number: 335592-070US
* page 2-265 ... 2-286
* page 2-297 ... 2-308
*
* The following two tables are for the Intel(R) Xeon(R) Processor Scalable
* Family based on Skylake microarchitecture, 2nd generation Intel(R) Xeon(R)
* Processor Scalable Family based on Cascade Lake product, and future Cooper
* Lake product
* family 6 model 85 (06_55h)
*/
static const msr_entry_t model565x_global_msrs[] = {
{ 0x004e, "MSR_PPIN_CTL" },
{ 0x004f, "MSR_PPIN" },
{ 0x00ce, "MSR_PLATFORM_INFO" },
{ 0x0198, "IA32_PERF_STATUS" },
{ 0x019c, "IA32_THERM_STATUS" },
{ 0x01a2, "MSR_TEMPERATURE_TARGET" },
{ 0x01ad, "MSR_TURBO_RATIO_LIMIT" },
{ 0x01ae, "MSR_TURBO_RATIO_LIMIT_CORES" },
{ 0x0284, "IA32_MC4_CTL2" },
{ 0x0285, "IA32_MC5_CTL2" },
{ 0x0286, "IA32_MC6_CTL2" },
{ 0x0287, "IA32_MC7_CTL2" },
{ 0x0288, "IA32_MC8_CTL2" },
{ 0x0289, "IA32_MC9_CTL2" },
{ 0x028a, "IA32_MC10_CTL2" },
{ 0x028b, "IA32_MC11_CTL2" },
{ 0x028c, "IA32_MC12_CTL2" },
{ 0x028d, "IA32_MC13_CTL2" },
{ 0x028e, "IA32_MC14_CTL2" },
{ 0x028f, "IA32_MC15_CTL2" },
{ 0x0290, "IA32_MC16_CTL2" },
{ 0x0291, "IA32_MC17_CTL2" },
{ 0x0292, "IA32_MC18_CTL2" },
{ 0x0293, "IA32_MC19_CTL2" },
{ 0x0300, "MSR_SGXOWNEREPOCH0" },
{ 0x0301, "MSR_SGXOWNEREPOCH1" },
{ 0x0410, "IA32_MC4_CTL" },
{ 0x0411, "IA32_MC4_STATUS" },
{ 0x0412, "IA32_MC4_ADDR" },
{ 0x0413, "IA32_MC4_MISC" },
{ 0x0414, "IA32_MC5_CTL" },
{ 0x0415, "IA32_MC5_STATUS" },
{ 0x0416, "IA32_MC5_ADDR" },
{ 0x0417, "IA32_MC5_MISC" },
{ 0x0418, "IA32_MC6_CTL" },
{ 0x0419, "IA32_MC6_STATUS" },
{ 0x041a, "IA32_MC6_ADDR" },
{ 0x041b, "IA32_MC6_MISC" },
{ 0x041c, "IA32_MC7_CTL" },
{ 0x041d, "IA32_MC7_STATUS" },
{ 0x041e, "IA32_MC7_ADDR" },
{ 0x041f, "IA32_MC7_MISC" },
{ 0x0420, "IA32_MC8_CTL" },
{ 0x0421, "IA32_MC8_STATUS" },
{ 0x0422, "IA32_MC8_ADDR" },
{ 0x0423, "IA32_MC8_MISC" },
{ 0x0424, "IA32_MC9_CTL" },
{ 0x0425, "IA32_MC9_STATUS" },
{ 0x0426, "IA32_MC9_ADDR" },
{ 0x0427, "IA32_MC9_MISC" },
{ 0x0428, "IA32_MC10_CTL" },
{ 0x0429, "IA32_MC10_STATUS" },
{ 0x042a, "IA32_MC10_ADDR" },
{ 0x042b, "IA32_MC10_MISC" },
{ 0x042c, "IA32_MC11_CTL" },
{ 0x042d, "IA32_MC11_STATUS" },
{ 0x042e, "IA32_MC11_ADDR" },
{ 0x042f, "IA32_MC11_MISC" },
{ 0x0430, "IA32_MC12_CTL" },
{ 0x0431, "IA32_MC12_STATUS" },
{ 0x0432, "IA32_MC12_ADDR" },
{ 0x0433, "IA32_MC12_MISC" },
{ 0x0434, "IA32_MC13_CTL" },
{ 0x0435, "IA32_MC13_STATUS" },
{ 0x0436, "IA32_MC13_ADDR" },
{ 0x0437, "IA32_MC13_MISC" },
{ 0x0438, "IA32_MC14_CTL" },
{ 0x0439, "IA32_MC14_STATUS" },
{ 0x043a, "IA32_MC14_ADDR" },
{ 0x043b, "IA32_MC14_MISC" },
{ 0x043c, "IA32_MC15_CTL" },
{ 0x043d, "IA32_MC15_STATUS" },
{ 0x043e, "IA32_MC15_ADDR" },
{ 0x043f, "IA32_MC15_MISC" },
{ 0x0440, "IA32_MC16_CTL" },
{ 0x0441, "IA32_MC16_STATUS" },
{ 0x0442, "IA32_MC16_ADDR" },
{ 0x0443, "IA32_MC16_MISC" },
{ 0x0444, "IA32_MC17_CTL" },
{ 0x0445, "IA32_MC17_STATUS" },
{ 0x0446, "IA32_MC17_ADDR" },
{ 0x0447, "IA32_MC17_MISC" },
{ 0x0448, "IA32_MC18_CTL" },
{ 0x0449, "IA32_MC18_STATUS" },
{ 0x044a, "IA32_MC18_ADDR" },
{ 0x044b, "IA32_MC18_MISC" },
{ 0x044c, "IA32_MC19_CTL" },
{ 0x044b, "IA32_MC19_STATUS" },
{ 0x044e, "IA32_MC19_ADDR" },
{ 0x044f, "IA32_MC19_MISC" },
{ 0x0606, "MSR_RAPL_POWER_UNIT" },
{ 0x0618, "MSR_DRAM_POWER_LIMIT" },
{ 0x0619, "MSR_DRAM_ENERGY_STATUS" },
{ 0x061b, "MSR_DRAM_PERF_STATUS" },
{ 0x061c, "MSR_DRAM_POWER_INFO" },
{ 0x0620, "MSR_UNCORE_RATIO_LIMIT" },
{ 0x0639, "MSR_PP0_ENERGY_STATUS" },
{ 0x0638, "MSR_PP0_POWER_LIMIT" },
{ 0x064d, "MSR_PLATFORM_ENERGY_COUNTER" },
{ 0x064f, "MSR_CORE_PERF_LIMIT_REASONS" },
{ 0x0652, "MSR_PKG_HDC_CONFIG" },
{ 0x0655, "MSR_PKG_HDC_SHALLOW_RESIDENCY" },
{ 0x0656, "MSR_PKG_HDC_DEEP_RESIDENCY" },
{ 0x0658, "MSR_WEIGHTED_CORE_C0" },
{ 0x0659, "MSR_ANY_CORE_C0" },
{ 0x065a, "MSR_ANY_GFXE_C0" },
{ 0x065b, "MSR_CORE_GFXE_OVERLAP_C0" },
{ 0x065c, "MSR_PLATFORM_POWER_LIMIT" },
{ 0x06b0, "MSR_GRAPHICS_PERF_LIMIT_REASONS" },
{ 0x06b1, "MSR_RING_PERF_LIMIT_REASONS" },
{ 0x0770, "IA32_PM_ENABLE" },
{ 0x0db0, "IA32_PKG_HDC_CTL" },
{ 0x0c90, "IA32_L3_QOS_MASK_0" },
{ 0x0c91, "IA32_L3_QOS_MASK_1" },
{ 0x0c92, "IA32_L3_QOS_MASK_2" },
{ 0x0c93, "IA32_L3_QOS_MASK_3" },
{ 0x0c94, "IA32_L3_QOS_MASK_4" },
{ 0x0c95, "IA32_L3_QOS_MASK_5" },
{ 0x0c96, "IA32_L3_QOS_MASK_6" },
{ 0x0c97, "IA32_L3_QOS_MASK_7" },
{ 0x0c98, "IA32_L3_QOS_MASK_8" },
{ 0x0c99, "IA32_L3_QOS_MASK_9" },
{ 0x0c9a, "IA32_L3_QOS_MASK_10" },
{ 0x0c9b, "IA32_L3_QOS_MASK_11" },
{ 0x0c9c, "IA32_L3_QOS_MASK_12" },
{ 0x0c9d, "IA32_L3_QOS_MASK_13" },
{ 0x0c9e, "IA32_L3_QOS_MASK_14" },
{ 0x0c9f, "IA32_L3_QOS_MASK_15" },
};
static const msr_entry_t model565x_per_core_msrs[] = {
{ 0x0000, "IA32_P5_MC_ADDR" },
{ 0x0001, "IA32_P5_MC_TYPE" },
{ 0x0006, "IA32_MONITOR_FILTER_SIZE" },
{ 0x0010, "IA32_TIME_STAMP_COUNTER" },
{ 0x0017, "IA32_PLATFORM_ID" },
{ 0x001b, "IA32_APIC_BASE" },
{ 0x0034, "MSR_SMI_COUNT" },
{ 0x003a, "IA32_FEATURE_CONTROL" },
{ 0x008b, "IA32_BIOS_SIGN_ID" },
{ 0x00c1, "IA32_PMC0" },
{ 0x00c2, "IA32_PMC1" },
{ 0x00c3, "IA32_PMC2" },
{ 0x00c4, "IA32_PMC3" },
{ 0x00e2, "MSR_PKG_CST_CONFIG_CONTROL" },
{ 0x00e4, "MSR_PMG_IO_CAPTURE_BASE" },
{ 0x00e7, "IA32_MPERF" },
{ 0x00e8, "IA32_APERF" },
{ 0x00fe, "IA32_MTRRCAP" },
{ 0x013c, "MSR_FEATURE_CONFIG" },
{ 0x0174, "IA32_SYSENTER_CS" },
{ 0x0175, "IA32_SYSENTER_ESP" },
{ 0x0176, "IA32_SYSENTER_EIP" },
{ 0x0179, "IA32_MCG_CAP" },
{ 0x017a, "IA32_MCG_STATUS" },
{ 0x017d, "MSR_SMM_MCA_CAP" },
{ 0x0186, "IA32_PERFEVTSEL0" },
{ 0x0187, "IA32_PERFEVTSEL1" },
{ 0x0188, "IA32_PERFEVTSEL2" },
{ 0x0189, "IA32_PERFEVTSEL3" },
{ 0x019b, "IA32_THERM_INTERRUPT" },
{ 0x0199, "IA32_PERF_CTL" },
{ 0x019a, "IA32_CLOCK_MODULATION" },
{ 0x01a0, "IA32_MISC_ENABLE" },
{ 0x01a4, "IA32_MISC_FEATURE_CONTROL" },
{ 0x01a6, "MSR_OFFCORE_RSP_0" },
{ 0x01a7, "MSR_OFFCORE_RSP_1" },
{ 0x01c8, "MSR_LBR_SELECT" },
{ 0x01c9, "MSR_LASTBRANCH_TOS" },
{ 0x01d9, "IA32_DEBUGCTL" },
{ 0x01dd, "MSR_LER_FROM_LIP" },
{ 0x01de, "MSR_LER_TO_LIP" },
{ 0x01f2, "IA32_SMRR_PHYSBASE" },
{ 0x01f3, "IA32_SMRR_PHYSMASK" },
{ 0x01fc, "MSR_POWER_CTL" },
{ 0x0200, "IA32_MTRR_PHYSBASE0" },
{ 0x0201, "IA32_MTRR_PHYSBASE0" },
{ 0x0202, "IA32_MTRR_PHYSBASE1" },
{ 0x0203, "IA32_MTRR_PHYSBASE1" },
{ 0x0204, "IA32_MTRR_PHYSBASE2" },
{ 0x0205, "IA32_MTRR_PHYSBASE2" },
{ 0x0206, "IA32_MTRR_PHYSBASE3" },
{ 0x0207, "IA32_MTRR_PHYSBASE3" },
{ 0x0208, "IA32_MTRR_PHYSBASE4" },
{ 0x0209, "IA32_MTRR_PHYSBASE4" },
{ 0x020a, "IA32_MTRR_PHYSBASE5" },
{ 0x020b, "IA32_MTRR_PHYSBASE5" },
{ 0x020c, "IA32_MTRR_PHYSBASE6" },
{ 0x020d, "IA32_MTRR_PHYSBASE6" },
{ 0x020e, "IA32_MTRR_PHYSBASE7" },
{ 0x020f, "IA32_MTRR_PHYSBASE7" },
{ 0x0210, "IA32_MTRR_PHYSBASE8" },
{ 0x0211, "IA32_MTRR_PHYSBASE8" },
{ 0x0212, "IA32_MTRR_PHYSBASE9" },
{ 0x0213, "IA32_MTRR_PHYSBASE9" },
{ 0x0250, "IA32_MTRR_FIX64K_00000" },
{ 0x0258, "IA32_MTRR_FIX16K_80000" },
{ 0x0259, "IA32_MTRR_FIX16K_A0000" },
{ 0x0268, "IA32_MTRR_FIX4K_C0000" },
{ 0x0269, "IA32_MTRR_FIX4K_C8000" },
{ 0x026a, "IA32_MTRR_FIX4K_D0000" },
{ 0x026b, "IA32_MTRR_FIX4K_D8000" },
{ 0x026c, "IA32_MTRR_FIX4K_E0000" },
{ 0x026d, "IA32_MTRR_FIX4K_E8000" },
{ 0x026e, "IA32_MTRR_FIX4K_F0000" },
{ 0x026f, "IA32_MTRR_FIX4K_F8000" },
{ 0x0277, "IA32_PAT" },
{ 0x0280, "IA32_MC0_CTL2" },
{ 0x0281, "IA32_MC1_CTL2" },
{ 0x0282, "IA32_MC2_CTL2" },
{ 0x0283, "IA32_MC3_CTL2" },
{ 0x02ff, "IA32_MTRR_DEF_TYPE" },
{ 0x0309, "IA32_FIXED_CTR0" },
{ 0x030a, "IA32_FIXED_CTR1" },
{ 0x030b, "IA32_FIXED_CTR2" },
{ 0x0345, "IA32_PERF_CAPABILITIES" },
{ 0x038d, "IA32_FIXED_CTR_CTRL" },
{ 0x038e, "IA32_PERF_GLOBAL_STATUS" },
{ 0x038f, "IA32_PERF_GLOBAL_CTRL" },
{ 0x0390, "IA32_PERF_GLOBAL_STATUS_RESET" },
{ 0x0391, "IA32_PERF_GLOBAL_STATUS_SET" },
{ 0x0392, "IA32_PERF_GLOBAL_INUSE" },
{ 0x03f1, "MSR_PEBS_ENABLE" },
{ 0x03f6, "MSR_PEBS_LD_LAT" },
{ 0x03f7, "MSR_PEBS_FRONTEND" },
{ 0x03fc, "MSR_CORE_C3_RESIDENCY" },
{ 0x03fd, "MSR_CORE_C6_RESIDENCY" },
{ 0x03fe, "MSR_CORE_C7_RESIDENCY" },
{ 0x0400, "IA32_MC0_CTL" },
{ 0x0401, "IA32_MC0_STATUS" },
{ 0x0402, "IA32_MC0_ADDR" },
{ 0x0403, "IA32_MC0_MISC" },
{ 0x0404, "IA32_MC1_CTL" },
{ 0x0405, "IA32_MC1_STATUS" },
{ 0x0406, "IA32_MC1_ADDR" },
{ 0x0407, "IA32_MC1_MISC" },
{ 0x0408, "IA32_MC2_CTL" },
{ 0x0409, "IA32_MC2_STATUS" },
{ 0x040a, "IA32_MC2_ADDR" },
{ 0x040b, "IA32_MC2_MISC" },
{ 0x040c, "IA32_MC3_CTL" },
{ 0x040d, "IA32_MC3_STATUS" },
{ 0x040e, "IA32_MC3_ADDR" },
{ 0x040f, "IA32_MC3_MISC" },
{ 0x0480, "IA32_VMX_BASIC" },
{ 0x0481, "IA32_VMX_PINBASED_CTLS" },
{ 0x0482, "IA32_VMX_PROCBASED_CTLS" },
{ 0x0483, "IA32_VMX_EXIT_CTLS" },
{ 0x0484, "IA32_VMX_ENTRY_CTLS" },
{ 0x0485, "IA32_VMX_MISC" },
{ 0x0486, "IA32_VMX_CR0_FIXED0" },
{ 0x0487, "IA32_VMX_CR0_FIXED1" },
{ 0x0488, "IA32_VMX_CR4_FIXED0" },
{ 0x0489, "IA32_VMX_CR4_FIXED1" },
{ 0x048a, "IA32_VMX_VMCS_ENUM" },
{ 0x048b, "IA32_VMX_PROCBASED_CTLS2" },
{ 0x048c, "IA32_VMX_EPT_VPID_ENUM" },
{ 0x048d, "IA32_VMX_TRUE_PINBASED_CTLS" },
{ 0x048e, "IA32_VMX_TRUE_PROCBASED_CTLS" },
{ 0x048f, "IA32_VMX_TRUE_EXIT_CTLS" },
{ 0x0490, "IA32_VMX_TRUE_ENTRY_CTLS" },
{ 0x04c1, "IA32_A_PMC0" },
{ 0x04c2, "IA32_A_PMC1" },
{ 0x04c3, "IA32_A_PMC2" },
{ 0x04c4, "IA32_A_PMC3" },
{ 0x04c5, "IA32_A_PMC4" },
{ 0x04c6, "IA32_A_PMC5" },
{ 0x04c7, "IA32_A_PMC6" },
{ 0x04c8, "IA32_A_PMC7" },
{ 0x0500, "IA32_SGX_SVN_STATUS" },
{ 0x0560, "IA32_RTIT_OUTPUT_BASE" },
{ 0x0561, "IA32_RTIT_OUTPUT_MASK_PTRS" },
{ 0x0570, "IA32_RTIT_CTL" },
{ 0x0571, "IA32_RTIT_STATUS" },
{ 0x0572, "IA32_RTIT_CR3_MATCH" },
{ 0x0580, "IA32_RTIT_ADDR0_A" },
{ 0x0581, "IA32_RTIT_ADDR0_B" },
{ 0x0582, "IA32_RTIT_ADDR1_A" },
{ 0x0583, "IA32_RTIT_ADDR1_B" },
{ 0x0600, "IA32_DS_AREA" },
{ 0x064e, "MSR_PPERF" },
{ 0x0653, "MSR_CORE_HDC_RESIDENCY" },
{ 0x0690, "MSR_LASTBRANCH_16_FROM_IP" },
{ 0x0691, "MSR_LASTBRANCH_17_FROM_IP" },
{ 0x0692, "MSR_LASTBRANCH_18_FROM_IP" },
{ 0x0693, "MSR_LASTBRANCH_19_FROM_IP" },
{ 0x0694, "MSR_LASTBRANCH_20_FROM_IP" },
{ 0x0695, "MSR_LASTBRANCH_21_FROM_IP" },
{ 0x0696, "MSR_LASTBRANCH_22_FROM_IP" },
{ 0x0697, "MSR_LASTBRANCH_23_FROM_IP" },
{ 0x0698, "MSR_LASTBRANCH_24_FROM_IP" },
{ 0x0699, "MSR_LASTBRANCH_25_FROM_IP" },
{ 0x069a, "MSR_LASTBRANCH_26_FROM_IP" },
{ 0x069b, "MSR_LASTBRANCH_27_FROM_IP" },
{ 0x069c, "MSR_LASTBRANCH_28_FROM_IP" },
{ 0x069d, "MSR_LASTBRANCH_29_FROM_IP" },
{ 0x069e, "MSR_LASTBRANCH_30_FROM_IP" },
{ 0x069f, "MSR_LASTBRANCH_31_FROM_IP" },
{ 0x06d0, "MSR_LASTBRANCH_16_TO_IP" },
{ 0x06d1, "MSR_LASTBRANCH_17_TO_IP" },
{ 0x06d2, "MSR_LASTBRANCH_18_TO_IP" },
{ 0x06d3, "MSR_LASTBRANCH_19_TO_IP" },
{ 0x06d4, "MSR_LASTBRANCH_20_TO_IP" },
{ 0x06d5, "MSR_LASTBRANCH_21_TO_IP" },
{ 0x06d6, "MSR_LASTBRANCH_22_TO_IP" },
{ 0x06d7, "MSR_LASTBRANCH_23_TO_IP" },
{ 0x06d8, "MSR_LASTBRANCH_24_TO_IP" },
{ 0x06d9, "MSR_LASTBRANCH_25_TO_IP" },
{ 0x06da, "MSR_LASTBRANCH_26_TO_IP" },
{ 0x06db, "MSR_LASTBRANCH_27_TO_IP" },
{ 0x06dc, "MSR_LASTBRANCH_28_TO_IP" },
{ 0x06dd, "MSR_LASTBRANCH_29_TO_IP" },
{ 0x06de, "MSR_LASTBRANCH_30_TO_IP" },
{ 0x06df, "MSR_LASTBRANCH_31_TO_IP" },
{ 0x06e0, "IA32_TSC_DEADLINE" },
{ 0x0771, "IA32_HWP_CAPABILITIES" },
{ 0x0773, "IA32_HWP_INTERRUPT" },
{ 0x0774, "IA32_HWP_REQUEST" },
{ 0x0777, "IA32_HWP_STATUS" },
{ 0x0c8d, "IA32_QM_EVTSEL" },
{ 0x0c8f, "IA32_PQR_ASSOC" },
{ 0x0d90, "IA32_BNDCFGS" },
{ 0x0da0, "IA32_XSS" },
{ 0x0db1, "IA32_PM_CTL1" },
{ 0x0db2, "IA32_THREAD_STALL" },
{ 0x0dc0, "MSR_LBR_INFO_0" },
{ 0x0dc1, "MSR_LBR_INFO_1" },
{ 0x0dc2, "MSR_LBR_INFO_2" },
{ 0x0dc3, "MSR_LBR_INFO_3" },
{ 0x0dc4, "MSR_LBR_INFO_4" },
{ 0x0dc5, "MSR_LBR_INFO_5" },
{ 0x0dc6, "MSR_LBR_INFO_6" },
{ 0x0dc7, "MSR_LBR_INFO_7" },
{ 0x0dc8, "MSR_LBR_INFO_8" },
{ 0x0dc9, "MSR_LBR_INFO_9" },
{ 0x0dca, "MSR_LBR_INFO_10" },
{ 0x0dcb, "MSR_LBR_INFO_11" },
{ 0x0dcc, "MSR_LBR_INFO_12" },
{ 0x0dcd, "MSR_LBR_INFO_13" },
{ 0x0dce, "MSR_LBR_INFO_14" },
{ 0x0dcf, "MSR_LBR_INFO_15" },
{ 0x0dd0, "MSR_LBR_INFO_16" },
{ 0x0dd1, "MSR_LBR_INFO_17" },
{ 0x0dd2, "MSR_LBR_INFO_18" },
{ 0x0dd3, "MSR_LBR_INFO_19" },
{ 0x0dd4, "MSR_LBR_INFO_20" },
{ 0x0dd5, "MSR_LBR_INFO_21" },
{ 0x0dd6, "MSR_LBR_INFO_22" },
{ 0x0dd7, "MSR_LBR_INFO_23" },
{ 0x0dd8, "MSR_LBR_INFO_24" },
{ 0x0dd9, "MSR_LBR_INFO_25" },
{ 0x0ddA, "MSR_LBR_INFO_26" },
{ 0x0ddB, "MSR_LBR_INFO_27" },
{ 0x0ddc, "MSR_LBR_INFO_28" },
{ 0x0ddd, "MSR_LBR_INFO_29" },
{ 0x0dde, "MSR_LBR_INFO_30" },
{ 0x0ddf, "MSR_LBR_INFO_31" },
};
typedef struct {
unsigned int model;
const msr_entry_t *global_msrs;
@ -1832,6 +2210,7 @@ int print_intel_core_msrs(void)
{ 0x106c0, model6_atom_global_msrs, ARRAY_SIZE(model6_atom_global_msrs), model6_atom_per_core_msrs, ARRAY_SIZE(model6_atom_per_core_msrs) },
{ 0x20650, model20650_global_msrs, ARRAY_SIZE(model20650_global_msrs), model20650_per_core_msrs, ARRAY_SIZE(model20650_per_core_msrs) },
{ 0x906e0, model96ex_global_msrs, ARRAY_SIZE(model96ex_global_msrs), model96ex_per_core_msrs, ARRAY_SIZE(model96ex_per_core_msrs) },
{ 0x50650, model565x_global_msrs, ARRAY_SIZE(model565x_global_msrs), model565x_per_core_msrs, ARRAY_SIZE(model565x_per_core_msrs) },
{ CPUID_BAYTRAIL, silvermont_global_msrs, ARRAY_SIZE(silvermont_global_msrs), silvermont_per_core_msrs, ARRAY_SIZE(silvermont_per_core_msrs) }, /* Baytrail */
@ -1875,7 +2254,7 @@ int print_intel_core_msrs(void)
close(fd_msr);
for (core = 0; core < 8; core++) {
for (core = 0; core < core_num; core++) {
#ifndef __DARWIN__
char msrfilename[64];
memset(msrfilename, 0, 64);