TianoCore EDK2 master
Loading...
Searching...
No Matches
XeonDMsr.h
Go to the documentation of this file.
1
18#ifndef __XEON_D_MSR_H__
19#define __XEON_D_MSR_H__
20
22
32#define IS_XEON_D_PROCESSOR(DisplayFamily, DisplayModel) \
33 (DisplayFamily == 0x06 && \
34 ( \
35 DisplayModel == 0x4F || \
36 DisplayModel == 0x56 \
37 ) \
38 )
39
58#define MSR_XEON_D_PPIN_CTL 0x0000004E
59
63typedef union {
67 struct {
71 UINT32 LockOut : 1;
75 UINT32 Enable_PPIN : 1;
76 UINT32 Reserved1 : 30;
77 UINT32 Reserved2 : 32;
78 } Bits;
82 UINT32 Uint32;
86 UINT64 Uint64;
88
105#define MSR_XEON_D_PPIN 0x0000004F
106
125#define MSR_XEON_D_PLATFORM_INFO 0x000000CE
126
130typedef union {
134 struct {
135 UINT32 Reserved1 : 8;
140 UINT32 Reserved2 : 7;
144 UINT32 PPIN_CAP : 1;
145 UINT32 Reserved3 : 4;
150 UINT32 RatioLimit : 1;
155 UINT32 TDPLimit : 1;
159 UINT32 TJOFFSET : 1;
160 UINT32 Reserved4 : 1;
161 UINT32 Reserved5 : 8;
166 UINT32 Reserved6 : 16;
167 } Bits;
171 UINT64 Uint64;
173
194#define MSR_XEON_D_PKG_CST_CONFIG_CONTROL 0x000000E2
195
199typedef union {
203 struct {
213 UINT32 Limit : 3;
214 UINT32 Reserved1 : 7;
218 UINT32 IO_MWAIT : 1;
219 UINT32 Reserved2 : 4;
223 UINT32 CFGLock : 1;
229 UINT32 Reserved3 : 8;
233 UINT32 C3AutoDemotion : 1;
237 UINT32 C1AutoDemotion : 1;
241 UINT32 C3Undemotion : 1;
245 UINT32 C1Undemotion : 1;
249 UINT32 CStateDemotion : 1;
254 UINT32 Reserved4 : 1;
255 UINT32 Reserved5 : 32;
256 } Bits;
260 UINT32 Uint32;
264 UINT64 Uint64;
266
284#define MSR_XEON_D_IA32_MCG_CAP 0x00000179
285
289typedef union {
293 struct {
297 UINT32 Count : 8;
301 UINT32 MCG_CTL_P : 1;
305 UINT32 MCG_EXT_P : 1;
309 UINT32 MCP_CMCI_P : 1;
313 UINT32 MCG_TES_P : 1;
314 UINT32 Reserved1 : 4;
318 UINT32 MCG_EXT_CNT : 8;
322 UINT32 MCG_SER_P : 1;
326 UINT32 MCG_EM_P : 1;
330 UINT32 MCG_ELOG_P : 1;
331 UINT32 Reserved2 : 5;
332 UINT32 Reserved3 : 32;
333 } Bits;
337 UINT32 Uint32;
341 UINT64 Uint64;
343
363#define MSR_XEON_D_SMM_MCA_CAP 0x0000017D
364
368typedef union {
372 struct {
373 UINT32 Reserved1 : 32;
374 UINT32 Reserved2 : 26;
387 UINT32 Reserved3 : 4;
388 } Bits;
392 UINT64 Uint64;
394
413#define MSR_XEON_D_TEMPERATURE_TARGET 0x000001A2
414
418typedef union {
422 struct {
423 UINT32 Reserved1 : 16;
432 UINT32 Reserved2 : 4;
433 UINT32 Reserved3 : 32;
434 } Bits;
438 UINT32 Uint32;
442 UINT64 Uint64;
444
463#define MSR_XEON_D_TURBO_RATIO_LIMIT 0x000001AD
464
468typedef union {
472 struct {
476 UINT32 Maximum1C : 8;
480 UINT32 Maximum2C : 8;
484 UINT32 Maximum3C : 8;
488 UINT32 Maximum4C : 8;
492 UINT32 Maximum5C : 8;
496 UINT32 Maximum6C : 8;
500 UINT32 Maximum7C : 8;
504 UINT32 Maximum8C : 8;
505 } Bits;
509 UINT64 Uint64;
511
530#define MSR_XEON_D_TURBO_RATIO_LIMIT1 0x000001AE
531
535typedef union {
539 struct {
543 UINT32 Maximum9C : 8;
547 UINT32 Maximum10C : 8;
551 UINT32 Maximum11C : 8;
555 UINT32 Maximum12C : 8;
559 UINT32 Maximum13C : 8;
563 UINT32 Maximum14C : 8;
567 UINT32 Maximum15C : 8;
571 UINT32 Maximum16C : 8;
572 } Bits;
576 UINT64 Uint64;
578
596#define MSR_XEON_D_RAPL_POWER_UNIT 0x00000606
597
601typedef union {
605 struct {
609 UINT32 PowerUnits : 4;
610 UINT32 Reserved1 : 4;
618 UINT32 Reserved2 : 3;
623 UINT32 TimeUnits : 4;
624 UINT32 Reserved3 : 12;
625 UINT32 Reserved4 : 32;
626 } Bits;
630 UINT32 Uint32;
634 UINT64 Uint64;
636
654#define MSR_XEON_D_DRAM_POWER_LIMIT 0x00000618
655
673#define MSR_XEON_D_DRAM_ENERGY_STATUS 0x00000619
674
678typedef union {
682 struct {
687 UINT32 Energy : 32;
688 UINT32 Reserved : 32;
689 } Bits;
693 UINT32 Uint32;
697 UINT64 Uint64;
699
716#define MSR_XEON_D_DRAM_PERF_STATUS 0x0000061B
717
734#define MSR_XEON_D_DRAM_POWER_INFO 0x0000061C
735
756#define MSR_XEON_D_MSRUNCORE_RATIO_LIMIT 0x00000620
757
761typedef union {
765 struct {
770 UINT32 MAX_RATIO : 7;
771 UINT32 Reserved1 : 1;
776 UINT32 MIN_RATIO : 7;
777 UINT32 Reserved2 : 17;
778 UINT32 Reserved3 : 32;
779 } Bits;
783 UINT32 Uint32;
787 UINT64 Uint64;
789
805#define MSR_XEON_D_PP0_ENERGY_STATUS 0x00000639
806
826#define MSR_XEON_D_CORE_PERF_LIMIT_REASONS 0x00000690
827
831typedef union {
835 struct {
841 UINT32 PROCHOT_Status : 1;
846 UINT32 ThermalStatus : 1;
858 UINT32 Reserved1 : 1;
871 UINT32 Reserved2 : 1;
878 UINT32 Reserved3 : 1;
884 UINT32 Reserved4 : 2;
905 UINT32 PROCHOT_Log : 1;
911 UINT32 ThermalLog : 1;
924 UINT32 Reserved5 : 1;
937 UINT32 VRThermAlertLog : 1;
938 UINT32 Reserved6 : 1;
945 UINT32 Reserved7 : 1;
952 UINT32 Reserved8 : 2;
974 UINT32 Reserved9 : 32;
975 } Bits;
979 UINT32 Uint32;
983 UINT64 Uint64;
985
1005#define MSR_XEON_D_IA32_QM_EVTSEL 0x00000C8D
1006
1010typedef union {
1014 struct {
1020 UINT32 EventID : 8;
1021 UINT32 Reserved1 : 24;
1025 UINT32 RMID : 10;
1026 UINT32 Reserved2 : 22;
1027 } Bits;
1031 UINT64 Uint64;
1033
1052#define MSR_XEON_D_IA32_PQR_ASSOC 0x00000C8F
1053
1057typedef union {
1061 struct {
1065 UINT32 RMID : 10;
1066 UINT32 Reserved1 : 22;
1070 UINT32 COS : 20;
1071 UINT32 Reserved2 : 12;
1072 } Bits;
1076 UINT64 Uint64;
1078
1114#define MSR_XEON_D_IA32_L3_QOS_MASK_0 0x00000C90
1115#define MSR_XEON_D_IA32_L3_QOS_MASK_1 0x00000C91
1116#define MSR_XEON_D_IA32_L3_QOS_MASK_2 0x00000C92
1117#define MSR_XEON_D_IA32_L3_QOS_MASK_3 0x00000C93
1118#define MSR_XEON_D_IA32_L3_QOS_MASK_4 0x00000C94
1119#define MSR_XEON_D_IA32_L3_QOS_MASK_5 0x00000C95
1120#define MSR_XEON_D_IA32_L3_QOS_MASK_6 0x00000C96
1121#define MSR_XEON_D_IA32_L3_QOS_MASK_7 0x00000C97
1122#define MSR_XEON_D_IA32_L3_QOS_MASK_8 0x00000C98
1123#define MSR_XEON_D_IA32_L3_QOS_MASK_9 0x00000C99
1124#define MSR_XEON_D_IA32_L3_QOS_MASK_10 0x00000C9A
1125#define MSR_XEON_D_IA32_L3_QOS_MASK_11 0x00000C9B
1126#define MSR_XEON_D_IA32_L3_QOS_MASK_12 0x00000C9C
1127#define MSR_XEON_D_IA32_L3_QOS_MASK_13 0x00000C9D
1128#define MSR_XEON_D_IA32_L3_QOS_MASK_14 0x00000C9E
1129#define MSR_XEON_D_IA32_L3_QOS_MASK_15 0x00000C9F
1131
1136typedef union {
1140 struct {
1144 UINT32 CBM : 20;
1145 UINT32 Reserved2 : 12;
1146 UINT32 Reserved3 : 32;
1147 } Bits;
1151 UINT32 Uint32;
1155 UINT64 Uint64;
1157
1176#define MSR_XEON_D_TURBO_RATIO_LIMIT3 0x000001AC
1177
1181typedef union {
1185 struct {
1186 UINT32 Reserved1 : 32;
1187 UINT32 Reserved2 : 31;
1195 } Bits;
1199 UINT64 Uint64;
1201
1220#define MSR_XEON_D_IA32_L3_QOS_CFG 0x00000C81
1221
1225typedef union {
1229 struct {
1233 UINT32 CAT : 1;
1234 UINT32 Reserved1 : 31;
1235 UINT32 Reserved2 : 32;
1236 } Bits;
1240 UINT32 Uint32;
1244 UINT64 Uint64;
1246
1247#endif