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