18#ifndef __XEON_PHI_MSR_H__
19#define __XEON_PHI_MSR_H__
32#define IS_XEON_PHI_PROCESSOR(DisplayFamily, DisplayModel) \
33 (DisplayFamily == 0x06 && \
35 DisplayModel == 0x57 || \
36 DisplayModel == 0x85 \
57#define MSR_XEON_PHI_SMI_COUNT 0x00000034
100#define MSR_XEON_PHI_PPIN_CTL 0x0000004E
128 UINT32 Reserved1 : 30;
129 UINT32 Reserved2 : 32;
160#define MSR_XEON_PHI_PPIN 0x0000004F
181#define MSR_XEON_PHI_PLATFORM_INFO 0x000000CE
191 UINT32 Reserved1 : 8;
198 UINT32 Reserved2 : 12;
213 UINT32 Reserved3 : 2;
214 UINT32 Reserved4 : 8;
221 UINT32 Reserved5 : 16;
247#define MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL 0x000000E2
263 UINT32 Reserved1 : 7;
268 UINT32 Reserved2 : 4;
273 UINT32 Reserved5 : 10;
280 UINT32 Reserved6 : 1;
291 UINT32 Reserved7 : 2;
292 UINT32 Reserved4 : 32;
322#define MSR_XEON_PHI_PMG_IO_CAPTURE_BASE 0x000000E4
342 UINT32 Reserved3 : 9;
343 UINT32 Reserved2 : 32;
374#define MSR_XEON_PHI_FEATURE_CONFIG 0x0000013C
394 UINT32 Reserved1 : 30;
395 UINT32 Reserved2 : 32;
424#define MSR_XEON_PHI_MISC_FEATURE_ENABLES 0x00000140
434 UINT32 Reserved1 : 1;
444 UINT32 Reserved2 : 30;
445 UINT32 Reserved3 : 32;
476#define MSR_XEON_PHI_SMM_MCA_CAP 0x0000017D
492 UINT32 Reserved4 : 24;
514 UINT32 Reserved3 : 4;
541#define MSR_XEON_PHI_IA32_MISC_ENABLE 0x000001A0
555 UINT32 Reserved1 : 2;
561 UINT32 Reserved2 : 3;
566 UINT32 Reserved3 : 3;
575 UINT32 Reserved4 : 3;
580 UINT32 Reserved5 : 1;
585 UINT32 Reserved6 : 3;
594 UINT32 Reserved7 : 8;
595 UINT32 Reserved8 : 2;
600 UINT32 Reserved9 : 3;
605 UINT32 Reserved10 : 25;
631#define MSR_XEON_PHI_TEMPERATURE_TARGET 0x000001A2
641 UINT32 Reserved1 : 16;
650 UINT32 Reserved2 : 2;
651 UINT32 Reserved3 : 32;
681#define MSR_XEON_PHI_MISC_FEATURE_CONTROL 0x000001A4
701 UINT32 Reserved1 : 30;
702 UINT32 Reserved2 : 32;
730#define MSR_XEON_PHI_OFFCORE_RSP_0 0x000001A6
748#define MSR_XEON_PHI_OFFCORE_RSP_1 0x000001A7
768#define MSR_XEON_PHI_TURBO_RATIO_LIMIT 0x000001AD
892#define MSR_XEON_PHI_LBR_SELECT 0x000001C8
938 UINT32 Reserved1 : 23;
939 UINT32 Reserved2 : 32;
967#define MSR_XEON_PHI_LASTBRANCH_TOS 0x000001C9
984#define MSR_XEON_PHI_LER_FROM_LIP 0x000001DD
1001#define MSR_XEON_PHI_LER_TO_LIP 0x000001DE
1019#define MSR_XEON_PHI_PEBS_ENABLE 0x000003F1
1039#define MSR_XEON_PHI_PKG_C3_RESIDENCY 0x000003F8
1057#define MSR_XEON_PHI_PKG_C6_RESIDENCY 0x000003F9
1075#define MSR_XEON_PHI_PKG_C7_RESIDENCY 0x000003FA
1095#define MSR_XEON_PHI_MC0_RESIDENCY 0x000003FC
1113#define MSR_XEON_PHI_MC6_RESIDENCY 0x000003FD
1133#define MSR_XEON_PHI_CORE_C6_RESIDENCY 0x000003FF
1150#define MSR_XEON_PHI_IA32_VMX_EPT_VPID_ENUM 0x0000048C
1168#define MSR_XEON_PHI_IA32_VMX_FMFUNC 0x00000491
1187#define MSR_XEON_PHI_RAPL_POWER_UNIT 0x00000606
1201 UINT32 Reserved1 : 4;
1209 UINT32 Reserved2 : 3;
1215 UINT32 Reserved3 : 12;
1216 UINT32 Reserved4 : 32;
1246#define MSR_XEON_PHI_PKG_C2_RESIDENCY 0x0000060D
1265#define MSR_XEON_PHI_PKG_POWER_LIMIT 0x00000610
1282#define MSR_XEON_PHI_PKG_ENERGY_STATUS 0x00000611
1299#define MSR_XEON_PHI_PKG_PERF_STATUS 0x00000613
1318#define MSR_XEON_PHI_PKG_POWER_INFO 0x00000614
1337#define MSR_XEON_PHI_DRAM_POWER_LIMIT 0x00000618
1354#define MSR_XEON_PHI_DRAM_ENERGY_STATUS 0x00000619
1372#define MSR_XEON_PHI_DRAM_PERF_STATUS 0x0000061B
1390#define MSR_XEON_PHI_DRAM_POWER_INFO 0x0000061C
1412#define MSR_XEON_PHI_MSRUNCORE_RATIO_LIMIT 0x00000620
1427 UINT32 Reserved1 : 1;
1433 UINT32 Reserved2 : 17;
1434 UINT32 Reserved3 : 32;
1463#define MSR_XEON_PHI_PP0_POWER_LIMIT 0x00000638
1481#define MSR_XEON_PHI_PP0_ENERGY_STATUS 0x00000639
1498#define MSR_XEON_PHI_CONFIG_TDP_NOMINAL 0x00000648
1515#define MSR_XEON_PHI_CONFIG_TDP_LEVEL1 0x00000649
1532#define MSR_XEON_PHI_CONFIG_TDP_LEVEL2 0x0000064A
1550#define MSR_XEON_PHI_CONFIG_TDP_CONTROL 0x0000064B
1568#define MSR_XEON_PHI_TURBO_ACTIVATION_RATIO 0x0000064C
1589#define MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS 0x00000690
1607 UINT32 Reserved1 : 4;
1612 UINT32 Reserved2 : 1;
1617 UINT32 Reserved3 : 23;
1618 UINT32 Reserved4 : 32;
UINT32 VRThermAlertStatus
UINT32 ElectricalDesignPointStatus
UINT32 AutomaticThermalControlCircuit
UINT32 xTPR_Message_Disable
UINT32 PerformanceMonitoring
UINT32 L2HardwarePrefetcherDisable
UINT32 DCUHardwarePrefetcherDisable
UINT32 UserModeMonitorAndMwait
UINT32 C1StateAutoUndemotionEnable
UINT32 PKGC_StateAutoDemotionEnable
UINT32 C1StateAutoDemotionEnable
UINT32 MaximumNonTurboRatio
UINT32 MaximumEfficiencyRatio
UINT32 SMM_Code_Access_Chk
UINT32 Long_Flow_Indication
UINT32 MaxIncrementalCoresGroup2
UINT32 MaxIncrementalCoresGroup3
UINT32 MaxRatioLimitGroup0
UINT32 MaxIncrementalCoresGroup5
UINT32 MaxIncrementalCoresGroup1
UINT32 MaxIncrementalCoresGroup4
UINT32 MaxIncrementalCoresGroup6