]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/XeonPhiMsr.h
UefiCpuPkg/Msr: Add CPUID signature check MACROs
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / XeonPhiMsr.h
1 /** @file
2 MSR Definitions for Intel(R) Xeon(R) Phi(TM) processor Family.
3
4 Provides defines for Machine Specific Registers(MSR) indexes. Data structures
5 are provided for MSRs that contain one or more bit fields. If the MSR value
6 returned is a single 32-bit or 64-bit value, then a data structure is not
7 provided for that MSR.
8
9 Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
14
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 September 2016, Chapter 35 Model-Specific-Registers (MSR), Section 35.17.
21
22 **/
23
24 #ifndef __XEON_PHI_MSR_H__
25 #define __XEON_PHI_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Is Intel(R) Xeon(R) Phi(TM) processor 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_PHI_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
40 ( \
41 DisplayModel == 0x57 \
42 ) \
43 )
44
45 /**
46 Thread. SMI Counter (R/O).
47
48 @param ECX MSR_XEON_PHI_SMI_COUNT (0x00000034)
49 @param EAX Lower 32-bits of MSR value.
50 Described by the type MSR_XEON_PHI_SMI_COUNT_REGISTER.
51 @param EDX Upper 32-bits of MSR value.
52 Described by the type MSR_XEON_PHI_SMI_COUNT_REGISTER.
53
54 <b>Example usage</b>
55 @code
56 MSR_XEON_PHI_SMI_COUNT_REGISTER Msr;
57
58 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_SMI_COUNT);
59 @endcode
60 @note MSR_XEON_PHI_SMI_COUNT is defined as MSR_SMI_COUNT in SDM.
61 **/
62 #define MSR_XEON_PHI_SMI_COUNT 0x00000034
63
64 /**
65 MSR information returned for MSR index #MSR_XEON_PHI_SMI_COUNT
66 **/
67 typedef union {
68 ///
69 /// Individual bit fields
70 ///
71 struct {
72 ///
73 /// [Bits 31:0] SMI Count (R/O).
74 ///
75 UINT32 SMICount:32;
76 UINT32 Reserved:32;
77 } Bits;
78 ///
79 /// All bit fields as a 32-bit value
80 ///
81 UINT32 Uint32;
82 ///
83 /// All bit fields as a 64-bit value
84 ///
85 UINT64 Uint64;
86 } MSR_XEON_PHI_SMI_COUNT_REGISTER;
87
88
89 /**
90 Package. See http://biosbits.org.
91
92 @param ECX MSR_XEON_PHI_PLATFORM_INFO (0x000000CE)
93 @param EAX Lower 32-bits of MSR value.
94 Described by the type MSR_XEON_PHI_PLATFORM_INFO_REGISTER.
95 @param EDX Upper 32-bits of MSR value.
96 Described by the type MSR_XEON_PHI_PLATFORM_INFO_REGISTER.
97
98 <b>Example usage</b>
99 @code
100 MSR_XEON_PHI_PLATFORM_INFO_REGISTER Msr;
101
102 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_PLATFORM_INFO);
103 AsmWriteMsr64 (MSR_XEON_PHI_PLATFORM_INFO, Msr.Uint64);
104 @endcode
105 @note MSR_XEON_PHI_PLATFORM_INFO is defined as MSR_PLATFORM_INFO in SDM.
106 **/
107 #define MSR_XEON_PHI_PLATFORM_INFO 0x000000CE
108
109 /**
110 MSR information returned for MSR index #MSR_XEON_PHI_PLATFORM_INFO
111 **/
112 typedef union {
113 ///
114 /// Individual bit fields
115 ///
116 struct {
117 UINT32 Reserved1:8;
118 ///
119 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) The is the ratio
120 /// of the frequency that invariant TSC runs at. Frequency = ratio * 100
121 /// MHz.
122 ///
123 UINT32 MaximumNonTurboRatio:8;
124 UINT32 Reserved2:12;
125 ///
126 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) When
127 /// set to 1, indicates that Programmable Ratio Limits for Turbo mode is
128 /// enabled, and when set to 0, indicates Programmable Ratio Limits for
129 /// Turbo mode is disabled.
130 ///
131 UINT32 RatioLimit:1;
132 ///
133 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) When
134 /// set to 1, indicates that TDP Limits for Turbo mode are programmable,
135 /// and when set to 0, indicates TDP Limit for Turbo mode is not
136 /// programmable.
137 ///
138 UINT32 TDPLimit:1;
139 UINT32 Reserved3:2;
140 UINT32 Reserved4:8;
141 ///
142 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) The is the
143 /// minimum ratio (maximum efficiency) that the processor can operates, in
144 /// units of 100MHz.
145 ///
146 UINT32 MaximumEfficiencyRatio:8;
147 UINT32 Reserved5:16;
148 } Bits;
149 ///
150 /// All bit fields as a 64-bit value
151 ///
152 UINT64 Uint64;
153 } MSR_XEON_PHI_PLATFORM_INFO_REGISTER;
154
155
156 /**
157 Module. C-State Configuration Control (R/W).
158
159 @param ECX MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL (0x000000E2)
160 @param EAX Lower 32-bits of MSR value.
161 Described by the type MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL_REGISTER.
162 @param EDX Upper 32-bits of MSR value.
163 Described by the type MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL_REGISTER.
164
165 <b>Example usage</b>
166 @code
167 MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
168
169 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL);
170 AsmWriteMsr64 (MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
171 @endcode
172 @note MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL is defined as MSR_PKG_CST_CONFIG_CONTROL in SDM.
173 **/
174 #define MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL 0x000000E2
175
176 /**
177 MSR information returned for MSR index #MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL
178 **/
179 typedef union {
180 ///
181 /// Individual bit fields
182 ///
183 struct {
184 ///
185 /// [Bits 2:0] Package C-State Limit (R/W) The following C-state code
186 /// name encodings are supported: 000b: C0/C1 001b: C2 010b: C6 No
187 /// Retention 011b: C6 Retention 111b: No limit.
188 ///
189 UINT32 Limit:3;
190 UINT32 Reserved1:7;
191 ///
192 /// [Bit 10] I/O MWAIT Redirection Enable (R/W).
193 ///
194 UINT32 IO_MWAIT:1;
195 UINT32 Reserved2:4;
196 ///
197 /// [Bit 15] CFG Lock (R/WO).
198 ///
199 UINT32 CFGLock:1;
200 UINT32 Reserved3:16;
201 UINT32 Reserved4:32;
202 } Bits;
203 ///
204 /// All bit fields as a 32-bit value
205 ///
206 UINT32 Uint32;
207 ///
208 /// All bit fields as a 64-bit value
209 ///
210 UINT64 Uint64;
211 } MSR_XEON_PHI_PKG_CST_CONFIG_CONTROL_REGISTER;
212
213
214 /**
215 Module. Power Management IO Redirection in C-state (R/W).
216
217 @param ECX MSR_XEON_PHI_PMG_IO_CAPTURE_BASE (0x000000E4)
218 @param EAX Lower 32-bits of MSR value.
219 Described by the type MSR_XEON_PHI_PMG_IO_CAPTURE_BASE_REGISTER.
220 @param EDX Upper 32-bits of MSR value.
221 Described by the type MSR_XEON_PHI_PMG_IO_CAPTURE_BASE_REGISTER.
222
223 <b>Example usage</b>
224 @code
225 MSR_XEON_PHI_PMG_IO_CAPTURE_BASE_REGISTER Msr;
226
227 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_PMG_IO_CAPTURE_BASE);
228 AsmWriteMsr64 (MSR_XEON_PHI_PMG_IO_CAPTURE_BASE, Msr.Uint64);
229 @endcode
230 @note MSR_XEON_PHI_PMG_IO_CAPTURE_BASE is defined as MSR_PMG_IO_CAPTURE_BASE in SDM.
231 **/
232 #define MSR_XEON_PHI_PMG_IO_CAPTURE_BASE 0x000000E4
233
234 /**
235 MSR information returned for MSR index #MSR_XEON_PHI_PMG_IO_CAPTURE_BASE
236 **/
237 typedef union {
238 ///
239 /// Individual bit fields
240 ///
241 struct {
242 ///
243 /// [Bits 15:0] LVL_2 Base Address (R/W).
244 ///
245 UINT32 Lvl2Base:16;
246 ///
247 /// [Bits 18:16] C-state Range (R/W) Specifies the encoding value of the
248 /// maximum C-State code name to be included when IO read to MWAIT
249 /// redirection is enabled by MSR_PKG_CST_CONFIG_CONTROL[bit10]: 100b - C4
250 /// is the max C-State to include 110b - C6 is the max C-State to include.
251 ///
252 UINT32 CStateRange:3;
253 UINT32 Reserved1:13;
254 UINT32 Reserved2:32;
255 } Bits;
256 ///
257 /// All bit fields as a 32-bit value
258 ///
259 UINT32 Uint32;
260 ///
261 /// All bit fields as a 64-bit value
262 ///
263 UINT64 Uint64;
264 } MSR_XEON_PHI_PMG_IO_CAPTURE_BASE_REGISTER;
265
266
267 /**
268 Core. AES Configuration (RW-L) Privileged post-BIOS agent must provide a #GP
269 handler to handle unsuccessful read of this MSR.
270
271 @param ECX MSR_XEON_PHI_FEATURE_CONFIG (0x0000013C)
272 @param EAX Lower 32-bits of MSR value.
273 Described by the type MSR_XEON_PHI_FEATURE_CONFIG_REGISTER.
274 @param EDX Upper 32-bits of MSR value.
275 Described by the type MSR_XEON_PHI_FEATURE_CONFIG_REGISTER.
276
277 <b>Example usage</b>
278 @code
279 MSR_XEON_PHI_FEATURE_CONFIG_REGISTER Msr;
280
281 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_FEATURE_CONFIG);
282 AsmWriteMsr64 (MSR_XEON_PHI_FEATURE_CONFIG, Msr.Uint64);
283 @endcode
284 @note MSR_XEON_PHI_FEATURE_CONFIG is defined as MSR_FEATURE_CONFIG in SDM.
285 **/
286 #define MSR_XEON_PHI_FEATURE_CONFIG 0x0000013C
287
288 /**
289 MSR information returned for MSR index #MSR_XEON_PHI_FEATURE_CONFIG
290 **/
291 typedef union {
292 ///
293 /// Individual bit fields
294 ///
295 struct {
296 ///
297 /// [Bits 1:0] AES Configuration (RW-L) Upon a successful read of this
298 /// MSR, the configuration of AES instruction set availability is as
299 /// follows: 11b: AES instructions are not available until next RESET.
300 /// otherwise, AES instructions are available. Note, AES instruction set
301 /// is not available if read is unsuccessful. If the configuration is not
302 /// 01b, AES instruction can be mis-configured if a privileged agent
303 /// unintentionally writes 11b.
304 ///
305 UINT32 AESConfiguration:2;
306 UINT32 Reserved1:30;
307 UINT32 Reserved2:32;
308 } Bits;
309 ///
310 /// All bit fields as a 32-bit value
311 ///
312 UINT32 Uint32;
313 ///
314 /// All bit fields as a 64-bit value
315 ///
316 UINT64 Uint64;
317 } MSR_XEON_PHI_FEATURE_CONFIG_REGISTER;
318
319
320 /**
321 THREAD. Enhanced SMM Capabilities (SMM-RO) Reports SMM capability
322 Enhancement. Accessible only while in SMM.
323
324 @param ECX MSR_XEON_PHI_SMM_MCA_CAP (0x0000017D)
325 @param EAX Lower 32-bits of MSR value.
326 Described by the type MSR_XEON_PHI_SMM_MCA_CAP_REGISTER.
327 @param EDX Upper 32-bits of MSR value.
328 Described by the type MSR_XEON_PHI_SMM_MCA_CAP_REGISTER.
329
330 <b>Example usage</b>
331 @code
332 MSR_XEON_PHI_SMM_MCA_CAP_REGISTER Msr;
333
334 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_SMM_MCA_CAP);
335 AsmWriteMsr64 (MSR_XEON_PHI_SMM_MCA_CAP, Msr.Uint64);
336 @endcode
337 @note MSR_XEON_PHI_SMM_MCA_CAP is defined as MSR_SMM_MCA_CAP in SDM.
338 **/
339 #define MSR_XEON_PHI_SMM_MCA_CAP 0x0000017D
340
341 /**
342 MSR information returned for MSR index #MSR_XEON_PHI_SMM_MCA_CAP
343 **/
344 typedef union {
345 ///
346 /// Individual bit fields
347 ///
348 struct {
349 UINT32 Reserved1:32;
350 UINT32 Reserved2:26;
351 ///
352 /// [Bit 58] SMM_Code_Access_Chk (SMM-RO) If set to 1 indicates that the
353 /// SMM code access restriction is supported and a host-space interface
354 /// available to SMM handler.
355 ///
356 UINT32 SMM_Code_Access_Chk:1;
357 ///
358 /// [Bit 59] Long_Flow_Indication (SMM-RO) If set to 1 indicates that the
359 /// SMM long flow indicator is supported and a host-space interface
360 /// available to SMM handler.
361 ///
362 UINT32 Long_Flow_Indication:1;
363 UINT32 Reserved3:4;
364 } Bits;
365 ///
366 /// All bit fields as a 64-bit value
367 ///
368 UINT64 Uint64;
369 } MSR_XEON_PHI_SMM_MCA_CAP_REGISTER;
370
371
372 /**
373 Thread. Enable Misc. Processor Features (R/W) Allows a variety of processor
374 functions to be enabled and disabled.
375
376 @param ECX MSR_XEON_PHI_IA32_MISC_ENABLE (0x000001A0)
377 @param EAX Lower 32-bits of MSR value.
378 Described by the type MSR_XEON_PHI_IA32_MISC_ENABLE_REGISTER.
379 @param EDX Upper 32-bits of MSR value.
380 Described by the type MSR_XEON_PHI_IA32_MISC_ENABLE_REGISTER.
381
382 <b>Example usage</b>
383 @code
384 MSR_XEON_PHI_IA32_MISC_ENABLE_REGISTER Msr;
385
386 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_IA32_MISC_ENABLE);
387 AsmWriteMsr64 (MSR_XEON_PHI_IA32_MISC_ENABLE, Msr.Uint64);
388 @endcode
389 @note MSR_XEON_PHI_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
390 **/
391 #define MSR_XEON_PHI_IA32_MISC_ENABLE 0x000001A0
392
393 /**
394 MSR information returned for MSR index #MSR_XEON_PHI_IA32_MISC_ENABLE
395 **/
396 typedef union {
397 ///
398 /// Individual bit fields
399 ///
400 struct {
401 ///
402 /// [Bit 0] Fast-Strings Enable.
403 ///
404 UINT32 FastStrings:1;
405 UINT32 Reserved1:2;
406 ///
407 /// [Bit 3] Automatic Thermal Control Circuit Enable (R/W) Default value
408 /// is 1.
409 ///
410 UINT32 AutomaticThermalControlCircuit:1;
411 UINT32 Reserved2:3;
412 ///
413 /// [Bit 7] Performance Monitoring Available (R).
414 ///
415 UINT32 PerformanceMonitoring:1;
416 UINT32 Reserved3:3;
417 ///
418 /// [Bit 11] Branch Trace Storage Unavailable (RO).
419 ///
420 UINT32 BTS:1;
421 ///
422 /// [Bit 12] Processor Event Based Sampling Unavailable (RO).
423 ///
424 UINT32 PEBS:1;
425 UINT32 Reserved4:3;
426 ///
427 /// [Bit 16] Enhanced Intel SpeedStep Technology Enable (R/W).
428 ///
429 UINT32 EIST:1;
430 UINT32 Reserved5:1;
431 ///
432 /// [Bit 18] ENABLE MONITOR FSM (R/W).
433 ///
434 UINT32 MONITOR:1;
435 UINT32 Reserved6:3;
436 ///
437 /// [Bit 22] Limit CPUID Maxval (R/W).
438 ///
439 UINT32 LimitCpuidMaxval:1;
440 ///
441 /// [Bit 23] xTPR Message Disable (R/W).
442 ///
443 UINT32 xTPR_Message_Disable:1;
444 UINT32 Reserved7:8;
445 UINT32 Reserved8:2;
446 ///
447 /// [Bit 34] XD Bit Disable (R/W).
448 ///
449 UINT32 XD:1;
450 UINT32 Reserved9:3;
451 ///
452 /// [Bit 38] Turbo Mode Disable (R/W).
453 ///
454 UINT32 TurboModeDisable:1;
455 UINT32 Reserved10:25;
456 } Bits;
457 ///
458 /// All bit fields as a 64-bit value
459 ///
460 UINT64 Uint64;
461 } MSR_XEON_PHI_IA32_MISC_ENABLE_REGISTER;
462
463
464 /**
465 Package.
466
467 @param ECX MSR_XEON_PHI_TEMPERATURE_TARGET (0x000001A2)
468 @param EAX Lower 32-bits of MSR value.
469 Described by the type MSR_XEON_PHI_TEMPERATURE_TARGET_REGISTER.
470 @param EDX Upper 32-bits of MSR value.
471 Described by the type MSR_XEON_PHI_TEMPERATURE_TARGET_REGISTER.
472
473 <b>Example usage</b>
474 @code
475 MSR_XEON_PHI_TEMPERATURE_TARGET_REGISTER Msr;
476
477 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_TEMPERATURE_TARGET);
478 AsmWriteMsr64 (MSR_XEON_PHI_TEMPERATURE_TARGET, Msr.Uint64);
479 @endcode
480 @note MSR_XEON_PHI_TEMPERATURE_TARGET is defined as MSR_TEMPERATURE_TARGET in SDM.
481 **/
482 #define MSR_XEON_PHI_TEMPERATURE_TARGET 0x000001A2
483
484 /**
485 MSR information returned for MSR index #MSR_XEON_PHI_TEMPERATURE_TARGET
486 **/
487 typedef union {
488 ///
489 /// Individual bit fields
490 ///
491 struct {
492 UINT32 Reserved1:16;
493 ///
494 /// [Bits 23:16] Temperature Target (R).
495 ///
496 UINT32 TemperatureTarget:8;
497 ///
498 /// [Bits 29:24] Target Offset (R/W).
499 ///
500 UINT32 TargetOffset:6;
501 UINT32 Reserved2:2;
502 UINT32 Reserved3:32;
503 } Bits;
504 ///
505 /// All bit fields as a 32-bit value
506 ///
507 UINT32 Uint32;
508 ///
509 /// All bit fields as a 64-bit value
510 ///
511 UINT64 Uint64;
512 } MSR_XEON_PHI_TEMPERATURE_TARGET_REGISTER;
513
514
515 /**
516 Miscellaneous Feature Control (R/W).
517
518 @param ECX MSR_XEON_PHI_MISC_FEATURE_CONTROL (0x000001A4)
519 @param EAX Lower 32-bits of MSR value.
520 Described by the type MSR_XEON_PHI_MISC_FEATURE_CONTROL_REGISTER.
521 @param EDX Upper 32-bits of MSR value.
522 Described by the type MSR_XEON_PHI_MISC_FEATURE_CONTROL_REGISTER.
523
524 <b>Example usage</b>
525 @code
526 MSR_XEON_PHI_MISC_FEATURE_CONTROL_REGISTER Msr;
527
528 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_MISC_FEATURE_CONTROL);
529 AsmWriteMsr64 (MSR_XEON_PHI_MISC_FEATURE_CONTROL, Msr.Uint64);
530 @endcode
531 @note MSR_XEON_PHI_MISC_FEATURE_CONTROL is defined as MSR_MISC_FEATURE_CONTROL in SDM.
532 **/
533 #define MSR_XEON_PHI_MISC_FEATURE_CONTROL 0x000001A4
534
535 /**
536 MSR information returned for MSR index #MSR_XEON_PHI_MISC_FEATURE_CONTROL
537 **/
538 typedef union {
539 ///
540 /// Individual bit fields
541 ///
542 struct {
543 ///
544 /// [Bit 0] Core. DCU Hardware Prefetcher Disable (R/W) If 1, disables the
545 /// L1 data cache prefetcher.
546 ///
547 UINT32 DCUHardwarePrefetcherDisable:1;
548 ///
549 /// [Bit 1] Core. L2 Hardware Prefetcher Disable (R/W) If 1, disables the
550 /// L2 hardware prefetcher.
551 ///
552 UINT32 L2HardwarePrefetcherDisable:1;
553 UINT32 Reserved1:30;
554 UINT32 Reserved2:32;
555 } Bits;
556 ///
557 /// All bit fields as a 32-bit value
558 ///
559 UINT32 Uint32;
560 ///
561 /// All bit fields as a 64-bit value
562 ///
563 UINT64 Uint64;
564 } MSR_XEON_PHI_MISC_FEATURE_CONTROL_REGISTER;
565
566
567 /**
568 Shared. Offcore Response Event Select Register (R/W).
569
570 @param ECX MSR_XEON_PHI_OFFCORE_RSP_0 (0x000001A6)
571 @param EAX Lower 32-bits of MSR value.
572 @param EDX Upper 32-bits of MSR value.
573
574 <b>Example usage</b>
575 @code
576 UINT64 Msr;
577
578 Msr = AsmReadMsr64 (MSR_XEON_PHI_OFFCORE_RSP_0);
579 AsmWriteMsr64 (MSR_XEON_PHI_OFFCORE_RSP_0, Msr);
580 @endcode
581 @note MSR_XEON_PHI_OFFCORE_RSP_0 is defined as MSR_OFFCORE_RSP_0 in SDM.
582 **/
583 #define MSR_XEON_PHI_OFFCORE_RSP_0 0x000001A6
584
585
586 /**
587 Shared. Offcore Response Event Select Register (R/W).
588
589 @param ECX MSR_XEON_PHI_OFFCORE_RSP_1 (0x000001A7)
590 @param EAX Lower 32-bits of MSR value.
591 @param EDX Upper 32-bits of MSR value.
592
593 <b>Example usage</b>
594 @code
595 UINT64 Msr;
596
597 Msr = AsmReadMsr64 (MSR_XEON_PHI_OFFCORE_RSP_1);
598 AsmWriteMsr64 (MSR_XEON_PHI_OFFCORE_RSP_1, Msr);
599 @endcode
600 @note MSR_XEON_PHI_OFFCORE_RSP_1 is defined as MSR_OFFCORE_RSP_1 in SDM.
601 **/
602 #define MSR_XEON_PHI_OFFCORE_RSP_1 0x000001A7
603
604
605 /**
606 Package. Maximum Ratio Limit of Turbo Mode for Groups of Cores (RW).
607
608 @param ECX MSR_XEON_PHI_TURBO_RATIO_LIMIT (0x000001AD)
609 @param EAX Lower 32-bits of MSR value.
610 Described by the type MSR_XEON_PHI_TURBO_RATIO_LIMIT_REGISTER.
611 @param EDX Upper 32-bits of MSR value.
612 Described by the type MSR_XEON_PHI_TURBO_RATIO_LIMIT_REGISTER.
613
614 <b>Example usage</b>
615 @code
616 MSR_XEON_PHI_TURBO_RATIO_LIMIT_REGISTER Msr;
617
618 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_TURBO_RATIO_LIMIT);
619 AsmWriteMsr64 (MSR_XEON_PHI_TURBO_RATIO_LIMIT, Msr.Uint64);
620 @endcode
621 @note MSR_XEON_PHI_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
622 **/
623 #define MSR_XEON_PHI_TURBO_RATIO_LIMIT 0x000001AD
624
625 /**
626 MSR information returned for MSR index #MSR_XEON_PHI_TURBO_RATIO_LIMIT
627 **/
628 typedef union {
629 ///
630 /// Individual bit fields
631 ///
632 struct {
633 UINT32 Reserved:1;
634 ///
635 /// [Bits 7:1] Package. Maximum Number of Cores in Group 0 Number active
636 /// processor cores which operates under the maximum ratio limit for group
637 /// 0.
638 ///
639 UINT32 MaxCoresGroup0:7;
640 ///
641 /// [Bits 15:8] Package. Maximum Ratio Limit for Group 0 Maximum turbo
642 /// ratio limit when the number of active cores are not more than the
643 /// group 0 maximum core count.
644 ///
645 UINT32 MaxRatioLimitGroup0:8;
646 ///
647 /// [Bits 20:16] Package. Number of Incremental Cores Added to Group 1
648 /// Group 1, which includes the specified number of additional cores plus
649 /// the cores in group 0, operates under the group 1 turbo max ratio limit
650 /// = "group 0 Max ratio limit" - "group ratio delta for group 1".
651 ///
652 UINT32 MaxIncrementalCoresGroup1:5;
653 ///
654 /// [Bits 23:21] Package. Group Ratio Delta for Group 1 An unsigned
655 /// integer specifying the ratio decrement relative to the Max ratio limit
656 /// to Group 0.
657 ///
658 UINT32 DeltaRatioGroup1:3;
659 ///
660 /// [Bits 28:24] Package. Number of Incremental Cores Added to Group 2
661 /// Group 2, which includes the specified number of additional cores plus
662 /// all the cores in group 1, operates under the group 2 turbo max ratio
663 /// limit = "group 1 Max ratio limit" - "group ratio delta for group 2".
664 ///
665 UINT32 MaxIncrementalCoresGroup2:5;
666 ///
667 /// [Bits 31:29] Package. Group Ratio Delta for Group 2 An unsigned
668 /// integer specifying the ratio decrement relative to the Max ratio limit
669 /// for Group 1.
670 ///
671 UINT32 DeltaRatioGroup2:3;
672 ///
673 /// [Bits 36:32] Package. Number of Incremental Cores Added to Group 3
674 /// Group 3, which includes the specified number of additional cores plus
675 /// all the cores in group 2, operates under the group 3 turbo max ratio
676 /// limit = "group 2 Max ratio limit" - "group ratio delta for group 3".
677 ///
678 UINT32 MaxIncrementalCoresGroup3:5;
679 ///
680 /// [Bits 39:37] Package. Group Ratio Delta for Group 3 An unsigned
681 /// integer specifying the ratio decrement relative to the Max ratio limit
682 /// for Group 2.
683 ///
684 UINT32 DeltaRatioGroup3:3;
685 ///
686 /// [Bits 44:40] Package. Number of Incremental Cores Added to Group 4
687 /// Group 4, which includes the specified number of additional cores plus
688 /// all the cores in group 3, operates under the group 4 turbo max ratio
689 /// limit = "group 3 Max ratio limit" - "group ratio delta for group 4".
690 ///
691 UINT32 MaxIncrementalCoresGroup4:5;
692 ///
693 /// [Bits 47:45] Package. Group Ratio Delta for Group 4 An unsigned
694 /// integer specifying the ratio decrement relative to the Max ratio limit
695 /// for Group 3.
696 ///
697 UINT32 DeltaRatioGroup4:3;
698 ///
699 /// [Bits 52:48] Package. Number of Incremental Cores Added to Group 5
700 /// Group 5, which includes the specified number of additional cores plus
701 /// all the cores in group 4, operates under the group 5 turbo max ratio
702 /// limit = "group 4 Max ratio limit" - "group ratio delta for group 5".
703 ///
704 UINT32 MaxIncrementalCoresGroup5:5;
705 ///
706 /// [Bits 55:53] Package. Group Ratio Delta for Group 5 An unsigned
707 /// integer specifying the ratio decrement relative to the Max ratio limit
708 /// for Group 4.
709 ///
710 UINT32 DeltaRatioGroup5:3;
711 ///
712 /// [Bits 60:56] Package. Number of Incremental Cores Added to Group 6
713 /// Group 6, which includes the specified number of additional cores plus
714 /// all the cores in group 5, operates under the group 6 turbo max ratio
715 /// limit = "group 5 Max ratio limit" - "group ratio delta for group 6".
716 ///
717 UINT32 MaxIncrementalCoresGroup6:5;
718 ///
719 /// [Bits 63:61] Package. Group Ratio Delta for Group 6 An unsigned
720 /// integer specifying the ratio decrement relative to the Max ratio limit
721 /// for Group 5.
722 ///
723 UINT32 DeltaRatioGroup6:3;
724 } Bits;
725 ///
726 /// All bit fields as a 64-bit value
727 ///
728 UINT64 Uint64;
729 } MSR_XEON_PHI_TURBO_RATIO_LIMIT_REGISTER;
730
731
732 /**
733 Thread. Last Branch Record Filtering Select Register (R/W).
734
735 @param ECX MSR_XEON_PHI_LBR_SELECT (0x000001C8)
736 @param EAX Lower 32-bits of MSR value.
737 @param EDX Upper 32-bits of MSR value.
738
739 <b>Example usage</b>
740 @code
741 UINT64 Msr;
742
743 Msr = AsmReadMsr64 (MSR_XEON_PHI_LBR_SELECT);
744 AsmWriteMsr64 (MSR_XEON_PHI_LBR_SELECT, Msr);
745 @endcode
746 @note MSR_XEON_PHI_LBR_SELECT is defined as MSR_LBR_SELECT in SDM.
747 **/
748 #define MSR_XEON_PHI_LBR_SELECT 0x000001C8
749
750
751 /**
752 Thread. Last Branch Record Stack TOS (R/W).
753
754 @param ECX MSR_XEON_PHI_LASTBRANCH_TOS (0x000001C9)
755 @param EAX Lower 32-bits of MSR value.
756 @param EDX Upper 32-bits of MSR value.
757
758 <b>Example usage</b>
759 @code
760 UINT64 Msr;
761
762 Msr = AsmReadMsr64 (MSR_XEON_PHI_LASTBRANCH_TOS);
763 AsmWriteMsr64 (MSR_XEON_PHI_LASTBRANCH_TOS, Msr);
764 @endcode
765 @note MSR_XEON_PHI_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
766 **/
767 #define MSR_XEON_PHI_LASTBRANCH_TOS 0x000001C9
768
769
770 /**
771 Thread. Last Exception Record From Linear IP (R).
772
773 @param ECX MSR_XEON_PHI_LER_FROM_LIP (0x000001DD)
774 @param EAX Lower 32-bits of MSR value.
775 @param EDX Upper 32-bits of MSR value.
776
777 <b>Example usage</b>
778 @code
779 UINT64 Msr;
780
781 Msr = AsmReadMsr64 (MSR_XEON_PHI_LER_FROM_LIP);
782 @endcode
783 @note MSR_XEON_PHI_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.
784 **/
785 #define MSR_XEON_PHI_LER_FROM_LIP 0x000001DD
786
787
788 /**
789 Thread. Last Exception Record To Linear IP (R).
790
791 @param ECX MSR_XEON_PHI_LER_TO_LIP (0x000001DE)
792 @param EAX Lower 32-bits of MSR value.
793 @param EDX Upper 32-bits of MSR value.
794
795 <b>Example usage</b>
796 @code
797 UINT64 Msr;
798
799 Msr = AsmReadMsr64 (MSR_XEON_PHI_LER_TO_LIP);
800 @endcode
801 @note MSR_XEON_PHI_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.
802 **/
803 #define MSR_XEON_PHI_LER_TO_LIP 0x000001DE
804
805
806 /**
807 Thread. See Table 35-2.
808
809 @param ECX MSR_XEON_PHI_PEBS_ENABLE (0x000003F1)
810 @param EAX Lower 32-bits of MSR value.
811 @param EDX Upper 32-bits of MSR value.
812
813 <b>Example usage</b>
814 @code
815 UINT64 Msr;
816
817 Msr = AsmReadMsr64 (MSR_XEON_PHI_PEBS_ENABLE);
818 AsmWriteMsr64 (MSR_XEON_PHI_PEBS_ENABLE, Msr);
819 @endcode
820 @note MSR_XEON_PHI_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
821 **/
822 #define MSR_XEON_PHI_PEBS_ENABLE 0x000003F1
823
824
825 /**
826 Package. Note: C-state values are processor specific C-state code names,
827 unrelated to MWAIT extension C-state parameters or ACPI C-States. Package C3
828 Residency Counter. (R/O).
829
830 @param ECX MSR_XEON_PHI_PKG_C3_RESIDENCY (0x000003F8)
831 @param EAX Lower 32-bits of MSR value.
832 @param EDX Upper 32-bits of MSR value.
833
834 <b>Example usage</b>
835 @code
836 UINT64 Msr;
837
838 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_C3_RESIDENCY);
839 AsmWriteMsr64 (MSR_XEON_PHI_PKG_C3_RESIDENCY, Msr);
840 @endcode
841 @note MSR_XEON_PHI_PKG_C3_RESIDENCY is defined as MSR_PKG_C3_RESIDENCY in SDM.
842 **/
843 #define MSR_XEON_PHI_PKG_C3_RESIDENCY 0x000003F8
844
845
846 /**
847 Package. Package C6 Residency Counter. (R/O).
848
849 @param ECX MSR_XEON_PHI_PKG_C6_RESIDENCY (0x000003F9)
850 @param EAX Lower 32-bits of MSR value.
851 @param EDX Upper 32-bits of MSR value.
852
853 <b>Example usage</b>
854 @code
855 UINT64 Msr;
856
857 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_C6_RESIDENCY);
858 AsmWriteMsr64 (MSR_XEON_PHI_PKG_C6_RESIDENCY, Msr);
859 @endcode
860 @note MSR_XEON_PHI_PKG_C6_RESIDENCY is defined as MSR_PKG_C6_RESIDENCY in SDM.
861 **/
862 #define MSR_XEON_PHI_PKG_C6_RESIDENCY 0x000003F9
863
864
865 /**
866 Package. Package C7 Residency Counter. (R/O).
867
868 @param ECX MSR_XEON_PHI_PKG_C7_RESIDENCY (0x000003FA)
869 @param EAX Lower 32-bits of MSR value.
870 @param EDX Upper 32-bits of MSR value.
871
872 <b>Example usage</b>
873 @code
874 UINT64 Msr;
875
876 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_C7_RESIDENCY);
877 AsmWriteMsr64 (MSR_XEON_PHI_PKG_C7_RESIDENCY, Msr);
878 @endcode
879 @note MSR_XEON_PHI_PKG_C7_RESIDENCY is defined as MSR_PKG_C7_RESIDENCY in SDM.
880 **/
881 #define MSR_XEON_PHI_PKG_C7_RESIDENCY 0x000003FA
882
883
884 /**
885 Module. Note: C-state values are processor specific C-state code names,
886 unrelated to MWAIT extension C-state parameters or ACPI C-States. Module C0
887 Residency Counter. (R/O).
888
889 @param ECX MSR_XEON_PHI_MC0_RESIDENCY (0x000003FC)
890 @param EAX Lower 32-bits of MSR value.
891 @param EDX Upper 32-bits of MSR value.
892
893 <b>Example usage</b>
894 @code
895 UINT64 Msr;
896
897 Msr = AsmReadMsr64 (MSR_XEON_PHI_MC0_RESIDENCY);
898 AsmWriteMsr64 (MSR_XEON_PHI_MC0_RESIDENCY, Msr);
899 @endcode
900 @note MSR_XEON_PHI_MC0_RESIDENCY is defined as MSR_MC0_RESIDENCY in SDM.
901 **/
902 #define MSR_XEON_PHI_MC0_RESIDENCY 0x000003FC
903
904
905 /**
906 Module. Module C6 Residency Counter. (R/O).
907
908 @param ECX MSR_XEON_PHI_MC6_RESIDENCY (0x000003FD)
909 @param EAX Lower 32-bits of MSR value.
910 @param EDX Upper 32-bits of MSR value.
911
912 <b>Example usage</b>
913 @code
914 UINT64 Msr;
915
916 Msr = AsmReadMsr64 (MSR_XEON_PHI_MC6_RESIDENCY);
917 AsmWriteMsr64 (MSR_XEON_PHI_MC6_RESIDENCY, Msr);
918 @endcode
919 @note MSR_XEON_PHI_MC6_RESIDENCY is defined as MSR_MC6_RESIDENCY in SDM.
920 **/
921 #define MSR_XEON_PHI_MC6_RESIDENCY 0x000003FD
922
923
924 /**
925 Core. Note: C-state values are processor specific C-state code names,
926 unrelated to MWAIT extension C-state parameters or ACPI C-States. CORE C6
927 Residency Counter. (R/O).
928
929 @param ECX MSR_XEON_PHI_CORE_C6_RESIDENCY (0x000003FF)
930 @param EAX Lower 32-bits of MSR value.
931 @param EDX Upper 32-bits of MSR value.
932
933 <b>Example usage</b>
934 @code
935 UINT64 Msr;
936
937 Msr = AsmReadMsr64 (MSR_XEON_PHI_CORE_C6_RESIDENCY);
938 AsmWriteMsr64 (MSR_XEON_PHI_CORE_C6_RESIDENCY, Msr);
939 @endcode
940 @note MSR_XEON_PHI_CORE_C6_RESIDENCY is defined as MSR_CORE_C6_RESIDENCY in SDM.
941 **/
942 #define MSR_XEON_PHI_CORE_C6_RESIDENCY 0x000003FF
943
944
945 /**
946 Core. Capability Reporting Register of EPT and VPID (R/O) See Table 35-2.
947
948 @param ECX MSR_XEON_PHI_IA32_VMX_EPT_VPID_ENUM (0x0000048C)
949 @param EAX Lower 32-bits of MSR value.
950 @param EDX Upper 32-bits of MSR value.
951
952 <b>Example usage</b>
953 @code
954 UINT64 Msr;
955
956 Msr = AsmReadMsr64 (MSR_XEON_PHI_IA32_VMX_EPT_VPID_ENUM);
957 @endcode
958 @note MSR_XEON_PHI_IA32_VMX_EPT_VPID_ENUM is defined as IA32_VMX_EPT_VPID_ENUM in SDM.
959 **/
960 #define MSR_XEON_PHI_IA32_VMX_EPT_VPID_ENUM 0x0000048C
961
962
963 /**
964 Core. Capability Reporting Register of VM-function Controls (R/O) See Table
965 35-2.
966
967 @param ECX MSR_XEON_PHI_IA32_VMX_FMFUNC (0x00000491)
968 @param EAX Lower 32-bits of MSR value.
969 @param EDX Upper 32-bits of MSR value.
970
971 <b>Example usage</b>
972 @code
973 UINT64 Msr;
974
975 Msr = AsmReadMsr64 (MSR_XEON_PHI_IA32_VMX_FMFUNC);
976 @endcode
977 @note MSR_XEON_PHI_IA32_VMX_FMFUNC is defined as IA32_VMX_FMFUNC in SDM.
978 **/
979 #define MSR_XEON_PHI_IA32_VMX_FMFUNC 0x00000491
980
981
982 /**
983 Package. Unit Multipliers used in RAPL Interfaces (R/O).
984
985 @param ECX MSR_XEON_PHI_RAPL_POWER_UNIT (0x00000606)
986 @param EAX Lower 32-bits of MSR value.
987 Described by the type MSR_XEON_PHI_RAPL_POWER_UNIT_REGISTER.
988 @param EDX Upper 32-bits of MSR value.
989 Described by the type MSR_XEON_PHI_RAPL_POWER_UNIT_REGISTER.
990
991 <b>Example usage</b>
992 @code
993 MSR_XEON_PHI_RAPL_POWER_UNIT_REGISTER Msr;
994
995 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_RAPL_POWER_UNIT);
996 @endcode
997 @note MSR_XEON_PHI_RAPL_POWER_UNIT is defined as MSR_RAPL_POWER_UNIT in SDM.
998 **/
999 #define MSR_XEON_PHI_RAPL_POWER_UNIT 0x00000606
1000
1001 /**
1002 MSR information returned for MSR index #MSR_XEON_PHI_RAPL_POWER_UNIT
1003 **/
1004 typedef union {
1005 ///
1006 /// Individual bit fields
1007 ///
1008 struct {
1009 ///
1010 /// [Bits 3:0] Package. Power Units See Section 14.9.1, "RAPL Interfaces.".
1011 ///
1012 UINT32 PowerUnits:4;
1013 UINT32 Reserved1:4;
1014 ///
1015 /// [Bits 12:8] Package. Energy Status Units Energy related information
1016 /// (in Joules) is based on the multiplier, 1/2^ESU; where ESU is an
1017 /// unsigned integer represented by bits 12:8. Default value is 0EH (or 61
1018 /// micro-joules).
1019 ///
1020 UINT32 EnergyStatusUnits:5;
1021 UINT32 Reserved2:3;
1022 ///
1023 /// [Bits 19:16] Package. Time Units See Section 14.9.1, "RAPL
1024 /// Interfaces.".
1025 ///
1026 UINT32 TimeUnits:4;
1027 UINT32 Reserved3:12;
1028 UINT32 Reserved4:32;
1029 } Bits;
1030 ///
1031 /// All bit fields as a 32-bit value
1032 ///
1033 UINT32 Uint32;
1034 ///
1035 /// All bit fields as a 64-bit value
1036 ///
1037 UINT64 Uint64;
1038 } MSR_XEON_PHI_RAPL_POWER_UNIT_REGISTER;
1039
1040
1041 /**
1042 Package. Note: C-state values are processor specific C-state code names,
1043 unrelated to MWAIT extension C-state parameters or ACPI C-States. Package C2
1044 Residency Counter. (R/O).
1045
1046 @param ECX MSR_XEON_PHI_PKG_C2_RESIDENCY (0x0000060D)
1047 @param EAX Lower 32-bits of MSR value.
1048 @param EDX Upper 32-bits of MSR value.
1049
1050 <b>Example usage</b>
1051 @code
1052 UINT64 Msr;
1053
1054 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_C2_RESIDENCY);
1055 AsmWriteMsr64 (MSR_XEON_PHI_PKG_C2_RESIDENCY, Msr);
1056 @endcode
1057 @note MSR_XEON_PHI_PKG_C2_RESIDENCY is defined as MSR_PKG_C2_RESIDENCY in SDM.
1058 **/
1059 #define MSR_XEON_PHI_PKG_C2_RESIDENCY 0x0000060D
1060
1061
1062 /**
1063 Package. PKG RAPL Power Limit Control (R/W) See Section 14.9.3, "Package
1064 RAPL Domain.".
1065
1066 @param ECX MSR_XEON_PHI_PKG_POWER_LIMIT (0x00000610)
1067 @param EAX Lower 32-bits of MSR value.
1068 @param EDX Upper 32-bits of MSR value.
1069
1070 <b>Example usage</b>
1071 @code
1072 UINT64 Msr;
1073
1074 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_POWER_LIMIT);
1075 AsmWriteMsr64 (MSR_XEON_PHI_PKG_POWER_LIMIT, Msr);
1076 @endcode
1077 @note MSR_XEON_PHI_PKG_POWER_LIMIT is defined as MSR_PKG_POWER_LIMIT in SDM.
1078 **/
1079 #define MSR_XEON_PHI_PKG_POWER_LIMIT 0x00000610
1080
1081
1082 /**
1083 Package. PKG Energy Status (R/O) See Section 14.9.3, "Package RAPL Domain.".
1084
1085 @param ECX MSR_XEON_PHI_PKG_ENERGY_STATUS (0x00000611)
1086 @param EAX Lower 32-bits of MSR value.
1087 @param EDX Upper 32-bits of MSR value.
1088
1089 <b>Example usage</b>
1090 @code
1091 UINT64 Msr;
1092
1093 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_ENERGY_STATUS);
1094 @endcode
1095 @note MSR_XEON_PHI_PKG_ENERGY_STATUS is defined as MSR_PKG_ENERGY_STATUS in SDM.
1096 **/
1097 #define MSR_XEON_PHI_PKG_ENERGY_STATUS 0x00000611
1098
1099
1100 /**
1101 Package. PKG Perf Status (R/O) See Section 14.9.3, "Package RAPL Domain.".
1102
1103 @param ECX MSR_XEON_PHI_PKG_PERF_STATUS (0x00000613)
1104 @param EAX Lower 32-bits of MSR value.
1105 @param EDX Upper 32-bits of MSR value.
1106
1107 <b>Example usage</b>
1108 @code
1109 UINT64 Msr;
1110
1111 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_PERF_STATUS);
1112 @endcode
1113 @note MSR_XEON_PHI_PKG_PERF_STATUS is defined as MSR_PKG_PERF_STATUS in SDM.
1114 **/
1115 #define MSR_XEON_PHI_PKG_PERF_STATUS 0x00000613
1116
1117
1118 /**
1119 Package. PKG RAPL Parameters (R/W) See Section 14.9.3, "Package RAPL
1120 Domain.".
1121
1122 @param ECX MSR_XEON_PHI_PKG_POWER_INFO (0x00000614)
1123 @param EAX Lower 32-bits of MSR value.
1124 @param EDX Upper 32-bits of MSR value.
1125
1126 <b>Example usage</b>
1127 @code
1128 UINT64 Msr;
1129
1130 Msr = AsmReadMsr64 (MSR_XEON_PHI_PKG_POWER_INFO);
1131 AsmWriteMsr64 (MSR_XEON_PHI_PKG_POWER_INFO, Msr);
1132 @endcode
1133 @note MSR_XEON_PHI_PKG_POWER_INFO is defined as MSR_PKG_POWER_INFO in SDM.
1134 **/
1135 #define MSR_XEON_PHI_PKG_POWER_INFO 0x00000614
1136
1137
1138 /**
1139 Package. DRAM RAPL Power Limit Control (R/W) See Section 14.9.5, "DRAM RAPL
1140 Domain.".
1141
1142 @param ECX MSR_XEON_PHI_DRAM_POWER_LIMIT (0x00000618)
1143 @param EAX Lower 32-bits of MSR value.
1144 @param EDX Upper 32-bits of MSR value.
1145
1146 <b>Example usage</b>
1147 @code
1148 UINT64 Msr;
1149
1150 Msr = AsmReadMsr64 (MSR_XEON_PHI_DRAM_POWER_LIMIT);
1151 AsmWriteMsr64 (MSR_XEON_PHI_DRAM_POWER_LIMIT, Msr);
1152 @endcode
1153 @note MSR_XEON_PHI_DRAM_POWER_LIMIT is defined as MSR_DRAM_POWER_LIMIT in SDM.
1154 **/
1155 #define MSR_XEON_PHI_DRAM_POWER_LIMIT 0x00000618
1156
1157
1158 /**
1159 Package. DRAM Energy Status (R/O) See Section 14.9.5, "DRAM RAPL Domain.".
1160
1161 @param ECX MSR_XEON_PHI_DRAM_ENERGY_STATUS (0x00000619)
1162 @param EAX Lower 32-bits of MSR value.
1163 @param EDX Upper 32-bits of MSR value.
1164
1165 <b>Example usage</b>
1166 @code
1167 UINT64 Msr;
1168
1169 Msr = AsmReadMsr64 (MSR_XEON_PHI_DRAM_ENERGY_STATUS);
1170 @endcode
1171 @note MSR_XEON_PHI_DRAM_ENERGY_STATUS is defined as MSR_DRAM_ENERGY_STATUS in SDM.
1172 **/
1173 #define MSR_XEON_PHI_DRAM_ENERGY_STATUS 0x00000619
1174
1175
1176 /**
1177 Package. DRAM Performance Throttling Status (R/O) See Section 14.9.5, "DRAM
1178 RAPL Domain.".
1179
1180 @param ECX MSR_XEON_PHI_DRAM_PERF_STATUS (0x0000061B)
1181 @param EAX Lower 32-bits of MSR value.
1182 @param EDX Upper 32-bits of MSR value.
1183
1184 <b>Example usage</b>
1185 @code
1186 UINT64 Msr;
1187
1188 Msr = AsmReadMsr64 (MSR_XEON_PHI_DRAM_PERF_STATUS);
1189 @endcode
1190 @note MSR_XEON_PHI_DRAM_PERF_STATUS is defined as MSR_DRAM_PERF_STATUS in SDM.
1191 **/
1192 #define MSR_XEON_PHI_DRAM_PERF_STATUS 0x0000061B
1193
1194
1195 /**
1196 Package. DRAM RAPL Parameters (R/W) See Section 14.9.5, "DRAM RAPL Domain.".
1197
1198 @param ECX MSR_XEON_PHI_DRAM_POWER_INFO (0x0000061C)
1199 @param EAX Lower 32-bits of MSR value.
1200 @param EDX Upper 32-bits of MSR value.
1201
1202 <b>Example usage</b>
1203 @code
1204 UINT64 Msr;
1205
1206 Msr = AsmReadMsr64 (MSR_XEON_PHI_DRAM_POWER_INFO);
1207 AsmWriteMsr64 (MSR_XEON_PHI_DRAM_POWER_INFO, Msr);
1208 @endcode
1209 @note MSR_XEON_PHI_DRAM_POWER_INFO is defined as MSR_DRAM_POWER_INFO in SDM.
1210 **/
1211 #define MSR_XEON_PHI_DRAM_POWER_INFO 0x0000061C
1212
1213
1214 /**
1215 Package. PP0 RAPL Power Limit Control (R/W) See Section 14.9.4, "PP0/PP1
1216 RAPL Domains.".
1217
1218 @param ECX MSR_XEON_PHI_PP0_POWER_LIMIT (0x00000638)
1219 @param EAX Lower 32-bits of MSR value.
1220 @param EDX Upper 32-bits of MSR value.
1221
1222 <b>Example usage</b>
1223 @code
1224 UINT64 Msr;
1225
1226 Msr = AsmReadMsr64 (MSR_XEON_PHI_PP0_POWER_LIMIT);
1227 AsmWriteMsr64 (MSR_XEON_PHI_PP0_POWER_LIMIT, Msr);
1228 @endcode
1229 @note MSR_XEON_PHI_PP0_POWER_LIMIT is defined as MSR_PP0_POWER_LIMIT in SDM.
1230 **/
1231 #define MSR_XEON_PHI_PP0_POWER_LIMIT 0x00000638
1232
1233
1234 /**
1235 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL
1236 Domains.".
1237
1238 @param ECX MSR_XEON_PHI_PP0_ENERGY_STATUS (0x00000639)
1239 @param EAX Lower 32-bits of MSR value.
1240 @param EDX Upper 32-bits of MSR value.
1241
1242 <b>Example usage</b>
1243 @code
1244 UINT64 Msr;
1245
1246 Msr = AsmReadMsr64 (MSR_XEON_PHI_PP0_ENERGY_STATUS);
1247 @endcode
1248 @note MSR_XEON_PHI_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
1249 **/
1250 #define MSR_XEON_PHI_PP0_ENERGY_STATUS 0x00000639
1251
1252
1253 /**
1254 Package. Base TDP Ratio (R/O) See Table 35-23.
1255
1256 @param ECX MSR_XEON_PHI_CONFIG_TDP_NOMINAL (0x00000648)
1257 @param EAX Lower 32-bits of MSR value.
1258 @param EDX Upper 32-bits of MSR value.
1259
1260 <b>Example usage</b>
1261 @code
1262 UINT64 Msr;
1263
1264 Msr = AsmReadMsr64 (MSR_XEON_PHI_CONFIG_TDP_NOMINAL);
1265 @endcode
1266 @note MSR_XEON_PHI_CONFIG_TDP_NOMINAL is defined as MSR_CONFIG_TDP_NOMINAL in SDM.
1267 **/
1268 #define MSR_XEON_PHI_CONFIG_TDP_NOMINAL 0x00000648
1269
1270
1271 /**
1272 Package. ConfigTDP Level 1 ratio and power level (R/O). See Table 35-23.
1273
1274 @param ECX MSR_XEON_PHI_CONFIG_TDP_LEVEL1 (0x00000649)
1275 @param EAX Lower 32-bits of MSR value.
1276 @param EDX Upper 32-bits of MSR value.
1277
1278 <b>Example usage</b>
1279 @code
1280 UINT64 Msr;
1281
1282 Msr = AsmReadMsr64 (MSR_XEON_PHI_CONFIG_TDP_LEVEL1);
1283 @endcode
1284 @note MSR_XEON_PHI_CONFIG_TDP_LEVEL1 is defined as MSR_CONFIG_TDP_LEVEL1 in SDM.
1285 **/
1286 #define MSR_XEON_PHI_CONFIG_TDP_LEVEL1 0x00000649
1287
1288
1289 /**
1290 Package. ConfigTDP Level 2 ratio and power level (R/O). See Table 35-23.
1291
1292 @param ECX MSR_XEON_PHI_CONFIG_TDP_LEVEL2 (0x0000064A)
1293 @param EAX Lower 32-bits of MSR value.
1294 @param EDX Upper 32-bits of MSR value.
1295
1296 <b>Example usage</b>
1297 @code
1298 UINT64 Msr;
1299
1300 Msr = AsmReadMsr64 (MSR_XEON_PHI_CONFIG_TDP_LEVEL2);
1301 @endcode
1302 @note MSR_XEON_PHI_CONFIG_TDP_LEVEL2 is defined as MSR_CONFIG_TDP_LEVEL2 in SDM.
1303 **/
1304 #define MSR_XEON_PHI_CONFIG_TDP_LEVEL2 0x0000064A
1305
1306
1307 /**
1308 Package. ConfigTDP Control (R/W) See Table 35-23.
1309
1310 @param ECX MSR_XEON_PHI_CONFIG_TDP_CONTROL (0x0000064B)
1311 @param EAX Lower 32-bits of MSR value.
1312 @param EDX Upper 32-bits of MSR value.
1313
1314 <b>Example usage</b>
1315 @code
1316 UINT64 Msr;
1317
1318 Msr = AsmReadMsr64 (MSR_XEON_PHI_CONFIG_TDP_CONTROL);
1319 AsmWriteMsr64 (MSR_XEON_PHI_CONFIG_TDP_CONTROL, Msr);
1320 @endcode
1321 @note MSR_XEON_PHI_CONFIG_TDP_CONTROL is defined as MSR_CONFIG_TDP_CONTROL in SDM.
1322 **/
1323 #define MSR_XEON_PHI_CONFIG_TDP_CONTROL 0x0000064B
1324
1325
1326 /**
1327 Package. ConfigTDP Control (R/W) See Table 35-23.
1328
1329 @param ECX MSR_XEON_PHI_TURBO_ACTIVATION_RATIO (0x0000064C)
1330 @param EAX Lower 32-bits of MSR value.
1331 @param EDX Upper 32-bits of MSR value.
1332
1333 <b>Example usage</b>
1334 @code
1335 UINT64 Msr;
1336
1337 Msr = AsmReadMsr64 (MSR_XEON_PHI_TURBO_ACTIVATION_RATIO);
1338 AsmWriteMsr64 (MSR_XEON_PHI_TURBO_ACTIVATION_RATIO, Msr);
1339 @endcode
1340 @note MSR_XEON_PHI_TURBO_ACTIVATION_RATIO is defined as MSR_TURBO_ACTIVATION_RATIO in SDM.
1341 **/
1342 #define MSR_XEON_PHI_TURBO_ACTIVATION_RATIO 0x0000064C
1343
1344
1345 /**
1346 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
1347 refers to processor core frequency).
1348
1349 @param ECX MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS (0x00000690)
1350 @param EAX Lower 32-bits of MSR value.
1351 Described by the type MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS_REGISTER.
1352 @param EDX Upper 32-bits of MSR value.
1353 Described by the type MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS_REGISTER.
1354
1355 <b>Example usage</b>
1356 @code
1357 MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
1358
1359 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS);
1360 AsmWriteMsr64 (MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
1361 @endcode
1362 @note MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
1363 **/
1364 #define MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS 0x00000690
1365
1366 /**
1367 MSR information returned for MSR index #MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS
1368 **/
1369 typedef union {
1370 ///
1371 /// Individual bit fields
1372 ///
1373 struct {
1374 ///
1375 /// [Bit 0] PROCHOT Status (R0).
1376 ///
1377 UINT32 PROCHOT_Status:1;
1378 ///
1379 /// [Bit 1] Thermal Status (R0).
1380 ///
1381 UINT32 ThermalStatus:1;
1382 UINT32 Reserved1:4;
1383 ///
1384 /// [Bit 6] VR Therm Alert Status (R0).
1385 ///
1386 UINT32 VRThermAlertStatus:1;
1387 UINT32 Reserved2:1;
1388 ///
1389 /// [Bit 8] Electrical Design Point Status (R0).
1390 ///
1391 UINT32 ElectricalDesignPointStatus:1;
1392 UINT32 Reserved3:23;
1393 UINT32 Reserved4:32;
1394 } Bits;
1395 ///
1396 /// All bit fields as a 32-bit value
1397 ///
1398 UINT32 Uint32;
1399 ///
1400 /// All bit fields as a 64-bit value
1401 ///
1402 UINT64 Uint64;
1403 } MSR_XEON_PHI_CORE_PERF_LIMIT_REASONS_REGISTER;
1404
1405 #endif