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