]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/XeonDMsr.h
UefiCpuPkg/Include/Register/Msr/*.h: Add new MSR.
[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 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 4,
20 May 2018, Volume 4: Model-Specific-Registers (MSR)
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 2-25.
76 ///
77 UINT32 LockOut:1;
78 ///
79 /// [Bit 1] Enable_PPIN (R/W) See Table 2-25.
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 2-25.
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 2-25.
146 ///
147 UINT32 MaximumNonTurboRatio:8;
148 UINT32 Reserved2:7;
149 ///
150 /// [Bit 23] Package. PPIN_CAP (R/O) See Table 2-25.
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 2-25.
157 ///
158 UINT32 RatioLimit:1;
159 ///
160 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) See
161 /// Table 2-25.
162 ///
163 UINT32 TDPLimit:1;
164 ///
165 /// [Bit 30] Package. Programmable TJ OFFSET (R/O) See Table 2-25.
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 2-25.
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 2-25.
438 ///
439 UINT32 TemperatureTarget:8;
440 ///
441 /// [Bits 27:24] TCC Activation Offset (R/W) See Table 2-25.
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. Uncore Ratio Limit (R/W) Out of reset, the min_ratio and max_ratio
758 fields represent the widest possible range of uncore frequencies. Writing to
759 these fields allows software to control the minimum and the maximum
760 frequency that hardware will select.
761
762 @param ECX MSR_XEON_D_MSRUNCORE_RATIO_LIMIT (0x00000620)
763 @param EAX Lower 32-bits of MSR value.
764 Described by the type MSR_XEON_D_MSRUNCORE_RATIO_LIMIT_REGISTER.
765 @param EDX Upper 32-bits of MSR value.
766 Described by the type MSR_XEON_D_MSRUNCORE_RATIO_LIMIT_REGISTER.
767
768 <b>Example usage</b>
769 @code
770 MSR_XEON_D_MSRUNCORE_RATIO_LIMIT_REGISTER Msr;
771
772 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_MSRUNCORE_RATIO_LIMIT);
773 AsmWriteMsr64 (MSR_XEON_D_MSRUNCORE_RATIO_LIMIT, Msr.Uint64);
774 @endcode
775 **/
776 #define MSR_XEON_D_MSRUNCORE_RATIO_LIMIT 0x00000620
777
778 /**
779 MSR information returned for MSR index #MSR_XEON_D_MSRUNCORE_RATIO_LIMIT
780 **/
781 typedef union {
782 ///
783 /// Individual bit fields
784 ///
785 struct {
786 ///
787 /// [Bits 6:0] MAX_RATIO This field is used to limit the max ratio of the
788 /// LLC/Ring.
789 ///
790 UINT32 MAX_RATIO:7;
791 UINT32 Reserved1:1;
792 ///
793 /// [Bits 14:8] MIN_RATIO Writing to this field controls the minimum
794 /// possible ratio of the LLC/Ring.
795 ///
796 UINT32 MIN_RATIO:7;
797 UINT32 Reserved2:17;
798 UINT32 Reserved3:32;
799 } Bits;
800 ///
801 /// All bit fields as a 32-bit value
802 ///
803 UINT32 Uint32;
804 ///
805 /// All bit fields as a 64-bit value
806 ///
807 UINT64 Uint64;
808 } MSR_XEON_D_MSRUNCORE_RATIO_LIMIT_REGISTER;
809
810 /**
811 Package. Reserved (R/O) Reads return 0.
812
813 @param ECX MSR_XEON_D_PP0_ENERGY_STATUS (0x00000639)
814 @param EAX Lower 32-bits of MSR value.
815 @param EDX Upper 32-bits of MSR value.
816
817 <b>Example usage</b>
818 @code
819 UINT64 Msr;
820
821 Msr = AsmReadMsr64 (MSR_XEON_D_PP0_ENERGY_STATUS);
822 @endcode
823 @note MSR_XEON_D_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
824 **/
825 #define MSR_XEON_D_PP0_ENERGY_STATUS 0x00000639
826
827
828 /**
829 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
830 refers to processor core frequency).
831
832 @param ECX MSR_XEON_D_CORE_PERF_LIMIT_REASONS (0x00000690)
833 @param EAX Lower 32-bits of MSR value.
834 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
835 @param EDX Upper 32-bits of MSR value.
836 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
837
838 <b>Example usage</b>
839 @code
840 MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
841
842 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS);
843 AsmWriteMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
844 @endcode
845 @note MSR_XEON_D_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
846 **/
847 #define MSR_XEON_D_CORE_PERF_LIMIT_REASONS 0x00000690
848
849 /**
850 MSR information returned for MSR index #MSR_XEON_D_CORE_PERF_LIMIT_REASONS
851 **/
852 typedef union {
853 ///
854 /// Individual bit fields
855 ///
856 struct {
857 ///
858 /// [Bit 0] PROCHOT Status (R0) When set, processor core frequency is
859 /// reduced below the operating system request due to assertion of
860 /// external PROCHOT.
861 ///
862 UINT32 PROCHOT_Status:1;
863 ///
864 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
865 /// operating system request due to a thermal event.
866 ///
867 UINT32 ThermalStatus:1;
868 ///
869 /// [Bit 2] Power Budget Management Status (R0) When set, frequency is
870 /// reduced below the operating system request due to PBM limit.
871 ///
872 UINT32 PowerBudgetManagementStatus:1;
873 ///
874 /// [Bit 3] Platform Configuration Services Status (R0) When set,
875 /// frequency is reduced below the operating system request due to PCS
876 /// limit.
877 ///
878 UINT32 PlatformConfigurationServicesStatus:1;
879 UINT32 Reserved1:1;
880 ///
881 /// [Bit 5] Autonomous Utilization-Based Frequency Control Status (R0)
882 /// When set, frequency is reduced below the operating system request
883 /// because the processor has detected that utilization is low.
884 ///
885 UINT32 AutonomousUtilizationBasedFrequencyControlStatus:1;
886 ///
887 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced
888 /// below the operating system request due to a thermal alert from the
889 /// Voltage Regulator.
890 ///
891 UINT32 VRThermAlertStatus:1;
892 UINT32 Reserved2:1;
893 ///
894 /// [Bit 8] Electrical Design Point Status (R0) When set, frequency is
895 /// reduced below the operating system request due to electrical design
896 /// point constraints (e.g. maximum electrical current consumption).
897 ///
898 UINT32 ElectricalDesignPointStatus:1;
899 UINT32 Reserved3:1;
900 ///
901 /// [Bit 10] Multi-Core Turbo Status (R0) When set, frequency is reduced
902 /// below the operating system request due to Multi-Core Turbo limits.
903 ///
904 UINT32 MultiCoreTurboStatus:1;
905 UINT32 Reserved4:2;
906 ///
907 /// [Bit 13] Core Frequency P1 Status (R0) When set, frequency is reduced
908 /// below max non-turbo P1.
909 ///
910 UINT32 FrequencyP1Status:1;
911 ///
912 /// [Bit 14] Core Max n-core Turbo Frequency Limiting Status (R0) When
913 /// set, frequency is reduced below max n-core turbo frequency.
914 ///
915 UINT32 TurboFrequencyLimitingStatus:1;
916 ///
917 /// [Bit 15] Core Frequency Limiting Status (R0) When set, frequency is
918 /// reduced below the operating system request.
919 ///
920 UINT32 FrequencyLimitingStatus:1;
921 ///
922 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT 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 PROCHOT_Log:1;
927 ///
928 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
929 /// has asserted since the log bit was last cleared. This log bit will
930 /// remain set until cleared by software writing 0.
931 ///
932 UINT32 ThermalLog:1;
933 ///
934 /// [Bit 18] Power Budget Management Log When set, indicates that the PBM
935 /// Status bit has asserted since the log bit was last cleared. This log
936 /// bit will remain set until cleared by software writing 0.
937 ///
938 UINT32 PowerBudgetManagementLog:1;
939 ///
940 /// [Bit 19] Platform Configuration Services Log When set, indicates that
941 /// the PCS Status bit has asserted since the log bit was last cleared.
942 /// This log bit will remain set until cleared by software writing 0.
943 ///
944 UINT32 PlatformConfigurationServicesLog:1;
945 UINT32 Reserved5:1;
946 ///
947 /// [Bit 21] Autonomous Utilization-Based Frequency Control Log When set,
948 /// indicates that the AUBFC Status bit has asserted since the log bit was
949 /// last cleared. This log bit will remain set until cleared by software
950 /// writing 0.
951 ///
952 UINT32 AutonomousUtilizationBasedFrequencyControlLog:1;
953 ///
954 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
955 /// Alert Status bit has asserted since the log bit was last cleared. This
956 /// log bit will remain set until cleared by software writing 0.
957 ///
958 UINT32 VRThermAlertLog:1;
959 UINT32 Reserved6:1;
960 ///
961 /// [Bit 24] Electrical Design Point Log When set, indicates that the EDP
962 /// Status bit has asserted since the log bit was last cleared. This log
963 /// bit will remain set until cleared by software writing 0.
964 ///
965 UINT32 ElectricalDesignPointLog:1;
966 UINT32 Reserved7:1;
967 ///
968 /// [Bit 26] Multi-Core Turbo Log When set, indicates that the Multi-Core
969 /// Turbo Status bit has asserted since the log bit was last cleared. This
970 /// log bit will remain set until cleared by software writing 0.
971 ///
972 UINT32 MultiCoreTurboLog:1;
973 UINT32 Reserved8:2;
974 ///
975 /// [Bit 29] Core Frequency P1 Log When set, indicates that the Core
976 /// Frequency P1 Status bit has asserted since the log bit was last
977 /// cleared. This log bit will remain set until cleared by software
978 /// writing 0.
979 ///
980 UINT32 CoreFrequencyP1Log:1;
981 ///
982 /// [Bit 30] Core Max n-core Turbo Frequency Limiting Log When set,
983 /// indicates that the Core Max n-core Turbo Frequency Limiting Status bit
984 /// has asserted since the log bit was last cleared. This log bit will
985 /// remain set until cleared by software writing 0.
986 ///
987 UINT32 TurboFrequencyLimitingLog:1;
988 ///
989 /// [Bit 31] Core Frequency Limiting Log When set, indicates that the Core
990 /// Frequency Limiting Status bit has asserted since the log bit was last
991 /// cleared. This log bit will remain set until cleared by software
992 /// writing 0.
993 ///
994 UINT32 CoreFrequencyLimitingLog:1;
995 UINT32 Reserved9:32;
996 } Bits;
997 ///
998 /// All bit fields as a 32-bit value
999 ///
1000 UINT32 Uint32;
1001 ///
1002 /// All bit fields as a 64-bit value
1003 ///
1004 UINT64 Uint64;
1005 } MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER;
1006
1007
1008 /**
1009 THREAD. Monitoring Event Select Register (R/W) if CPUID.(EAX=07H,
1010 ECX=0):EBX.RDT-M[bit 12] = 1.
1011
1012 @param ECX MSR_XEON_D_IA32_QM_EVTSEL (0x00000C8D)
1013 @param EAX Lower 32-bits of MSR value.
1014 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
1015 @param EDX Upper 32-bits of MSR value.
1016 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
1017
1018 <b>Example usage</b>
1019 @code
1020 MSR_XEON_D_IA32_QM_EVTSEL_REGISTER Msr;
1021
1022 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_QM_EVTSEL);
1023 AsmWriteMsr64 (MSR_XEON_D_IA32_QM_EVTSEL, Msr.Uint64);
1024 @endcode
1025 @note MSR_XEON_D_IA32_QM_EVTSEL is defined as IA32_QM_EVTSEL in SDM.
1026 **/
1027 #define MSR_XEON_D_IA32_QM_EVTSEL 0x00000C8D
1028
1029 /**
1030 MSR information returned for MSR index #MSR_XEON_D_IA32_QM_EVTSEL
1031 **/
1032 typedef union {
1033 ///
1034 /// Individual bit fields
1035 ///
1036 struct {
1037 ///
1038 /// [Bits 7:0] EventID (RW) Event encoding: 0x00: no monitoring 0x01: L3
1039 /// occupancy monitoring 0x02: Total memory bandwidth monitoring 0x03:
1040 /// Local memory bandwidth monitoring All other encoding reserved.
1041 ///
1042 UINT32 EventID:8;
1043 UINT32 Reserved1:24;
1044 ///
1045 /// [Bits 41:32] RMID (RW).
1046 ///
1047 UINT32 RMID:10;
1048 UINT32 Reserved2:22;
1049 } Bits;
1050 ///
1051 /// All bit fields as a 64-bit value
1052 ///
1053 UINT64 Uint64;
1054 } MSR_XEON_D_IA32_QM_EVTSEL_REGISTER;
1055
1056
1057 /**
1058 THREAD. Resource Association Register (R/W).
1059
1060 @param ECX MSR_XEON_D_IA32_PQR_ASSOC (0x00000C8F)
1061 @param EAX Lower 32-bits of MSR value.
1062 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
1063 @param EDX Upper 32-bits of MSR value.
1064 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
1065
1066 <b>Example usage</b>
1067 @code
1068 MSR_XEON_D_IA32_PQR_ASSOC_REGISTER Msr;
1069
1070 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_PQR_ASSOC);
1071 AsmWriteMsr64 (MSR_XEON_D_IA32_PQR_ASSOC, Msr.Uint64);
1072 @endcode
1073 @note MSR_XEON_D_IA32_PQR_ASSOC is defined as IA32_PQR_ASSOC in SDM.
1074 **/
1075 #define MSR_XEON_D_IA32_PQR_ASSOC 0x00000C8F
1076
1077 /**
1078 MSR information returned for MSR index #MSR_XEON_D_IA32_PQR_ASSOC
1079 **/
1080 typedef union {
1081 ///
1082 /// Individual bit fields
1083 ///
1084 struct {
1085 ///
1086 /// [Bits 9:0] RMID.
1087 ///
1088 UINT32 RMID:10;
1089 UINT32 Reserved1:22;
1090 ///
1091 /// [Bits 51:32] COS (R/W).
1092 ///
1093 UINT32 COS:20;
1094 UINT32 Reserved2:12;
1095 } Bits;
1096 ///
1097 /// All bit fields as a 64-bit value
1098 ///
1099 UINT64 Uint64;
1100 } MSR_XEON_D_IA32_PQR_ASSOC_REGISTER;
1101
1102
1103 /**
1104 Package. L3 Class Of Service Mask - COS n (R/W) if CPUID.(EAX=10H,
1105 ECX=1):EDX.COS_MAX[15:0] >= n.
1106
1107 @param ECX MSR_XEON_D_IA32_L3_QOS_MASK_n
1108 @param EAX Lower 32-bits of MSR value.
1109 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
1110 @param EDX Upper 32-bits of MSR value.
1111 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
1112
1113 <b>Example usage</b>
1114 @code
1115 MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER Msr;
1116
1117 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0);
1118 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0, Msr.Uint64);
1119 @endcode
1120 @note MSR_XEON_D_IA32_L3_QOS_MASK_0 is defined as IA32_L3_QOS_MASK_0 in SDM.
1121 MSR_XEON_D_IA32_L3_QOS_MASK_1 is defined as IA32_L3_QOS_MASK_1 in SDM.
1122 MSR_XEON_D_IA32_L3_QOS_MASK_2 is defined as IA32_L3_QOS_MASK_2 in SDM.
1123 MSR_XEON_D_IA32_L3_QOS_MASK_3 is defined as IA32_L3_QOS_MASK_3 in SDM.
1124 MSR_XEON_D_IA32_L3_QOS_MASK_4 is defined as IA32_L3_QOS_MASK_4 in SDM.
1125 MSR_XEON_D_IA32_L3_QOS_MASK_5 is defined as IA32_L3_QOS_MASK_5 in SDM.
1126 MSR_XEON_D_IA32_L3_QOS_MASK_6 is defined as IA32_L3_QOS_MASK_6 in SDM.
1127 MSR_XEON_D_IA32_L3_QOS_MASK_7 is defined as IA32_L3_QOS_MASK_7 in SDM.
1128 MSR_XEON_D_IA32_L3_QOS_MASK_8 is defined as IA32_L3_QOS_MASK_8 in SDM.
1129 MSR_XEON_D_IA32_L3_QOS_MASK_9 is defined as IA32_L3_QOS_MASK_9 in SDM.
1130 MSR_XEON_D_IA32_L3_QOS_MASK_10 is defined as IA32_L3_QOS_MASK_10 in SDM.
1131 MSR_XEON_D_IA32_L3_QOS_MASK_11 is defined as IA32_L3_QOS_MASK_11 in SDM.
1132 MSR_XEON_D_IA32_L3_QOS_MASK_12 is defined as IA32_L3_QOS_MASK_12 in SDM.
1133 MSR_XEON_D_IA32_L3_QOS_MASK_13 is defined as IA32_L3_QOS_MASK_13 in SDM.
1134 MSR_XEON_D_IA32_L3_QOS_MASK_14 is defined as IA32_L3_QOS_MASK_14 in SDM.
1135 MSR_XEON_D_IA32_L3_QOS_MASK_15 is defined as IA32_L3_QOS_MASK_15 in SDM.
1136 @{
1137 **/
1138 #define MSR_XEON_D_IA32_L3_QOS_MASK_0 0x00000C90
1139 #define MSR_XEON_D_IA32_L3_QOS_MASK_1 0x00000C91
1140 #define MSR_XEON_D_IA32_L3_QOS_MASK_2 0x00000C92
1141 #define MSR_XEON_D_IA32_L3_QOS_MASK_3 0x00000C93
1142 #define MSR_XEON_D_IA32_L3_QOS_MASK_4 0x00000C94
1143 #define MSR_XEON_D_IA32_L3_QOS_MASK_5 0x00000C95
1144 #define MSR_XEON_D_IA32_L3_QOS_MASK_6 0x00000C96
1145 #define MSR_XEON_D_IA32_L3_QOS_MASK_7 0x00000C97
1146 #define MSR_XEON_D_IA32_L3_QOS_MASK_8 0x00000C98
1147 #define MSR_XEON_D_IA32_L3_QOS_MASK_9 0x00000C99
1148 #define MSR_XEON_D_IA32_L3_QOS_MASK_10 0x00000C9A
1149 #define MSR_XEON_D_IA32_L3_QOS_MASK_11 0x00000C9B
1150 #define MSR_XEON_D_IA32_L3_QOS_MASK_12 0x00000C9C
1151 #define MSR_XEON_D_IA32_L3_QOS_MASK_13 0x00000C9D
1152 #define MSR_XEON_D_IA32_L3_QOS_MASK_14 0x00000C9E
1153 #define MSR_XEON_D_IA32_L3_QOS_MASK_15 0x00000C9F
1154 /// @}
1155
1156 /**
1157 MSR information returned for MSR indexes #MSR_XEON_D_IA32_L3_QOS_MASK_0
1158 to #MSR_XEON_D_IA32_L3_QOS_MASK_15.
1159 **/
1160 typedef union {
1161 ///
1162 /// Individual bit fields
1163 ///
1164 struct {
1165 ///
1166 /// [Bits 19:0] CBM: Bit vector of available L3 ways for COS 0 enforcement.
1167 ///
1168 UINT32 CBM:20;
1169 UINT32 Reserved2:12;
1170 UINT32 Reserved3:32;
1171 } Bits;
1172 ///
1173 /// All bit fields as a 32-bit value
1174 ///
1175 UINT32 Uint32;
1176 ///
1177 /// All bit fields as a 64-bit value
1178 ///
1179 UINT64 Uint64;
1180 } MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER;
1181
1182
1183 /**
1184 Package. Config Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
1185 RW if MSR_PLATFORM_INFO.[28] = 1.
1186
1187 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT3 (0x000001AC)
1188 @param EAX Lower 32-bits of MSR value.
1189 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1190 @param EDX Upper 32-bits of MSR value.
1191 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1192
1193 <b>Example usage</b>
1194 @code
1195 MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER Msr;
1196
1197 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT3);
1198 @endcode
1199 @note MSR_XEON_D_TURBO_RATIO_LIMIT3 is defined as MSR_TURBO_RATIO_LIMIT3 in SDM.
1200 **/
1201 #define MSR_XEON_D_TURBO_RATIO_LIMIT3 0x000001AC
1202
1203 /**
1204 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT3
1205 **/
1206 typedef union {
1207 ///
1208 /// Individual bit fields
1209 ///
1210 struct {
1211 UINT32 Reserved1:32;
1212 UINT32 Reserved2:31;
1213 ///
1214 /// [Bit 63] Package. Semaphore for Turbo Ratio Limit Configuration If 1,
1215 /// the processor uses override configuration specified in
1216 /// MSR_TURBO_RATIO_LIMIT, MSR_TURBO_RATIO_LIMIT1. If 0, the processor
1217 /// uses factory-set configuration (Default).
1218 ///
1219 UINT32 TurboRatioLimitConfigurationSemaphore:1;
1220 } Bits;
1221 ///
1222 /// All bit fields as a 64-bit value
1223 ///
1224 UINT64 Uint64;
1225 } MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER;
1226
1227
1228 /**
1229 Package. Cache Allocation Technology Configuration (R/W).
1230
1231 @param ECX MSR_XEON_D_IA32_L3_QOS_CFG (0x00000C81)
1232 @param EAX Lower 32-bits of MSR value.
1233 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1234 @param EDX Upper 32-bits of MSR value.
1235 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1236
1237 <b>Example usage</b>
1238 @code
1239 MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER Msr;
1240
1241 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG);
1242 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG, Msr.Uint64);
1243 @endcode
1244 @note MSR_XEON_D_IA32_L3_QOS_CFG is defined as IA32_L3_QOS_CFG in SDM.
1245 **/
1246 #define MSR_XEON_D_IA32_L3_QOS_CFG 0x00000C81
1247
1248 /**
1249 MSR information returned for MSR index #MSR_XEON_D_IA32_L3_QOS_CFG
1250 **/
1251 typedef union {
1252 ///
1253 /// Individual bit fields
1254 ///
1255 struct {
1256 ///
1257 /// [Bit 0] CAT Enable. Set 1 to enable Cache Allocation Technology.
1258 ///
1259 UINT32 CAT:1;
1260 UINT32 Reserved1:31;
1261 UINT32 Reserved2:32;
1262 } Bits;
1263 ///
1264 /// All bit fields as a 32-bit value
1265 ///
1266 UINT32 Uint32;
1267 ///
1268 /// All bit fields as a 64-bit value
1269 ///
1270 UINT64 Uint64;
1271 } MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER;
1272
1273 #endif