]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/XeonDMsr.h
UefiCpuPkg/Msr: Add CPUID signature check MACROs
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / XeonDMsr.h
1 /** @file
2 MSR Definitions for Intel(R) Xeon(R) Processor D product Family.
3
4 Provides defines for Machine Specific Registers(MSR) indexes. Data structures
5 are provided for MSRs that contain one or more bit fields. If the MSR value
6 returned is a single 32-bit or 64-bit value, then a data structure is not
7 provided for that MSR.
8
9 Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
14
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 September 2016, Chapter 35 Model-Specific-Registers (MSR), Section 35.14.
21
22 **/
23
24 #ifndef __XEON_D_MSR_H__
25 #define __XEON_D_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Is Intel(R) Xeon(R) Processor D product Family?
31
32 @param DisplayFamily Display Family ID
33 @param DisplayModel Display Model ID
34
35 @retval TRUE Yes, it is.
36 @retval FALSE No, it isn't.
37 **/
38 #define IS_XEON_D_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
40 ( \
41 DisplayModel == 0x4F || \
42 DisplayModel == 0x56 \
43 ) \
44 )
45
46 /**
47 Package. Protected Processor Inventory Number Enable Control (R/W).
48
49 @param ECX MSR_XEON_D_PPIN_CTL (0x0000004E)
50 @param EAX Lower 32-bits of MSR value.
51 Described by the type MSR_XEON_D_PPIN_CTL_REGISTER.
52 @param EDX Upper 32-bits of MSR value.
53 Described by the type MSR_XEON_D_PPIN_CTL_REGISTER.
54
55 <b>Example usage</b>
56 @code
57 MSR_XEON_D_PPIN_CTL_REGISTER Msr;
58
59 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PPIN_CTL);
60 AsmWriteMsr64 (MSR_XEON_D_PPIN_CTL, Msr.Uint64);
61 @endcode
62 @note MSR_XEON_D_PPIN_CTL is defined as MSR_PPIN_CTL in SDM.
63 **/
64 #define MSR_XEON_D_PPIN_CTL 0x0000004E
65
66 /**
67 MSR information returned for MSR index #MSR_XEON_D_PPIN_CTL
68 **/
69 typedef union {
70 ///
71 /// Individual bit fields
72 ///
73 struct {
74 ///
75 /// [Bit 0] LockOut (R/WO) See Table 35-24.
76 ///
77 UINT32 LockOut:1;
78 ///
79 /// [Bit 1] Enable_PPIN (R/W) See Table 35-24.
80 ///
81 UINT32 Enable_PPIN:1;
82 UINT32 Reserved1:30;
83 UINT32 Reserved2:32;
84 } Bits;
85 ///
86 /// All bit fields as a 32-bit value
87 ///
88 UINT32 Uint32;
89 ///
90 /// All bit fields as a 64-bit value
91 ///
92 UINT64 Uint64;
93 } MSR_XEON_D_PPIN_CTL_REGISTER;
94
95
96 /**
97 Package. Protected Processor Inventory Number (R/O). Protected Processor
98 Inventory Number (R/O) See Table 35-24.
99
100 @param ECX MSR_XEON_D_PPIN (0x0000004F)
101 @param EAX Lower 32-bits of MSR value.
102 @param EDX Upper 32-bits of MSR value.
103
104 <b>Example usage</b>
105 @code
106 UINT64 Msr;
107
108 Msr = AsmReadMsr64 (MSR_XEON_D_PPIN);
109 @endcode
110 @note MSR_XEON_D_PPIN is defined as MSR_PPIN in SDM.
111 **/
112 #define MSR_XEON_D_PPIN 0x0000004F
113
114
115 /**
116 Package. See http://biosbits.org.
117
118 @param ECX MSR_XEON_D_PLATFORM_INFO (0x000000CE)
119 @param EAX Lower 32-bits of MSR value.
120 Described by the type MSR_XEON_D_PLATFORM_INFO_REGISTER.
121 @param EDX Upper 32-bits of MSR value.
122 Described by the type MSR_XEON_D_PLATFORM_INFO_REGISTER.
123
124 <b>Example usage</b>
125 @code
126 MSR_XEON_D_PLATFORM_INFO_REGISTER Msr;
127
128 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PLATFORM_INFO);
129 AsmWriteMsr64 (MSR_XEON_D_PLATFORM_INFO, Msr.Uint64);
130 @endcode
131 @note MSR_XEON_D_PLATFORM_INFO is defined as MSR_PLATFORM_INFO in SDM.
132 **/
133 #define MSR_XEON_D_PLATFORM_INFO 0x000000CE
134
135 /**
136 MSR information returned for MSR index #MSR_XEON_D_PLATFORM_INFO
137 **/
138 typedef union {
139 ///
140 /// Individual bit fields
141 ///
142 struct {
143 UINT32 Reserved1:8;
144 ///
145 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) See Table 35-24.
146 ///
147 UINT32 MaximumNonTurboRatio:8;
148 UINT32 Reserved2:7;
149 ///
150 /// [Bit 23] Package. PPIN_CAP (R/O) See Table 35-24.
151 ///
152 UINT32 PPIN_CAP:1;
153 UINT32 Reserved3:4;
154 ///
155 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) See
156 /// Table 35-24.
157 ///
158 UINT32 RatioLimit:1;
159 ///
160 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) See
161 /// Table 35-24.
162 ///
163 UINT32 TDPLimit:1;
164 ///
165 /// [Bit 30] Package. Programmable TJ OFFSET (R/O) See Table 35-24.
166 ///
167 UINT32 TJOFFSET:1;
168 UINT32 Reserved4:1;
169 UINT32 Reserved5:8;
170 ///
171 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) See Table 35-24.
172 ///
173 UINT32 MaximumEfficiencyRatio:8;
174 UINT32 Reserved6:16;
175 } Bits;
176 ///
177 /// All bit fields as a 64-bit value
178 ///
179 UINT64 Uint64;
180 } MSR_XEON_D_PLATFORM_INFO_REGISTER;
181
182
183 /**
184 Core. C-State Configuration Control (R/W) Note: C-state values are processor
185 specific C-state code names, unrelated to MWAIT extension C-state parameters
186 or ACPI C-states. `See http://biosbits.org. <http://biosbits.org>`__.
187
188 @param ECX MSR_XEON_D_PKG_CST_CONFIG_CONTROL (0x000000E2)
189 @param EAX Lower 32-bits of MSR value.
190 Described by the type MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER.
191 @param EDX Upper 32-bits of MSR value.
192 Described by the type MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER.
193
194 <b>Example usage</b>
195 @code
196 MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
197
198 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PKG_CST_CONFIG_CONTROL);
199 AsmWriteMsr64 (MSR_XEON_D_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
200 @endcode
201 @note MSR_XEON_D_PKG_CST_CONFIG_CONTROL is defined as MSR_PKG_CST_CONFIG_CONTROL in SDM.
202 **/
203 #define MSR_XEON_D_PKG_CST_CONFIG_CONTROL 0x000000E2
204
205 /**
206 MSR information returned for MSR index #MSR_XEON_D_PKG_CST_CONFIG_CONTROL
207 **/
208 typedef union {
209 ///
210 /// Individual bit fields
211 ///
212 struct {
213 ///
214 /// [Bits 2:0] Package C-State Limit (R/W) Specifies the lowest
215 /// processor-specific C-state code name (consuming the least power) for
216 /// the package. The default is set as factory-configured package C-state
217 /// limit. The following C-state code name encodings are supported: 000b:
218 /// C0/C1 (no package C-state support) 001b: C2 010b: C6 (non-retention)
219 /// 011b: C6 (retention) 111b: No Package C state limits. All C states
220 /// supported by the processor are available.
221 ///
222 UINT32 Limit:3;
223 UINT32 Reserved1:7;
224 ///
225 /// [Bit 10] I/O MWAIT Redirection Enable (R/W).
226 ///
227 UINT32 IO_MWAIT:1;
228 UINT32 Reserved2:4;
229 ///
230 /// [Bit 15] CFG Lock (R/WO).
231 ///
232 UINT32 CFGLock:1;
233 ///
234 /// [Bit 16] Automatic C-State Conversion Enable (R/W) If 1, the processor
235 /// will convert HALT or MWAT(C1) to MWAIT(C6).
236 ///
237 UINT32 CStateConversion:1;
238 UINT32 Reserved3:8;
239 ///
240 /// [Bit 25] C3 State Auto Demotion Enable (R/W).
241 ///
242 UINT32 C3AutoDemotion:1;
243 ///
244 /// [Bit 26] C1 State Auto Demotion Enable (R/W).
245 ///
246 UINT32 C1AutoDemotion:1;
247 ///
248 /// [Bit 27] Enable C3 Undemotion (R/W).
249 ///
250 UINT32 C3Undemotion:1;
251 ///
252 /// [Bit 28] Enable C1 Undemotion (R/W).
253 ///
254 UINT32 C1Undemotion:1;
255 ///
256 /// [Bit 29] Package C State Demotion Enable (R/W).
257 ///
258 UINT32 CStateDemotion:1;
259 ///
260 /// [Bit 30] Package C State UnDemotion Enable (R/W).
261 ///
262 UINT32 CStateUndemotion:1;
263 UINT32 Reserved4:1;
264 UINT32 Reserved5:32;
265 } Bits;
266 ///
267 /// All bit fields as a 32-bit value
268 ///
269 UINT32 Uint32;
270 ///
271 /// All bit fields as a 64-bit value
272 ///
273 UINT64 Uint64;
274 } MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER;
275
276
277 /**
278 Thread. Global Machine Check Capability (R/O).
279
280 @param ECX MSR_XEON_D_IA32_MCG_CAP (0x00000179)
281 @param EAX Lower 32-bits of MSR value.
282 Described by the type MSR_XEON_D_IA32_MCG_CAP_REGISTER.
283 @param EDX Upper 32-bits of MSR value.
284 Described by the type MSR_XEON_D_IA32_MCG_CAP_REGISTER.
285
286 <b>Example usage</b>
287 @code
288 MSR_XEON_D_IA32_MCG_CAP_REGISTER Msr;
289
290 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_MCG_CAP);
291 @endcode
292 @note MSR_XEON_D_IA32_MCG_CAP is defined as IA32_MCG_CAP in SDM.
293 **/
294 #define MSR_XEON_D_IA32_MCG_CAP 0x00000179
295
296 /**
297 MSR information returned for MSR index #MSR_XEON_D_IA32_MCG_CAP
298 **/
299 typedef union {
300 ///
301 /// Individual bit fields
302 ///
303 struct {
304 ///
305 /// [Bits 7:0] Count.
306 ///
307 UINT32 Count:8;
308 ///
309 /// [Bit 8] MCG_CTL_P.
310 ///
311 UINT32 MCG_CTL_P:1;
312 ///
313 /// [Bit 9] MCG_EXT_P.
314 ///
315 UINT32 MCG_EXT_P:1;
316 ///
317 /// [Bit 10] MCP_CMCI_P.
318 ///
319 UINT32 MCP_CMCI_P:1;
320 ///
321 /// [Bit 11] MCG_TES_P.
322 ///
323 UINT32 MCG_TES_P:1;
324 UINT32 Reserved1:4;
325 ///
326 /// [Bits 23:16] MCG_EXT_CNT.
327 ///
328 UINT32 MCG_EXT_CNT:8;
329 ///
330 /// [Bit 24] MCG_SER_P.
331 ///
332 UINT32 MCG_SER_P:1;
333 ///
334 /// [Bit 25] MCG_EM_P.
335 ///
336 UINT32 MCG_EM_P:1;
337 ///
338 /// [Bit 26] MCG_ELOG_P.
339 ///
340 UINT32 MCG_ELOG_P:1;
341 UINT32 Reserved2:5;
342 UINT32 Reserved3:32;
343 } Bits;
344 ///
345 /// All bit fields as a 32-bit value
346 ///
347 UINT32 Uint32;
348 ///
349 /// All bit fields as a 64-bit value
350 ///
351 UINT64 Uint64;
352 } MSR_XEON_D_IA32_MCG_CAP_REGISTER;
353
354
355 /**
356 THREAD. Enhanced SMM Capabilities (SMM-RO) Reports SMM capability
357 Enhancement. Accessible only while in SMM.
358
359 @param ECX MSR_XEON_D_SMM_MCA_CAP (0x0000017D)
360 @param EAX Lower 32-bits of MSR value.
361 Described by the type MSR_XEON_D_SMM_MCA_CAP_REGISTER.
362 @param EDX Upper 32-bits of MSR value.
363 Described by the type MSR_XEON_D_SMM_MCA_CAP_REGISTER.
364
365 <b>Example usage</b>
366 @code
367 MSR_XEON_D_SMM_MCA_CAP_REGISTER Msr;
368
369 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_SMM_MCA_CAP);
370 AsmWriteMsr64 (MSR_XEON_D_SMM_MCA_CAP, Msr.Uint64);
371 @endcode
372 @note MSR_XEON_D_SMM_MCA_CAP is defined as MSR_SMM_MCA_CAP in SDM.
373 **/
374 #define MSR_XEON_D_SMM_MCA_CAP 0x0000017D
375
376 /**
377 MSR information returned for MSR index #MSR_XEON_D_SMM_MCA_CAP
378 **/
379 typedef union {
380 ///
381 /// Individual bit fields
382 ///
383 struct {
384 UINT32 Reserved1:32;
385 UINT32 Reserved2:26;
386 ///
387 /// [Bit 58] SMM_Code_Access_Chk (SMM-RO) If set to 1 indicates that the
388 /// SMM code access restriction is supported and a host-space interface
389 /// available to SMM handler.
390 ///
391 UINT32 SMM_Code_Access_Chk:1;
392 ///
393 /// [Bit 59] Long_Flow_Indication (SMM-RO) If set to 1 indicates that the
394 /// SMM long flow indicator is supported and a host-space interface
395 /// available to SMM handler.
396 ///
397 UINT32 Long_Flow_Indication:1;
398 UINT32 Reserved3:4;
399 } Bits;
400 ///
401 /// All bit fields as a 64-bit value
402 ///
403 UINT64 Uint64;
404 } MSR_XEON_D_SMM_MCA_CAP_REGISTER;
405
406
407 /**
408 Package.
409
410 @param ECX MSR_XEON_D_TEMPERATURE_TARGET (0x000001A2)
411 @param EAX Lower 32-bits of MSR value.
412 Described by the type MSR_XEON_D_TEMPERATURE_TARGET_REGISTER.
413 @param EDX Upper 32-bits of MSR value.
414 Described by the type MSR_XEON_D_TEMPERATURE_TARGET_REGISTER.
415
416 <b>Example usage</b>
417 @code
418 MSR_XEON_D_TEMPERATURE_TARGET_REGISTER Msr;
419
420 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TEMPERATURE_TARGET);
421 AsmWriteMsr64 (MSR_XEON_D_TEMPERATURE_TARGET, Msr.Uint64);
422 @endcode
423 @note MSR_XEON_D_TEMPERATURE_TARGET is defined as MSR_TEMPERATURE_TARGET in SDM.
424 **/
425 #define MSR_XEON_D_TEMPERATURE_TARGET 0x000001A2
426
427 /**
428 MSR information returned for MSR index #MSR_XEON_D_TEMPERATURE_TARGET
429 **/
430 typedef union {
431 ///
432 /// Individual bit fields
433 ///
434 struct {
435 UINT32 Reserved1:16;
436 ///
437 /// [Bits 23:16] Temperature Target (RO) See Table 35-24.
438 ///
439 UINT32 TemperatureTarget:8;
440 ///
441 /// [Bits 27:24] TCC Activation Offset (R/W) See Table 35-24.
442 ///
443 UINT32 TCCActivationOffset:4;
444 UINT32 Reserved2:4;
445 UINT32 Reserved3:32;
446 } Bits;
447 ///
448 /// All bit fields as a 32-bit value
449 ///
450 UINT32 Uint32;
451 ///
452 /// All bit fields as a 64-bit value
453 ///
454 UINT64 Uint64;
455 } MSR_XEON_D_TEMPERATURE_TARGET_REGISTER;
456
457
458 /**
459 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
460 RW if MSR_PLATFORM_INFO.[28] = 1.
461
462 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT (0x000001AD)
463 @param EAX Lower 32-bits of MSR value.
464 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER.
465 @param EDX Upper 32-bits of MSR value.
466 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER.
467
468 <b>Example usage</b>
469 @code
470 MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER Msr;
471
472 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT);
473 @endcode
474 @note MSR_XEON_D_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
475 **/
476 #define MSR_XEON_D_TURBO_RATIO_LIMIT 0x000001AD
477
478 /**
479 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT
480 **/
481 typedef union {
482 ///
483 /// Individual bit fields
484 ///
485 struct {
486 ///
487 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C.
488 ///
489 UINT32 Maximum1C:8;
490 ///
491 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C.
492 ///
493 UINT32 Maximum2C:8;
494 ///
495 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C.
496 ///
497 UINT32 Maximum3C:8;
498 ///
499 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C.
500 ///
501 UINT32 Maximum4C:8;
502 ///
503 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C.
504 ///
505 UINT32 Maximum5C:8;
506 ///
507 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C.
508 ///
509 UINT32 Maximum6C:8;
510 ///
511 /// [Bits 55:48] Package. Maximum Ratio Limit for 7C.
512 ///
513 UINT32 Maximum7C:8;
514 ///
515 /// [Bits 63:56] Package. Maximum Ratio Limit for 8C.
516 ///
517 UINT32 Maximum8C:8;
518 } Bits;
519 ///
520 /// All bit fields as a 64-bit value
521 ///
522 UINT64 Uint64;
523 } MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER;
524
525
526 /**
527 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
528 RW if MSR_PLATFORM_INFO.[28] = 1.
529
530 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT1 (0x000001AE)
531 @param EAX Lower 32-bits of MSR value.
532 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER.
533 @param EDX Upper 32-bits of MSR value.
534 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER.
535
536 <b>Example usage</b>
537 @code
538 MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER Msr;
539
540 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT1);
541 @endcode
542 @note MSR_XEON_D_TURBO_RATIO_LIMIT1 is defined as MSR_TURBO_RATIO_LIMIT1 in SDM.
543 **/
544 #define MSR_XEON_D_TURBO_RATIO_LIMIT1 0x000001AE
545
546 /**
547 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT1
548 **/
549 typedef union {
550 ///
551 /// Individual bit fields
552 ///
553 struct {
554 ///
555 /// [Bits 7:0] Package. Maximum Ratio Limit for 9C.
556 ///
557 UINT32 Maximum9C:8;
558 ///
559 /// [Bits 15:8] Package. Maximum Ratio Limit for 10C.
560 ///
561 UINT32 Maximum10C:8;
562 ///
563 /// [Bits 23:16] Package. Maximum Ratio Limit for 11C.
564 ///
565 UINT32 Maximum11C:8;
566 ///
567 /// [Bits 31:24] Package. Maximum Ratio Limit for 12C.
568 ///
569 UINT32 Maximum12C:8;
570 ///
571 /// [Bits 39:32] Package. Maximum Ratio Limit for 13C.
572 ///
573 UINT32 Maximum13C:8;
574 ///
575 /// [Bits 47:40] Package. Maximum Ratio Limit for 14C.
576 ///
577 UINT32 Maximum14C:8;
578 ///
579 /// [Bits 55:48] Package. Maximum Ratio Limit for 15C.
580 ///
581 UINT32 Maximum15C:8;
582 ///
583 /// [Bits 63:56] Package. Maximum Ratio Limit for 16C.
584 ///
585 UINT32 Maximum16C:8;
586 } Bits;
587 ///
588 /// All bit fields as a 64-bit value
589 ///
590 UINT64 Uint64;
591 } MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER;
592
593
594 /**
595 Package. Unit Multipliers used in RAPL Interfaces (R/O).
596
597 @param ECX MSR_XEON_D_RAPL_POWER_UNIT (0x00000606)
598 @param EAX Lower 32-bits of MSR value.
599 Described by the type MSR_XEON_D_RAPL_POWER_UNIT_REGISTER.
600 @param EDX Upper 32-bits of MSR value.
601 Described by the type MSR_XEON_D_RAPL_POWER_UNIT_REGISTER.
602
603 <b>Example usage</b>
604 @code
605 MSR_XEON_D_RAPL_POWER_UNIT_REGISTER Msr;
606
607 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_RAPL_POWER_UNIT);
608 @endcode
609 @note MSR_XEON_D_RAPL_POWER_UNIT is defined as MSR_RAPL_POWER_UNIT in SDM.
610 **/
611 #define MSR_XEON_D_RAPL_POWER_UNIT 0x00000606
612
613 /**
614 MSR information returned for MSR index #MSR_XEON_D_RAPL_POWER_UNIT
615 **/
616 typedef union {
617 ///
618 /// Individual bit fields
619 ///
620 struct {
621 ///
622 /// [Bits 3:0] Package. Power Units See Section 14.9.1, "RAPL Interfaces.".
623 ///
624 UINT32 PowerUnits:4;
625 UINT32 Reserved1:4;
626 ///
627 /// [Bits 12:8] Package. Energy Status Units Energy related information
628 /// (in Joules) is based on the multiplier, 1/2^ESU; where ESU is an
629 /// unsigned integer represented by bits 12:8. Default value is 0EH (or 61
630 /// micro-joules).
631 ///
632 UINT32 EnergyStatusUnits:5;
633 UINT32 Reserved2:3;
634 ///
635 /// [Bits 19:16] Package. Time Units See Section 14.9.1, "RAPL
636 /// Interfaces.".
637 ///
638 UINT32 TimeUnits:4;
639 UINT32 Reserved3:12;
640 UINT32 Reserved4:32;
641 } Bits;
642 ///
643 /// All bit fields as a 32-bit value
644 ///
645 UINT32 Uint32;
646 ///
647 /// All bit fields as a 64-bit value
648 ///
649 UINT64 Uint64;
650 } MSR_XEON_D_RAPL_POWER_UNIT_REGISTER;
651
652
653 /**
654 Package. DRAM RAPL Power Limit Control (R/W) See Section 14.9.5, "DRAM RAPL
655 Domain.".
656
657 @param ECX MSR_XEON_D_DRAM_POWER_LIMIT (0x00000618)
658 @param EAX Lower 32-bits of MSR value.
659 @param EDX Upper 32-bits of MSR value.
660
661 <b>Example usage</b>
662 @code
663 UINT64 Msr;
664
665 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_POWER_LIMIT);
666 AsmWriteMsr64 (MSR_XEON_D_DRAM_POWER_LIMIT, Msr);
667 @endcode
668 @note MSR_XEON_D_DRAM_POWER_LIMIT is defined as MSR_DRAM_POWER_LIMIT in SDM.
669 **/
670 #define MSR_XEON_D_DRAM_POWER_LIMIT 0x00000618
671
672
673 /**
674 Package. DRAM Energy Status (R/O) Energy consumed by DRAM devices.
675
676 @param ECX MSR_XEON_D_DRAM_ENERGY_STATUS (0x00000619)
677 @param EAX Lower 32-bits of MSR value.
678 Described by the type MSR_XEON_D_DRAM_ENERGY_STATUS_REGISTER.
679 @param EDX Upper 32-bits of MSR value.
680 Described by the type MSR_XEON_D_DRAM_ENERGY_STATUS_REGISTER.
681
682 <b>Example usage</b>
683 @code
684 MSR_XEON_D_DRAM_ENERGY_STATUS_REGISTER Msr;
685
686 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_DRAM_ENERGY_STATUS);
687 @endcode
688 @note MSR_XEON_D_DRAM_ENERGY_STATUS is defined as MSR_DRAM_ENERGY_STATUS in SDM.
689 **/
690 #define MSR_XEON_D_DRAM_ENERGY_STATUS 0x00000619
691
692 /**
693 MSR information returned for MSR index #MSR_XEON_D_DRAM_ENERGY_STATUS
694 **/
695 typedef union {
696 ///
697 /// Individual bit fields
698 ///
699 struct {
700 ///
701 /// [Bits 31:0] Energy in 15.3 micro-joules. Requires BIOS configuration
702 /// to enable DRAM RAPL mode 0 (Direct VR).
703 ///
704 UINT32 Energy:32;
705 UINT32 Reserved:32;
706 } Bits;
707 ///
708 /// All bit fields as a 32-bit value
709 ///
710 UINT32 Uint32;
711 ///
712 /// All bit fields as a 64-bit value
713 ///
714 UINT64 Uint64;
715 } MSR_XEON_D_DRAM_ENERGY_STATUS_REGISTER;
716
717
718 /**
719 Package. DRAM Performance Throttling Status (R/O) See Section 14.9.5, "DRAM
720 RAPL Domain.".
721
722 @param ECX MSR_XEON_D_DRAM_PERF_STATUS (0x0000061B)
723 @param EAX Lower 32-bits of MSR value.
724 @param EDX Upper 32-bits of MSR value.
725
726 <b>Example usage</b>
727 @code
728 UINT64 Msr;
729
730 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_PERF_STATUS);
731 @endcode
732 @note MSR_XEON_D_DRAM_PERF_STATUS is defined as MSR_DRAM_PERF_STATUS in SDM.
733 **/
734 #define MSR_XEON_D_DRAM_PERF_STATUS 0x0000061B
735
736
737 /**
738 Package. DRAM RAPL Parameters (R/W) See Section 14.9.5, "DRAM RAPL Domain.".
739
740 @param ECX MSR_XEON_D_DRAM_POWER_INFO (0x0000061C)
741 @param EAX Lower 32-bits of MSR value.
742 @param EDX Upper 32-bits of MSR value.
743
744 <b>Example usage</b>
745 @code
746 UINT64 Msr;
747
748 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_POWER_INFO);
749 AsmWriteMsr64 (MSR_XEON_D_DRAM_POWER_INFO, Msr);
750 @endcode
751 @note MSR_XEON_D_DRAM_POWER_INFO is defined as MSR_DRAM_POWER_INFO in SDM.
752 **/
753 #define MSR_XEON_D_DRAM_POWER_INFO 0x0000061C
754
755
756 /**
757 Package. Reserved (R/O) Reads return 0.
758
759 @param ECX MSR_XEON_D_PP0_ENERGY_STATUS (0x00000639)
760 @param EAX Lower 32-bits of MSR value.
761 @param EDX Upper 32-bits of MSR value.
762
763 <b>Example usage</b>
764 @code
765 UINT64 Msr;
766
767 Msr = AsmReadMsr64 (MSR_XEON_D_PP0_ENERGY_STATUS);
768 @endcode
769 @note MSR_XEON_D_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
770 **/
771 #define MSR_XEON_D_PP0_ENERGY_STATUS 0x00000639
772
773
774 /**
775 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
776 refers to processor core frequency).
777
778 @param ECX MSR_XEON_D_CORE_PERF_LIMIT_REASONS (0x00000690)
779 @param EAX Lower 32-bits of MSR value.
780 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
781 @param EDX Upper 32-bits of MSR value.
782 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
783
784 <b>Example usage</b>
785 @code
786 MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
787
788 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS);
789 AsmWriteMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
790 @endcode
791 @note MSR_XEON_D_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
792 **/
793 #define MSR_XEON_D_CORE_PERF_LIMIT_REASONS 0x00000690
794
795 /**
796 MSR information returned for MSR index #MSR_XEON_D_CORE_PERF_LIMIT_REASONS
797 **/
798 typedef union {
799 ///
800 /// Individual bit fields
801 ///
802 struct {
803 ///
804 /// [Bit 0] PROCHOT Status (R0) When set, processor core frequency is
805 /// reduced below the operating system request due to assertion of
806 /// external PROCHOT.
807 ///
808 UINT32 PROCHOT_Status:1;
809 ///
810 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
811 /// operating system request due to a thermal event.
812 ///
813 UINT32 ThermalStatus:1;
814 ///
815 /// [Bit 2] Power Budget Management Status (R0) When set, frequency is
816 /// reduced below the operating system request due to PBM limit.
817 ///
818 UINT32 PowerBudgetManagementStatus:1;
819 ///
820 /// [Bit 3] Platform Configuration Services Status (R0) When set,
821 /// frequency is reduced below the operating system request due to PCS
822 /// limit.
823 ///
824 UINT32 PlatformConfigurationServicesStatus:1;
825 UINT32 Reserved1:1;
826 ///
827 /// [Bit 5] Autonomous Utilization-Based Frequency Control Status (R0)
828 /// When set, frequency is reduced below the operating system request
829 /// because the processor has detected that utilization is low.
830 ///
831 UINT32 AutonomousUtilizationBasedFrequencyControlStatus:1;
832 ///
833 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced
834 /// below the operating system request due to a thermal alert from the
835 /// Voltage Regulator.
836 ///
837 UINT32 VRThermAlertStatus:1;
838 UINT32 Reserved2:1;
839 ///
840 /// [Bit 8] Electrical Design Point Status (R0) When set, frequency is
841 /// reduced below the operating system request due to electrical design
842 /// point constraints (e.g. maximum electrical current consumption).
843 ///
844 UINT32 ElectricalDesignPointStatus:1;
845 UINT32 Reserved3:1;
846 ///
847 /// [Bit 10] Multi-Core Turbo Status (R0) When set, frequency is reduced
848 /// below the operating system request due to Multi-Core Turbo limits.
849 ///
850 UINT32 MultiCoreTurboStatus:1;
851 UINT32 Reserved4:2;
852 ///
853 /// [Bit 13] Core Frequency P1 Status (R0) When set, frequency is reduced
854 /// below max non-turbo P1.
855 ///
856 UINT32 FrequencyP1Status:1;
857 ///
858 /// [Bit 14] Core Max n-core Turbo Frequency Limiting Status (R0) When
859 /// set, frequency is reduced below max n-core turbo frequency.
860 ///
861 UINT32 TurboFrequencyLimitingStatus:1;
862 ///
863 /// [Bit 15] Core Frequency Limiting Status (R0) When set, frequency is
864 /// reduced below the operating system request.
865 ///
866 UINT32 FrequencyLimitingStatus:1;
867 ///
868 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
869 /// has asserted since the log bit was last cleared. This log bit will
870 /// remain set until cleared by software writing 0.
871 ///
872 UINT32 PROCHOT_Log:1;
873 ///
874 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
875 /// has asserted since the log bit was last cleared. This log bit will
876 /// remain set until cleared by software writing 0.
877 ///
878 UINT32 ThermalLog:1;
879 ///
880 /// [Bit 18] Power Budget Management Log When set, indicates that the PBM
881 /// Status bit has asserted since the log bit was last cleared. This log
882 /// bit will remain set until cleared by software writing 0.
883 ///
884 UINT32 PowerBudgetManagementLog:1;
885 ///
886 /// [Bit 19] Platform Configuration Services Log When set, indicates that
887 /// the PCS Status bit has asserted since the log bit was last cleared.
888 /// This log bit will remain set until cleared by software writing 0.
889 ///
890 UINT32 PlatformConfigurationServicesLog:1;
891 UINT32 Reserved5:1;
892 ///
893 /// [Bit 21] Autonomous Utilization-Based Frequency Control Log When set,
894 /// indicates that the AUBFC Status bit has asserted since the log bit was
895 /// last cleared. This log bit will remain set until cleared by software
896 /// writing 0.
897 ///
898 UINT32 AutonomousUtilizationBasedFrequencyControlLog:1;
899 ///
900 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
901 /// Alert Status bit has asserted since the log bit was last cleared. This
902 /// log bit will remain set until cleared by software writing 0.
903 ///
904 UINT32 VRThermAlertLog:1;
905 UINT32 Reserved6:1;
906 ///
907 /// [Bit 24] Electrical Design Point Log When set, indicates that the EDP
908 /// Status bit has asserted since the log bit was last cleared. This log
909 /// bit will remain set until cleared by software writing 0.
910 ///
911 UINT32 ElectricalDesignPointLog:1;
912 UINT32 Reserved7:1;
913 ///
914 /// [Bit 26] Multi-Core Turbo Log When set, indicates that the Multi-Core
915 /// Turbo Status bit has asserted since the log bit was last cleared. This
916 /// log bit will remain set until cleared by software writing 0.
917 ///
918 UINT32 MultiCoreTurboLog:1;
919 UINT32 Reserved8:2;
920 ///
921 /// [Bit 29] Core Frequency P1 Log When set, indicates that the Core
922 /// Frequency P1 Status bit has asserted since the log bit was last
923 /// cleared. This log bit will remain set until cleared by software
924 /// writing 0.
925 ///
926 UINT32 CoreFrequencyP1Log:1;
927 ///
928 /// [Bit 30] Core Max n-core Turbo Frequency Limiting Log When set,
929 /// indicates that the Core Max n-core Turbo Frequency Limiting Status bit
930 /// has asserted since the log bit was last cleared. This log bit will
931 /// remain set until cleared by software writing 0.
932 ///
933 UINT32 TurboFrequencyLimitingLog:1;
934 ///
935 /// [Bit 31] Core Frequency Limiting Log When set, indicates that the Core
936 /// Frequency Limiting Status bit has asserted since the log bit was last
937 /// cleared. This log bit will remain set until cleared by software
938 /// writing 0.
939 ///
940 UINT32 CoreFrequencyLimitingLog:1;
941 UINT32 Reserved9:32;
942 } Bits;
943 ///
944 /// All bit fields as a 32-bit value
945 ///
946 UINT32 Uint32;
947 ///
948 /// All bit fields as a 64-bit value
949 ///
950 UINT64 Uint64;
951 } MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER;
952
953
954 /**
955 THREAD. Monitoring Event Select Register (R/W) if CPUID.(EAX=07H,
956 ECX=0):EBX.RDT-M[bit 12] = 1.
957
958 @param ECX MSR_XEON_D_IA32_QM_EVTSEL (0x00000C8D)
959 @param EAX Lower 32-bits of MSR value.
960 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
961 @param EDX Upper 32-bits of MSR value.
962 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
963
964 <b>Example usage</b>
965 @code
966 MSR_XEON_D_IA32_QM_EVTSEL_REGISTER Msr;
967
968 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_QM_EVTSEL);
969 AsmWriteMsr64 (MSR_XEON_D_IA32_QM_EVTSEL, Msr.Uint64);
970 @endcode
971 @note MSR_XEON_D_IA32_QM_EVTSEL is defined as IA32_QM_EVTSEL in SDM.
972 **/
973 #define MSR_XEON_D_IA32_QM_EVTSEL 0x00000C8D
974
975 /**
976 MSR information returned for MSR index #MSR_XEON_D_IA32_QM_EVTSEL
977 **/
978 typedef union {
979 ///
980 /// Individual bit fields
981 ///
982 struct {
983 ///
984 /// [Bits 7:0] EventID (RW) Event encoding: 0x00: no monitoring 0x01: L3
985 /// occupancy monitoring 0x02: Total memory bandwidth monitoring 0x03:
986 /// Local memory bandwidth monitoring All other encoding reserved.
987 ///
988 UINT32 EventID:8;
989 UINT32 Reserved1:24;
990 ///
991 /// [Bits 41:32] RMID (RW).
992 ///
993 UINT32 RMID:10;
994 UINT32 Reserved2:22;
995 } Bits;
996 ///
997 /// All bit fields as a 64-bit value
998 ///
999 UINT64 Uint64;
1000 } MSR_XEON_D_IA32_QM_EVTSEL_REGISTER;
1001
1002
1003 /**
1004 THREAD. Resource Association Register (R/W).
1005
1006 @param ECX MSR_XEON_D_IA32_PQR_ASSOC (0x00000C8F)
1007 @param EAX Lower 32-bits of MSR value.
1008 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
1009 @param EDX Upper 32-bits of MSR value.
1010 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
1011
1012 <b>Example usage</b>
1013 @code
1014 MSR_XEON_D_IA32_PQR_ASSOC_REGISTER Msr;
1015
1016 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_PQR_ASSOC);
1017 AsmWriteMsr64 (MSR_XEON_D_IA32_PQR_ASSOC, Msr.Uint64);
1018 @endcode
1019 @note MSR_XEON_D_IA32_PQR_ASSOC is defined as IA32_PQR_ASSOC in SDM.
1020 **/
1021 #define MSR_XEON_D_IA32_PQR_ASSOC 0x00000C8F
1022
1023 /**
1024 MSR information returned for MSR index #MSR_XEON_D_IA32_PQR_ASSOC
1025 **/
1026 typedef union {
1027 ///
1028 /// Individual bit fields
1029 ///
1030 struct {
1031 ///
1032 /// [Bits 9:0] RMID.
1033 ///
1034 UINT32 RMID:10;
1035 UINT32 Reserved1:22;
1036 ///
1037 /// [Bits 51:32] COS (R/W).
1038 ///
1039 UINT32 COS:20;
1040 UINT32 Reserved2:12;
1041 } Bits;
1042 ///
1043 /// All bit fields as a 64-bit value
1044 ///
1045 UINT64 Uint64;
1046 } MSR_XEON_D_IA32_PQR_ASSOC_REGISTER;
1047
1048
1049 /**
1050 Package. L3 Class Of Service Mask - COS n (R/W) if CPUID.(EAX=10H,
1051 ECX=1):EDX.COS_MAX[15:0] >= n.
1052
1053 @param ECX MSR_XEON_D_IA32_L3_QOS_MASK_n
1054 @param EAX Lower 32-bits of MSR value.
1055 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
1056 @param EDX Upper 32-bits of MSR value.
1057 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
1058
1059 <b>Example usage</b>
1060 @code
1061 MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER Msr;
1062
1063 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0);
1064 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0, Msr.Uint64);
1065 @endcode
1066 @note MSR_XEON_D_IA32_L3_QOS_MASK_0 is defined as IA32_L3_QOS_MASK_0 in SDM.
1067 MSR_XEON_D_IA32_L3_QOS_MASK_1 is defined as IA32_L3_QOS_MASK_1 in SDM.
1068 MSR_XEON_D_IA32_L3_QOS_MASK_2 is defined as IA32_L3_QOS_MASK_2 in SDM.
1069 MSR_XEON_D_IA32_L3_QOS_MASK_3 is defined as IA32_L3_QOS_MASK_3 in SDM.
1070 MSR_XEON_D_IA32_L3_QOS_MASK_4 is defined as IA32_L3_QOS_MASK_4 in SDM.
1071 MSR_XEON_D_IA32_L3_QOS_MASK_5 is defined as IA32_L3_QOS_MASK_5 in SDM.
1072 MSR_XEON_D_IA32_L3_QOS_MASK_6 is defined as IA32_L3_QOS_MASK_6 in SDM.
1073 MSR_XEON_D_IA32_L3_QOS_MASK_7 is defined as IA32_L3_QOS_MASK_7 in SDM.
1074 MSR_XEON_D_IA32_L3_QOS_MASK_8 is defined as IA32_L3_QOS_MASK_8 in SDM.
1075 MSR_XEON_D_IA32_L3_QOS_MASK_9 is defined as IA32_L3_QOS_MASK_9 in SDM.
1076 MSR_XEON_D_IA32_L3_QOS_MASK_10 is defined as IA32_L3_QOS_MASK_10 in SDM.
1077 MSR_XEON_D_IA32_L3_QOS_MASK_11 is defined as IA32_L3_QOS_MASK_11 in SDM.
1078 MSR_XEON_D_IA32_L3_QOS_MASK_12 is defined as IA32_L3_QOS_MASK_12 in SDM.
1079 MSR_XEON_D_IA32_L3_QOS_MASK_13 is defined as IA32_L3_QOS_MASK_13 in SDM.
1080 MSR_XEON_D_IA32_L3_QOS_MASK_14 is defined as IA32_L3_QOS_MASK_14 in SDM.
1081 MSR_XEON_D_IA32_L3_QOS_MASK_15 is defined as IA32_L3_QOS_MASK_15 in SDM.
1082 @{
1083 **/
1084 #define MSR_XEON_D_IA32_L3_QOS_MASK_0 0x00000C90
1085 #define MSR_XEON_D_IA32_L3_QOS_MASK_1 0x00000C91
1086 #define MSR_XEON_D_IA32_L3_QOS_MASK_2 0x00000C92
1087 #define MSR_XEON_D_IA32_L3_QOS_MASK_3 0x00000C93
1088 #define MSR_XEON_D_IA32_L3_QOS_MASK_4 0x00000C94
1089 #define MSR_XEON_D_IA32_L3_QOS_MASK_5 0x00000C95
1090 #define MSR_XEON_D_IA32_L3_QOS_MASK_6 0x00000C96
1091 #define MSR_XEON_D_IA32_L3_QOS_MASK_7 0x00000C97
1092 #define MSR_XEON_D_IA32_L3_QOS_MASK_8 0x00000C98
1093 #define MSR_XEON_D_IA32_L3_QOS_MASK_9 0x00000C99
1094 #define MSR_XEON_D_IA32_L3_QOS_MASK_10 0x00000C9A
1095 #define MSR_XEON_D_IA32_L3_QOS_MASK_11 0x00000C9B
1096 #define MSR_XEON_D_IA32_L3_QOS_MASK_12 0x00000C9C
1097 #define MSR_XEON_D_IA32_L3_QOS_MASK_13 0x00000C9D
1098 #define MSR_XEON_D_IA32_L3_QOS_MASK_14 0x00000C9E
1099 #define MSR_XEON_D_IA32_L3_QOS_MASK_15 0x00000C9F
1100 /// @}
1101
1102 /**
1103 MSR information returned for MSR indexes #MSR_XEON_D_IA32_L3_QOS_MASK_0
1104 to #MSR_XEON_D_IA32_L3_QOS_MASK_15.
1105 **/
1106 typedef union {
1107 ///
1108 /// Individual bit fields
1109 ///
1110 struct {
1111 ///
1112 /// [Bits 19:0] CBM: Bit vector of available L3 ways for COS 0 enforcement.
1113 ///
1114 UINT32 CBM:20;
1115 UINT32 Reserved2:12;
1116 UINT32 Reserved3:32;
1117 } Bits;
1118 ///
1119 /// All bit fields as a 32-bit value
1120 ///
1121 UINT32 Uint32;
1122 ///
1123 /// All bit fields as a 64-bit value
1124 ///
1125 UINT64 Uint64;
1126 } MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER;
1127
1128
1129 /**
1130 Package. Config Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
1131 RW if MSR_PLATFORM_INFO.[28] = 1.
1132
1133 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT3 (0x000001AC)
1134 @param EAX Lower 32-bits of MSR value.
1135 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1136 @param EDX Upper 32-bits of MSR value.
1137 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1138
1139 <b>Example usage</b>
1140 @code
1141 MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER Msr;
1142
1143 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT3);
1144 @endcode
1145 @note MSR_XEON_D_TURBO_RATIO_LIMIT3 is defined as MSR_TURBO_RATIO_LIMIT3 in SDM.
1146 **/
1147 #define MSR_XEON_D_TURBO_RATIO_LIMIT3 0x000001AC
1148
1149 /**
1150 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT3
1151 **/
1152 typedef union {
1153 ///
1154 /// Individual bit fields
1155 ///
1156 struct {
1157 UINT32 Reserved1:32;
1158 UINT32 Reserved2:31;
1159 ///
1160 /// [Bit 63] Package. Semaphore for Turbo Ratio Limit Configuration If 1,
1161 /// the processor uses override configuration specified in
1162 /// MSR_TURBO_RATIO_LIMIT, MSR_TURBO_RATIO_LIMIT1. If 0, the processor
1163 /// uses factory-set configuration (Default).
1164 ///
1165 UINT32 TurboRatioLimitConfigurationSemaphore:1;
1166 } Bits;
1167 ///
1168 /// All bit fields as a 64-bit value
1169 ///
1170 UINT64 Uint64;
1171 } MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER;
1172
1173
1174 /**
1175 Package. Cache Allocation Technology Configuration (R/W).
1176
1177 @param ECX MSR_XEON_D_IA32_L3_QOS_CFG (0x00000C81)
1178 @param EAX Lower 32-bits of MSR value.
1179 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1180 @param EDX Upper 32-bits of MSR value.
1181 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1182
1183 <b>Example usage</b>
1184 @code
1185 MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER Msr;
1186
1187 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG);
1188 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG, Msr.Uint64);
1189 @endcode
1190 @note MSR_XEON_D_IA32_L3_QOS_CFG is defined as IA32_L3_QOS_CFG in SDM.
1191 **/
1192 #define MSR_XEON_D_IA32_L3_QOS_CFG 0x00000C81
1193
1194 /**
1195 MSR information returned for MSR index #MSR_XEON_D_IA32_L3_QOS_CFG
1196 **/
1197 typedef union {
1198 ///
1199 /// Individual bit fields
1200 ///
1201 struct {
1202 ///
1203 /// [Bit 0] CAT Enable. Set 1 to enable Cache Allocation Technology.
1204 ///
1205 UINT32 CAT:1;
1206 UINT32 Reserved1:31;
1207 UINT32 Reserved2:32;
1208 } Bits;
1209 ///
1210 /// All bit fields as a 32-bit value
1211 ///
1212 UINT32 Uint32;
1213 ///
1214 /// All bit fields as a 64-bit value
1215 ///
1216 UINT64 Uint64;
1217 } MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER;
1218
1219 #endif