]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/XeonDMsr.h
UefiCpuPkg/Include: Add Xeon Processor D MSR include file
[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, 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 December 2015, Chapter 35 Model-Specific-Registers (MSR), Section 35-13.
21
22 **/
23
24 #ifndef __XEON_D_MSR_H__
25 #define __XEON_D_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Package. Protected Processor Inventory Number Enable Control (R/W).
31
32 @param ECX MSR_XEON_D_PPIN_CTL (0x0000004E)
33 @param EAX Lower 32-bits of MSR value.
34 Described by the type MSR_XEON_D_PPIN_CTL_REGISTER.
35 @param EDX Upper 32-bits of MSR value.
36 Described by the type MSR_XEON_D_PPIN_CTL_REGISTER.
37
38 <b>Example usage</b>
39 @code
40 MSR_XEON_D_PPIN_CTL_REGISTER Msr;
41
42 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PPIN_CTL);
43 AsmWriteMsr64 (MSR_XEON_D_PPIN_CTL, Msr.Uint64);
44 @endcode
45 **/
46 #define MSR_XEON_D_PPIN_CTL 0x0000004E
47
48 /**
49 MSR information returned for MSR index #MSR_XEON_D_PPIN_CTL
50 **/
51 typedef union {
52 ///
53 /// Individual bit fields
54 ///
55 struct {
56 ///
57 /// [Bit 0] LockOut (R/WO) See Table 35-21.
58 ///
59 UINT32 LockOut:1;
60 ///
61 /// [Bit 1] Enable_PPIN (R/W) See Table 35-21.
62 ///
63 UINT32 Enable_PPIN:1;
64 UINT32 Reserved1:30;
65 UINT32 Reserved2:32;
66 } Bits;
67 ///
68 /// All bit fields as a 32-bit value
69 ///
70 UINT32 Uint32;
71 ///
72 /// All bit fields as a 64-bit value
73 ///
74 UINT64 Uint64;
75 } MSR_XEON_D_PPIN_CTL_REGISTER;
76
77
78 /**
79 Package. Protected Processor Inventory Number (R/O). Protected Processor
80 Inventory Number (R/O) See Table 35-21.
81
82 @param ECX MSR_XEON_D_PPIN (0x0000004F)
83 @param EAX Lower 32-bits of MSR value.
84 @param EDX Upper 32-bits of MSR value.
85
86 <b>Example usage</b>
87 @code
88 UINT64 Msr;
89
90 Msr = AsmReadMsr64 (MSR_XEON_D_PPIN);
91 @endcode
92 **/
93 #define MSR_XEON_D_PPIN 0x0000004F
94
95
96 /**
97 Package. See http://biosbits.org.
98
99 @param ECX MSR_XEON_D_PLATFORM_INFO (0x000000CE)
100 @param EAX Lower 32-bits of MSR value.
101 Described by the type MSR_XEON_D_PLATFORM_INFO_REGISTER.
102 @param EDX Upper 32-bits of MSR value.
103 Described by the type MSR_XEON_D_PLATFORM_INFO_REGISTER.
104
105 <b>Example usage</b>
106 @code
107 MSR_XEON_D_PLATFORM_INFO_REGISTER Msr;
108
109 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PLATFORM_INFO);
110 AsmWriteMsr64 (MSR_XEON_D_PLATFORM_INFO, Msr.Uint64);
111 @endcode
112 **/
113 #define MSR_XEON_D_PLATFORM_INFO 0x000000CE
114
115 /**
116 MSR information returned for MSR index #MSR_XEON_D_PLATFORM_INFO
117 **/
118 typedef union {
119 ///
120 /// Individual bit fields
121 ///
122 struct {
123 UINT32 Reserved1:8;
124 ///
125 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) See Table 35-21.
126 ///
127 UINT32 MaximumNonTurboRatio:8;
128 UINT32 Reserved2:7;
129 ///
130 /// [Bit 23] Package. PPIN_CAP (R/O) See Table 35-21.
131 ///
132 UINT32 PPIN_CAP:1;
133 UINT32 Reserved3:4;
134 ///
135 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) See
136 /// Table 35-21.
137 ///
138 UINT32 RatioLimit:1;
139 ///
140 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) See
141 /// Table 35-21.
142 ///
143 UINT32 TDPLimit:1;
144 ///
145 /// [Bit 30] Package. Programmable TJ OFFSET (R/O) See Table 35-21.
146 ///
147 UINT32 TJOFFSET:1;
148 UINT32 Reserved4:1;
149 UINT32 Reserved5:8;
150 ///
151 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) See Table 35-21.
152 ///
153 UINT32 MaximumEfficiencyRatio:8;
154 UINT32 Reserved6:16;
155 } Bits;
156 ///
157 /// All bit fields as a 64-bit value
158 ///
159 UINT64 Uint64;
160 } MSR_XEON_D_PLATFORM_INFO_REGISTER;
161
162
163 /**
164 Core. C-State Configuration Control (R/W) Note: C-state values are processor
165 specific C-state code names, unrelated to MWAIT extension C-state parameters
166 or ACPI C-states. `See http://biosbits.org. <http://biosbits.org>`__.
167
168 @param ECX MSR_XEON_D_PKG_CST_CONFIG_CONTROL (0x000000E2)
169 @param EAX Lower 32-bits of MSR value.
170 Described by the type MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER.
171 @param EDX Upper 32-bits of MSR value.
172 Described by the type MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER.
173
174 <b>Example usage</b>
175 @code
176 MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
177
178 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PKG_CST_CONFIG_CONTROL);
179 AsmWriteMsr64 (MSR_XEON_D_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
180 @endcode
181 **/
182 #define MSR_XEON_D_PKG_CST_CONFIG_CONTROL 0x000000E2
183
184 /**
185 MSR information returned for MSR index #MSR_XEON_D_PKG_CST_CONFIG_CONTROL
186 **/
187 typedef union {
188 ///
189 /// Individual bit fields
190 ///
191 struct {
192 ///
193 /// [Bits 2:0] Package C-State Limit (R/W) Specifies the lowest
194 /// processor-specific C-state code name (consuming the least power) for
195 /// the package. The default is set as factory-configured package C-state
196 /// limit. The following C-state code name encodings are supported: 000b:
197 /// C0/C1 (no package C-state support) 001b: C2 010b: C6 (non-retention)
198 /// 011b: C6 (retention) 111b: No Package C state limits. All C states
199 /// supported by the processor are available.
200 ///
201 UINT32 Limit:3;
202 UINT32 Reserved1:7;
203 ///
204 /// [Bit 10] I/O MWAIT Redirection Enable (R/W).
205 ///
206 UINT32 IO_MWAIT:1;
207 UINT32 Reserved2:4;
208 ///
209 /// [Bit 15] CFG Lock (R/WO).
210 ///
211 UINT32 CFGLock:1;
212 ///
213 /// [Bit 16] Automatic C-State Conversion Enable (R/W) If 1, the processor
214 /// will convert HALT or MWAT(C1) to MWAIT(C6).
215 ///
216 UINT32 CStateConversion:1;
217 UINT32 Reserved3:8;
218 ///
219 /// [Bit 25] C3 State Auto Demotion Enable (R/W).
220 ///
221 UINT32 C3AutoDemotion:1;
222 ///
223 /// [Bit 26] C1 State Auto Demotion Enable (R/W).
224 ///
225 UINT32 C1AutoDemotion:1;
226 ///
227 /// [Bit 27] Enable C3 Undemotion (R/W).
228 ///
229 UINT32 C3Undemotion:1;
230 ///
231 /// [Bit 28] Enable C1 Undemotion (R/W).
232 ///
233 UINT32 C1Undemotion:1;
234 ///
235 /// [Bit 29] Package C State Demotion Enable (R/W).
236 ///
237 UINT32 CStateDemotion:1;
238 ///
239 /// [Bit 30] Package C State UnDemotion Enable (R/W).
240 ///
241 UINT32 CStateUndemotion:1;
242 UINT32 Reserved4:1;
243 UINT32 Reserved5:32;
244 } Bits;
245 ///
246 /// All bit fields as a 32-bit value
247 ///
248 UINT32 Uint32;
249 ///
250 /// All bit fields as a 64-bit value
251 ///
252 UINT64 Uint64;
253 } MSR_XEON_D_PKG_CST_CONFIG_CONTROL_REGISTER;
254
255
256 /**
257 Thread. Global Machine Check Capability (R/O).
258
259 @param ECX MSR_XEON_D_IA32_MCG_CAP (0x00000179)
260 @param EAX Lower 32-bits of MSR value.
261 Described by the type MSR_XEON_D_IA32_MCG_CAP_REGISTER.
262 @param EDX Upper 32-bits of MSR value.
263 Described by the type MSR_XEON_D_IA32_MCG_CAP_REGISTER.
264
265 <b>Example usage</b>
266 @code
267 MSR_XEON_D_IA32_MCG_CAP_REGISTER Msr;
268
269 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_MCG_CAP);
270 @endcode
271 **/
272 #define MSR_XEON_D_IA32_MCG_CAP 0x00000179
273
274 /**
275 MSR information returned for MSR index #MSR_XEON_D_IA32_MCG_CAP
276 **/
277 typedef union {
278 ///
279 /// Individual bit fields
280 ///
281 struct {
282 ///
283 /// [Bits 7:0] Count.
284 ///
285 UINT32 Count:8;
286 ///
287 /// [Bit 8] MCG_CTL_P.
288 ///
289 UINT32 MCG_CTL_P:1;
290 ///
291 /// [Bit 9] MCG_EXT_P.
292 ///
293 UINT32 MCG_EXT_P:1;
294 ///
295 /// [Bit 10] MCP_CMCI_P.
296 ///
297 UINT32 MCP_CMCI_P:1;
298 ///
299 /// [Bit 11] MCG_TES_P.
300 ///
301 UINT32 MCG_TES_P:1;
302 UINT32 Reserved1:4;
303 ///
304 /// [Bits 23:16] MCG_EXT_CNT.
305 ///
306 UINT32 MCG_EXT_CNT:8;
307 ///
308 /// [Bit 24] MCG_SER_P.
309 ///
310 UINT32 MCG_SER_P:1;
311 ///
312 /// [Bit 25] MCG_EM_P.
313 ///
314 UINT32 MCG_EM_P:1;
315 ///
316 /// [Bit 26] MCG_ELOG_P.
317 ///
318 UINT32 MCG_ELOG_P:1;
319 UINT32 Reserved2:5;
320 UINT32 Reserved3:32;
321 } Bits;
322 ///
323 /// All bit fields as a 32-bit value
324 ///
325 UINT32 Uint32;
326 ///
327 /// All bit fields as a 64-bit value
328 ///
329 UINT64 Uint64;
330 } MSR_XEON_D_IA32_MCG_CAP_REGISTER;
331
332
333 /**
334 THREAD. Enhanced SMM Capabilities (SMM-RO) Reports SMM capability
335 Enhancement. Accessible only while in SMM.
336
337 @param ECX MSR_XEON_D_SMM_MCA_CAP (0x0000017D)
338 @param EAX Lower 32-bits of MSR value.
339 Described by the type MSR_XEON_D_SMM_MCA_CAP_REGISTER.
340 @param EDX Upper 32-bits of MSR value.
341 Described by the type MSR_XEON_D_SMM_MCA_CAP_REGISTER.
342
343 <b>Example usage</b>
344 @code
345 MSR_XEON_D_SMM_MCA_CAP_REGISTER Msr;
346
347 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_SMM_MCA_CAP);
348 AsmWriteMsr64 (MSR_XEON_D_SMM_MCA_CAP, Msr.Uint64);
349 @endcode
350 **/
351 #define MSR_XEON_D_SMM_MCA_CAP 0x0000017D
352
353 /**
354 MSR information returned for MSR index #MSR_XEON_D_SMM_MCA_CAP
355 **/
356 typedef union {
357 ///
358 /// Individual bit fields
359 ///
360 struct {
361 UINT32 Reserved1:32;
362 UINT32 Reserved2:26;
363 ///
364 /// [Bit 58] SMM_Code_Access_Chk (SMM-RO) If set to 1 indicates that the
365 /// SMM code access restriction is supported and a host-space interface
366 /// available to SMM handler.
367 ///
368 UINT32 SMM_Code_Access_Chk:1;
369 ///
370 /// [Bit 59] Long_Flow_Indication (SMM-RO) If set to 1 indicates that the
371 /// SMM long flow indicator is supported and a host-space interface
372 /// available to SMM handler.
373 ///
374 UINT32 Long_Flow_Indication:1;
375 UINT32 Reserved3:4;
376 } Bits;
377 ///
378 /// All bit fields as a 64-bit value
379 ///
380 UINT64 Uint64;
381 } MSR_XEON_D_SMM_MCA_CAP_REGISTER;
382
383
384 /**
385 Package.
386
387 @param ECX MSR_XEON_D_TEMPERATURE_TARGET (0x000001A2)
388 @param EAX Lower 32-bits of MSR value.
389 Described by the type MSR_XEON_D_TEMPERATURE_TARGET_REGISTER.
390 @param EDX Upper 32-bits of MSR value.
391 Described by the type MSR_XEON_D_TEMPERATURE_TARGET_REGISTER.
392
393 <b>Example usage</b>
394 @code
395 MSR_XEON_D_TEMPERATURE_TARGET_REGISTER Msr;
396
397 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TEMPERATURE_TARGET);
398 AsmWriteMsr64 (MSR_XEON_D_TEMPERATURE_TARGET, Msr.Uint64);
399 @endcode
400 **/
401 #define MSR_XEON_D_TEMPERATURE_TARGET 0x000001A2
402
403 /**
404 MSR information returned for MSR index #MSR_XEON_D_TEMPERATURE_TARGET
405 **/
406 typedef union {
407 ///
408 /// Individual bit fields
409 ///
410 struct {
411 UINT32 Reserved1:16;
412 ///
413 /// [Bits 23:16] Temperature Target (RO) See Table 35-21.
414 ///
415 UINT32 TemperatureTarget:8;
416 ///
417 /// [Bits 27:24] TCC Activation Offset (R/W) See Table 35-21.
418 ///
419 UINT32 TCCActivationOffset:4;
420 UINT32 Reserved2:4;
421 UINT32 Reserved3:32;
422 } Bits;
423 ///
424 /// All bit fields as a 32-bit value
425 ///
426 UINT32 Uint32;
427 ///
428 /// All bit fields as a 64-bit value
429 ///
430 UINT64 Uint64;
431 } MSR_XEON_D_TEMPERATURE_TARGET_REGISTER;
432
433
434 /**
435 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
436 RW if MSR_PLATFORM_INFO.[28] = 1.
437
438 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT (0x000001AD)
439 @param EAX Lower 32-bits of MSR value.
440 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER.
441 @param EDX Upper 32-bits of MSR value.
442 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER.
443
444 <b>Example usage</b>
445 @code
446 MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER Msr;
447
448 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT);
449 @endcode
450 **/
451 #define MSR_XEON_D_TURBO_RATIO_LIMIT 0x000001AD
452
453 /**
454 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT
455 **/
456 typedef union {
457 ///
458 /// Individual bit fields
459 ///
460 struct {
461 ///
462 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C.
463 ///
464 UINT32 Maximum1C:8;
465 ///
466 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C.
467 ///
468 UINT32 Maximum2C:8;
469 ///
470 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C.
471 ///
472 UINT32 Maximum3C:8;
473 ///
474 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C.
475 ///
476 UINT32 Maximum4C:8;
477 ///
478 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C.
479 ///
480 UINT32 Maximum5C:8;
481 ///
482 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C.
483 ///
484 UINT32 Maximum6C:8;
485 ///
486 /// [Bits 55:48] Package. Maximum Ratio Limit for 7C.
487 ///
488 UINT32 Maximum7C:8;
489 ///
490 /// [Bits 63:56] Package. Maximum Ratio Limit for 8C.
491 ///
492 UINT32 Maximum8C:8;
493 } Bits;
494 ///
495 /// All bit fields as a 64-bit value
496 ///
497 UINT64 Uint64;
498 } MSR_XEON_D_TURBO_RATIO_LIMIT_REGISTER;
499
500
501 /**
502 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
503 RW if MSR_PLATFORM_INFO.[28] = 1.
504
505 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT1 (0x000001AE)
506 @param EAX Lower 32-bits of MSR value.
507 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER.
508 @param EDX Upper 32-bits of MSR value.
509 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER.
510
511 <b>Example usage</b>
512 @code
513 MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER Msr;
514
515 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT1);
516 @endcode
517 **/
518 #define MSR_XEON_D_TURBO_RATIO_LIMIT1 0x000001AE
519
520 /**
521 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT1
522 **/
523 typedef union {
524 ///
525 /// Individual bit fields
526 ///
527 struct {
528 ///
529 /// [Bits 7:0] Package. Maximum Ratio Limit for 9C.
530 ///
531 UINT32 Maximum9C:8;
532 ///
533 /// [Bits 15:8] Package. Maximum Ratio Limit for 10C.
534 ///
535 UINT32 Maximum10C:8;
536 ///
537 /// [Bits 23:16] Package. Maximum Ratio Limit for 11C.
538 ///
539 UINT32 Maximum11C:8;
540 ///
541 /// [Bits 31:24] Package. Maximum Ratio Limit for 12C.
542 ///
543 UINT32 Maximum12C:8;
544 ///
545 /// [Bits 39:32] Package. Maximum Ratio Limit for 13C.
546 ///
547 UINT32 Maximum13C:8;
548 ///
549 /// [Bits 47:40] Package. Maximum Ratio Limit for 14C.
550 ///
551 UINT32 Maximum14C:8;
552 ///
553 /// [Bits 55:48] Package. Maximum Ratio Limit for 15C.
554 ///
555 UINT32 Maximum15C:8;
556 ///
557 /// [Bits 63:56] Package. Maximum Ratio Limit for 16C.
558 ///
559 UINT32 Maximum16C:8;
560 } Bits;
561 ///
562 /// All bit fields as a 64-bit value
563 ///
564 UINT64 Uint64;
565 } MSR_XEON_D_TURBO_RATIO_LIMIT1_REGISTER;
566
567
568 /**
569 Package. Unit Multipliers used in RAPL Interfaces (R/O).
570
571 @param ECX MSR_XEON_D_RAPL_POWER_UNIT (0x00000606)
572 @param EAX Lower 32-bits of MSR value.
573 Described by the type MSR_XEON_D_RAPL_POWER_UNIT_REGISTER.
574 @param EDX Upper 32-bits of MSR value.
575 Described by the type MSR_XEON_D_RAPL_POWER_UNIT_REGISTER.
576
577 <b>Example usage</b>
578 @code
579 MSR_XEON_D_RAPL_POWER_UNIT_REGISTER Msr;
580
581 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_RAPL_POWER_UNIT);
582 @endcode
583 **/
584 #define MSR_XEON_D_RAPL_POWER_UNIT 0x00000606
585
586 /**
587 MSR information returned for MSR index #MSR_XEON_D_RAPL_POWER_UNIT
588 **/
589 typedef union {
590 ///
591 /// Individual bit fields
592 ///
593 struct {
594 ///
595 /// [Bits 3:0] Package. Power Units See Section 14.9.1, "RAPL Interfaces.".
596 ///
597 UINT32 PowerUnits:4;
598 UINT32 Reserved1:4;
599 ///
600 /// [Bits 12:8] Package. Energy Status Units Energy related information
601 /// (in Joules) is based on the multiplier, 1/2^ESU; where ESU is an
602 /// unsigned integer represented by bits 12:8. Default value is 0EH (or 61
603 /// micro-joules).
604 ///
605 UINT32 EnergyStatusUnits:5;
606 UINT32 Reserved2:3;
607 ///
608 /// [Bits 19:16] Package. Time Units See Section 14.9.1, "RAPL
609 /// Interfaces.".
610 ///
611 UINT32 TimeUnits:4;
612 UINT32 Reserved3:12;
613 UINT32 Reserved4:32;
614 } Bits;
615 ///
616 /// All bit fields as a 32-bit value
617 ///
618 UINT32 Uint32;
619 ///
620 /// All bit fields as a 64-bit value
621 ///
622 UINT64 Uint64;
623 } MSR_XEON_D_RAPL_POWER_UNIT_REGISTER;
624
625
626 /**
627 Package. DRAM RAPL Power Limit Control (R/W) See Section 14.9.5, "DRAM RAPL
628 Domain.".
629
630 @param ECX MSR_XEON_D_DRAM_POWER_LIMIT (0x00000618)
631 @param EAX Lower 32-bits of MSR value.
632 @param EDX Upper 32-bits of MSR value.
633
634 <b>Example usage</b>
635 @code
636 UINT64 Msr;
637
638 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_POWER_LIMIT);
639 AsmWriteMsr64 (MSR_XEON_D_DRAM_POWER_LIMIT, Msr);
640 @endcode
641 **/
642 #define MSR_XEON_D_DRAM_POWER_LIMIT 0x00000618
643
644
645 /**
646 Package. DRAM Energy Status (R/O) See Section 14.9.5, "DRAM RAPL Domain.".
647
648 @param ECX MSR_XEON_D_DRAM_ENERGY_STATUS (0x00000619)
649 @param EAX Lower 32-bits of MSR value.
650 @param EDX Upper 32-bits of MSR value.
651
652 <b>Example usage</b>
653 @code
654 UINT64 Msr;
655
656 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_ENERGY_STATUS);
657 @endcode
658 **/
659 #define MSR_XEON_D_DRAM_ENERGY_STATUS 0x00000619
660
661
662 /**
663 Package. DRAM Performance Throttling Status (R/O) See Section 14.9.5, "DRAM
664 RAPL Domain.".
665
666 @param ECX MSR_XEON_D_DRAM_PERF_STATUS (0x0000061B)
667 @param EAX Lower 32-bits of MSR value.
668 @param EDX Upper 32-bits of MSR value.
669
670 <b>Example usage</b>
671 @code
672 UINT64 Msr;
673
674 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_PERF_STATUS);
675 @endcode
676 **/
677 #define MSR_XEON_D_DRAM_PERF_STATUS 0x0000061B
678
679
680 /**
681 Package. DRAM RAPL Parameters (R/W) See Section 14.9.5, "DRAM RAPL Domain.".
682
683 @param ECX MSR_XEON_D_DRAM_POWER_INFO (0x0000061C)
684 @param EAX Lower 32-bits of MSR value.
685 @param EDX Upper 32-bits of MSR value.
686
687 <b>Example usage</b>
688 @code
689 UINT64 Msr;
690
691 Msr = AsmReadMsr64 (MSR_XEON_D_DRAM_POWER_INFO);
692 AsmWriteMsr64 (MSR_XEON_D_DRAM_POWER_INFO, Msr);
693 @endcode
694 **/
695 #define MSR_XEON_D_DRAM_POWER_INFO 0x0000061C
696
697
698 /**
699 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
700 refers to processor core frequency).
701
702 @param ECX MSR_XEON_D_CORE_PERF_LIMIT_REASONS (0x00000690)
703 @param EAX Lower 32-bits of MSR value.
704 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
705 @param EDX Upper 32-bits of MSR value.
706 Described by the type MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER.
707
708 <b>Example usage</b>
709 @code
710 MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
711
712 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS);
713 AsmWriteMsr64 (MSR_XEON_D_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
714 @endcode
715 **/
716 #define MSR_XEON_D_CORE_PERF_LIMIT_REASONS 0x00000690
717
718 /**
719 MSR information returned for MSR index #MSR_XEON_D_CORE_PERF_LIMIT_REASONS
720 **/
721 typedef union {
722 ///
723 /// Individual bit fields
724 ///
725 struct {
726 ///
727 /// [Bit 0] PROCHOT Status (R0) When set, processor core frequency is
728 /// reduced below the operating system request due to assertion of
729 /// external PROCHOT.
730 ///
731 UINT32 PROCHOT_Status:1;
732 ///
733 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
734 /// operating system request due to a thermal event.
735 ///
736 UINT32 ThermalStatus:1;
737 ///
738 /// [Bit 2] Power Budget Management Status (R0) When set, frequency is
739 /// reduced below the operating system request due to PBM limit.
740 ///
741 UINT32 PowerBudgetManagementStatus:1;
742 ///
743 /// [Bit 3] Platform Configuration Services Status (R0) When set,
744 /// frequency is reduced below the operating system request due to PCS
745 /// limit.
746 ///
747 UINT32 PlatformConfigurationServicesStatus:1;
748 UINT32 Reserved1:1;
749 ///
750 /// [Bit 5] Autonomous Utilization-Based Frequency Control Status (R0)
751 /// When set, frequency is reduced below the operating system request
752 /// because the processor has detected that utilization is low.
753 ///
754 UINT32 AutonomousUtilizationBasedFrequencyControlStatus:1;
755 ///
756 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced
757 /// below the operating system request due to a thermal alert from the
758 /// Voltage Regulator.
759 ///
760 UINT32 VRThermAlertStatus:1;
761 UINT32 Reserved2:1;
762 ///
763 /// [Bit 8] Electrical Design Point Status (R0) When set, frequency is
764 /// reduced below the operating system request due to electrical design
765 /// point constraints (e.g. maximum electrical current consumption).
766 ///
767 UINT32 ElectricalDesignPointStatus:1;
768 UINT32 Reserved3:1;
769 ///
770 /// [Bit 10] Multi-Core Turbo Status (R0) When set, frequency is reduced
771 /// below the operating system request due to Multi-Core Turbo limits.
772 ///
773 UINT32 MultiCoreTurboStatus:1;
774 UINT32 Reserved4:2;
775 ///
776 /// [Bit 13] Core Frequency P1 Status (R0) When set, frequency is reduced
777 /// below max non-turbo P1.
778 ///
779 UINT32 FrequencyP1Status:1;
780 ///
781 /// [Bit 14] Core Max n-core Turbo Frequency Limiting Status (R0) When
782 /// set, frequency is reduced below max n-core turbo frequency.
783 ///
784 UINT32 TurboFrequencyLimitingStatus:1;
785 ///
786 /// [Bit 15] Core Frequency Limiting Status (R0) When set, frequency is
787 /// reduced below the operating system request.
788 ///
789 UINT32 FrequencyLimitingStatus:1;
790 ///
791 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
792 /// has asserted since the log bit was last cleared. This log bit will
793 /// remain set until cleared by software writing 0.
794 ///
795 UINT32 PROCHOT_Log:1;
796 ///
797 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
798 /// has asserted since the log bit was last cleared. This log bit will
799 /// remain set until cleared by software writing 0.
800 ///
801 UINT32 ThermalLog:1;
802 ///
803 /// [Bit 18] Power Budget Management Log When set, indicates that the PBM
804 /// Status bit has asserted since the log bit was last cleared. This log
805 /// bit will remain set until cleared by software writing 0.
806 ///
807 UINT32 PowerBudgetManagementLog:1;
808 ///
809 /// [Bit 19] Platform Configuration Services Log When set, indicates that
810 /// the PCS Status bit has asserted since the log bit was last cleared.
811 /// This log bit will remain set until cleared by software writing 0.
812 ///
813 UINT32 PlatformConfigurationServicesLog:1;
814 UINT32 Reserved5:1;
815 ///
816 /// [Bit 21] Autonomous Utilization-Based Frequency Control Log When set,
817 /// indicates that the AUBFC Status bit has asserted since the log bit was
818 /// last cleared. This log bit will remain set until cleared by software
819 /// writing 0.
820 ///
821 UINT32 AutonomousUtilizationBasedFrequencyControlLog:1;
822 ///
823 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
824 /// Alert Status bit has asserted since the log bit was last cleared. This
825 /// log bit will remain set until cleared by software writing 0.
826 ///
827 UINT32 VRThermAlertLog:1;
828 UINT32 Reserved6:1;
829 ///
830 /// [Bit 24] Electrical Design Point Log When set, indicates that the EDP
831 /// Status bit has asserted since the log bit was last cleared. This log
832 /// bit will remain set until cleared by software writing 0.
833 ///
834 UINT32 ElectricalDesignPointLog:1;
835 UINT32 Reserved7:1;
836 ///
837 /// [Bit 26] Multi-Core Turbo Log When set, indicates that the Multi-Core
838 /// Turbo Status bit has asserted since the log bit was last cleared. This
839 /// log bit will remain set until cleared by software writing 0.
840 ///
841 UINT32 MultiCoreTurboLog:1;
842 UINT32 Reserved8:2;
843 ///
844 /// [Bit 29] Core Frequency P1 Log When set, indicates that the Core
845 /// Frequency P1 Status bit has asserted since the log bit was last
846 /// cleared. This log bit will remain set until cleared by software
847 /// writing 0.
848 ///
849 UINT32 CoreFrequencyP1Log:1;
850 ///
851 /// [Bit 30] Core Max n-core Turbo Frequency Limiting Log When set,
852 /// indicates that the Core Max n-core Turbo Frequency Limiting Status bit
853 /// has asserted since the log bit was last cleared. This log bit will
854 /// remain set until cleared by software writing 0.
855 ///
856 UINT32 TurboFrequencyLimitingLog:1;
857 ///
858 /// [Bit 31] Core Frequency Limiting Log When set, indicates that the Core
859 /// Frequency Limiting Status bit has asserted since the log bit was last
860 /// cleared. This log bit will remain set until cleared by software
861 /// writing 0.
862 ///
863 UINT32 CoreFrequencyLimitingLog:1;
864 UINT32 Reserved9:32;
865 } Bits;
866 ///
867 /// All bit fields as a 32-bit value
868 ///
869 UINT32 Uint32;
870 ///
871 /// All bit fields as a 64-bit value
872 ///
873 UINT64 Uint64;
874 } MSR_XEON_D_CORE_PERF_LIMIT_REASONS_REGISTER;
875
876
877 /**
878 THREAD. Monitoring Event Select Register (R/W) if CPUID.(EAX=07H,
879 ECX=0):EBX.PQM[bit 12] = 1.
880
881 @param ECX MSR_XEON_D_IA32_QM_EVTSEL (0x00000C8D)
882 @param EAX Lower 32-bits of MSR value.
883 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
884 @param EDX Upper 32-bits of MSR value.
885 Described by the type MSR_XEON_D_IA32_QM_EVTSEL_REGISTER.
886
887 <b>Example usage</b>
888 @code
889 MSR_XEON_D_IA32_QM_EVTSEL_REGISTER Msr;
890
891 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_QM_EVTSEL);
892 AsmWriteMsr64 (MSR_XEON_D_IA32_QM_EVTSEL, Msr.Uint64);
893 @endcode
894 **/
895 #define MSR_XEON_D_IA32_QM_EVTSEL 0x00000C8D
896
897 /**
898 MSR information returned for MSR index #MSR_XEON_D_IA32_QM_EVTSEL
899 **/
900 typedef union {
901 ///
902 /// Individual bit fields
903 ///
904 struct {
905 ///
906 /// [Bits 7:0] EventID (RW) Event encoding: 0x00: no monitoring 0x01: L3
907 /// occupancy monitoring 0x02: Total memory bandwidth monitoring 0x03:
908 /// Local memory bandwidth monitoring All other encoding reserved.
909 ///
910 UINT32 EventID:8;
911 UINT32 Reserved1:24;
912 ///
913 /// [Bits 41:32] RMID (RW).
914 ///
915 UINT32 RMID:10;
916 UINT32 Reserved2:22;
917 } Bits;
918 ///
919 /// All bit fields as a 64-bit value
920 ///
921 UINT64 Uint64;
922 } MSR_XEON_D_IA32_QM_EVTSEL_REGISTER;
923
924
925 /**
926 THREAD. Resource Association Register (R/W).
927
928 @param ECX MSR_XEON_D_IA32_PQR_ASSOC (0x00000C8F)
929 @param EAX Lower 32-bits of MSR value.
930 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
931 @param EDX Upper 32-bits of MSR value.
932 Described by the type MSR_XEON_D_IA32_PQR_ASSOC_REGISTER.
933
934 <b>Example usage</b>
935 @code
936 MSR_XEON_D_IA32_PQR_ASSOC_REGISTER Msr;
937
938 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_PQR_ASSOC);
939 AsmWriteMsr64 (MSR_XEON_D_IA32_PQR_ASSOC, Msr.Uint64);
940 @endcode
941 **/
942 #define MSR_XEON_D_IA32_PQR_ASSOC 0x00000C8F
943
944 /**
945 MSR information returned for MSR index #MSR_XEON_D_IA32_PQR_ASSOC
946 **/
947 typedef union {
948 ///
949 /// Individual bit fields
950 ///
951 struct {
952 ///
953 /// [Bits 9:0] RMID.
954 ///
955 UINT32 RMID:10;
956 UINT32 Reserved1:22;
957 ///
958 /// [Bits 51:32] COS (R/W).
959 ///
960 UINT32 COS:20;
961 UINT32 Reserved2:12;
962 } Bits;
963 ///
964 /// All bit fields as a 64-bit value
965 ///
966 UINT64 Uint64;
967 } MSR_XEON_D_IA32_PQR_ASSOC_REGISTER;
968
969
970 /**
971 Package. L3 Class Of Service Mask - COS n (R/W) if CPUID.(EAX=10H,
972 ECX=1):EDX.COS_MAX[15:0] >= n.
973
974 @param ECX MSR_XEON_D_IA32_L3_QOS_MASK_n
975 @param EAX Lower 32-bits of MSR value.
976 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
977 @param EDX Upper 32-bits of MSR value.
978 Described by the type MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER.
979
980 <b>Example usage</b>
981 @code
982 MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER Msr;
983
984 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0);
985 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_MASK_0, Msr.Uint64);
986 @endcode
987 @{
988 **/
989 #define MSR_XEON_D_IA32_L3_QOS_MASK_0 0x00000C90
990 #define MSR_XEON_D_IA32_L3_QOS_MASK_1 0x00000C91
991 #define MSR_XEON_D_IA32_L3_QOS_MASK_2 0x00000C92
992 #define MSR_XEON_D_IA32_L3_QOS_MASK_3 0x00000C93
993 #define MSR_XEON_D_IA32_L3_QOS_MASK_4 0x00000C94
994 #define MSR_XEON_D_IA32_L3_QOS_MASK_5 0x00000C95
995 #define MSR_XEON_D_IA32_L3_QOS_MASK_6 0x00000C96
996 #define MSR_XEON_D_IA32_L3_QOS_MASK_7 0x00000C97
997 #define MSR_XEON_D_IA32_L3_QOS_MASK_8 0x00000C98
998 #define MSR_XEON_D_IA32_L3_QOS_MASK_9 0x00000C99
999 #define MSR_XEON_D_IA32_L3_QOS_MASK_10 0x00000C9A
1000 #define MSR_XEON_D_IA32_L3_QOS_MASK_11 0x00000C9B
1001 #define MSR_XEON_D_IA32_L3_QOS_MASK_12 0x00000C9C
1002 #define MSR_XEON_D_IA32_L3_QOS_MASK_13 0x00000C9D
1003 #define MSR_XEON_D_IA32_L3_QOS_MASK_14 0x00000C9E
1004 #define MSR_XEON_D_IA32_L3_QOS_MASK_15 0x00000C9F
1005 /// @}
1006
1007 /**
1008 MSR information returned for MSR indexes #MSR_XEON_D_IA32_L3_QOS_MASK_0
1009 to #MSR_XEON_D_IA32_L3_QOS_MASK_15.
1010 **/
1011 typedef union {
1012 ///
1013 /// Individual bit fields
1014 ///
1015 struct {
1016 ///
1017 /// [Bits 19:0] CBM: Bit vector of available L3 ways for COS 0 enforcement.
1018 ///
1019 UINT32 CBM:20;
1020 UINT32 Reserved2:12;
1021 UINT32 Reserved3:32;
1022 } Bits;
1023 ///
1024 /// All bit fields as a 32-bit value
1025 ///
1026 UINT32 Uint32;
1027 ///
1028 /// All bit fields as a 64-bit value
1029 ///
1030 UINT64 Uint64;
1031 } MSR_XEON_D_IA32_L3_QOS_MASK_REGISTER;
1032
1033
1034 /**
1035 Package. Config Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
1036 RW if MSR_PLATFORM_INFO.[28] = 1.
1037
1038 @param ECX MSR_XEON_D_TURBO_RATIO_LIMIT3 (0x000001AC)
1039 @param EAX Lower 32-bits of MSR value.
1040 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1041 @param EDX Upper 32-bits of MSR value.
1042 Described by the type MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER.
1043
1044 <b>Example usage</b>
1045 @code
1046 MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER Msr;
1047
1048 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_TURBO_RATIO_LIMIT3);
1049 @endcode
1050 **/
1051 #define MSR_XEON_D_TURBO_RATIO_LIMIT3 0x000001AC
1052
1053 /**
1054 MSR information returned for MSR index #MSR_XEON_D_TURBO_RATIO_LIMIT3
1055 **/
1056 typedef union {
1057 ///
1058 /// Individual bit fields
1059 ///
1060 struct {
1061 UINT32 Reserved1:32;
1062 UINT32 Reserved2:31;
1063 ///
1064 /// [Bit 63] Package. Semaphore for Turbo Ratio Limit Configuration If 1,
1065 /// the processor uses override configuration specified in
1066 /// MSR_TURBO_RATIO_LIMIT, MSR_TURBO_RATIO_LIMIT1. If 0, the processor
1067 /// uses factory-set configuration (Default).
1068 ///
1069 UINT32 TurboRatioLimitConfigurationSemaphore:1;
1070 } Bits;
1071 ///
1072 /// All bit fields as a 64-bit value
1073 ///
1074 UINT64 Uint64;
1075 } MSR_XEON_D_TURBO_RATIO_LIMIT3_REGISTER;
1076
1077
1078 /**
1079 Package. See Section 15.3.2.1, "IA32_MCi_CTL MSRs." through Section
1080 15.3.2.4, "IA32_MCi_MISC MSRs.".
1081
1082 * Bank MC5 reports MC error from the Intel QPI 0 module.
1083 * Bank MC6 reports MC error from the integrated I/O module.
1084 * Bank MC7 reports MC error from the home agent HA 0.
1085 * Bank MC8 reports MC error from the home agent HA 1.
1086 * Banks MC9 through MC16 report MC error from each channel of the integrated
1087 memory controllers.
1088 * Bank MC17 reports MC error from the following pair of CBo/L3 Slices
1089 (if the pair is present): CBo0, CBo3, CBo6, CBo9, CBo12, CBo15.
1090 * Bank MC18 reports MC error from the following pair of CBo/L3 Slices
1091 (if the pair is present): CBo1, CBo4, CBo7, CBo10, CBo13, CBo16.
1092 * Bank MC19 reports MC error from the following pair of CBo/L3 Slices
1093 (if the pair is present): CBo2, CBo5, CBo8, CBo11, CBo14, CBo17.
1094 * Bank MC20 reports MC error from the Intel QPI 1 module.
1095 * Bank MC21 reports MC error from the Intel QPI 2 module.
1096
1097 @param ECX MSR_XEON_D_MCi_CTL
1098 @param EAX Lower 32-bits of MSR value.
1099 @param EDX Upper 32-bits of MSR value.
1100
1101 <b>Example usage</b>
1102 @code
1103 UINT64 Msr;
1104
1105 Msr = AsmReadMsr64 (MSR_XEON_D_MC5_CTL);
1106 AsmWriteMsr64 (MSR_XEON_D_MC5_CTL, Msr);
1107 @endcode
1108 @{
1109 **/
1110 #define MSR_XEON_D_MC5_CTL 0x00000414
1111 #define MSR_XEON_D_MC6_CTL 0x00000418
1112 #define MSR_XEON_D_MC7_CTL 0x0000041C
1113 #define MSR_XEON_D_MC8_CTL 0x00000420
1114 #define MSR_XEON_D_MC9_CTL 0x00000424
1115 #define MSR_XEON_D_MC10_CTL 0x00000428
1116 #define MSR_XEON_D_MC11_CTL 0x0000042C
1117 #define MSR_XEON_D_MC12_CTL 0x00000430
1118 #define MSR_XEON_D_MC13_CTL 0x00000434
1119 #define MSR_XEON_D_MC14_CTL 0x00000438
1120 #define MSR_XEON_D_MC15_CTL 0x0000043C
1121 #define MSR_XEON_D_MC16_CTL 0x00000440
1122 #define MSR_XEON_D_MC17_CTL 0x00000444
1123 #define MSR_XEON_D_MC18_CTL 0x00000448
1124 #define MSR_XEON_D_MC19_CTL 0x0000044C
1125 #define MSR_XEON_D_MC20_CTL 0x00000450
1126 #define MSR_XEON_D_MC21_CTL 0x00000454
1127 /// @}
1128
1129 /**
1130 Package. See Section 15.3.2.1, "IA32_MCi_CTL MSRs." through Section
1131 15.3.2.4, "IA32_MCi_MISC MSRs.".
1132
1133 @param ECX MSR_XEON_D_MCi_STATUS
1134 @param EAX Lower 32-bits of MSR value.
1135 @param EDX Upper 32-bits of MSR value.
1136
1137 <b>Example usage</b>
1138 @code
1139 UINT64 Msr;
1140
1141 Msr = AsmReadMsr64 (MSR_XEON_D_MC6_STATUS);
1142 AsmWriteMsr64 (MSR_XEON_D_MC6_STATUS, Msr);
1143 @endcode
1144 @{
1145 **/
1146 #define MSR_XEON_D_MC5_STATUS 0x00000415
1147 #define MSR_XEON_D_MC6_STATUS 0x00000419
1148 #define MSR_XEON_D_MC7_STATUS 0x0000041D
1149 #define MSR_XEON_D_MC8_STATUS 0x00000421
1150 #define MSR_XEON_D_MC9_STATUS 0x00000425
1151 #define MSR_XEON_D_MC10_STATUS 0x00000429
1152 #define MSR_XEON_D_MC11_STATUS 0x0000042D
1153 #define MSR_XEON_D_MC12_STATUS 0x00000431
1154 #define MSR_XEON_D_MC13_STATUS 0x00000435
1155 #define MSR_XEON_D_MC14_STATUS 0x00000439
1156 #define MSR_XEON_D_MC15_STATUS 0x0000043D
1157 #define MSR_XEON_D_MC16_STATUS 0x00000441
1158 #define MSR_XEON_D_MC17_STATUS 0x00000445
1159 #define MSR_XEON_D_MC18_STATUS 0x00000449
1160 #define MSR_XEON_D_MC19_STATUS 0x0000044D
1161 #define MSR_XEON_D_MC20_STATUS 0x00000451
1162 #define MSR_XEON_D_MC21_STATUS 0x00000455
1163 /// @}
1164
1165 /**
1166 Package. See Section 15.3.2.1, "IA32_MCi_CTL MSRs." through Section
1167 15.3.2.4, "IA32_MCi_MISC MSRs.".
1168
1169 @param ECX MSR_XEON_D_MCi_ADDR
1170 @param EAX Lower 32-bits of MSR value.
1171 @param EDX Upper 32-bits of MSR value.
1172
1173 <b>Example usage</b>
1174 @code
1175 UINT64 Msr;
1176
1177 Msr = AsmReadMsr64 (MSR_XEON_D_MC6_ADDR);
1178 AsmWriteMsr64 (MSR_XEON_D_MC6_ADDR, Msr);
1179 @endcode
1180 @{
1181 **/
1182 #define MSR_XEON_D_MC5_ADDR 0x00000416
1183 #define MSR_XEON_D_MC6_ADDR 0x0000041A
1184 #define MSR_XEON_D_MC7_ADDR 0x0000041E
1185 #define MSR_XEON_D_MC8_ADDR 0x00000422
1186 #define MSR_XEON_D_MC9_ADDR 0x00000426
1187 #define MSR_XEON_D_MC10_ADDR 0x0000042A
1188 #define MSR_XEON_D_MC11_ADDR 0x0000042E
1189 #define MSR_XEON_D_MC12_ADDR 0x00000432
1190 #define MSR_XEON_D_MC13_ADDR 0x00000436
1191 #define MSR_XEON_D_MC14_ADDR 0x0000043A
1192 #define MSR_XEON_D_MC15_ADDR 0x0000043E
1193 #define MSR_XEON_D_MC16_ADDR 0x00000442
1194 #define MSR_XEON_D_MC17_ADDR 0x00000446
1195 #define MSR_XEON_D_MC18_ADDR 0x0000044A
1196 #define MSR_XEON_D_MC19_ADDR 0x0000044E
1197 #define MSR_XEON_D_MC20_ADDR 0x00000452
1198 #define MSR_XEON_D_MC21_ADDR 0x00000456
1199 /// @}
1200
1201
1202 /**
1203 Package. See Section 15.3.2.1, "IA32_MCi_CTL MSRs." through Section
1204 15.3.2.4, "IA32_MCi_MISC MSRs.".
1205
1206 @param ECX MSR_XEON_D_MCi_MISC
1207 @param EAX Lower 32-bits of MSR value.
1208 @param EDX Upper 32-bits of MSR value.
1209
1210 <b>Example usage</b>
1211 @code
1212 UINT64 Msr;
1213
1214 Msr = AsmReadMsr64 (MSR_XEON_D_MC6_MISC);
1215 AsmWriteMsr64 (MSR_XEON_D_MC6_MISC, Msr);
1216 @endcode
1217 @{
1218 **/
1219 #define MSR_XEON_D_MC5_MISC 0x00000417
1220 #define MSR_XEON_D_MC6_MISC 0x0000041B
1221 #define MSR_XEON_D_MC7_MISC 0x0000041F
1222 #define MSR_XEON_D_MC8_MISC 0x00000423
1223 #define MSR_XEON_D_MC9_MISC 0x00000427
1224 #define MSR_XEON_D_MC10_MISC 0x0000042B
1225 #define MSR_XEON_D_MC11_MISC 0x0000042F
1226 #define MSR_XEON_D_MC12_MISC 0x00000433
1227 #define MSR_XEON_D_MC13_MISC 0x00000437
1228 #define MSR_XEON_D_MC14_MISC 0x0000043B
1229 #define MSR_XEON_D_MC15_MISC 0x0000043F
1230 #define MSR_XEON_D_MC16_MISC 0x00000443
1231 #define MSR_XEON_D_MC17_MISC 0x00000447
1232 #define MSR_XEON_D_MC18_MISC 0x0000044B
1233 #define MSR_XEON_D_MC19_MISC 0x0000044F
1234 #define MSR_XEON_D_MC20_MISC 0x00000453
1235 #define MSR_XEON_D_MC21_MISC 0x00000457
1236 /// @}
1237
1238
1239 /**
1240 Package. Note: C-state values are processor specific C-state code names,
1241 unrelated to MWAIT extension C-state parameters or ACPI C-States.
1242
1243 @param ECX MSR_XEON_D_PKG_C8_RESIDENCY (0x00000630)
1244 @param EAX Lower 32-bits of MSR value.
1245 Described by the type MSR_XEON_D_PKG_C8_RESIDENCY_REGISTER.
1246 @param EDX Upper 32-bits of MSR value.
1247 Described by the type MSR_XEON_D_PKG_C8_RESIDENCY_REGISTER.
1248
1249 <b>Example usage</b>
1250 @code
1251 MSR_XEON_D_PKG_C8_RESIDENCY_REGISTER Msr;
1252
1253 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PKG_C8_RESIDENCY);
1254 AsmWriteMsr64 (MSR_XEON_D_PKG_C8_RESIDENCY, Msr.Uint64);
1255 @endcode
1256 **/
1257 #define MSR_XEON_D_PKG_C8_RESIDENCY 0x00000630
1258
1259 /**
1260 MSR information returned for MSR index #MSR_XEON_D_PKG_C8_RESIDENCY
1261 **/
1262 typedef union {
1263 ///
1264 /// Individual bit fields
1265 ///
1266 struct {
1267 ///
1268 /// [Bits 31:0] Package C8 Residency Counter. (R/O) Value since last reset
1269 /// that this package is in processor-specific C8 states. Count at the
1270 /// same frequency as the TSC.
1271 ///
1272 UINT32 C8ResidencyCounter:32;
1273 ///
1274 /// [Bits 59:32] Package C8 Residency Counter. (R/O) Value since last
1275 /// reset that this package is in processor-specific C8 states. Count at
1276 /// the same frequency as the TSC.
1277 ///
1278 UINT32 C8ResidencyCounterHi:28;
1279 UINT32 Reserved:4;
1280 } Bits;
1281 ///
1282 /// All bit fields as a 64-bit value
1283 ///
1284 UINT64 Uint64;
1285 } MSR_XEON_D_PKG_C8_RESIDENCY_REGISTER;
1286
1287
1288 /**
1289 Package. Note: C-state values are processor specific C-state code names,
1290 unrelated to MWAIT extension C-state parameters or ACPI C-States.
1291
1292 @param ECX MSR_XEON_D_PKG_C9_RESIDENCY (0x00000631)
1293 @param EAX Lower 32-bits of MSR value.
1294 Described by the type MSR_XEON_D_PKG_C9_RESIDENCY_REGISTER.
1295 @param EDX Upper 32-bits of MSR value.
1296 Described by the type MSR_XEON_D_PKG_C9_RESIDENCY_REGISTER.
1297
1298 <b>Example usage</b>
1299 @code
1300 MSR_XEON_D_PKG_C9_RESIDENCY_REGISTER Msr;
1301
1302 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PKG_C9_RESIDENCY);
1303 AsmWriteMsr64 (MSR_XEON_D_PKG_C9_RESIDENCY, Msr.Uint64);
1304 @endcode
1305 **/
1306 #define MSR_XEON_D_PKG_C9_RESIDENCY 0x00000631
1307
1308 /**
1309 MSR information returned for MSR index #MSR_XEON_D_PKG_C9_RESIDENCY
1310 **/
1311 typedef union {
1312 ///
1313 /// Individual bit fields
1314 ///
1315 struct {
1316 ///
1317 /// [Bits 31:0] Package C9 Residency Counter. (R/O) Value since last reset
1318 /// that this package is in processor-specific C9 states. Count at the
1319 /// same frequency as the TSC.
1320 ///
1321 UINT32 C9ResidencyCounter:32;
1322 ///
1323 /// [Bits 59:32] Package C9 Residency Counter. (R/O) Value since last
1324 /// reset that this package is in processor-specific C9 states. Count at
1325 /// the same frequency as the TSC.
1326 ///
1327 UINT32 C9ResidencyCounterHi:28;
1328 UINT32 Reserved:4;
1329 } Bits;
1330 ///
1331 /// All bit fields as a 64-bit value
1332 ///
1333 UINT64 Uint64;
1334 } MSR_XEON_D_PKG_C9_RESIDENCY_REGISTER;
1335
1336
1337 /**
1338 Package. Note: C-state values are processor specific C-state code names,
1339 unrelated to MWAIT extension C-state parameters or ACPI C-States.
1340
1341 @param ECX MSR_XEON_D_PKG_C10_RESIDENCY (0x00000632)
1342 @param EAX Lower 32-bits of MSR value.
1343 Described by the type MSR_XEON_D_PKG_C10_RESIDENCY_REGISTER.
1344 @param EDX Upper 32-bits of MSR value.
1345 Described by the type MSR_XEON_D_PKG_C10_RESIDENCY_REGISTER.
1346
1347 <b>Example usage</b>
1348 @code
1349 MSR_XEON_D_PKG_C10_RESIDENCY_REGISTER Msr;
1350
1351 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_PKG_C10_RESIDENCY);
1352 AsmWriteMsr64 (MSR_XEON_D_PKG_C10_RESIDENCY, Msr.Uint64);
1353 @endcode
1354 **/
1355 #define MSR_XEON_D_PKG_C10_RESIDENCY 0x00000632
1356
1357 /**
1358 MSR information returned for MSR index #MSR_XEON_D_PKG_C10_RESIDENCY
1359 **/
1360 typedef union {
1361 ///
1362 /// Individual bit fields
1363 ///
1364 struct {
1365 ///
1366 /// [Bits 31:0] Package C10 Residency Counter. (R/O) Value since last
1367 /// reset that this package is in processor-specific C10 states. Count at
1368 /// the same frequency as the TSC.
1369 ///
1370 UINT32 C10ResidencyCounter:32;
1371 ///
1372 /// [Bits 59:32] Package C10 Residency Counter. (R/O) Value since last
1373 /// reset that this package is in processor-specific C10 states. Count at
1374 /// the same frequency as the TSC.
1375 ///
1376 UINT32 C10ResidencyCounterHi:28;
1377 UINT32 Reserved:4;
1378 } Bits;
1379 ///
1380 /// All bit fields as a 64-bit value
1381 ///
1382 UINT64 Uint64;
1383 } MSR_XEON_D_PKG_C10_RESIDENCY_REGISTER;
1384
1385
1386 /**
1387 Package. Cache Allocation Technology Configuration (R/W).
1388
1389 @param ECX MSR_XEON_D_IA32_L3_QOS_CFG (0x00000C81)
1390 @param EAX Lower 32-bits of MSR value.
1391 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1392 @param EDX Upper 32-bits of MSR value.
1393 Described by the type MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER.
1394
1395 <b>Example usage</b>
1396 @code
1397 MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER Msr;
1398
1399 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG);
1400 AsmWriteMsr64 (MSR_XEON_D_IA32_L3_QOS_CFG, Msr.Uint64);
1401 @endcode
1402 **/
1403 #define MSR_XEON_D_IA32_L3_QOS_CFG 0x00000C81
1404
1405 /**
1406 MSR information returned for MSR index #MSR_XEON_D_IA32_L3_QOS_CFG
1407 **/
1408 typedef union {
1409 ///
1410 /// Individual bit fields
1411 ///
1412 struct {
1413 ///
1414 /// [Bit 0] CAT Enable. Set 1 to enable Cache Allocation Technology.
1415 ///
1416 UINT32 CAT:1;
1417 UINT32 Reserved1:31;
1418 UINT32 Reserved2:32;
1419 } Bits;
1420 ///
1421 /// All bit fields as a 32-bit value
1422 ///
1423 UINT32 Uint32;
1424 ///
1425 /// All bit fields as a 64-bit value
1426 ///
1427 UINT64 Uint64;
1428 } MSR_XEON_D_IA32_L3_QOS_CFG_REGISTER;
1429
1430 #endif