]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/SkylakeMsr.h
a24480015e2736b71109971c8585f3ac4789cd8f
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / SkylakeMsr.h
1 /** @file
2 MSR Defintions for Intel processors based on the Skylake/Kabylake/Coffeelake/Cannonlake microarchitecture.
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 __SKYLAKE_MSR_H__
25 #define __SKYLAKE_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Is Intel processors based on the Skylake microarchitecture?
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_SKYLAKE_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
40 ( \
41 DisplayModel == 0x4E || \
42 DisplayModel == 0x5E || \
43 DisplayModel == 0x55 || \
44 DisplayModel == 0x8E || \
45 DisplayModel == 0x9E || \
46 DisplayModel == 0x66 \
47 ) \
48 )
49
50 /**
51 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
52 RW if MSR_PLATFORM_INFO.[28] = 1.
53
54 @param ECX MSR_SKYLAKE_TURBO_RATIO_LIMIT (0x000001AD)
55 @param EAX Lower 32-bits of MSR value.
56 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER.
57 @param EDX Upper 32-bits of MSR value.
58 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER.
59
60 <b>Example usage</b>
61 @code
62 MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER Msr;
63
64 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_TURBO_RATIO_LIMIT);
65 @endcode
66 @note MSR_SKYLAKE_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
67 **/
68 #define MSR_SKYLAKE_TURBO_RATIO_LIMIT 0x000001AD
69
70 /**
71 MSR information returned for MSR index #MSR_SKYLAKE_TURBO_RATIO_LIMIT
72 **/
73 typedef union {
74 ///
75 /// Individual bit fields
76 ///
77 struct {
78 ///
79 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio
80 /// limit of 1 core active.
81 ///
82 UINT32 Maximum1C:8;
83 ///
84 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio
85 /// limit of 2 core active.
86 ///
87 UINT32 Maximum2C:8;
88 ///
89 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio
90 /// limit of 3 core active.
91 ///
92 UINT32 Maximum3C:8;
93 ///
94 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio
95 /// limit of 4 core active.
96 ///
97 UINT32 Maximum4C:8;
98 UINT32 Reserved:32;
99 } Bits;
100 ///
101 /// All bit fields as a 32-bit value
102 ///
103 UINT32 Uint32;
104 ///
105 /// All bit fields as a 64-bit value
106 ///
107 UINT64 Uint64;
108 } MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER;
109
110
111 /**
112 Thread. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-4)
113 that points to the MSR containing the most recent branch record.
114
115 @param ECX MSR_SKYLAKE_LASTBRANCH_TOS (0x000001C9)
116 @param EAX Lower 32-bits of MSR value.
117 @param EDX Upper 32-bits of MSR value.
118
119 <b>Example usage</b>
120 @code
121 UINT64 Msr;
122
123 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_TOS);
124 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_TOS, Msr);
125 @endcode
126 @note MSR_SKYLAKE_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
127 **/
128 #define MSR_SKYLAKE_LASTBRANCH_TOS 0x000001C9
129
130
131 /**
132 Core. Power Control Register See http://biosbits.org.
133
134 @param ECX MSR_SKYLAKE_POWER_CTL (0x000001FC)
135 @param EAX Lower 32-bits of MSR value.
136 Described by the type MSR_SKYLAKE_POWER_CTL_REGISTER.
137 @param EDX Upper 32-bits of MSR value.
138 Described by the type MSR_SKYLAKE_POWER_CTL_REGISTER.
139
140 <b>Example usage</b>
141 @code
142 MSR_SKYLAKE_POWER_CTL_REGISTER Msr;
143
144 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_POWER_CTL);
145 AsmWriteMsr64 (MSR_SKYLAKE_POWER_CTL, Msr.Uint64);
146 @endcode
147 **/
148 #define MSR_SKYLAKE_POWER_CTL 0x000001FC
149
150 /**
151 MSR information returned for MSR index #MSR_SKYLAKE_POWER_CTL
152 **/
153 typedef union {
154 ///
155 /// Individual bit fields
156 ///
157 struct {
158 UINT32 Reserved1:1;
159 ///
160 /// [Bit 1] Package. C1E Enable (R/W) When set to '1', will enable the CPU
161 /// to switch to the Minimum Enhanced Intel SpeedStep Technology operating
162 /// point when all execution cores enter MWAIT (C1).
163 ///
164 UINT32 C1EEnable:1;
165 UINT32 Reserved2:17;
166 ///
167 /// [Bit 19] Disable Race to Halt Optimization (R/W) Setting this bit
168 /// disables the Race to Halt optimization and avoids this optimization
169 /// limitation to execute below the most efficient frequency ratio.
170 /// Default value is 0 for processors that support Race to Halt
171 /// optimization. Default value is 1 for processors that do not support
172 /// Race to Halt optimization.
173 ///
174 UINT32 Fix_Me_1:1;
175 ///
176 /// [Bit 20] Disable Energy Efficiency Optimization (R/W) Setting this bit
177 /// disables the P-States energy efficiency optimization. Default value is
178 /// 0. Disable/enable the energy efficiency optimization in P-State legacy
179 /// mode (when IA32_PM_ENABLE[HWP_ENABLE] = 0), has an effect only in the
180 /// turbo range or into PERF_MIN_CTL value if it is not zero set. In HWP
181 /// mode (IA32_PM_ENABLE[HWP_ENABLE] == 1), has an effect between the OS
182 /// desired or OS maximize to the OS minimize performance setting.
183 ///
184 UINT32 DisableEnergyEfficiencyOptimization:1;
185 UINT32 Reserved3:11;
186 UINT32 Reserved4:32;
187 } Bits;
188 ///
189 /// All bit fields as a 32-bit value
190 ///
191 UINT32 Uint32;
192 ///
193 /// All bit fields as a 64-bit value
194 ///
195 UINT64 Uint64;
196 } MSR_SKYLAKE_POWER_CTL_REGISTER;
197
198
199 /**
200 Package. Lower 64 Bit CR_SGXOWNEREPOCH (W) Writes do not update
201 CR_SGXOWNEREPOCH if CPUID.(EAX=12H, ECX=0):EAX.SGX1 is 1 on any thread in
202 the package. Lower 64 bits of an 128-bit external entropy value for key
203 derivation of an enclave.
204
205 @param ECX MSR_SKYLAKE_SGXOWNEREPOCH0 (0x00000300)
206 @param EAX Lower 32-bits of MSR value.
207 @param EDX Upper 32-bits of MSR value.
208
209 <b>Example usage</b>
210 @code
211 UINT64 Msr;
212
213 Msr = 0;
214 AsmWriteMsr64 (MSR_SKYLAKE_SGXOWNEREPOCH0, Msr);
215 @endcode
216 @note MSR_SKYLAKE_SGXOWNEREPOCH0 is defined as MSR_SGXOWNER0 in SDM.
217 **/
218 #define MSR_SKYLAKE_SGXOWNEREPOCH0 0x00000300
219
220 //
221 // Define MSR_SKYLAKE_SGXOWNER0 for compatibility due to name change in the SDM.
222 //
223 #define MSR_SKYLAKE_SGXOWNER0 MSR_SKYLAKE_SGXOWNEREPOCH0
224 /**
225 Package. Upper 64 Bit CR_SGXOWNEREPOCH (W) Writes do not update
226 CR_SGXOWNEREPOCH if CPUID.(EAX=12H, ECX=0):EAX.SGX1 is 1 on any thread in
227 the package. Upper 64 bits of an 128-bit external entropy value for key
228 derivation of an enclave.
229
230 @param ECX MSR_SKYLAKE_SGXOWNEREPOCH1 (0x00000301)
231 @param EAX Lower 32-bits of MSR value.
232 @param EDX Upper 32-bits of MSR value.
233
234 <b>Example usage</b>
235 @code
236 UINT64 Msr;
237
238 Msr = 0;
239 AsmWriteMsr64 (MSR_SKYLAKE_SGXOWNEREPOCH1, Msr);
240 @endcode
241 @note MSR_SKYLAKE_SGXOWNEREPOCH1 is defined as MSR_SGXOWNER1 in SDM.
242 **/
243 #define MSR_SKYLAKE_SGXOWNEREPOCH1 0x00000301
244
245 //
246 // Define MSR_SKYLAKE_SGXOWNER1 for compatibility due to name change in the SDM.
247 //
248 #define MSR_SKYLAKE_SGXOWNER1 MSR_SKYLAKE_SGXOWNEREPOCH1
249
250
251 /**
252 See Table 2-2. See Section 18.2.4, "Architectural Performance Monitoring
253 Version 4.".
254
255 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS (0x0000038E)
256 @param EAX Lower 32-bits of MSR value.
257 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER.
258 @param EDX Upper 32-bits of MSR value.
259 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER.
260
261 <b>Example usage</b>
262 @code
263 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER Msr;
264
265 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS);
266 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS, Msr.Uint64);
267 @endcode
268 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS is defined as IA32_PERF_GLOBAL_STATUS in SDM.
269 **/
270 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS 0x0000038E
271
272 /**
273 MSR information returned for MSR index #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS
274 **/
275 typedef union {
276 ///
277 /// Individual bit fields
278 ///
279 struct {
280 ///
281 /// [Bit 0] Thread. Ovf_PMC0.
282 ///
283 UINT32 Ovf_PMC0:1;
284 ///
285 /// [Bit 1] Thread. Ovf_PMC1.
286 ///
287 UINT32 Ovf_PMC1:1;
288 ///
289 /// [Bit 2] Thread. Ovf_PMC2.
290 ///
291 UINT32 Ovf_PMC2:1;
292 ///
293 /// [Bit 3] Thread. Ovf_PMC3.
294 ///
295 UINT32 Ovf_PMC3:1;
296 ///
297 /// [Bit 4] Thread. Ovf_PMC4 (if CPUID.0AH:EAX[15:8] > 4).
298 ///
299 UINT32 Ovf_PMC4:1;
300 ///
301 /// [Bit 5] Thread. Ovf_PMC5 (if CPUID.0AH:EAX[15:8] > 5).
302 ///
303 UINT32 Ovf_PMC5:1;
304 ///
305 /// [Bit 6] Thread. Ovf_PMC6 (if CPUID.0AH:EAX[15:8] > 6).
306 ///
307 UINT32 Ovf_PMC6:1;
308 ///
309 /// [Bit 7] Thread. Ovf_PMC7 (if CPUID.0AH:EAX[15:8] > 7).
310 ///
311 UINT32 Ovf_PMC7:1;
312 UINT32 Reserved1:24;
313 ///
314 /// [Bit 32] Thread. Ovf_FixedCtr0.
315 ///
316 UINT32 Ovf_FixedCtr0:1;
317 ///
318 /// [Bit 33] Thread. Ovf_FixedCtr1.
319 ///
320 UINT32 Ovf_FixedCtr1:1;
321 ///
322 /// [Bit 34] Thread. Ovf_FixedCtr2.
323 ///
324 UINT32 Ovf_FixedCtr2:1;
325 UINT32 Reserved2:20;
326 ///
327 /// [Bit 55] Thread. Trace_ToPA_PMI.
328 ///
329 UINT32 Trace_ToPA_PMI:1;
330 UINT32 Reserved3:2;
331 ///
332 /// [Bit 58] Thread. LBR_Frz.
333 ///
334 UINT32 LBR_Frz:1;
335 ///
336 /// [Bit 59] Thread. CTR_Frz.
337 ///
338 UINT32 CTR_Frz:1;
339 ///
340 /// [Bit 60] Thread. ASCI.
341 ///
342 UINT32 ASCI:1;
343 ///
344 /// [Bit 61] Thread. Ovf_Uncore.
345 ///
346 UINT32 Ovf_Uncore:1;
347 ///
348 /// [Bit 62] Thread. Ovf_BufDSSAVE.
349 ///
350 UINT32 Ovf_BufDSSAVE:1;
351 ///
352 /// [Bit 63] Thread. CondChgd.
353 ///
354 UINT32 CondChgd:1;
355 } Bits;
356 ///
357 /// All bit fields as a 64-bit value
358 ///
359 UINT64 Uint64;
360 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER;
361
362
363 /**
364 See Table 2-2. See Section 18.2.4, "Architectural Performance Monitoring
365 Version 4.".
366
367 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET (0x00000390)
368 @param EAX Lower 32-bits of MSR value.
369 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
370 @param EDX Upper 32-bits of MSR value.
371 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
372
373 <b>Example usage</b>
374 @code
375 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER Msr;
376
377 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET);
378 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET, Msr.Uint64);
379 @endcode
380 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET is defined as IA32_PERF_GLOBAL_STATUS_RESET in SDM.
381 **/
382 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET 0x00000390
383
384 /**
385 MSR information returned for MSR index
386 #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET
387 **/
388 typedef union {
389 ///
390 /// Individual bit fields
391 ///
392 struct {
393 ///
394 /// [Bit 0] Thread. Set 1 to clear Ovf_PMC0.
395 ///
396 UINT32 Ovf_PMC0:1;
397 ///
398 /// [Bit 1] Thread. Set 1 to clear Ovf_PMC1.
399 ///
400 UINT32 Ovf_PMC1:1;
401 ///
402 /// [Bit 2] Thread. Set 1 to clear Ovf_PMC2.
403 ///
404 UINT32 Ovf_PMC2:1;
405 ///
406 /// [Bit 3] Thread. Set 1 to clear Ovf_PMC3.
407 ///
408 UINT32 Ovf_PMC3:1;
409 ///
410 /// [Bit 4] Thread. Set 1 to clear Ovf_PMC4 (if CPUID.0AH:EAX[15:8] > 4).
411 ///
412 UINT32 Ovf_PMC4:1;
413 ///
414 /// [Bit 5] Thread. Set 1 to clear Ovf_PMC5 (if CPUID.0AH:EAX[15:8] > 5).
415 ///
416 UINT32 Ovf_PMC5:1;
417 ///
418 /// [Bit 6] Thread. Set 1 to clear Ovf_PMC6 (if CPUID.0AH:EAX[15:8] > 6).
419 ///
420 UINT32 Ovf_PMC6:1;
421 ///
422 /// [Bit 7] Thread. Set 1 to clear Ovf_PMC7 (if CPUID.0AH:EAX[15:8] > 7).
423 ///
424 UINT32 Ovf_PMC7:1;
425 UINT32 Reserved1:24;
426 ///
427 /// [Bit 32] Thread. Set 1 to clear Ovf_FixedCtr0.
428 ///
429 UINT32 Ovf_FixedCtr0:1;
430 ///
431 /// [Bit 33] Thread. Set 1 to clear Ovf_FixedCtr1.
432 ///
433 UINT32 Ovf_FixedCtr1:1;
434 ///
435 /// [Bit 34] Thread. Set 1 to clear Ovf_FixedCtr2.
436 ///
437 UINT32 Ovf_FixedCtr2:1;
438 UINT32 Reserved2:20;
439 ///
440 /// [Bit 55] Thread. Set 1 to clear Trace_ToPA_PMI.
441 ///
442 UINT32 Trace_ToPA_PMI:1;
443 UINT32 Reserved3:2;
444 ///
445 /// [Bit 58] Thread. Set 1 to clear LBR_Frz.
446 ///
447 UINT32 LBR_Frz:1;
448 ///
449 /// [Bit 59] Thread. Set 1 to clear CTR_Frz.
450 ///
451 UINT32 CTR_Frz:1;
452 ///
453 /// [Bit 60] Thread. Set 1 to clear ASCI.
454 ///
455 UINT32 ASCI:1;
456 ///
457 /// [Bit 61] Thread. Set 1 to clear Ovf_Uncore.
458 ///
459 UINT32 Ovf_Uncore:1;
460 ///
461 /// [Bit 62] Thread. Set 1 to clear Ovf_BufDSSAVE.
462 ///
463 UINT32 Ovf_BufDSSAVE:1;
464 ///
465 /// [Bit 63] Thread. Set 1 to clear CondChgd.
466 ///
467 UINT32 CondChgd:1;
468 } Bits;
469 ///
470 /// All bit fields as a 64-bit value
471 ///
472 UINT64 Uint64;
473 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER;
474
475
476 /**
477 See Table 2-2. See Section 18.2.4, "Architectural Performance Monitoring
478 Version 4.".
479
480 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET (0x00000391)
481 @param EAX Lower 32-bits of MSR value.
482 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
483 @param EDX Upper 32-bits of MSR value.
484 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
485
486 <b>Example usage</b>
487 @code
488 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER Msr;
489
490 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET);
491 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET, Msr.Uint64);
492 @endcode
493 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET is defined as IA32_PERF_GLOBAL_STATUS_SET in SDM.
494 **/
495 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET 0x00000391
496
497 /**
498 MSR information returned for MSR index
499 #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET
500 **/
501 typedef union {
502 ///
503 /// Individual bit fields
504 ///
505 struct {
506 ///
507 /// [Bit 0] Thread. Set 1 to cause Ovf_PMC0 = 1.
508 ///
509 UINT32 Ovf_PMC0:1;
510 ///
511 /// [Bit 1] Thread. Set 1 to cause Ovf_PMC1 = 1.
512 ///
513 UINT32 Ovf_PMC1:1;
514 ///
515 /// [Bit 2] Thread. Set 1 to cause Ovf_PMC2 = 1.
516 ///
517 UINT32 Ovf_PMC2:1;
518 ///
519 /// [Bit 3] Thread. Set 1 to cause Ovf_PMC3 = 1.
520 ///
521 UINT32 Ovf_PMC3:1;
522 ///
523 /// [Bit 4] Thread. Set 1 to cause Ovf_PMC4=1 (if CPUID.0AH:EAX[15:8] > 4).
524 ///
525 UINT32 Ovf_PMC4:1;
526 ///
527 /// [Bit 5] Thread. Set 1 to cause Ovf_PMC5=1 (if CPUID.0AH:EAX[15:8] > 5).
528 ///
529 UINT32 Ovf_PMC5:1;
530 ///
531 /// [Bit 6] Thread. Set 1 to cause Ovf_PMC6=1 (if CPUID.0AH:EAX[15:8] > 6).
532 ///
533 UINT32 Ovf_PMC6:1;
534 ///
535 /// [Bit 7] Thread. Set 1 to cause Ovf_PMC7=1 (if CPUID.0AH:EAX[15:8] > 7).
536 ///
537 UINT32 Ovf_PMC7:1;
538 UINT32 Reserved1:24;
539 ///
540 /// [Bit 32] Thread. Set 1 to cause Ovf_FixedCtr0 = 1.
541 ///
542 UINT32 Ovf_FixedCtr0:1;
543 ///
544 /// [Bit 33] Thread. Set 1 to cause Ovf_FixedCtr1 = 1.
545 ///
546 UINT32 Ovf_FixedCtr1:1;
547 ///
548 /// [Bit 34] Thread. Set 1 to cause Ovf_FixedCtr2 = 1.
549 ///
550 UINT32 Ovf_FixedCtr2:1;
551 UINT32 Reserved2:20;
552 ///
553 /// [Bit 55] Thread. Set 1 to cause Trace_ToPA_PMI = 1.
554 ///
555 UINT32 Trace_ToPA_PMI:1;
556 UINT32 Reserved3:2;
557 ///
558 /// [Bit 58] Thread. Set 1 to cause LBR_Frz = 1.
559 ///
560 UINT32 LBR_Frz:1;
561 ///
562 /// [Bit 59] Thread. Set 1 to cause CTR_Frz = 1.
563 ///
564 UINT32 CTR_Frz:1;
565 ///
566 /// [Bit 60] Thread. Set 1 to cause ASCI = 1.
567 ///
568 UINT32 ASCI:1;
569 ///
570 /// [Bit 61] Thread. Set 1 to cause Ovf_Uncore.
571 ///
572 UINT32 Ovf_Uncore:1;
573 ///
574 /// [Bit 62] Thread. Set 1 to cause Ovf_BufDSSAVE.
575 ///
576 UINT32 Ovf_BufDSSAVE:1;
577 UINT32 Reserved4:1;
578 } Bits;
579 ///
580 /// All bit fields as a 64-bit value
581 ///
582 UINT64 Uint64;
583 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER;
584
585
586 /**
587 Thread. FrontEnd Precise Event Condition Select (R/W).
588
589 @param ECX MSR_SKYLAKE_PEBS_FRONTEND (0x000003F7)
590 @param EAX Lower 32-bits of MSR value.
591 Described by the type MSR_SKYLAKE_PEBS_FRONTEND_REGISTER.
592 @param EDX Upper 32-bits of MSR value.
593 Described by the type MSR_SKYLAKE_PEBS_FRONTEND_REGISTER.
594
595 <b>Example usage</b>
596 @code
597 MSR_SKYLAKE_PEBS_FRONTEND_REGISTER Msr;
598
599 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PEBS_FRONTEND);
600 AsmWriteMsr64 (MSR_SKYLAKE_PEBS_FRONTEND, Msr.Uint64);
601 @endcode
602 @note MSR_SKYLAKE_PEBS_FRONTEND is defined as MSR_PEBS_FRONTEND in SDM.
603 **/
604 #define MSR_SKYLAKE_PEBS_FRONTEND 0x000003F7
605
606 /**
607 MSR information returned for MSR index #MSR_SKYLAKE_PEBS_FRONTEND
608 **/
609 typedef union {
610 ///
611 /// Individual bit fields
612 ///
613 struct {
614 ///
615 /// [Bits 2:0] Event Code Select.
616 ///
617 UINT32 EventCodeSelect:3;
618 UINT32 Reserved1:1;
619 ///
620 /// [Bit 4] Event Code Select High.
621 ///
622 UINT32 EventCodeSelectHigh:1;
623 UINT32 Reserved2:3;
624 ///
625 /// [Bits 19:8] IDQ_Bubble_Length Specifier.
626 ///
627 UINT32 IDQ_Bubble_Length:12;
628 ///
629 /// [Bits 22:20] IDQ_Bubble_Width Specifier.
630 ///
631 UINT32 IDQ_Bubble_Width:3;
632 UINT32 Reserved3:9;
633 UINT32 Reserved4: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_SKYLAKE_PEBS_FRONTEND_REGISTER;
644
645
646 /**
647 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL
648 Domains.".
649
650 @param ECX MSR_SKYLAKE_PP0_ENERGY_STATUS (0x00000639)
651 @param EAX Lower 32-bits of MSR value.
652 @param EDX Upper 32-bits of MSR value.
653
654 <b>Example usage</b>
655 @code
656 UINT64 Msr;
657
658 Msr = AsmReadMsr64 (MSR_SKYLAKE_PP0_ENERGY_STATUS);
659 @endcode
660 @note MSR_SKYLAKE_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
661 **/
662 #define MSR_SKYLAKE_PP0_ENERGY_STATUS 0x00000639
663
664
665 /**
666 Platform*. Platform Energy Counter. (R/O). This MSR is valid only if both
667 platform vendor hardware implementation and BIOS enablement support it. This
668 MSR will read 0 if not valid.
669
670 @param ECX MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER (0x0000064D)
671 @param EAX Lower 32-bits of MSR value.
672 Described by the type MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER.
673 @param EDX Upper 32-bits of MSR value.
674 Described by the type MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER.
675
676 <b>Example usage</b>
677 @code
678 MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER Msr;
679
680 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER);
681 @endcode
682 @note MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER is defined as MSR_PLATFORM_ENERGY_COUNTER in SDM.
683 **/
684 #define MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER 0x0000064D
685
686 /**
687 MSR information returned for MSR index #MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER
688 **/
689 typedef union {
690 ///
691 /// Individual bit fields
692 ///
693 struct {
694 ///
695 /// [Bits 31:0] Total energy consumed by all devices in the platform that
696 /// receive power from integrated power delivery mechanism, Included
697 /// platform devices are processor cores, SOC, memory, add-on or
698 /// peripheral devices that get powered directly from the platform power
699 /// delivery means. The energy units are specified in the
700 /// MSR_RAPL_POWER_UNIT.Enery_Status_Unit.
701 ///
702 UINT32 TotalEnergy:32;
703 UINT32 Reserved:32;
704 } Bits;
705 ///
706 /// All bit fields as a 32-bit value
707 ///
708 UINT32 Uint32;
709 ///
710 /// All bit fields as a 64-bit value
711 ///
712 UINT64 Uint64;
713 } MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER;
714
715
716 /**
717 Thread. Productive Performance Count. (R/O). Hardware's view of workload
718 scalability. See Section 14.4.5.1.
719
720 @param ECX MSR_SKYLAKE_PPERF (0x0000064E)
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_SKYLAKE_PPERF);
729 @endcode
730 @note MSR_SKYLAKE_PPERF is defined as MSR_PPERF in SDM.
731 **/
732 #define MSR_SKYLAKE_PPERF 0x0000064E
733
734
735 /**
736 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
737 refers to processor core frequency).
738
739 @param ECX MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS (0x0000064F)
740 @param EAX Lower 32-bits of MSR value.
741 Described by the type MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER.
742 @param EDX Upper 32-bits of MSR value.
743 Described by the type MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER.
744
745 <b>Example usage</b>
746 @code
747 MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
748
749 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS);
750 AsmWriteMsr64 (MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
751 @endcode
752 @note MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
753 **/
754 #define MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS 0x0000064F
755
756 /**
757 MSR information returned for MSR index #MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS
758 **/
759 typedef union {
760 ///
761 /// Individual bit fields
762 ///
763 struct {
764 ///
765 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced below the
766 /// operating system request due to assertion of external PROCHOT.
767 ///
768 UINT32 PROCHOT_Status:1;
769 ///
770 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
771 /// operating system request due to a thermal event.
772 ///
773 UINT32 ThermalStatus:1;
774 UINT32 Reserved1:2;
775 ///
776 /// [Bit 4] Residency State Regulation Status (R0) When set, frequency is
777 /// reduced below the operating system request due to residency state
778 /// regulation limit.
779 ///
780 UINT32 ResidencyStateRegulationStatus:1;
781 ///
782 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
783 /// is reduced below the operating system request due to Running Average
784 /// Thermal Limit (RATL).
785 ///
786 UINT32 RunningAverageThermalLimitStatus:1;
787 ///
788 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced
789 /// below the operating system request due to a thermal alert from a
790 /// processor Voltage Regulator (VR).
791 ///
792 UINT32 VRThermAlertStatus:1;
793 ///
794 /// [Bit 7] VR Therm Design Current Status (R0) When set, frequency is
795 /// reduced below the operating system request due to VR thermal design
796 /// current limit.
797 ///
798 UINT32 VRThermDesignCurrentStatus:1;
799 ///
800 /// [Bit 8] Other Status (R0) When set, frequency is reduced below the
801 /// operating system request due to electrical or other constraints.
802 ///
803 UINT32 OtherStatus:1;
804 UINT32 Reserved2:1;
805 ///
806 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
807 /// set, frequency is reduced below the operating system request due to
808 /// package/platform-level power limiting PL1.
809 ///
810 UINT32 PL1Status:1;
811 ///
812 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
813 /// set, frequency is reduced below the operating system request due to
814 /// package/platform-level power limiting PL2/PL3.
815 ///
816 UINT32 PL2Status:1;
817 ///
818 /// [Bit 12] Max Turbo Limit Status (R0) When set, frequency is reduced
819 /// below the operating system request due to multi-core turbo limits.
820 ///
821 UINT32 MaxTurboLimitStatus:1;
822 ///
823 /// [Bit 13] Turbo Transition Attenuation Status (R0) When set, frequency
824 /// is reduced below the operating system request due to Turbo transition
825 /// attenuation. This prevents performance degradation due to frequent
826 /// operating ratio changes.
827 ///
828 UINT32 TurboTransitionAttenuationStatus:1;
829 UINT32 Reserved3:2;
830 ///
831 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
832 /// has asserted since the log bit was last cleared. This log bit will
833 /// remain set until cleared by software writing 0.
834 ///
835 UINT32 PROCHOT_Log:1;
836 ///
837 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
838 /// has asserted since the log bit was last cleared. This log bit will
839 /// remain set until cleared by software writing 0.
840 ///
841 UINT32 ThermalLog:1;
842 UINT32 Reserved4:2;
843 ///
844 /// [Bit 20] Residency State Regulation Log When set, indicates that the
845 /// Residency State Regulation Status bit has asserted since the log bit
846 /// was last cleared. This log bit will remain set until cleared by
847 /// software writing 0.
848 ///
849 UINT32 ResidencyStateRegulationLog:1;
850 ///
851 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
852 /// the RATL Status bit has asserted since the log bit was last cleared.
853 /// This log bit will remain set until cleared by software writing 0.
854 ///
855 UINT32 RunningAverageThermalLimitLog:1;
856 ///
857 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
858 /// Alert Status bit has asserted since the log bit was last cleared. This
859 /// log bit will remain set until cleared by software writing 0.
860 ///
861 UINT32 VRThermAlertLog:1;
862 ///
863 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
864 /// VR TDC Status bit has asserted since the log bit was last cleared.
865 /// This log bit will remain set until cleared by software writing 0.
866 ///
867 UINT32 VRThermalDesignCurrentLog:1;
868 ///
869 /// [Bit 24] Other Log When set, indicates that the Other Status bit has
870 /// asserted since the log bit was last cleared. This log bit will remain
871 /// set until cleared by software writing 0.
872 ///
873 UINT32 OtherLog:1;
874 UINT32 Reserved5:1;
875 ///
876 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
877 /// indicates that the Package or Platform Level PL1 Power Limiting Status
878 /// bit has asserted since the log bit was last cleared. This log bit will
879 /// remain set until cleared by software writing 0.
880 ///
881 UINT32 PL1Log:1;
882 ///
883 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
884 /// indicates that the Package or Platform Level PL2/PL3 Power Limiting
885 /// Status bit has asserted since the log bit was last cleared. This log
886 /// bit will remain set until cleared by software writing 0.
887 ///
888 UINT32 PL2Log:1;
889 ///
890 /// [Bit 28] Max Turbo Limit Log When set, indicates that the Max Turbo
891 /// Limit Status bit has asserted since the log bit was last cleared. This
892 /// log bit will remain set until cleared by software writing 0.
893 ///
894 UINT32 MaxTurboLimitLog:1;
895 ///
896 /// [Bit 29] Turbo Transition Attenuation Log When set, indicates that the
897 /// Turbo Transition Attenuation Status bit has asserted since the log bit
898 /// was last cleared. This log bit will remain set until cleared by
899 /// software writing 0.
900 ///
901 UINT32 TurboTransitionAttenuationLog:1;
902 UINT32 Reserved6:2;
903 UINT32 Reserved7:32;
904 } Bits;
905 ///
906 /// All bit fields as a 32-bit value
907 ///
908 UINT32 Uint32;
909 ///
910 /// All bit fields as a 64-bit value
911 ///
912 UINT64 Uint64;
913 } MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER;
914
915
916 /**
917 Package. HDC Configuration (R/W)..
918
919 @param ECX MSR_SKYLAKE_PKG_HDC_CONFIG (0x00000652)
920 @param EAX Lower 32-bits of MSR value.
921 Described by the type MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER.
922 @param EDX Upper 32-bits of MSR value.
923 Described by the type MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER.
924
925 <b>Example usage</b>
926 @code
927 MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER Msr;
928
929 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_CONFIG);
930 AsmWriteMsr64 (MSR_SKYLAKE_PKG_HDC_CONFIG, Msr.Uint64);
931 @endcode
932 @note MSR_SKYLAKE_PKG_HDC_CONFIG is defined as MSR_PKG_HDC_CONFIG in SDM.
933 **/
934 #define MSR_SKYLAKE_PKG_HDC_CONFIG 0x00000652
935
936 /**
937 MSR information returned for MSR index #MSR_SKYLAKE_PKG_HDC_CONFIG
938 **/
939 typedef union {
940 ///
941 /// Individual bit fields
942 ///
943 struct {
944 ///
945 /// [Bits 2:0] PKG_Cx_Monitor. Configures Package Cx state threshold for
946 /// MSR_PKG_HDC_DEEP_RESIDENCY.
947 ///
948 UINT32 PKG_Cx_Monitor:3;
949 UINT32 Reserved1:29;
950 UINT32 Reserved2:32;
951 } Bits;
952 ///
953 /// All bit fields as a 32-bit value
954 ///
955 UINT32 Uint32;
956 ///
957 /// All bit fields as a 64-bit value
958 ///
959 UINT64 Uint64;
960 } MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER;
961
962
963 /**
964 Core. Core HDC Idle Residency. (R/O). Core_Cx_Duty_Cycle_Cnt.
965
966 @param ECX MSR_SKYLAKE_CORE_HDC_RESIDENCY (0x00000653)
967 @param EAX Lower 32-bits of MSR value.
968 @param EDX Upper 32-bits of MSR value.
969
970 <b>Example usage</b>
971 @code
972 UINT64 Msr;
973
974 Msr = AsmReadMsr64 (MSR_SKYLAKE_CORE_HDC_RESIDENCY);
975 @endcode
976 @note MSR_SKYLAKE_CORE_HDC_RESIDENCY is defined as MSR_CORE_HDC_RESIDENCY in SDM.
977 **/
978 #define MSR_SKYLAKE_CORE_HDC_RESIDENCY 0x00000653
979
980
981 /**
982 Package. Accumulate the cycles the package was in C2 state and at least one
983 logical processor was in forced idle. (R/O). Pkg_C2_Duty_Cycle_Cnt.
984
985 @param ECX MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY (0x00000655)
986 @param EAX Lower 32-bits of MSR value.
987 @param EDX Upper 32-bits of MSR value.
988
989 <b>Example usage</b>
990 @code
991 UINT64 Msr;
992
993 Msr = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY);
994 @endcode
995 @note MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY is defined as MSR_PKG_HDC_SHALLOW_RESIDENCY in SDM.
996 **/
997 #define MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY 0x00000655
998
999
1000 /**
1001 Package. Package Cx HDC Idle Residency. (R/O). Pkg_Cx_Duty_Cycle_Cnt.
1002
1003 @param ECX MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY (0x00000656)
1004 @param EAX Lower 32-bits of MSR value.
1005 @param EDX Upper 32-bits of MSR value.
1006
1007 <b>Example usage</b>
1008 @code
1009 UINT64 Msr;
1010
1011 Msr = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY);
1012 @endcode
1013 @note MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY is defined as MSR_PKG_HDC_DEEP_RESIDENCY in SDM.
1014 **/
1015 #define MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY 0x00000656
1016
1017
1018 /**
1019 Package. Core-count Weighted C0 Residency. (R/O). Increment at the same rate
1020 as the TSC. The increment each cycle is weighted by the number of processor
1021 cores in the package that reside in C0. If N cores are simultaneously in C0,
1022 then each cycle the counter increments by N.
1023
1024 @param ECX MSR_SKYLAKE_WEIGHTED_CORE_C0 (0x00000658)
1025 @param EAX Lower 32-bits of MSR value.
1026 @param EDX Upper 32-bits of MSR value.
1027
1028 <b>Example usage</b>
1029 @code
1030 UINT64 Msr;
1031
1032 Msr = AsmReadMsr64 (MSR_SKYLAKE_WEIGHTED_CORE_C0);
1033 @endcode
1034 @note MSR_SKYLAKE_WEIGHTED_CORE_C0 is defined as MSR_WEIGHTED_CORE_C0 in SDM.
1035 **/
1036 #define MSR_SKYLAKE_WEIGHTED_CORE_C0 0x00000658
1037
1038
1039 /**
1040 Package. Any Core C0 Residency. (R/O). Increment at the same rate as the
1041 TSC. The increment each cycle is one if any processor core in the package is
1042 in C0.
1043
1044 @param ECX MSR_SKYLAKE_ANY_CORE_C0 (0x00000659)
1045 @param EAX Lower 32-bits of MSR value.
1046 @param EDX Upper 32-bits of MSR value.
1047
1048 <b>Example usage</b>
1049 @code
1050 UINT64 Msr;
1051
1052 Msr = AsmReadMsr64 (MSR_SKYLAKE_ANY_CORE_C0);
1053 @endcode
1054 @note MSR_SKYLAKE_ANY_CORE_C0 is defined as MSR_ANY_CORE_C0 in SDM.
1055 **/
1056 #define MSR_SKYLAKE_ANY_CORE_C0 0x00000659
1057
1058
1059 /**
1060 Package. Any Graphics Engine C0 Residency. (R/O). Increment at the same rate
1061 as the TSC. The increment each cycle is one if any processor graphic
1062 device's compute engines are in C0.
1063
1064 @param ECX MSR_SKYLAKE_ANY_GFXE_C0 (0x0000065A)
1065 @param EAX Lower 32-bits of MSR value.
1066 @param EDX Upper 32-bits of MSR value.
1067
1068 <b>Example usage</b>
1069 @code
1070 UINT64 Msr;
1071
1072 Msr = AsmReadMsr64 (MSR_SKYLAKE_ANY_GFXE_C0);
1073 @endcode
1074 @note MSR_SKYLAKE_ANY_GFXE_C0 is defined as MSR_ANY_GFXE_C0 in SDM.
1075 **/
1076 #define MSR_SKYLAKE_ANY_GFXE_C0 0x0000065A
1077
1078
1079 /**
1080 Package. Core and Graphics Engine Overlapped C0 Residency. (R/O). Increment
1081 at the same rate as the TSC. The increment each cycle is one if at least one
1082 compute engine of the processor graphics is in C0 and at least one processor
1083 core in the package is also in C0.
1084
1085 @param ECX MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 (0x0000065B)
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_SKYLAKE_CORE_GFXE_OVERLAP_C0);
1094 @endcode
1095 @note MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 is defined as MSR_CORE_GFXE_OVERLAP_C0 in SDM.
1096 **/
1097 #define MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 0x0000065B
1098
1099
1100 /**
1101 Platform*. Platform Power Limit Control (R/W-L) Allows platform BIOS to
1102 limit power consumption of the platform devices to the specified values. The
1103 Long Duration power consumption is specified via Platform_Power_Limit_1 and
1104 Platform_Power_Limit_1_Time. The Short Duration power consumption limit is
1105 specified via the Platform_Power_Limit_2 with duration chosen by the
1106 processor. The processor implements an exponential-weighted algorithm in the
1107 placement of the time windows.
1108
1109 @param ECX MSR_SKYLAKE_PLATFORM_POWER_LIMIT (0x0000065C)
1110 @param EAX Lower 32-bits of MSR value.
1111 Described by the type MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER.
1112 @param EDX Upper 32-bits of MSR value.
1113 Described by the type MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER.
1114
1115 <b>Example usage</b>
1116 @code
1117 MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER Msr;
1118
1119 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PLATFORM_POWER_LIMIT);
1120 AsmWriteMsr64 (MSR_SKYLAKE_PLATFORM_POWER_LIMIT, Msr.Uint64);
1121 @endcode
1122 @note MSR_SKYLAKE_PLATFORM_POWER_LIMIT is defined as MSR_PLATFORM_POWER_LIMIT in SDM.
1123 **/
1124 #define MSR_SKYLAKE_PLATFORM_POWER_LIMIT 0x0000065C
1125
1126 /**
1127 MSR information returned for MSR index #MSR_SKYLAKE_PLATFORM_POWER_LIMIT
1128 **/
1129 typedef union {
1130 ///
1131 /// Individual bit fields
1132 ///
1133 struct {
1134 ///
1135 /// [Bits 14:0] Platform Power Limit #1. Average Power limit value which
1136 /// the platform must not exceed over a time window as specified by
1137 /// Power_Limit_1_TIME field. The default value is the Thermal Design
1138 /// Power (TDP) and varies with product skus. The unit is specified in
1139 /// MSR_RAPLPOWER_UNIT.
1140 ///
1141 UINT32 PlatformPowerLimit1:15;
1142 ///
1143 /// [Bit 15] Enable Platform Power Limit #1. When set, enables the
1144 /// processor to apply control policy such that the platform power does
1145 /// not exceed Platform Power limit #1 over the time window specified by
1146 /// Power Limit #1 Time Window.
1147 ///
1148 UINT32 EnablePlatformPowerLimit1:1;
1149 ///
1150 /// [Bit 16] Platform Clamping Limitation #1. When set, allows the
1151 /// processor to go below the OS requested P states in order to maintain
1152 /// the power below specified Platform Power Limit #1 value. This bit is
1153 /// writeable only when CPUID (EAX=6):EAX[4] is set.
1154 ///
1155 UINT32 PlatformClampingLimitation1:1;
1156 ///
1157 /// [Bits 23:17] Time Window for Platform Power Limit #1. Specifies the
1158 /// duration of the time window over which Platform Power Limit 1 value
1159 /// should be maintained for sustained long duration. This field is made
1160 /// up of two numbers from the following equation: Time Window = (float)
1161 /// ((1+(X/4))*(2^Y)), where: X. = POWER_LIMIT_1_TIME[23:22] Y. =
1162 /// POWER_LIMIT_1_TIME[21:17]. The maximum allowed value in this field is
1163 /// defined in MSR_PKG_POWER_INFO[PKG_MAX_WIN]. The default value is 0DH,
1164 /// The unit is specified in MSR_RAPLPOWER_UNIT[Time Unit].
1165 ///
1166 UINT32 Time:7;
1167 UINT32 Reserved1:8;
1168 ///
1169 /// [Bits 46:32] Platform Power Limit #2. Average Power limit value which
1170 /// the platform must not exceed over the Short Duration time window
1171 /// chosen by the processor. The recommended default value is 1.25 times
1172 /// the Long Duration Power Limit (i.e. Platform Power Limit # 1).
1173 ///
1174 UINT32 PlatformPowerLimit2:15;
1175 ///
1176 /// [Bit 47] Enable Platform Power Limit #2. When set, enables the
1177 /// processor to apply control policy such that the platform power does
1178 /// not exceed Platform Power limit #2 over the Short Duration time window.
1179 ///
1180 UINT32 EnablePlatformPowerLimit2:1;
1181 ///
1182 /// [Bit 48] Platform Clamping Limitation #2. When set, allows the
1183 /// processor to go below the OS requested P states in order to maintain
1184 /// the power below specified Platform Power Limit #2 value.
1185 ///
1186 UINT32 PlatformClampingLimitation2:1;
1187 UINT32 Reserved2:14;
1188 ///
1189 /// [Bit 63] Lock. Setting this bit will lock all other bits of this MSR
1190 /// until system RESET.
1191 ///
1192 UINT32 Lock:1;
1193 } Bits;
1194 ///
1195 /// All bit fields as a 64-bit value
1196 ///
1197 UINT64 Uint64;
1198 } MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER;
1199
1200
1201 /**
1202 Thread. Last Branch Record n From IP (R/W) One of 32 triplets of last
1203 branch record registers on the last branch record stack. This part of the
1204 stack contains pointers to the source instruction. See also: - Last Branch
1205 Record Stack TOS at 1C9H - Section 17.10.
1206
1207 @param ECX MSR_SKYLAKE_LASTBRANCH_n_FROM_IP
1208 @param EAX Lower 32-bits of MSR value.
1209 @param EDX Upper 32-bits of MSR value.
1210
1211 <b>Example usage</b>
1212 @code
1213 UINT64 Msr;
1214
1215 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_16_FROM_IP);
1216 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_16_FROM_IP, Msr);
1217 @endcode
1218 @note MSR_SKYLAKE_LASTBRANCH_16_FROM_IP is defined as MSR_LASTBRANCH_16_FROM_IP in SDM.
1219 MSR_SKYLAKE_LASTBRANCH_17_FROM_IP is defined as MSR_LASTBRANCH_17_FROM_IP in SDM.
1220 MSR_SKYLAKE_LASTBRANCH_18_FROM_IP is defined as MSR_LASTBRANCH_18_FROM_IP in SDM.
1221 MSR_SKYLAKE_LASTBRANCH_19_FROM_IP is defined as MSR_LASTBRANCH_19_FROM_IP in SDM.
1222 MSR_SKYLAKE_LASTBRANCH_20_FROM_IP is defined as MSR_LASTBRANCH_20_FROM_IP in SDM.
1223 MSR_SKYLAKE_LASTBRANCH_21_FROM_IP is defined as MSR_LASTBRANCH_21_FROM_IP in SDM.
1224 MSR_SKYLAKE_LASTBRANCH_22_FROM_IP is defined as MSR_LASTBRANCH_22_FROM_IP in SDM.
1225 MSR_SKYLAKE_LASTBRANCH_23_FROM_IP is defined as MSR_LASTBRANCH_23_FROM_IP in SDM.
1226 MSR_SKYLAKE_LASTBRANCH_24_FROM_IP is defined as MSR_LASTBRANCH_24_FROM_IP in SDM.
1227 MSR_SKYLAKE_LASTBRANCH_25_FROM_IP is defined as MSR_LASTBRANCH_25_FROM_IP in SDM.
1228 MSR_SKYLAKE_LASTBRANCH_26_FROM_IP is defined as MSR_LASTBRANCH_26_FROM_IP in SDM.
1229 MSR_SKYLAKE_LASTBRANCH_27_FROM_IP is defined as MSR_LASTBRANCH_27_FROM_IP in SDM.
1230 MSR_SKYLAKE_LASTBRANCH_28_FROM_IP is defined as MSR_LASTBRANCH_28_FROM_IP in SDM.
1231 MSR_SKYLAKE_LASTBRANCH_29_FROM_IP is defined as MSR_LASTBRANCH_29_FROM_IP in SDM.
1232 MSR_SKYLAKE_LASTBRANCH_30_FROM_IP is defined as MSR_LASTBRANCH_30_FROM_IP in SDM.
1233 MSR_SKYLAKE_LASTBRANCH_31_FROM_IP is defined as MSR_LASTBRANCH_31_FROM_IP in SDM.
1234 @{
1235 **/
1236 #define MSR_SKYLAKE_LASTBRANCH_16_FROM_IP 0x00000690
1237 #define MSR_SKYLAKE_LASTBRANCH_17_FROM_IP 0x00000691
1238 #define MSR_SKYLAKE_LASTBRANCH_18_FROM_IP 0x00000692
1239 #define MSR_SKYLAKE_LASTBRANCH_19_FROM_IP 0x00000693
1240 #define MSR_SKYLAKE_LASTBRANCH_20_FROM_IP 0x00000694
1241 #define MSR_SKYLAKE_LASTBRANCH_21_FROM_IP 0x00000695
1242 #define MSR_SKYLAKE_LASTBRANCH_22_FROM_IP 0x00000696
1243 #define MSR_SKYLAKE_LASTBRANCH_23_FROM_IP 0x00000697
1244 #define MSR_SKYLAKE_LASTBRANCH_24_FROM_IP 0x00000698
1245 #define MSR_SKYLAKE_LASTBRANCH_25_FROM_IP 0x00000699
1246 #define MSR_SKYLAKE_LASTBRANCH_26_FROM_IP 0x0000069A
1247 #define MSR_SKYLAKE_LASTBRANCH_27_FROM_IP 0x0000069B
1248 #define MSR_SKYLAKE_LASTBRANCH_28_FROM_IP 0x0000069C
1249 #define MSR_SKYLAKE_LASTBRANCH_29_FROM_IP 0x0000069D
1250 #define MSR_SKYLAKE_LASTBRANCH_30_FROM_IP 0x0000069E
1251 #define MSR_SKYLAKE_LASTBRANCH_31_FROM_IP 0x0000069F
1252 /// @}
1253
1254
1255 /**
1256 Package. Indicator of Frequency Clipping in the Processor Graphics (R/W)
1257 (frequency refers to processor graphics frequency).
1258
1259 @param ECX MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS (0x000006B0)
1260 @param EAX Lower 32-bits of MSR value.
1261 Described by the type MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER.
1262 @param EDX Upper 32-bits of MSR value.
1263 Described by the type MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER.
1264
1265 <b>Example usage</b>
1266 @code
1267 MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER Msr;
1268
1269 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS);
1270 AsmWriteMsr64 (MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS, Msr.Uint64);
1271 @endcode
1272 @note MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS is defined as MSR_GRAPHICS_PERF_LIMIT_REASONS in SDM.
1273 **/
1274 #define MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS 0x000006B0
1275
1276 /**
1277 MSR information returned for MSR index
1278 #MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS
1279 **/
1280 typedef union {
1281 ///
1282 /// Individual bit fields
1283 ///
1284 struct {
1285 ///
1286 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced due to
1287 /// assertion of external PROCHOT.
1288 ///
1289 UINT32 PROCHOT_Status:1;
1290 ///
1291 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced due to a
1292 /// thermal event.
1293 ///
1294 UINT32 ThermalStatus:1;
1295 UINT32 Reserved1:3;
1296 ///
1297 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
1298 /// is reduced due to running average thermal limit.
1299 ///
1300 UINT32 RunningAverageThermalLimitStatus:1;
1301 ///
1302 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced due
1303 /// to a thermal alert from a processor Voltage Regulator.
1304 ///
1305 UINT32 VRThermAlertStatus:1;
1306 ///
1307 /// [Bit 7] VR Thermal Design Current Status (R0) When set, frequency is
1308 /// reduced due to VR TDC limit.
1309 ///
1310 UINT32 VRThermalDesignCurrentStatus:1;
1311 ///
1312 /// [Bit 8] Other Status (R0) When set, frequency is reduced due to
1313 /// electrical or other constraints.
1314 ///
1315 UINT32 OtherStatus:1;
1316 UINT32 Reserved2:1;
1317 ///
1318 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
1319 /// set, frequency is reduced due to package/platform-level power limiting
1320 /// PL1.
1321 ///
1322 UINT32 PL1Status:1;
1323 ///
1324 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
1325 /// set, frequency is reduced due to package/platform-level power limiting
1326 /// PL2/PL3.
1327 ///
1328 UINT32 PL2Status:1;
1329 ///
1330 /// [Bit 12] Inefficient Operation Status (R0) When set, processor
1331 /// graphics frequency is operating below target frequency.
1332 ///
1333 UINT32 InefficientOperationStatus:1;
1334 UINT32 Reserved3:3;
1335 ///
1336 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
1337 /// has asserted since the log bit was last cleared. This log bit will
1338 /// remain set until cleared by software writing 0.
1339 ///
1340 UINT32 PROCHOT_Log:1;
1341 ///
1342 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
1343 /// has asserted since the log bit was last cleared. This log bit will
1344 /// remain set until cleared by software writing 0.
1345 ///
1346 UINT32 ThermalLog:1;
1347 UINT32 Reserved4:3;
1348 ///
1349 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
1350 /// the RATL Status bit has asserted since the log bit was last cleared.
1351 /// This log bit will remain set until cleared by software writing 0.
1352 ///
1353 UINT32 RunningAverageThermalLimitLog:1;
1354 ///
1355 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
1356 /// Alert Status bit has asserted since the log bit was last cleared. This
1357 /// log bit will remain set until cleared by software writing 0.
1358 ///
1359 UINT32 VRThermAlertLog:1;
1360 ///
1361 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
1362 /// VR Therm Alert Status bit has asserted since the log bit was last
1363 /// cleared. This log bit will remain set until cleared by software
1364 /// writing 0.
1365 ///
1366 UINT32 VRThermalDesignCurrentLog:1;
1367 ///
1368 /// [Bit 24] Other Log When set, indicates that the OTHER Status bit has
1369 /// asserted since the log bit was last cleared. This log bit will remain
1370 /// set until cleared by software writing 0.
1371 ///
1372 UINT32 OtherLog:1;
1373 UINT32 Reserved5:1;
1374 ///
1375 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
1376 /// indicates that the Package/Platform Level PL1 Power Limiting Status
1377 /// bit has asserted since the log bit was last cleared. This log bit will
1378 /// remain set until cleared by software writing 0.
1379 ///
1380 UINT32 PL1Log:1;
1381 ///
1382 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
1383 /// indicates that the Package/Platform Level PL2 Power Limiting Status
1384 /// bit has asserted since the log bit was last cleared. This log bit will
1385 /// remain set until cleared by software writing 0.
1386 ///
1387 UINT32 PL2Log:1;
1388 ///
1389 /// [Bit 28] Inefficient Operation Log When set, indicates that the
1390 /// Inefficient Operation Status bit has asserted since the log bit was
1391 /// last cleared. This log bit will remain set until cleared by software
1392 /// writing 0.
1393 ///
1394 UINT32 InefficientOperationLog:1;
1395 UINT32 Reserved6:3;
1396 UINT32 Reserved7:32;
1397 } Bits;
1398 ///
1399 /// All bit fields as a 32-bit value
1400 ///
1401 UINT32 Uint32;
1402 ///
1403 /// All bit fields as a 64-bit value
1404 ///
1405 UINT64 Uint64;
1406 } MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER;
1407
1408
1409 /**
1410 Package. Indicator of Frequency Clipping in the Ring Interconnect (R/W)
1411 (frequency refers to ring interconnect in the uncore).
1412
1413 @param ECX MSR_SKYLAKE_RING_PERF_LIMIT_REASONS (0x000006B1)
1414 @param EAX Lower 32-bits of MSR value.
1415 Described by the type MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER.
1416 @param EDX Upper 32-bits of MSR value.
1417 Described by the type MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER.
1418
1419 <b>Example usage</b>
1420 @code
1421 MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER Msr;
1422
1423 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_RING_PERF_LIMIT_REASONS);
1424 AsmWriteMsr64 (MSR_SKYLAKE_RING_PERF_LIMIT_REASONS, Msr.Uint64);
1425 @endcode
1426 @note MSR_SKYLAKE_RING_PERF_LIMIT_REASONS is defined as MSR_RING_PERF_LIMIT_REASONS in SDM.
1427 **/
1428 #define MSR_SKYLAKE_RING_PERF_LIMIT_REASONS 0x000006B1
1429
1430 /**
1431 MSR information returned for MSR index #MSR_SKYLAKE_RING_PERF_LIMIT_REASONS
1432 **/
1433 typedef union {
1434 ///
1435 /// Individual bit fields
1436 ///
1437 struct {
1438 ///
1439 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced due to
1440 /// assertion of external PROCHOT.
1441 ///
1442 UINT32 PROCHOT_Status:1;
1443 ///
1444 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced due to a
1445 /// thermal event.
1446 ///
1447 UINT32 ThermalStatus:1;
1448 UINT32 Reserved1:3;
1449 ///
1450 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
1451 /// is reduced due to running average thermal limit.
1452 ///
1453 UINT32 RunningAverageThermalLimitStatus:1;
1454 ///
1455 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced due
1456 /// to a thermal alert from a processor Voltage Regulator.
1457 ///
1458 UINT32 VRThermAlertStatus:1;
1459 ///
1460 /// [Bit 7] VR Thermal Design Current Status (R0) When set, frequency is
1461 /// reduced due to VR TDC limit.
1462 ///
1463 UINT32 VRThermalDesignCurrentStatus:1;
1464 ///
1465 /// [Bit 8] Other Status (R0) When set, frequency is reduced due to
1466 /// electrical or other constraints.
1467 ///
1468 UINT32 OtherStatus:1;
1469 UINT32 Reserved2:1;
1470 ///
1471 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
1472 /// set, frequency is reduced due to package/Platform-level power limiting
1473 /// PL1.
1474 ///
1475 UINT32 PL1Status:1;
1476 ///
1477 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
1478 /// set, frequency is reduced due to package/Platform-level power limiting
1479 /// PL2/PL3.
1480 ///
1481 UINT32 PL2Status:1;
1482 UINT32 Reserved3:4;
1483 ///
1484 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
1485 /// has asserted since the log bit was last cleared. This log bit will
1486 /// remain set until cleared by software writing 0.
1487 ///
1488 UINT32 PROCHOT_Log:1;
1489 ///
1490 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
1491 /// has asserted since the log bit was last cleared. This log bit will
1492 /// remain set until cleared by software writing 0.
1493 ///
1494 UINT32 ThermalLog:1;
1495 UINT32 Reserved4:3;
1496 ///
1497 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
1498 /// the RATL Status bit has asserted since the log bit was last cleared.
1499 /// This log bit will remain set until cleared by software writing 0.
1500 ///
1501 UINT32 RunningAverageThermalLimitLog:1;
1502 ///
1503 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
1504 /// Alert Status bit has asserted since the log bit was last cleared. This
1505 /// log bit will remain set until cleared by software writing 0.
1506 ///
1507 UINT32 VRThermAlertLog:1;
1508 ///
1509 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
1510 /// VR Therm Alert Status bit has asserted since the log bit was last
1511 /// cleared. This log bit will remain set until cleared by software
1512 /// writing 0.
1513 ///
1514 UINT32 VRThermalDesignCurrentLog:1;
1515 ///
1516 /// [Bit 24] Other Log When set, indicates that the OTHER Status bit has
1517 /// asserted since the log bit was last cleared. This log bit will remain
1518 /// set until cleared by software writing 0.
1519 ///
1520 UINT32 OtherLog:1;
1521 UINT32 Reserved5:1;
1522 ///
1523 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
1524 /// indicates that the Package/Platform Level PL1 Power Limiting Status
1525 /// bit has asserted since the log bit was last cleared. This log bit will
1526 /// remain set until cleared by software writing 0.
1527 ///
1528 UINT32 PL1Log:1;
1529 ///
1530 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
1531 /// indicates that the Package/Platform Level PL2 Power Limiting Status
1532 /// bit has asserted since the log bit was last cleared. This log bit will
1533 /// remain set until cleared by software writing 0.
1534 ///
1535 UINT32 PL2Log:1;
1536 UINT32 Reserved6:4;
1537 UINT32 Reserved7:32;
1538 } Bits;
1539 ///
1540 /// All bit fields as a 32-bit value
1541 ///
1542 UINT32 Uint32;
1543 ///
1544 /// All bit fields as a 64-bit value
1545 ///
1546 UINT64 Uint64;
1547 } MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER;
1548
1549
1550 /**
1551 Thread. Last Branch Record n To IP (R/W) One of 32 triplets of last branch
1552 record registers on the last branch record stack. This part of the stack
1553 contains pointers to the destination instruction. See also: - Last Branch
1554 Record Stack TOS at 1C9H - Section 17.10.
1555
1556 @param ECX MSR_SKYLAKE_LASTBRANCH_n_TO_IP
1557 @param EAX Lower 32-bits of MSR value.
1558 @param EDX Upper 32-bits of MSR value.
1559
1560 <b>Example usage</b>
1561 @code
1562 UINT64 Msr;
1563
1564 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_16_TO_IP);
1565 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_16_TO_IP, Msr);
1566 @endcode
1567 @note MSR_SKYLAKE_LASTBRANCH_16_TO_IP is defined as MSR_LASTBRANCH_16_TO_IP in SDM.
1568 MSR_SKYLAKE_LASTBRANCH_17_TO_IP is defined as MSR_LASTBRANCH_17_TO_IP in SDM.
1569 MSR_SKYLAKE_LASTBRANCH_18_TO_IP is defined as MSR_LASTBRANCH_18_TO_IP in SDM.
1570 MSR_SKYLAKE_LASTBRANCH_19_TO_IP is defined as MSR_LASTBRANCH_19_TO_IP in SDM.
1571 MSR_SKYLAKE_LASTBRANCH_20_TO_IP is defined as MSR_LASTBRANCH_20_TO_IP in SDM.
1572 MSR_SKYLAKE_LASTBRANCH_21_TO_IP is defined as MSR_LASTBRANCH_21_TO_IP in SDM.
1573 MSR_SKYLAKE_LASTBRANCH_22_TO_IP is defined as MSR_LASTBRANCH_22_TO_IP in SDM.
1574 MSR_SKYLAKE_LASTBRANCH_23_TO_IP is defined as MSR_LASTBRANCH_23_TO_IP in SDM.
1575 MSR_SKYLAKE_LASTBRANCH_24_TO_IP is defined as MSR_LASTBRANCH_24_TO_IP in SDM.
1576 MSR_SKYLAKE_LASTBRANCH_25_TO_IP is defined as MSR_LASTBRANCH_25_TO_IP in SDM.
1577 MSR_SKYLAKE_LASTBRANCH_26_TO_IP is defined as MSR_LASTBRANCH_26_TO_IP in SDM.
1578 MSR_SKYLAKE_LASTBRANCH_27_TO_IP is defined as MSR_LASTBRANCH_27_TO_IP in SDM.
1579 MSR_SKYLAKE_LASTBRANCH_28_TO_IP is defined as MSR_LASTBRANCH_28_TO_IP in SDM.
1580 MSR_SKYLAKE_LASTBRANCH_29_TO_IP is defined as MSR_LASTBRANCH_29_TO_IP in SDM.
1581 MSR_SKYLAKE_LASTBRANCH_30_TO_IP is defined as MSR_LASTBRANCH_30_TO_IP in SDM.
1582 MSR_SKYLAKE_LASTBRANCH_31_TO_IP is defined as MSR_LASTBRANCH_31_TO_IP in SDM.
1583 @{
1584 **/
1585 #define MSR_SKYLAKE_LASTBRANCH_16_TO_IP 0x000006D0
1586 #define MSR_SKYLAKE_LASTBRANCH_17_TO_IP 0x000006D1
1587 #define MSR_SKYLAKE_LASTBRANCH_18_TO_IP 0x000006D2
1588 #define MSR_SKYLAKE_LASTBRANCH_19_TO_IP 0x000006D3
1589 #define MSR_SKYLAKE_LASTBRANCH_20_TO_IP 0x000006D4
1590 #define MSR_SKYLAKE_LASTBRANCH_21_TO_IP 0x000006D5
1591 #define MSR_SKYLAKE_LASTBRANCH_22_TO_IP 0x000006D6
1592 #define MSR_SKYLAKE_LASTBRANCH_23_TO_IP 0x000006D7
1593 #define MSR_SKYLAKE_LASTBRANCH_24_TO_IP 0x000006D8
1594 #define MSR_SKYLAKE_LASTBRANCH_25_TO_IP 0x000006D9
1595 #define MSR_SKYLAKE_LASTBRANCH_26_TO_IP 0x000006DA
1596 #define MSR_SKYLAKE_LASTBRANCH_27_TO_IP 0x000006DB
1597 #define MSR_SKYLAKE_LASTBRANCH_28_TO_IP 0x000006DC
1598 #define MSR_SKYLAKE_LASTBRANCH_29_TO_IP 0x000006DD
1599 #define MSR_SKYLAKE_LASTBRANCH_30_TO_IP 0x000006DE
1600 #define MSR_SKYLAKE_LASTBRANCH_31_TO_IP 0x000006DF
1601 /// @}
1602
1603
1604 /**
1605 Thread. Last Branch Record n Additional Information (R/W) One of 32 triplet
1606 of last branch record registers on the last branch record stack. This part
1607 of the stack contains flag, TSX-related and elapsed cycle information. See
1608 also: - Last Branch Record Stack TOS at 1C9H - Section 17.7.1, "LBR
1609 Stack.".
1610
1611 @param ECX MSR_SKYLAKE_LBR_INFO_n
1612 @param EAX Lower 32-bits of MSR value.
1613 @param EDX Upper 32-bits of MSR value.
1614
1615 <b>Example usage</b>
1616 @code
1617 UINT64 Msr;
1618
1619 Msr = AsmReadMsr64 (MSR_SKYLAKE_LBR_INFO_0);
1620 AsmWriteMsr64 (MSR_SKYLAKE_LBR_INFO_0, Msr);
1621 @endcode
1622 @note MSR_SKYLAKE_LBR_INFO_0 is defined as MSR_LBR_INFO_0 in SDM.
1623 MSR_SKYLAKE_LBR_INFO_1 is defined as MSR_LBR_INFO_1 in SDM.
1624 MSR_SKYLAKE_LBR_INFO_2 is defined as MSR_LBR_INFO_2 in SDM.
1625 MSR_SKYLAKE_LBR_INFO_3 is defined as MSR_LBR_INFO_3 in SDM.
1626 MSR_SKYLAKE_LBR_INFO_4 is defined as MSR_LBR_INFO_4 in SDM.
1627 MSR_SKYLAKE_LBR_INFO_5 is defined as MSR_LBR_INFO_5 in SDM.
1628 MSR_SKYLAKE_LBR_INFO_6 is defined as MSR_LBR_INFO_6 in SDM.
1629 MSR_SKYLAKE_LBR_INFO_7 is defined as MSR_LBR_INFO_7 in SDM.
1630 MSR_SKYLAKE_LBR_INFO_8 is defined as MSR_LBR_INFO_8 in SDM.
1631 MSR_SKYLAKE_LBR_INFO_9 is defined as MSR_LBR_INFO_9 in SDM.
1632 MSR_SKYLAKE_LBR_INFO_10 is defined as MSR_LBR_INFO_10 in SDM.
1633 MSR_SKYLAKE_LBR_INFO_11 is defined as MSR_LBR_INFO_11 in SDM.
1634 MSR_SKYLAKE_LBR_INFO_12 is defined as MSR_LBR_INFO_12 in SDM.
1635 MSR_SKYLAKE_LBR_INFO_13 is defined as MSR_LBR_INFO_13 in SDM.
1636 MSR_SKYLAKE_LBR_INFO_14 is defined as MSR_LBR_INFO_14 in SDM.
1637 MSR_SKYLAKE_LBR_INFO_15 is defined as MSR_LBR_INFO_15 in SDM.
1638 MSR_SKYLAKE_LBR_INFO_16 is defined as MSR_LBR_INFO_16 in SDM.
1639 MSR_SKYLAKE_LBR_INFO_17 is defined as MSR_LBR_INFO_17 in SDM.
1640 MSR_SKYLAKE_LBR_INFO_18 is defined as MSR_LBR_INFO_18 in SDM.
1641 MSR_SKYLAKE_LBR_INFO_19 is defined as MSR_LBR_INFO_19 in SDM.
1642 MSR_SKYLAKE_LBR_INFO_20 is defined as MSR_LBR_INFO_20 in SDM.
1643 MSR_SKYLAKE_LBR_INFO_21 is defined as MSR_LBR_INFO_21 in SDM.
1644 MSR_SKYLAKE_LBR_INFO_22 is defined as MSR_LBR_INFO_22 in SDM.
1645 MSR_SKYLAKE_LBR_INFO_23 is defined as MSR_LBR_INFO_23 in SDM.
1646 MSR_SKYLAKE_LBR_INFO_24 is defined as MSR_LBR_INFO_24 in SDM.
1647 MSR_SKYLAKE_LBR_INFO_25 is defined as MSR_LBR_INFO_25 in SDM.
1648 MSR_SKYLAKE_LBR_INFO_26 is defined as MSR_LBR_INFO_26 in SDM.
1649 MSR_SKYLAKE_LBR_INFO_27 is defined as MSR_LBR_INFO_27 in SDM.
1650 MSR_SKYLAKE_LBR_INFO_28 is defined as MSR_LBR_INFO_28 in SDM.
1651 MSR_SKYLAKE_LBR_INFO_29 is defined as MSR_LBR_INFO_29 in SDM.
1652 MSR_SKYLAKE_LBR_INFO_30 is defined as MSR_LBR_INFO_30 in SDM.
1653 MSR_SKYLAKE_LBR_INFO_31 is defined as MSR_LBR_INFO_31 in SDM.
1654 @{
1655 **/
1656 #define MSR_SKYLAKE_LBR_INFO_0 0x00000DC0
1657 #define MSR_SKYLAKE_LBR_INFO_1 0x00000DC1
1658 #define MSR_SKYLAKE_LBR_INFO_2 0x00000DC2
1659 #define MSR_SKYLAKE_LBR_INFO_3 0x00000DC3
1660 #define MSR_SKYLAKE_LBR_INFO_4 0x00000DC4
1661 #define MSR_SKYLAKE_LBR_INFO_5 0x00000DC5
1662 #define MSR_SKYLAKE_LBR_INFO_6 0x00000DC6
1663 #define MSR_SKYLAKE_LBR_INFO_7 0x00000DC7
1664 #define MSR_SKYLAKE_LBR_INFO_8 0x00000DC8
1665 #define MSR_SKYLAKE_LBR_INFO_9 0x00000DC9
1666 #define MSR_SKYLAKE_LBR_INFO_10 0x00000DCA
1667 #define MSR_SKYLAKE_LBR_INFO_11 0x00000DCB
1668 #define MSR_SKYLAKE_LBR_INFO_12 0x00000DCC
1669 #define MSR_SKYLAKE_LBR_INFO_13 0x00000DCD
1670 #define MSR_SKYLAKE_LBR_INFO_14 0x00000DCE
1671 #define MSR_SKYLAKE_LBR_INFO_15 0x00000DCF
1672 #define MSR_SKYLAKE_LBR_INFO_16 0x00000DD0
1673 #define MSR_SKYLAKE_LBR_INFO_17 0x00000DD1
1674 #define MSR_SKYLAKE_LBR_INFO_18 0x00000DD2
1675 #define MSR_SKYLAKE_LBR_INFO_19 0x00000DD3
1676 #define MSR_SKYLAKE_LBR_INFO_20 0x00000DD4
1677 #define MSR_SKYLAKE_LBR_INFO_21 0x00000DD5
1678 #define MSR_SKYLAKE_LBR_INFO_22 0x00000DD6
1679 #define MSR_SKYLAKE_LBR_INFO_23 0x00000DD7
1680 #define MSR_SKYLAKE_LBR_INFO_24 0x00000DD8
1681 #define MSR_SKYLAKE_LBR_INFO_25 0x00000DD9
1682 #define MSR_SKYLAKE_LBR_INFO_26 0x00000DDA
1683 #define MSR_SKYLAKE_LBR_INFO_27 0x00000DDB
1684 #define MSR_SKYLAKE_LBR_INFO_28 0x00000DDC
1685 #define MSR_SKYLAKE_LBR_INFO_29 0x00000DDD
1686 #define MSR_SKYLAKE_LBR_INFO_30 0x00000DDE
1687 #define MSR_SKYLAKE_LBR_INFO_31 0x00000DDF
1688 /// @}
1689
1690
1691 /**
1692 Package. Uncore fixed counter control (R/W).
1693
1694 @param ECX MSR_SKYLAKE_UNC_PERF_FIXED_CTRL (0x00000394)
1695 @param EAX Lower 32-bits of MSR value.
1696 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER.
1697 @param EDX Upper 32-bits of MSR value.
1698 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER.
1699
1700 <b>Example usage</b>
1701 @code
1702 MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER Msr;
1703
1704 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTRL);
1705 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTRL, Msr.Uint64);
1706 @endcode
1707 @note MSR_SKYLAKE_UNC_PERF_FIXED_CTRL is defined as MSR_UNC_PERF_FIXED_CTRL in SDM.
1708 **/
1709 #define MSR_SKYLAKE_UNC_PERF_FIXED_CTRL 0x00000394
1710
1711 /**
1712 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_FIXED_CTRL
1713 **/
1714 typedef union {
1715 ///
1716 /// Individual bit fields
1717 ///
1718 struct {
1719 UINT32 Reserved1:20;
1720 ///
1721 /// [Bit 20] Enable overflow propagation.
1722 ///
1723 UINT32 EnableOverflow:1;
1724 UINT32 Reserved2:1;
1725 ///
1726 /// [Bit 22] Enable counting.
1727 ///
1728 UINT32 EnableCounting:1;
1729 UINT32 Reserved3:9;
1730 UINT32 Reserved4:32;
1731 } Bits;
1732 ///
1733 /// All bit fields as a 32-bit value
1734 ///
1735 UINT32 Uint32;
1736 ///
1737 /// All bit fields as a 64-bit value
1738 ///
1739 UINT64 Uint64;
1740 } MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER;
1741
1742
1743 /**
1744 Package. Uncore fixed counter.
1745
1746 @param ECX MSR_SKYLAKE_UNC_PERF_FIXED_CTR (0x00000395)
1747 @param EAX Lower 32-bits of MSR value.
1748 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER.
1749 @param EDX Upper 32-bits of MSR value.
1750 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER.
1751
1752 <b>Example usage</b>
1753 @code
1754 MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER Msr;
1755
1756 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTR);
1757 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTR, Msr.Uint64);
1758 @endcode
1759 @note MSR_SKYLAKE_UNC_PERF_FIXED_CTR is defined as MSR_UNC_PERF_FIXED_CTR in SDM.
1760 **/
1761 #define MSR_SKYLAKE_UNC_PERF_FIXED_CTR 0x00000395
1762
1763 /**
1764 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_FIXED_CTR
1765 **/
1766 typedef union {
1767 ///
1768 /// Individual bit fields
1769 ///
1770 struct {
1771 ///
1772 /// [Bits 31:0] Current count.
1773 ///
1774 UINT32 CurrentCount:32;
1775 ///
1776 /// [Bits 43:32] Current count.
1777 ///
1778 UINT32 CurrentCountHi:12;
1779 UINT32 Reserved:20;
1780 } Bits;
1781 ///
1782 /// All bit fields as a 64-bit value
1783 ///
1784 UINT64 Uint64;
1785 } MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER;
1786
1787
1788 /**
1789 Package. Uncore C-Box configuration information (R/O).
1790
1791 @param ECX MSR_SKYLAKE_UNC_CBO_CONFIG (0x00000396)
1792 @param EAX Lower 32-bits of MSR value.
1793 Described by the type MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER.
1794 @param EDX Upper 32-bits of MSR value.
1795 Described by the type MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER.
1796
1797 <b>Example usage</b>
1798 @code
1799 MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER Msr;
1800
1801 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_CONFIG);
1802 @endcode
1803 @note MSR_SKYLAKE_UNC_CBO_CONFIG is defined as MSR_UNC_CBO_CONFIG in SDM.
1804 **/
1805 #define MSR_SKYLAKE_UNC_CBO_CONFIG 0x00000396
1806
1807 /**
1808 MSR information returned for MSR index #MSR_SKYLAKE_UNC_CBO_CONFIG
1809 **/
1810 typedef union {
1811 ///
1812 /// Individual bit fields
1813 ///
1814 struct {
1815 ///
1816 /// [Bits 3:0] Specifies the number of C-Box units with programmable
1817 /// counters (including processor cores and processor graphics),.
1818 ///
1819 UINT32 CBox:4;
1820 UINT32 Reserved1:28;
1821 UINT32 Reserved2:32;
1822 } Bits;
1823 ///
1824 /// All bit fields as a 32-bit value
1825 ///
1826 UINT32 Uint32;
1827 ///
1828 /// All bit fields as a 64-bit value
1829 ///
1830 UINT64 Uint64;
1831 } MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER;
1832
1833
1834 /**
1835 Package. Uncore Arb unit, performance counter 0.
1836
1837 @param ECX MSR_SKYLAKE_UNC_ARB_PERFCTR0 (0x000003B0)
1838 @param EAX Lower 32-bits of MSR value.
1839 @param EDX Upper 32-bits of MSR value.
1840
1841 <b>Example usage</b>
1842 @code
1843 UINT64 Msr;
1844
1845 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR0);
1846 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR0, Msr);
1847 @endcode
1848 @note MSR_SKYLAKE_UNC_ARB_PERFCTR0 is defined as MSR_UNC_ARB_PERFCTR0 in SDM.
1849 **/
1850 #define MSR_SKYLAKE_UNC_ARB_PERFCTR0 0x000003B0
1851
1852
1853 /**
1854 Package. Uncore Arb unit, performance counter 1.
1855
1856 @param ECX MSR_SKYLAKE_UNC_ARB_PERFCTR1 (0x000003B1)
1857 @param EAX Lower 32-bits of MSR value.
1858 @param EDX Upper 32-bits of MSR value.
1859
1860 <b>Example usage</b>
1861 @code
1862 UINT64 Msr;
1863
1864 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR1);
1865 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR1, Msr);
1866 @endcode
1867 @note MSR_SKYLAKE_UNC_ARB_PERFCTR1 is defined as MSR_UNC_ARB_PERFCTR1 in SDM.
1868 **/
1869 #define MSR_SKYLAKE_UNC_ARB_PERFCTR1 0x000003B1
1870
1871
1872 /**
1873 Package. Uncore Arb unit, counter 0 event select MSR.
1874
1875 @param ECX MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 (0x000003B2)
1876 @param EAX Lower 32-bits of MSR value.
1877 @param EDX Upper 32-bits of MSR value.
1878
1879 <b>Example usage</b>
1880 @code
1881 UINT64 Msr;
1882
1883 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0);
1884 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0, Msr);
1885 @endcode
1886 @note MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 is defined as MSR_UNC_ARB_PERFEVTSEL0 in SDM.
1887 **/
1888 #define MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 0x000003B2
1889
1890
1891 /**
1892 Package. Uncore Arb unit, counter 1 event select MSR.
1893
1894 @param ECX MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 (0x000003B3)
1895 @param EAX Lower 32-bits of MSR value.
1896 @param EDX Upper 32-bits of MSR value.
1897
1898 <b>Example usage</b>
1899 @code
1900 UINT64 Msr;
1901
1902 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1);
1903 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1, Msr);
1904 @endcode
1905 @note MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 is defined as MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 in SDM.
1906 **/
1907 #define MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 0x000003B3
1908
1909
1910 /**
1911 Package. Uncore C-Box 0, counter 0 event select MSR.
1912
1913 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 (0x00000700)
1914 @param EAX Lower 32-bits of MSR value.
1915 @param EDX Upper 32-bits of MSR value.
1916
1917 <b>Example usage</b>
1918 @code
1919 UINT64 Msr;
1920
1921 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0);
1922 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0, Msr);
1923 @endcode
1924 @note MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 is defined as MSR_UNC_CBO_0_PERFEVTSEL0 in SDM.
1925 **/
1926 #define MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 0x00000700
1927
1928
1929 /**
1930 Package. Uncore C-Box 0, counter 1 event select MSR.
1931
1932 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 (0x00000701)
1933 @param EAX Lower 32-bits of MSR value.
1934 @param EDX Upper 32-bits of MSR value.
1935
1936 <b>Example usage</b>
1937 @code
1938 UINT64 Msr;
1939
1940 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1);
1941 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1, Msr);
1942 @endcode
1943 @note MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 is defined as MSR_UNC_CBO_0_PERFEVTSEL1 in SDM.
1944 **/
1945 #define MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 0x00000701
1946
1947
1948 /**
1949 Package. Uncore C-Box 0, performance counter 0.
1950
1951 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 (0x00000706)
1952 @param EAX Lower 32-bits of MSR value.
1953 @param EDX Upper 32-bits of MSR value.
1954
1955 <b>Example usage</b>
1956 @code
1957 UINT64 Msr;
1958
1959 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR0);
1960 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR0, Msr);
1961 @endcode
1962 @note MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 is defined as MSR_UNC_CBO_0_PERFCTR0 in SDM.
1963 **/
1964 #define MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 0x00000706
1965
1966
1967 /**
1968 Package. Uncore C-Box 0, performance counter 1.
1969
1970 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 (0x00000707)
1971 @param EAX Lower 32-bits of MSR value.
1972 @param EDX Upper 32-bits of MSR value.
1973
1974 <b>Example usage</b>
1975 @code
1976 UINT64 Msr;
1977
1978 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR1);
1979 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR1, Msr);
1980 @endcode
1981 @note MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 is defined as MSR_UNC_CBO_0_PERFCTR1 in SDM.
1982 **/
1983 #define MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 0x00000707
1984
1985
1986 /**
1987 Package. Uncore C-Box 1, counter 0 event select MSR.
1988
1989 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 (0x00000710)
1990 @param EAX Lower 32-bits of MSR value.
1991 @param EDX Upper 32-bits of MSR value.
1992
1993 <b>Example usage</b>
1994 @code
1995 UINT64 Msr;
1996
1997 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0);
1998 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0, Msr);
1999 @endcode
2000 @note MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 is defined as MSR_UNC_CBO_1_PERFEVTSEL0 in SDM.
2001 **/
2002 #define MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 0x00000710
2003
2004
2005 /**
2006 Package. Uncore C-Box 1, counter 1 event select MSR.
2007
2008 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 (0x00000711)
2009 @param EAX Lower 32-bits of MSR value.
2010 @param EDX Upper 32-bits of MSR value.
2011
2012 <b>Example usage</b>
2013 @code
2014 UINT64 Msr;
2015
2016 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1);
2017 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1, Msr);
2018 @endcode
2019 @note MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 is defined as MSR_UNC_CBO_1_PERFEVTSEL1 in SDM.
2020 **/
2021 #define MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 0x00000711
2022
2023
2024 /**
2025 Package. Uncore C-Box 1, performance counter 0.
2026
2027 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 (0x00000716)
2028 @param EAX Lower 32-bits of MSR value.
2029 @param EDX Upper 32-bits of MSR value.
2030
2031 <b>Example usage</b>
2032 @code
2033 UINT64 Msr;
2034
2035 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR0);
2036 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR0, Msr);
2037 @endcode
2038 @note MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 is defined as MSR_UNC_CBO_1_PERFCTR0 in SDM.
2039 **/
2040 #define MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 0x00000716
2041
2042
2043 /**
2044 Package. Uncore C-Box 1, performance counter 1.
2045
2046 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 (0x00000717)
2047 @param EAX Lower 32-bits of MSR value.
2048 @param EDX Upper 32-bits of MSR value.
2049
2050 <b>Example usage</b>
2051 @code
2052 UINT64 Msr;
2053
2054 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR1);
2055 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR1, Msr);
2056 @endcode
2057 @note MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 is defined as MSR_UNC_CBO_1_PERFCTR1 in SDM.
2058 **/
2059 #define MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 0x00000717
2060
2061
2062 /**
2063 Package. Uncore C-Box 2, counter 0 event select MSR.
2064
2065 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 (0x00000720)
2066 @param EAX Lower 32-bits of MSR value.
2067 @param EDX Upper 32-bits of MSR value.
2068
2069 <b>Example usage</b>
2070 @code
2071 UINT64 Msr;
2072
2073 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0);
2074 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0, Msr);
2075 @endcode
2076 @note MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 is defined as MSR_UNC_CBO_2_PERFEVTSEL0 in SDM.
2077 **/
2078 #define MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 0x00000720
2079
2080
2081 /**
2082 Package. Uncore C-Box 2, counter 1 event select MSR.
2083
2084 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 (0x00000721)
2085 @param EAX Lower 32-bits of MSR value.
2086 @param EDX Upper 32-bits of MSR value.
2087
2088 <b>Example usage</b>
2089 @code
2090 UINT64 Msr;
2091
2092 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1);
2093 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1, Msr);
2094 @endcode
2095 @note MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 is defined as MSR_UNC_CBO_2_PERFEVTSEL1 in SDM.
2096 **/
2097 #define MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 0x00000721
2098
2099
2100 /**
2101 Package. Uncore C-Box 2, performance counter 0.
2102
2103 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 (0x00000726)
2104 @param EAX Lower 32-bits of MSR value.
2105 @param EDX Upper 32-bits of MSR value.
2106
2107 <b>Example usage</b>
2108 @code
2109 UINT64 Msr;
2110
2111 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR0);
2112 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR0, Msr);
2113 @endcode
2114 @note MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 is defined as MSR_UNC_CBO_2_PERFCTR0 in SDM.
2115 **/
2116 #define MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 0x00000726
2117
2118
2119 /**
2120 Package. Uncore C-Box 2, performance counter 1.
2121
2122 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 (0x00000727)
2123 @param EAX Lower 32-bits of MSR value.
2124 @param EDX Upper 32-bits of MSR value.
2125
2126 <b>Example usage</b>
2127 @code
2128 UINT64 Msr;
2129
2130 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR1);
2131 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR1, Msr);
2132 @endcode
2133 @note MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 is defined as MSR_UNC_CBO_2_PERFCTR1 in SDM.
2134 **/
2135 #define MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 0x00000727
2136
2137
2138 /**
2139 Package. Uncore C-Box 3, counter 0 event select MSR.
2140
2141 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 (0x00000730)
2142 @param EAX Lower 32-bits of MSR value.
2143 @param EDX Upper 32-bits of MSR value.
2144
2145 <b>Example usage</b>
2146 @code
2147 UINT64 Msr;
2148
2149 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0);
2150 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0, Msr);
2151 @endcode
2152 @note MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 is defined as MSR_UNC_CBO_3_PERFEVTSEL0 in SDM.
2153 **/
2154 #define MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 0x00000730
2155
2156
2157 /**
2158 Package. Uncore C-Box 3, counter 1 event select MSR.
2159
2160 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 (0x00000731)
2161 @param EAX Lower 32-bits of MSR value.
2162 @param EDX Upper 32-bits of MSR value.
2163
2164 <b>Example usage</b>
2165 @code
2166 UINT64 Msr;
2167
2168 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1);
2169 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1, Msr);
2170 @endcode
2171 @note MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 is defined as MSR_UNC_CBO_3_PERFEVTSEL1 in SDM.
2172 **/
2173 #define MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 0x00000731
2174
2175
2176 /**
2177 Package. Uncore C-Box 3, performance counter 0.
2178
2179 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 (0x00000736)
2180 @param EAX Lower 32-bits of MSR value.
2181 @param EDX Upper 32-bits of MSR value.
2182
2183 <b>Example usage</b>
2184 @code
2185 UINT64 Msr;
2186
2187 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR0);
2188 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR0, Msr);
2189 @endcode
2190 @note MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 is defined as MSR_UNC_CBO_3_PERFCTR0 in SDM.
2191 **/
2192 #define MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 0x00000736
2193
2194
2195 /**
2196 Package. Uncore C-Box 3, performance counter 1.
2197
2198 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 (0x00000737)
2199 @param EAX Lower 32-bits of MSR value.
2200 @param EDX Upper 32-bits of MSR value.
2201
2202 <b>Example usage</b>
2203 @code
2204 UINT64 Msr;
2205
2206 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR1);
2207 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR1, Msr);
2208 @endcode
2209 @note MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 is defined as MSR_UNC_CBO_3_PERFCTR1 in SDM.
2210 **/
2211 #define MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 0x00000737
2212
2213
2214 /**
2215 Package. Uncore PMU global control.
2216
2217 @param ECX MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL (0x00000E01)
2218 @param EAX Lower 32-bits of MSR value.
2219 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER.
2220 @param EDX Upper 32-bits of MSR value.
2221 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER.
2222
2223 <b>Example usage</b>
2224 @code
2225 MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER Msr;
2226
2227 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL);
2228 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL, Msr.Uint64);
2229 @endcode
2230 @note MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL is defined as MSR_UNC_PERF_GLOBAL_CTRL in SDM.
2231 **/
2232 #define MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL 0x00000E01
2233
2234 /**
2235 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL
2236 **/
2237 typedef union {
2238 ///
2239 /// Individual bit fields
2240 ///
2241 struct {
2242 ///
2243 /// [Bit 0] Slice 0 select.
2244 ///
2245 UINT32 PMI_Sel_Slice0:1;
2246 ///
2247 /// [Bit 1] Slice 1 select.
2248 ///
2249 UINT32 PMI_Sel_Slice1:1;
2250 ///
2251 /// [Bit 2] Slice 2 select.
2252 ///
2253 UINT32 PMI_Sel_Slice2:1;
2254 ///
2255 /// [Bit 3] Slice 3 select.
2256 ///
2257 UINT32 PMI_Sel_Slice3:1;
2258 ///
2259 /// [Bit 4] Slice 4select.
2260 ///
2261 UINT32 PMI_Sel_Slice4:1;
2262 UINT32 Reserved1:14;
2263 UINT32 Reserved2:10;
2264 ///
2265 /// [Bit 29] Enable all uncore counters.
2266 ///
2267 UINT32 EN:1;
2268 ///
2269 /// [Bit 30] Enable wake on PMI.
2270 ///
2271 UINT32 WakePMI:1;
2272 ///
2273 /// [Bit 31] Enable Freezing counter when overflow.
2274 ///
2275 UINT32 FREEZE:1;
2276 UINT32 Reserved3:32;
2277 } Bits;
2278 ///
2279 /// All bit fields as a 32-bit value
2280 ///
2281 UINT32 Uint32;
2282 ///
2283 /// All bit fields as a 64-bit value
2284 ///
2285 UINT64 Uint64;
2286 } MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER;
2287
2288
2289 /**
2290 Package. Uncore PMU main status.
2291
2292 @param ECX MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS (0x00000E02)
2293 @param EAX Lower 32-bits of MSR value.
2294 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER.
2295 @param EDX Upper 32-bits of MSR value.
2296 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER.
2297
2298 <b>Example usage</b>
2299 @code
2300 MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER Msr;
2301
2302 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS);
2303 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS, Msr.Uint64);
2304 @endcode
2305 @note MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS is defined as MSR_UNC_PERF_GLOBAL_STATUS in SDM.
2306 **/
2307 #define MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS 0x00000E02
2308
2309 /**
2310 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS
2311 **/
2312 typedef union {
2313 ///
2314 /// Individual bit fields
2315 ///
2316 struct {
2317 ///
2318 /// [Bit 0] Fixed counter overflowed.
2319 ///
2320 UINT32 Fixed:1;
2321 ///
2322 /// [Bit 1] An ARB counter overflowed.
2323 ///
2324 UINT32 ARB:1;
2325 UINT32 Reserved1:1;
2326 ///
2327 /// [Bit 3] A CBox counter overflowed (on any slice).
2328 ///
2329 UINT32 CBox:1;
2330 UINT32 Reserved2:28;
2331 UINT32 Reserved3:32;
2332 } Bits;
2333 ///
2334 /// All bit fields as a 32-bit value
2335 ///
2336 UINT32 Uint32;
2337 ///
2338 /// All bit fields as a 64-bit value
2339 ///
2340 UINT64 Uint64;
2341 } MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER;
2342
2343
2344 /**
2345 Package. NPK Address Used by AET Messages (R/W).
2346
2347 @param ECX MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE (0x00000080)
2348 @param EAX Lower 32-bits of MSR value.
2349 Described by the type MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE_REGISTER.
2350 @param EDX Upper 32-bits of MSR value.
2351 Described by the type MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE_REGISTER.
2352
2353 <b>Example usage</b>
2354 @code
2355 MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE_REGISTER Msr;
2356
2357 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE);
2358 AsmWriteMsr64 (MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE, Msr.Uint64);
2359 @endcode
2360 **/
2361 #define MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE 0x00000080
2362
2363 /**
2364 MSR information returned for MSR index
2365 #MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE
2366 **/
2367 typedef union {
2368 ///
2369 /// Individual bit fields
2370 ///
2371 struct {
2372 ///
2373 /// [Bit 0] Lock Bit If set, this MSR cannot be re-written anymore. Lock
2374 /// bit has to be set in order for the AET packets to be directed to NPK
2375 /// MMIO.
2376 ///
2377 UINT32 Fix_Me_1:1;
2378 UINT32 Reserved:17;
2379 ///
2380 /// [Bits 31:18] ACPIBAR_BASE_ADDRESS AET target address in NPK MMIO space.
2381 ///
2382 UINT32 ACPIBAR_BASE_ADDRESS:14;
2383 ///
2384 /// [Bits 63:32] ACPIBAR_BASE_ADDRESS AET target address in NPK MMIO space.
2385 ///
2386 UINT32 Fix_Me_2:32;
2387 } Bits;
2388 ///
2389 /// All bit fields as a 64-bit value
2390 ///
2391 UINT64 Uint64;
2392 } MSR_SKYLAKE_TRACE_HUB_STH_ACPIBAR_BASE_REGISTER;
2393
2394
2395 /**
2396 Core. Processor Reserved Memory Range Register - Physical Base Control
2397 Register (R/W).
2398
2399 @param ECX MSR_SKYLAKE_PRMRR_PHYS_BASE (0x000001F4)
2400 @param EAX Lower 32-bits of MSR value.
2401 Described by the type MSR_SKYLAKE_PRMRR_PHYS_BASE_REGISTER.
2402 @param EDX Upper 32-bits of MSR value.
2403 Described by the type MSR_SKYLAKE_PRMRR_PHYS_BASE_REGISTER.
2404
2405 <b>Example usage</b>
2406 @code
2407 MSR_SKYLAKE_PRMRR_PHYS_BASE_REGISTER Msr;
2408
2409 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PRMRR_PHYS_BASE);
2410 AsmWriteMsr64 (MSR_SKYLAKE_PRMRR_PHYS_BASE, Msr.Uint64);
2411 @endcode
2412 **/
2413 #define MSR_SKYLAKE_PRMRR_PHYS_BASE 0x000001F4
2414
2415 /**
2416 MSR information returned for MSR index #MSR_SKYLAKE_PRMRR_PHYS_BASE
2417 **/
2418 typedef union {
2419 ///
2420 /// Individual bit fields
2421 ///
2422 struct {
2423 ///
2424 /// [Bits 2:0] MemType PRMRR BASE MemType.
2425 ///
2426 UINT32 MemTypePRMRRBASEMemType:3;
2427 UINT32 Reserved1:9;
2428 ///
2429 /// [Bits 31:12] Base PRMRR Base Address.
2430 ///
2431 UINT32 BasePRMRRBaseAddress:20;
2432 ///
2433 /// [Bits 45:32] Base PRMRR Base Address.
2434 ///
2435 UINT32 Fix_Me_1:14;
2436 UINT32 Reserved2:18;
2437 } Bits;
2438 ///
2439 /// All bit fields as a 64-bit value
2440 ///
2441 UINT64 Uint64;
2442 } MSR_SKYLAKE_PRMRR_PHYS_BASE_REGISTER;
2443
2444
2445 /**
2446 Core. Processor Reserved Memory Range Register - Physical Mask Control
2447 Register (R/W).
2448
2449 @param ECX MSR_SKYLAKE_PRMRR_PHYS_MASK (0x000001F5)
2450 @param EAX Lower 32-bits of MSR value.
2451 Described by the type MSR_SKYLAKE_PRMRR_PHYS_MASK_REGISTER.
2452 @param EDX Upper 32-bits of MSR value.
2453 Described by the type MSR_SKYLAKE_PRMRR_PHYS_MASK_REGISTER.
2454
2455 <b>Example usage</b>
2456 @code
2457 MSR_SKYLAKE_PRMRR_PHYS_MASK_REGISTER Msr;
2458
2459 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PRMRR_PHYS_MASK);
2460 AsmWriteMsr64 (MSR_SKYLAKE_PRMRR_PHYS_MASK, Msr.Uint64);
2461 @endcode
2462 **/
2463 #define MSR_SKYLAKE_PRMRR_PHYS_MASK 0x000001F5
2464
2465 /**
2466 MSR information returned for MSR index #MSR_SKYLAKE_PRMRR_PHYS_MASK
2467 **/
2468 typedef union {
2469 ///
2470 /// Individual bit fields
2471 ///
2472 struct {
2473 UINT32 Reserved1:10;
2474 ///
2475 /// [Bit 10] Lock Lock bit for the PRMRR.
2476 ///
2477 UINT32 Fix_Me_1:1;
2478 ///
2479 /// [Bit 11] VLD Enable bit for the PRMRR.
2480 ///
2481 UINT32 VLD:1;
2482 ///
2483 /// [Bits 31:12] Mask PRMRR MASK bits.
2484 ///
2485 UINT32 Fix_Me_2:20;
2486 ///
2487 /// [Bits 45:32] Mask PRMRR MASK bits.
2488 ///
2489 UINT32 Fix_Me_3:14;
2490 UINT32 Reserved2:18;
2491 } Bits;
2492 ///
2493 /// All bit fields as a 64-bit value
2494 ///
2495 UINT64 Uint64;
2496 } MSR_SKYLAKE_PRMRR_PHYS_MASK_REGISTER;
2497
2498
2499 /**
2500 Core. Valid PRMRR Configurations (R/W).
2501
2502 @param ECX MSR_SKYLAKE_PRMRR_VALID_CONFIG (0x000001FB)
2503 @param EAX Lower 32-bits of MSR value.
2504 Described by the type MSR_SKYLAKE_PRMRR_VALID_CONFIG_REGISTER.
2505 @param EDX Upper 32-bits of MSR value.
2506 Described by the type MSR_SKYLAKE_PRMRR_VALID_CONFIG_REGISTER.
2507
2508 <b>Example usage</b>
2509 @code
2510 MSR_SKYLAKE_PRMRR_VALID_CONFIG_REGISTER Msr;
2511
2512 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PRMRR_VALID_CONFIG);
2513 AsmWriteMsr64 (MSR_SKYLAKE_PRMRR_VALID_CONFIG, Msr.Uint64);
2514 @endcode
2515 **/
2516 #define MSR_SKYLAKE_PRMRR_VALID_CONFIG 0x000001FB
2517
2518 /**
2519 MSR information returned for MSR index #MSR_SKYLAKE_PRMRR_VALID_CONFIG
2520 **/
2521 typedef union {
2522 ///
2523 /// Individual bit fields
2524 ///
2525 struct {
2526 ///
2527 /// [Bit 0] 1M supported MEE size.
2528 ///
2529 UINT32 Fix_Me_1:1;
2530 UINT32 Reserved1:4;
2531 ///
2532 /// [Bit 5] 32M supported MEE size.
2533 ///
2534 UINT32 Fix_Me_2:1;
2535 ///
2536 /// [Bit 6] 64M supported MEE size.
2537 ///
2538 UINT32 Fix_Me_3:1;
2539 ///
2540 /// [Bit 7] 128M supported MEE size.
2541 ///
2542 UINT32 Fix_Me_4:1;
2543 UINT32 Reserved2:24;
2544 UINT32 Reserved3:32;
2545 } Bits;
2546 ///
2547 /// All bit fields as a 32-bit value
2548 ///
2549 UINT32 Uint32;
2550 ///
2551 /// All bit fields as a 64-bit value
2552 ///
2553 UINT64 Uint64;
2554 } MSR_SKYLAKE_PRMRR_VALID_CONFIG_REGISTER;
2555
2556
2557 /**
2558 Package. (R/W) The PRMRR range is used to protect Xucode memory from
2559 unauthorized reads and writes. Any IO access to this range is aborted. This
2560 register controls the location of the PRMRR range by indicating its starting
2561 address. It functions in tandem with the PRMRR mask register.
2562
2563 @param ECX MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE (0x000002F4)
2564 @param EAX Lower 32-bits of MSR value.
2565 Described by the type MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE_REGISTER.
2566 @param EDX Upper 32-bits of MSR value.
2567 Described by the type MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE_REGISTER.
2568
2569 <b>Example usage</b>
2570 @code
2571 MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE_REGISTER Msr;
2572
2573 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE);
2574 AsmWriteMsr64 (MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE, Msr.Uint64);
2575 @endcode
2576 **/
2577 #define MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE 0x000002F4
2578
2579 /**
2580 MSR information returned for MSR index #MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE
2581 **/
2582 typedef union {
2583 ///
2584 /// Individual bit fields
2585 ///
2586 struct {
2587 UINT32 Reserved1:12;
2588 ///
2589 /// [Bits 31:12] Range Base This field corresponds to bits 38:12 of the
2590 /// base address memory range which is allocated to PRMRR memory.
2591 ///
2592 UINT32 Fix_Me_1:20;
2593 ///
2594 /// [Bits 38:32] Range Base This field corresponds to bits 38:12 of the
2595 /// base address memory range which is allocated to PRMRR memory.
2596 ///
2597 UINT32 Fix_Me_2:7;
2598 UINT32 Reserved2:25;
2599 } Bits;
2600 ///
2601 /// All bit fields as a 64-bit value
2602 ///
2603 UINT64 Uint64;
2604 } MSR_SKYLAKE_UNCORE_PRMRR_PHYS_BASE_REGISTER;
2605
2606
2607 /**
2608 Package. (R/W) This register controls the size of the PRMRR range by
2609 indicating which address bits must match the PRMRR base register value.
2610
2611 @param ECX MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK (0x000002F5)
2612 @param EAX Lower 32-bits of MSR value.
2613 Described by the type MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK_REGISTER.
2614 @param EDX Upper 32-bits of MSR value.
2615 Described by the type MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK_REGISTER.
2616
2617 <b>Example usage</b>
2618 @code
2619 MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK_REGISTER Msr;
2620
2621 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK);
2622 AsmWriteMsr64 (MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK, Msr.Uint64);
2623 @endcode
2624 **/
2625 #define MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK 0x000002F5
2626
2627 /**
2628 MSR information returned for MSR index #MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK
2629 **/
2630 typedef union {
2631 ///
2632 /// Individual bit fields
2633 ///
2634 struct {
2635 UINT32 Reserved1:10;
2636 ///
2637 /// [Bit 10] Lock Setting this bit locks all writeable settings in this
2638 /// register, including itself.
2639 ///
2640 UINT32 Fix_Me_1:1;
2641 ///
2642 /// [Bit 11] Range_En Indicates whether the PRMRR range is enabled and
2643 /// valid.
2644 ///
2645 UINT32 Fix_Me_2:1;
2646 UINT32 Reserved2:20;
2647 UINT32 Reserved3:32;
2648 } Bits;
2649 ///
2650 /// All bit fields as a 32-bit value
2651 ///
2652 UINT32 Uint32;
2653 ///
2654 /// All bit fields as a 64-bit value
2655 ///
2656 UINT64 Uint64;
2657 } MSR_SKYLAKE_UNCORE_PRMRR_PHYS_MASK_REGISTER;
2658
2659 /**
2660 Package. Ring Ratio Limit (R/W) This register provides Min/Max Ratio Limits
2661 for the LLC and Ring.
2662
2663 @param ECX MSR_SKYLAKE_RING_RATIO_LIMIT (0x00000620)
2664 @param EAX Lower 32-bits of MSR value.
2665 Described by the type MSR_SKYLAKE_RING_RATIO_LIMIT_REGISTER.
2666 @param EDX Upper 32-bits of MSR value.
2667 Described by the type MSR_SKYLAKE_RING_RATIO_LIMIT_REGISTER.
2668
2669 <b>Example usage</b>
2670 @code
2671 MSR_SKYLAKE_RING_RATIO_LIMIT_REGISTER Msr;
2672
2673 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_RING_RATIO_LIMIT);
2674 AsmWriteMsr64 (MSR_SKYLAKE_RING_RATIO_LIMIT, Msr.Uint64);
2675 @endcode
2676 **/
2677 #define MSR_SKYLAKE_RING_RATIO_LIMIT 0x00000620
2678
2679 /**
2680 MSR information returned for MSR index #MSR_SKYLAKE_RING_RATIO_LIMIT
2681 **/
2682 typedef union {
2683 ///
2684 /// Individual bit fields
2685 ///
2686 struct {
2687 ///
2688 /// [Bits 6:0] MAX_Ratio This field is used to limit the max ratio of the
2689 /// LLC/Ring.
2690 ///
2691 UINT32 Fix_Me_1:7;
2692 UINT32 Reserved1:1;
2693 ///
2694 /// [Bits 14:8] MIN_Ratio Writing to this field controls the minimum
2695 /// possible ratio of the LLC/Ring.
2696 ///
2697 UINT32 Fix_Me_2:7;
2698 UINT32 Reserved2:17;
2699 UINT32 Reserved3:32;
2700 } Bits;
2701 ///
2702 /// All bit fields as a 32-bit value
2703 ///
2704 UINT32 Uint32;
2705 ///
2706 /// All bit fields as a 64-bit value
2707 ///
2708 UINT64 Uint64;
2709 } MSR_SKYLAKE_RING_RATIO_LIMIT_REGISTER;
2710
2711
2712 /**
2713 Branch Monitoring Global Control (R/W).
2714
2715 @param ECX MSR_SKYLAKE_BR_DETECT_CTRL (0x00000350)
2716 @param EAX Lower 32-bits of MSR value.
2717 Described by the type MSR_SKYLAKE_BR_DETECT_CTRL_REGISTER.
2718 @param EDX Upper 32-bits of MSR value.
2719 Described by the type MSR_SKYLAKE_BR_DETECT_CTRL_REGISTER.
2720
2721 <b>Example usage</b>
2722 @code
2723 MSR_SKYLAKE_BR_DETECT_CTRL_REGISTER Msr;
2724
2725 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_BR_DETECT_CTRL);
2726 AsmWriteMsr64 (MSR_SKYLAKE_BR_DETECT_CTRL, Msr.Uint64);
2727 @endcode
2728 **/
2729 #define MSR_SKYLAKE_BR_DETECT_CTRL 0x00000350
2730
2731 /**
2732 MSR information returned for MSR index #MSR_SKYLAKE_BR_DETECT_CTRL
2733 **/
2734 typedef union {
2735 ///
2736 /// Individual bit fields
2737 ///
2738 struct {
2739 ///
2740 /// [Bit 0] EnMonitoring Global enable for branch monitoring.
2741 ///
2742 UINT32 EnMonitoring:1;
2743 ///
2744 /// [Bit 1] EnExcept Enable branch monitoring event signaling on threshold
2745 /// trip. The branch monitoring event handler is signaled via the existing
2746 /// PMI signaling mechanism as programmed from the corresponding local
2747 /// APIC LVT entry.
2748 ///
2749 UINT32 EnExcept:1;
2750 ///
2751 /// [Bit 2] EnLBRFrz Enable LBR freeze on threshold trip. This will cause
2752 /// the LBR frozen bit 58 to be set in IA32_PERF_GLOBAL_STATUS when a
2753 /// triggering condition occurs and this bit is enabled.
2754 ///
2755 UINT32 EnLBRFrz:1;
2756 ///
2757 /// [Bit 3] DisableInGuest When set to '1', branch monitoring, event
2758 /// triggering and LBR freeze actions are disabled when operating at VMX
2759 /// non-root operation.
2760 ///
2761 UINT32 DisableInGuest:1;
2762 UINT32 Reserved1:4;
2763 ///
2764 /// [Bits 17:8] WindowSize Window size defined by WindowCntSel. Values 0 -
2765 /// 1023 are supported. Once the Window counter reaches the WindowSize
2766 /// count both the Window Counter and all Branch Monitoring Counters are
2767 /// cleared.
2768 ///
2769 UINT32 WindowSize:10;
2770 UINT32 Reserved2:6;
2771 ///
2772 /// [Bits 25:24] WindowCntSel Window event count select: '00 =
2773 /// Instructions retired. '01 = Branch instructions retired '10 = Return
2774 /// instructions retired. '11 = Indirect branch instructions retired.
2775 ///
2776 UINT32 WindowCntSel:2;
2777 ///
2778 /// [Bit 26] CntAndMode When set to '1', the overall branch monitoring
2779 /// event triggering condition is true only if all enabled counters'
2780 /// threshold conditions are true. When '0', the threshold tripping
2781 /// condition is true if any enabled counters' threshold is true.
2782 ///
2783 UINT32 CntAndMode:1;
2784 UINT32 Reserved3:5;
2785 UINT32 Reserved4:32;
2786 } Bits;
2787 ///
2788 /// All bit fields as a 32-bit value
2789 ///
2790 UINT32 Uint32;
2791 ///
2792 /// All bit fields as a 64-bit value
2793 ///
2794 UINT64 Uint64;
2795 } MSR_SKYLAKE_BR_DETECT_CTRL_REGISTER;
2796
2797 /**
2798 Branch Monitoring Global Status (R/W).
2799
2800 @param ECX MSR_SKYLAKE_BR_DETECT_STATUS (0x00000351)
2801 @param EAX Lower 32-bits of MSR value.
2802 Described by the type MSR_SKYLAKE_BR_DETECT_STATUS_REGISTER.
2803 @param EDX Upper 32-bits of MSR value.
2804 Described by the type MSR_SKYLAKE_BR_DETECT_STATUS_REGISTER.
2805
2806 <b>Example usage</b>
2807 @code
2808 MSR_SKYLAKE_BR_DETECT_STATUS_REGISTER Msr;
2809
2810 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_BR_DETECT_STATUS);
2811 AsmWriteMsr64 (MSR_SKYLAKE_BR_DETECT_STATUS, Msr.Uint64);
2812 @endcode
2813 **/
2814 #define MSR_SKYLAKE_BR_DETECT_STATUS 0x00000351
2815
2816 /**
2817 MSR information returned for MSR index #MSR_SKYLAKE_BR_DETECT_STATUS
2818 **/
2819 typedef union {
2820 ///
2821 /// Individual bit fields
2822 ///
2823 struct {
2824 ///
2825 /// [Bit 0] Branch Monitoring Event Signaled When set to '1', Branch
2826 /// Monitoring event signaling is blocked until this bit is cleared by
2827 /// software.
2828 ///
2829 UINT32 BranchMonitoringEventSignaled:1;
2830 ///
2831 /// [Bit 1] LBRsValid This status bit is set to '1' if the LBR state is
2832 /// considered valid for sampling by branch monitoring software.
2833 ///
2834 UINT32 LBRsValid:1;
2835 UINT32 Reserved1:6;
2836 ///
2837 /// [Bit 8] CntrHit0 Branch monitoring counter #0 threshold hit. This
2838 /// status bit is sticky and once set requires clearing by software.
2839 /// Counter operation continues independent of the state of the bit.
2840 ///
2841 UINT32 CntrHit0:1;
2842 ///
2843 /// [Bit 9] CntrHit1 Branch monitoring counter #1 threshold hit. This
2844 /// status bit is sticky and once set requires clearing by software.
2845 /// Counter operation continues independent of the state of the bit.
2846 ///
2847 UINT32 CntrHit1:1;
2848 UINT32 Reserved2:6;
2849 ///
2850 /// [Bits 25:16] CountWindow The current value of the window counter. The
2851 /// count value is frozen on a valid branch monitoring triggering
2852 /// condition. This is a 10-bit unsigned value.
2853 ///
2854 UINT32 CountWindow:10;
2855 UINT32 Reserved3:6;
2856 ///
2857 /// [Bits 39:32] Count0 The current value of counter 0 updated after each
2858 /// occurrence of the event being counted. The count value is frozen on a
2859 /// valid branch monitoring triggering condition (in which case CntrHit0
2860 /// will also be set). This is an 8-bit signed value (2's complement).
2861 /// Heuristic events which only increment will saturate and freeze at
2862 /// maximum value 0xFF (256). RET-CALL event counter saturate at maximum
2863 /// value 0x7F (+127) and minimum value 0x80 (-128).
2864 ///
2865 UINT32 Count0:8;
2866 ///
2867 /// [Bits 47:40] Count1 The current value of counter 1 updated after each
2868 /// occurrence of the event being counted. The count value is frozen on a
2869 /// valid branch monitoring triggering condition (in which case CntrHit1
2870 /// will also be set). This is an 8-bit signed value (2's complement).
2871 /// Heuristic events which only increment will saturate and freeze at
2872 /// maximum value 0xFF (256). RET-CALL event counter saturate at maximum
2873 /// value 0x7F (+127) and minimum value 0x80 (-128).
2874 ///
2875 UINT32 Count1:8;
2876 UINT32 Reserved4:16;
2877 } Bits;
2878 ///
2879 /// All bit fields as a 32-bit value
2880 ///
2881 UINT32 Uint32;
2882 ///
2883 /// All bit fields as a 64-bit value
2884 ///
2885 UINT64 Uint64;
2886 } MSR_SKYLAKE_BR_DETECT_STATUS_REGISTER;
2887
2888
2889 /**
2890 Package. Package C3 Residency Counter (R/O). Note: C-state values are
2891 processor specific C-state code names, unrelated to MWAIT extension C-state
2892 parameters or ACPI C-states.
2893
2894 @param ECX MSR_SKYLAKE_PKG_C3_RESIDENCY (0x000003F8)
2895 @param EAX Lower 32-bits of MSR value.
2896 @param EDX Upper 32-bits of MSR value.
2897
2898 <b>Example usage</b>
2899 @code
2900 UINT64 Msr;
2901
2902 Msr = AsmReadMsr64 (MSR_SKYLAKE_PKG_C3_RESIDENCY);
2903 @endcode
2904 **/
2905 #define MSR_SKYLAKE_PKG_C3_RESIDENCY 0x000003F8
2906
2907
2908 /**
2909 Core. Core C1 Residency Counter (R/O). Value since last reset for the Core
2910 C1 residency. Counter rate is the Max Non-Turbo frequency (same as TSC).
2911 This counter counts in case both of the core's threads are in an idle state
2912 and at least one of the core's thread residency is in a C1 state or in one
2913 of its sub states. The counter is updated only after a core C state exit.
2914 Note: Always reads 0 if core C1 is unsupported. A value of zero indicates
2915 that this processor does not support core C1 or never entered core C1 level
2916 state.
2917
2918 @param ECX MSR_SKYLAKE_CORE_C1_RESIDENCY (0x00000660)
2919 @param EAX Lower 32-bits of MSR value.
2920 @param EDX Upper 32-bits of MSR value.
2921
2922 <b>Example usage</b>
2923 @code
2924 UINT64 Msr;
2925
2926 Msr = AsmReadMsr64 (MSR_SKYLAKE_CORE_C1_RESIDENCY);
2927 @endcode
2928 **/
2929 #define MSR_SKYLAKE_CORE_C1_RESIDENCY 0x00000660
2930
2931
2932 /**
2933 Core. Core C3 Residency Counter (R/O). Will always return 0.
2934
2935 @param ECX MSR_SKYLAKE_CORE_C3_RESIDENCY (0x00000662)
2936 @param EAX Lower 32-bits of MSR value.
2937 @param EDX Upper 32-bits of MSR value.
2938
2939 <b>Example usage</b>
2940 @code
2941 UINT64 Msr;
2942
2943 Msr = AsmReadMsr64 (MSR_SKYLAKE_CORE_C3_RESIDENCY);
2944 @endcode
2945 **/
2946 #define MSR_SKYLAKE_CORE_C3_RESIDENCY 0x00000662
2947
2948
2949 /**
2950 Package. Protected Processor Inventory Number Enable Control (R/W).
2951
2952 @param ECX MSR_SKYLAKE_PPIN_CTL (0x0000004E)
2953 @param EAX Lower 32-bits of MSR value.
2954 Described by the type MSR_SKYLAKE_PPIN_CTL_REGISTER.
2955 @param EDX Upper 32-bits of MSR value.
2956 Described by the type MSR_SKYLAKE_PPIN_CTL_REGISTER.
2957
2958 <b>Example usage</b>
2959 @code
2960 MSR_SKYLAKE_PPIN_CTL_REGISTER Msr;
2961
2962 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PPIN_CTL);
2963 AsmWriteMsr64 (MSR_SKYLAKE_PPIN_CTL, Msr.Uint64);
2964 @endcode
2965 **/
2966 #define MSR_SKYLAKE_PPIN_CTL 0x0000004E
2967
2968 /**
2969 MSR information returned for MSR index #MSR_SKYLAKE_PPIN_CTL
2970 **/
2971 typedef union {
2972 ///
2973 /// Individual bit fields
2974 ///
2975 struct {
2976 ///
2977 /// [Bit 0] LockOut (R/WO) See Table 2-25.
2978 ///
2979 UINT32 LockOut:1;
2980 ///
2981 /// [Bit 1] Enable_PPIN (R/W) See Table 2-25.
2982 ///
2983 UINT32 Enable_PPIN:1;
2984 UINT32 Reserved1:30;
2985 UINT32 Reserved2:32;
2986 } Bits;
2987 ///
2988 /// All bit fields as a 32-bit value
2989 ///
2990 UINT32 Uint32;
2991 ///
2992 /// All bit fields as a 64-bit value
2993 ///
2994 UINT64 Uint64;
2995 } MSR_SKYLAKE_PPIN_CTL_REGISTER;
2996
2997
2998 /**
2999 Package. Protected Processor Inventory Number (R/O). Protected Processor
3000 Inventory Number (R/O) See Table 2-25.
3001
3002 @param ECX MSR_SKYLAKE_PPIN (0x0000004F)
3003 @param EAX Lower 32-bits of MSR value.
3004 @param EDX Upper 32-bits of MSR value.
3005
3006 <b>Example usage</b>
3007 @code
3008 UINT64 Msr;
3009
3010 Msr = AsmReadMsr64 (MSR_SKYLAKE_PPIN);
3011 @endcode
3012 **/
3013 #define MSR_SKYLAKE_PPIN 0x0000004F
3014
3015
3016 /**
3017 Package. Platform Information Contains power management and other model
3018 specific features enumeration. See http://biosbits.org.
3019
3020 @param ECX MSR_SKYLAKE_PLATFORM_INFO (0x000000CE)
3021 @param EAX Lower 32-bits of MSR value.
3022 Described by the type MSR_SKYLAKE_PLATFORM_INFO_REGISTER.
3023 @param EDX Upper 32-bits of MSR value.
3024 Described by the type MSR_SKYLAKE_PLATFORM_INFO_REGISTER.
3025
3026 <b>Example usage</b>
3027 @code
3028 MSR_SKYLAKE_PLATFORM_INFO_REGISTER Msr;
3029
3030 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PLATFORM_INFO);
3031 AsmWriteMsr64 (MSR_SKYLAKE_PLATFORM_INFO, Msr.Uint64);
3032 @endcode
3033 **/
3034 #define MSR_SKYLAKE_PLATFORM_INFO 0x000000CE
3035
3036 /**
3037 MSR information returned for MSR index #MSR_SKYLAKE_PLATFORM_INFO
3038 **/
3039 typedef union {
3040 ///
3041 /// Individual bit fields
3042 ///
3043 struct {
3044 UINT32 Reserved1:8;
3045 ///
3046 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) See Table 2-25.
3047 ///
3048 UINT32 MaximumNon_TurboRatio:8;
3049 UINT32 Reserved2:7;
3050 ///
3051 /// [Bit 23] Package. PPIN_CAP (R/O) See Table 2-25.
3052 ///
3053 UINT32 PPIN_CAP:1;
3054 UINT32 Reserved3:4;
3055 ///
3056 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) See
3057 /// Table 2-25.
3058 ///
3059 UINT32 ProgrammableRatioLimit:1;
3060 ///
3061 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) See
3062 /// Table 2-25.
3063 ///
3064 UINT32 ProgrammableTDPLimit:1;
3065 ///
3066 /// [Bit 30] Package. Programmable TJ OFFSET (R/O) See Table 2-25.
3067 ///
3068 UINT32 ProgrammableTJOFFSET:1;
3069 UINT32 Reserved4:1;
3070 UINT32 Reserved5:8;
3071 ///
3072 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) See Table 2-25.
3073 ///
3074 UINT32 MaximumEfficiencyRatio:8;
3075 UINT32 Reserved6:16;
3076 } Bits;
3077 ///
3078 /// All bit fields as a 64-bit value
3079 ///
3080 UINT64 Uint64;
3081 } MSR_SKYLAKE_PLATFORM_INFO_REGISTER;
3082
3083
3084 /**
3085 Core. C-State Configuration Control (R/W) Note: C-state values are processor
3086 specific C-state code names, unrelated to MWAIT extension C-state parameters
3087 or ACPI C-states. `See http://biosbits.org. <http://biosbits.org/>`__.
3088
3089 @param ECX MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL (0x000000E2)
3090 @param EAX Lower 32-bits of MSR value.
3091 Described by the type MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL_REGISTER.
3092 @param EDX Upper 32-bits of MSR value.
3093 Described by the type MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL_REGISTER.
3094
3095 <b>Example usage</b>
3096 @code
3097 MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
3098
3099 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL);
3100 AsmWriteMsr64 (MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
3101 @endcode
3102 **/
3103 #define MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL 0x000000E2
3104
3105 /**
3106 MSR information returned for MSR index #MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL
3107 **/
3108 typedef union {
3109 ///
3110 /// Individual bit fields
3111 ///
3112 struct {
3113 ///
3114 /// [Bits 2:0] Package C-State Limit (R/W) Specifies the lowest
3115 /// processor-specific C-state code name (consuming the least power) for
3116 /// the package. The default is set as factory-configured package Cstate
3117 /// limit. The following C-state code name encodings are supported: 000b:
3118 /// C0/C1 (no package C-state support) 001b: C2 010b: C6 (non-retention)
3119 /// 011b: C6 (retention) 111b: No Package C state limits. All C states
3120 /// supported by the processor are available.
3121 ///
3122 UINT32 C_StateLimit:3;
3123 UINT32 Reserved1:7;
3124 ///
3125 /// [Bit 10] I/O MWAIT Redirection Enable (R/W).
3126 ///
3127 UINT32 MWAITRedirectionEnable:1;
3128 UINT32 Reserved2:4;
3129 ///
3130 /// [Bit 15] CFG Lock (R/WO).
3131 ///
3132 UINT32 CFGLock:1;
3133 ///
3134 /// [Bit 16] Automatic C-State Conversion Enable (R/W) If 1, the processor
3135 /// will convert HALT or MWAT(C1) to MWAIT(C6).
3136 ///
3137 UINT32 AutomaticC_StateConversionEnable:1;
3138 UINT32 Reserved3:8;
3139 ///
3140 /// [Bit 25] C3 State Auto Demotion Enable (R/W).
3141 ///
3142 UINT32 C3StateAutoDemotionEnable:1;
3143 ///
3144 /// [Bit 26] C1 State Auto Demotion Enable (R/W).
3145 ///
3146 UINT32 C1StateAutoDemotionEnable:1;
3147 ///
3148 /// [Bit 27] Enable C3 Undemotion (R/W).
3149 ///
3150 UINT32 EnableC3Undemotion:1;
3151 ///
3152 /// [Bit 28] Enable C1 Undemotion (R/W).
3153 ///
3154 UINT32 EnableC1Undemotion:1;
3155 ///
3156 /// [Bit 29] Package C State Demotion Enable (R/W).
3157 ///
3158 UINT32 CStateDemotionEnable:1;
3159 ///
3160 /// [Bit 30] Package C State UnDemotion Enable (R/W).
3161 ///
3162 UINT32 CStateUnDemotionEnable:1;
3163 UINT32 Reserved4:1;
3164 UINT32 Reserved5:32;
3165 } Bits;
3166 ///
3167 /// All bit fields as a 32-bit value
3168 ///
3169 UINT32 Uint32;
3170 ///
3171 /// All bit fields as a 64-bit value
3172 ///
3173 UINT64 Uint64;
3174 } MSR_SKYLAKE_PKG_CST_CONFIG_CONTROL_REGISTER;
3175
3176
3177 /**
3178 Thread. Global Machine Check Capability (R/O).
3179
3180 @param ECX MSR_SKYLAKE_IA32_MCG_CAP (0x00000179)
3181 @param EAX Lower 32-bits of MSR value.
3182 Described by the type MSR_SKYLAKE_IA32_MCG_CAP_REGISTER.
3183 @param EDX Upper 32-bits of MSR value.
3184 Described by the type MSR_SKYLAKE_IA32_MCG_CAP_REGISTER.
3185
3186 <b>Example usage</b>
3187 @code
3188 MSR_SKYLAKE_IA32_MCG_CAP_REGISTER Msr;
3189
3190 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_MCG_CAP);
3191 @endcode
3192 **/
3193 #define MSR_SKYLAKE_IA32_MCG_CAP 0x00000179
3194
3195 /**
3196 MSR information returned for MSR index #MSR_SKYLAKE_IA32_MCG_CAP
3197 **/
3198 typedef union {
3199 ///
3200 /// Individual bit fields
3201 ///
3202 struct {
3203 ///
3204 /// [Bits 7:0] Count.
3205 ///
3206 UINT32 Count:8;
3207 ///
3208 /// [Bit 8] MCG_CTL_P.
3209 ///
3210 UINT32 MCG_CTL_P:1;
3211 ///
3212 /// [Bit 9] MCG_EXT_P.
3213 ///
3214 UINT32 MCG_EXT_P:1;
3215 ///
3216 /// [Bit 10] MCP_CMCI_P.
3217 ///
3218 UINT32 MCP_CMCI_P:1;
3219 ///
3220 /// [Bit 11] MCG_TES_P.
3221 ///
3222 UINT32 MCG_TES_P:1;
3223 UINT32 Reserved1:4;
3224 ///
3225 /// [Bits 23:16] MCG_EXT_CNT.
3226 ///
3227 UINT32 MCG_EXT_CNT:8;
3228 ///
3229 /// [Bit 24] MCG_SER_P.
3230 ///
3231 UINT32 MCG_SER_P:1;
3232 ///
3233 /// [Bit 25] MCG_EM_P.
3234 ///
3235 UINT32 MCG_EM_P:1;
3236 ///
3237 /// [Bit 26] MCG_ELOG_P.
3238 ///
3239 UINT32 MCG_ELOG_P:1;
3240 UINT32 Reserved2:5;
3241 UINT32 Reserved3:32;
3242 } Bits;
3243 ///
3244 /// All bit fields as a 32-bit value
3245 ///
3246 UINT32 Uint32;
3247 ///
3248 /// All bit fields as a 64-bit value
3249 ///
3250 UINT64 Uint64;
3251 } MSR_SKYLAKE_IA32_MCG_CAP_REGISTER;
3252
3253
3254 /**
3255 THREAD. Enhanced SMM Capabilities (SMM-RO) Reports SMM capability
3256 Enhancement. Accessible only while in SMM.
3257
3258 @param ECX MSR_SKYLAKE_SMM_MCA_CAP (0x0000017D)
3259 @param EAX Lower 32-bits of MSR value.
3260 Described by the type MSR_SKYLAKE_SMM_MCA_CAP_REGISTER.
3261 @param EDX Upper 32-bits of MSR value.
3262 Described by the type MSR_SKYLAKE_SMM_MCA_CAP_REGISTER.
3263
3264 <b>Example usage</b>
3265 @code
3266 MSR_SKYLAKE_SMM_MCA_CAP_REGISTER Msr;
3267
3268 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_SMM_MCA_CAP);
3269 AsmWriteMsr64 (MSR_SKYLAKE_SMM_MCA_CAP, Msr.Uint64);
3270 @endcode
3271 **/
3272 #define MSR_SKYLAKE_SMM_MCA_CAP 0x0000017D
3273
3274 /**
3275 MSR information returned for MSR index #MSR_SKYLAKE_SMM_MCA_CAP
3276 **/
3277 typedef union {
3278 ///
3279 /// Individual bit fields
3280 ///
3281 struct {
3282 UINT32 Reserved1:32;
3283 UINT32 Reserved2:26;
3284 ///
3285 /// [Bit 58] SMM_Code_Access_Chk (SMM-RO) If set to 1 indicates that the
3286 /// SMM code access restriction is supported and a host-space interface is
3287 /// available to SMM handler.
3288 ///
3289 UINT32 SMM_Code_Access_Chk:1;
3290 ///
3291 /// [Bit 59] Long_Flow_Indication (SMM-RO) If set to 1 indicates that the
3292 /// SMM long flow indicator is supported and a host-space interface is
3293 /// available to SMM handler.
3294 ///
3295 UINT32 Long_Flow_Indication:1;
3296 UINT32 Reserved3:4;
3297 } Bits;
3298 ///
3299 /// All bit fields as a 64-bit value
3300 ///
3301 UINT64 Uint64;
3302 } MSR_SKYLAKE_SMM_MCA_CAP_REGISTER;
3303
3304
3305 /**
3306 Package. Temperature Target.
3307
3308 @param ECX MSR_SKYLAKE_TEMPERATURE_TARGET (0x000001A2)
3309 @param EAX Lower 32-bits of MSR value.
3310 Described by the type MSR_SKYLAKE_TEMPERATURE_TARGET_REGISTER.
3311 @param EDX Upper 32-bits of MSR value.
3312 Described by the type MSR_SKYLAKE_TEMPERATURE_TARGET_REGISTER.
3313
3314 <b>Example usage</b>
3315 @code
3316 MSR_SKYLAKE_TEMPERATURE_TARGET_REGISTER Msr;
3317
3318 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_TEMPERATURE_TARGET);
3319 AsmWriteMsr64 (MSR_SKYLAKE_TEMPERATURE_TARGET, Msr.Uint64);
3320 @endcode
3321 **/
3322 #define MSR_SKYLAKE_TEMPERATURE_TARGET 0x000001A2
3323
3324 /**
3325 MSR information returned for MSR index #MSR_SKYLAKE_TEMPERATURE_TARGET
3326 **/
3327 typedef union {
3328 ///
3329 /// Individual bit fields
3330 ///
3331 struct {
3332 UINT32 Reserved1:16;
3333 ///
3334 /// [Bits 23:16] Temperature Target (RO) See Table 2-25.
3335 ///
3336 UINT32 TemperatureTarget:8;
3337 ///
3338 /// [Bits 27:24] TCC Activation Offset (R/W) See Table 2-25.
3339 ///
3340 UINT32 TCCActivationOffset:4;
3341 UINT32 Reserved2:4;
3342 UINT32 Reserved3:32;
3343 } Bits;
3344 ///
3345 /// All bit fields as a 32-bit value
3346 ///
3347 UINT32 Uint32;
3348 ///
3349 /// All bit fields as a 64-bit value
3350 ///
3351 UINT64 Uint64;
3352 } MSR_SKYLAKE_TEMPERATURE_TARGET_REGISTER;
3353
3354 /**
3355 Package. This register defines the active core ranges for each frequency
3356 point. NUMCORE[0:7] must be populated in ascending order. NUMCORE[i+1] must
3357 be greater than NUMCORE[i]. Entries with NUMCORE[i] == 0 will be ignored.
3358 The last valid entry must have NUMCORE >= the number of cores in the SKU. If
3359 any of the rules above are broken, the configuration is silently rejected.
3360
3361 @param ECX MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES (0x000001AE)
3362 @param EAX Lower 32-bits of MSR value.
3363 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES_REGISTER.
3364 @param EDX Upper 32-bits of MSR value.
3365 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES_REGISTER.
3366
3367 <b>Example usage</b>
3368 @code
3369 MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES_REGISTER Msr;
3370
3371 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES);
3372 AsmWriteMsr64 (MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES, Msr.Uint64);
3373 @endcode
3374 **/
3375 #define MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES 0x000001AE
3376
3377 /**
3378 MSR information returned for MSR index #MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES
3379 **/
3380 typedef union {
3381 ///
3382 /// Individual bit fields
3383 ///
3384 struct {
3385 ///
3386 /// [Bits 7:0] NUMCORE_0 Defines the active core ranges for each frequency
3387 /// point.
3388 ///
3389 UINT32 NUMCORE_0:8;
3390 ///
3391 /// [Bits 15:8] NUMCORE_1 Defines the active core ranges for each
3392 /// frequency point.
3393 ///
3394 UINT32 NUMCORE_1:8;
3395 ///
3396 /// [Bits 23:16] NUMCORE_2 Defines the active core ranges for each
3397 /// frequency point.
3398 ///
3399 UINT32 NUMCORE_2:8;
3400 ///
3401 /// [Bits 31:24] NUMCORE_3 Defines the active core ranges for each
3402 /// frequency point.
3403 ///
3404 UINT32 NUMCORE_3:8;
3405 ///
3406 /// [Bits 39:32] NUMCORE_4 Defines the active core ranges for each
3407 /// frequency point.
3408 ///
3409 UINT32 NUMCORE_4:8;
3410 ///
3411 /// [Bits 47:40] NUMCORE_5 Defines the active core ranges for each
3412 /// frequency point.
3413 ///
3414 UINT32 NUMCORE_5:8;
3415 ///
3416 /// [Bits 55:48] NUMCORE_6 Defines the active core ranges for each
3417 /// frequency point.
3418 ///
3419 UINT32 NUMCORE_6:8;
3420 ///
3421 /// [Bits 63:56] NUMCORE_7 Defines the active core ranges for each
3422 /// frequency point.
3423 ///
3424 UINT32 NUMCORE_7:8;
3425 } Bits;
3426 ///
3427 /// All bit fields as a 64-bit value
3428 ///
3429 UINT64 Uint64;
3430 } MSR_SKYLAKE_TURBO_RATIO_LIMIT_CORES_REGISTER;
3431
3432
3433 /**
3434 Package. Unit Multipliers Used in RAPL Interfaces (R/O).
3435
3436 @param ECX MSR_SKYLAKE_RAPL_POWER_UNIT (0x00000606)
3437 @param EAX Lower 32-bits of MSR value.
3438 Described by the type MSR_SKYLAKE_RAPL_POWER_UNIT_REGISTER.
3439 @param EDX Upper 32-bits of MSR value.
3440 Described by the type MSR_SKYLAKE_RAPL_POWER_UNIT_REGISTER.
3441
3442 <b>Example usage</b>
3443 @code
3444 MSR_SKYLAKE_RAPL_POWER_UNIT_REGISTER Msr;
3445
3446 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_RAPL_POWER_UNIT);
3447 @endcode
3448 **/
3449 #define MSR_SKYLAKE_RAPL_POWER_UNIT 0x00000606
3450
3451 /**
3452 MSR information returned for MSR index #MSR_SKYLAKE_RAPL_POWER_UNIT
3453 **/
3454 typedef union {
3455 ///
3456 /// Individual bit fields
3457 ///
3458 struct {
3459 ///
3460 /// [Bits 3:0] Package. Power Units See Section 14.9.1, "RAPL Interfaces.".
3461 ///
3462 UINT32 PowerUnits:4;
3463 UINT32 Reserved1:4;
3464 ///
3465 /// [Bits 12:8] Package. Energy Status Units Energy related information
3466 /// (in Joules) is based on the multiplier, 1/2^ESU; where ESU is an
3467 /// unsigned integer represented by bits 12:8. Default value is 0EH (or 61
3468 /// micro-joules).
3469 ///
3470 UINT32 EnergyStatusUnits:5;
3471 UINT32 Reserved2:3;
3472 ///
3473 /// [Bits 19:16] Package. Time Units See Section 14.9.1, "RAPL
3474 /// Interfaces.".
3475 ///
3476 UINT32 TimeUnits:4;
3477 UINT32 Reserved3:12;
3478 UINT32 Reserved4:32;
3479 } Bits;
3480 ///
3481 /// All bit fields as a 32-bit value
3482 ///
3483 UINT32 Uint32;
3484 ///
3485 /// All bit fields as a 64-bit value
3486 ///
3487 UINT64 Uint64;
3488 } MSR_SKYLAKE_RAPL_POWER_UNIT_REGISTER;
3489
3490
3491 /**
3492 Package. DRAM RAPL Power Limit Control (R/W) See Section 14.9.5, "DRAM RAPL
3493 Domain.".
3494
3495 @param ECX MSR_SKYLAKE_DRAM_POWER_LIMIT (0x00000618)
3496 @param EAX Lower 32-bits of MSR value.
3497 @param EDX Upper 32-bits of MSR value.
3498
3499 <b>Example usage</b>
3500 @code
3501 UINT64 Msr;
3502
3503 Msr = AsmReadMsr64 (MSR_SKYLAKE_DRAM_POWER_LIMIT);
3504 AsmWriteMsr64 (MSR_SKYLAKE_DRAM_POWER_LIMIT, Msr);
3505 @endcode
3506 **/
3507 #define MSR_SKYLAKE_DRAM_POWER_LIMIT 0x00000618
3508
3509
3510 /**
3511 Package. DRAM Energy Status (R/O) Energy consumed by DRAM devices.
3512
3513 @param ECX MSR_SKYLAKE_DRAM_ENERGY_STATUS (0x00000619)
3514 @param EAX Lower 32-bits of MSR value.
3515 Described by the type MSR_SKYLAKE_DRAM_ENERGY_STATUS_REGISTER.
3516 @param EDX Upper 32-bits of MSR value.
3517 Described by the type MSR_SKYLAKE_DRAM_ENERGY_STATUS_REGISTER.
3518
3519 <b>Example usage</b>
3520 @code
3521 MSR_SKYLAKE_DRAM_ENERGY_STATUS_REGISTER Msr;
3522
3523 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_DRAM_ENERGY_STATUS);
3524 @endcode
3525 **/
3526 #define MSR_SKYLAKE_DRAM_ENERGY_STATUS 0x00000619
3527
3528 /**
3529 MSR information returned for MSR index #MSR_SKYLAKE_DRAM_ENERGY_STATUS
3530 **/
3531 typedef union {
3532 ///
3533 /// Individual bit fields
3534 ///
3535 struct {
3536 ///
3537 /// [Bits 31:0] Energy in 15.3 micro-joules. Requires BIOS configuration
3538 /// to enable DRAM RAPL mode 0 (Direct VR).
3539 ///
3540 UINT32 Energy:32;
3541 UINT32 Reserved:32;
3542 } Bits;
3543 ///
3544 /// All bit fields as a 32-bit value
3545 ///
3546 UINT32 Uint32;
3547 ///
3548 /// All bit fields as a 64-bit value
3549 ///
3550 UINT64 Uint64;
3551 } MSR_SKYLAKE_DRAM_ENERGY_STATUS_REGISTER;
3552
3553
3554 /**
3555 Package. DRAM Performance Throttling Status (R/O) See Section 14.9.5, "DRAM
3556 RAPL Domain.".
3557
3558 @param ECX MSR_SKYLAKE_DRAM_PERF_STATUS (0x0000061B)
3559 @param EAX Lower 32-bits of MSR value.
3560 @param EDX Upper 32-bits of MSR value.
3561
3562 <b>Example usage</b>
3563 @code
3564 UINT64 Msr;
3565
3566 Msr = AsmReadMsr64 (MSR_SKYLAKE_DRAM_PERF_STATUS);
3567 @endcode
3568 **/
3569 #define MSR_SKYLAKE_DRAM_PERF_STATUS 0x0000061B
3570
3571
3572 /**
3573 Package. DRAM RAPL Parameters (R/W) See Section 14.9.5, "DRAM RAPL Domain.".
3574
3575 @param ECX MSR_SKYLAKE_DRAM_POWER_INFO (0x0000061C)
3576 @param EAX Lower 32-bits of MSR value.
3577 @param EDX Upper 32-bits of MSR value.
3578
3579 <b>Example usage</b>
3580 @code
3581 UINT64 Msr;
3582
3583 Msr = AsmReadMsr64 (MSR_SKYLAKE_DRAM_POWER_INFO);
3584 AsmWriteMsr64 (MSR_SKYLAKE_DRAM_POWER_INFO, Msr);
3585 @endcode
3586 **/
3587 #define MSR_SKYLAKE_DRAM_POWER_INFO 0x0000061C
3588
3589
3590 /**
3591 Package. Uncore Ratio Limit (R/W) Out of reset, the min_ratio and max_ratio
3592 fields represent the widest possible range of uncore frequencies. Writing to
3593 these fields allows software to control the minimum and the maximum
3594 frequency that hardware will select.
3595
3596 @param ECX MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT (0x00000620)
3597 @param EAX Lower 32-bits of MSR value.
3598 Described by the type MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT_REGISTER.
3599 @param EDX Upper 32-bits of MSR value.
3600 Described by the type MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT_REGISTER.
3601
3602 <b>Example usage</b>
3603 @code
3604 MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT_REGISTER Msr;
3605
3606 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT);
3607 AsmWriteMsr64 (MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT, Msr.Uint64);
3608 @endcode
3609 **/
3610 #define MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT 0x00000620
3611
3612 /**
3613 MSR information returned for MSR index #MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT
3614 **/
3615 typedef union {
3616 ///
3617 /// Individual bit fields
3618 ///
3619 struct {
3620 ///
3621 /// [Bits 6:0] MAX_RATIO This field is used to limit the max ratio of the
3622 /// LLC/Ring.
3623 ///
3624 UINT32 MAX_RATIO:7;
3625 UINT32 Reserved1:1;
3626 ///
3627 /// [Bits 14:8] MIN_RATIO Writing to this field controls the minimum
3628 /// possible ratio of the LLC/Ring.
3629 ///
3630 UINT32 MIN_RATIO:7;
3631 UINT32 Reserved2:17;
3632 UINT32 Reserved3:32;
3633 } Bits;
3634 ///
3635 /// All bit fields as a 32-bit value
3636 ///
3637 UINT32 Uint32;
3638 ///
3639 /// All bit fields as a 64-bit value
3640 ///
3641 UINT64 Uint64;
3642 } MSR_SKYLAKE_MSRUNCORE_RATIO_LIMIT_REGISTER;
3643
3644
3645 /**
3646 Package. Reserved (R/O) Reads return 0.
3647
3648 @param ECX MSR_SKYLAKE_PP0_ENERGY_STATUS (0x00000639)
3649 @param EAX Lower 32-bits of MSR value.
3650 @param EDX Upper 32-bits of MSR value.
3651
3652 <b>Example usage</b>
3653 @code
3654 UINT64 Msr;
3655
3656 Msr = AsmReadMsr64 (MSR_SKYLAKE_PP0_ENERGY_STATUS);
3657 @endcode
3658 **/
3659 #define MSR_SKYLAKE_PP0_ENERGY_STATUS 0x00000639
3660
3661
3662 /**
3663 THREAD. Monitoring Event Select Register (R/W) If CPUID.(EAX=07H,
3664 ECX=0):EBX.RDT-M[bit 12] = 1.
3665
3666 @param ECX MSR_SKYLAKE_IA32_QM_EVTSEL (0x00000C8D)
3667 @param EAX Lower 32-bits of MSR value.
3668 Described by the type MSR_SKYLAKE_IA32_QM_EVTSEL_REGISTER.
3669 @param EDX Upper 32-bits of MSR value.
3670 Described by the type MSR_SKYLAKE_IA32_QM_EVTSEL_REGISTER.
3671
3672 <b>Example usage</b>
3673 @code
3674 MSR_SKYLAKE_IA32_QM_EVTSEL_REGISTER Msr;
3675
3676 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_QM_EVTSEL);
3677 AsmWriteMsr64 (MSR_SKYLAKE_IA32_QM_EVTSEL, Msr.Uint64);
3678 @endcode
3679 **/
3680 #define MSR_SKYLAKE_IA32_QM_EVTSEL 0x00000C8D
3681
3682 /**
3683 MSR information returned for MSR index #MSR_SKYLAKE_IA32_QM_EVTSEL
3684 **/
3685 typedef union {
3686 ///
3687 /// Individual bit fields
3688 ///
3689 struct {
3690 ///
3691 /// [Bits 7:0] EventID (RW) Event encoding: 0x00: No monitoring. 0x01: L3
3692 /// occupancy monitoring. 0x02: Total memory bandwidth monitoring. 0x03:
3693 /// Local memory bandwidth monitoring. All other encoding reserved.
3694 ///
3695 UINT32 EventID:8;
3696 UINT32 Reserved1:24;
3697 ///
3698 /// [Bits 41:32] RMID (RW).
3699 ///
3700 UINT32 RMID:10;
3701 UINT32 Reserved2:22;
3702 } Bits;
3703 ///
3704 /// All bit fields as a 64-bit value
3705 ///
3706 UINT64 Uint64;
3707 } MSR_SKYLAKE_IA32_QM_EVTSEL_REGISTER;
3708
3709
3710 /**
3711 THREAD. Resource Association Register (R/W).
3712
3713 @param ECX MSR_SKYLAKE_IA32_PQR_ASSOC (0x00000C8F)
3714 @param EAX Lower 32-bits of MSR value.
3715 Described by the type MSR_SKYLAKE_IA32_PQR_ASSOC_REGISTER.
3716 @param EDX Upper 32-bits of MSR value.
3717 Described by the type MSR_SKYLAKE_IA32_PQR_ASSOC_REGISTER.
3718
3719 <b>Example usage</b>
3720 @code
3721 MSR_SKYLAKE_IA32_PQR_ASSOC_REGISTER Msr;
3722
3723 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PQR_ASSOC);
3724 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PQR_ASSOC, Msr.Uint64);
3725 @endcode
3726 **/
3727 #define MSR_SKYLAKE_IA32_PQR_ASSOC 0x00000C8F
3728
3729 /**
3730 MSR information returned for MSR index #MSR_SKYLAKE_IA32_PQR_ASSOC
3731 **/
3732 typedef union {
3733 ///
3734 /// Individual bit fields
3735 ///
3736 struct {
3737 ///
3738 /// [Bits 9:0] RMID.
3739 ///
3740 UINT32 RMID:10;
3741 UINT32 Reserved1:22;
3742 ///
3743 /// [Bits 51:32] COS (R/W).
3744 ///
3745 UINT32 COS:20;
3746 UINT32 Reserved2:12;
3747 } Bits;
3748 ///
3749 /// All bit fields as a 64-bit value
3750 ///
3751 UINT64 Uint64;
3752 } MSR_SKYLAKE_IA32_PQR_ASSOC_REGISTER;
3753
3754
3755 /**
3756 Package. L3 Class Of Service Mask - COS N (R/W) If CPUID.(EAX=10H,
3757 ECX=1):EDX.COS_MAX[15:0] >=0.
3758
3759 @param ECX MSR_SKYLAKE_IA32_L3_QOS_MASK_N
3760 @param EAX Lower 32-bits of MSR value.
3761 Described by the type MSR_SKYLAKE_IA32_L3_QOS_MASK_REGISTER.
3762 @param EDX Upper 32-bits of MSR value.
3763 Described by the type MSR_SKYLAKE_IA32_L3_QOS_MASK_REGISTER.
3764
3765 <b>Example usage</b>
3766 @code
3767 MSR_SKYLAKE_IA32_L3_QOS_MASK_REGISTER Msr;
3768
3769 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_L3_QOS_MASK_N);
3770 AsmWriteMsr64 (MSR_SKYLAKE_IA32_L3_QOS_MASK_N, Msr.Uint64);
3771 @endcode
3772 **/
3773 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_0 0x00000C90
3774 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_1 0x00000C91
3775 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_2 0x00000C92
3776 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_3 0x00000C93
3777 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_4 0x00000C94
3778 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_5 0x00000C95
3779 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_6 0x00000C96
3780 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_7 0x00000C97
3781 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_8 0x00000C98
3782 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_9 0x00000C99
3783 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_10 0x00000C9A
3784 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_11 0x00000C9B
3785 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_12 0x00000C9C
3786 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_13 0x00000C9D
3787 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_14 0x00000C9E
3788 #define MSR_SKYLAKE_IA32_L3_QOS_MASK_15 0x00000C9F
3789
3790 /**
3791 MSR information returned for MSR index #MSR_SKYLAKE_IA32_L3_QOS_MASK_N
3792 **/
3793 typedef union {
3794 ///
3795 /// Individual bit fields
3796 ///
3797 struct {
3798 ///
3799 /// [Bit 19:0] CBM: Bit vector of available L3 ways for COS N enforcement.
3800 ///
3801 UINT32 CBM:20;
3802 UINT32 Reserved2:12;
3803 UINT32 Reserved3:32;
3804 } Bits;
3805 ///
3806 /// All bit fields as a 32-bit value
3807 ///
3808 UINT32 Uint32;
3809 ///
3810 /// All bit fields as a 64-bit value
3811 ///
3812 UINT64 Uint64;
3813 } MSR_SKYLAKE_IA32_L3_QOS_MASK_REGISTER;
3814
3815
3816 #endif