]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/SkylakeMsr.h
UefiCpuPkg/Msr: Add CPUID signature check MACROs
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / SkylakeMsr.h
1 /** @file
2 MSR Definitions for Intel processors based on the Skylake 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 - 2017, Intel Corporation. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
14
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 September 2016, Chapter 35 Model-Specific-Registers (MSR), Section 35.15.
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 ) \
44 )
45
46 /**
47 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
48 RW if MSR_PLATFORM_INFO.[28] = 1.
49
50 @param ECX MSR_SKYLAKE_TURBO_RATIO_LIMIT (0x000001AD)
51 @param EAX Lower 32-bits of MSR value.
52 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER.
53 @param EDX Upper 32-bits of MSR value.
54 Described by the type MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER.
55
56 <b>Example usage</b>
57 @code
58 MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER Msr;
59
60 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_TURBO_RATIO_LIMIT);
61 @endcode
62 @note MSR_SKYLAKE_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
63 **/
64 #define MSR_SKYLAKE_TURBO_RATIO_LIMIT 0x000001AD
65
66 /**
67 MSR information returned for MSR index #MSR_SKYLAKE_TURBO_RATIO_LIMIT
68 **/
69 typedef union {
70 ///
71 /// Individual bit fields
72 ///
73 struct {
74 ///
75 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio
76 /// limit of 1 core active.
77 ///
78 UINT32 Maximum1C:8;
79 ///
80 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio
81 /// limit of 2 core active.
82 ///
83 UINT32 Maximum2C:8;
84 ///
85 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio
86 /// limit of 3 core active.
87 ///
88 UINT32 Maximum3C:8;
89 ///
90 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio
91 /// limit of 4 core active.
92 ///
93 UINT32 Maximum4C:8;
94 UINT32 Reserved:32;
95 } Bits;
96 ///
97 /// All bit fields as a 32-bit value
98 ///
99 UINT32 Uint32;
100 ///
101 /// All bit fields as a 64-bit value
102 ///
103 UINT64 Uint64;
104 } MSR_SKYLAKE_TURBO_RATIO_LIMIT_REGISTER;
105
106
107 /**
108 Thread. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-4)
109 that points to the MSR containing the most recent branch record.
110
111 @param ECX MSR_SKYLAKE_LASTBRANCH_TOS (0x000001C9)
112 @param EAX Lower 32-bits of MSR value.
113 @param EDX Upper 32-bits of MSR value.
114
115 <b>Example usage</b>
116 @code
117 UINT64 Msr;
118
119 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_TOS);
120 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_TOS, Msr);
121 @endcode
122 @note MSR_SKYLAKE_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
123 **/
124 #define MSR_SKYLAKE_LASTBRANCH_TOS 0x000001C9
125
126
127 /**
128 Package. Lower 64 Bit OwnerEpoch Component of SGX Key (RO). Low 64 bits of
129 an 128-bit external entropy value for key derivation of an enclave.
130
131 @param ECX MSR_SKYLAKE_SGXOWNER0 (0x00000300)
132 @param EAX Lower 32-bits of MSR value.
133 @param EDX Upper 32-bits of MSR value.
134
135 <b>Example usage</b>
136 @code
137 UINT64 Msr;
138
139 Msr = AsmReadMsr64 (MSR_SKYLAKE_SGXOWNER0);
140 @endcode
141 @note MSR_SKYLAKE_SGXOWNER0 is defined as MSR_SGXOWNER0 in SDM.
142 **/
143 #define MSR_SKYLAKE_SGXOWNER0 0x00000300
144
145
146 /**
147 Package. Upper 64 Bit OwnerEpoch Component of SGX Key (RO). Upper 64 bits of
148 an 128-bit external entropy value for key derivation of an enclave.
149
150 @param ECX MSR_SKYLAKE_SGXOWNER1 (0x00000301)
151 @param EAX Lower 32-bits of MSR value.
152 @param EDX Upper 32-bits of MSR value.
153
154 <b>Example usage</b>
155 @code
156 UINT64 Msr;
157
158 Msr = AsmReadMsr64 (MSR_SKYLAKE_SGXOWNER1);
159 @endcode
160 @note MSR_SKYLAKE_SGXOWNER1 is defined as MSR_SGXOWNER1 in SDM.
161 **/
162 #define MSR_SKYLAKE_SGXOWNER1 0x00000301
163
164
165 /**
166 See Table 35-2. See Section 18.2.4, "Architectural Performance Monitoring
167 Version 4.".
168
169 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS (0x0000038E)
170 @param EAX Lower 32-bits of MSR value.
171 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER.
172 @param EDX Upper 32-bits of MSR value.
173 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER.
174
175 <b>Example usage</b>
176 @code
177 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER Msr;
178
179 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS);
180 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS, Msr.Uint64);
181 @endcode
182 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS is defined as IA32_PERF_GLOBAL_STATUS in SDM.
183 **/
184 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS 0x0000038E
185
186 /**
187 MSR information returned for MSR index #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS
188 **/
189 typedef union {
190 ///
191 /// Individual bit fields
192 ///
193 struct {
194 ///
195 /// [Bit 0] Thread. Ovf_PMC0.
196 ///
197 UINT32 Ovf_PMC0:1;
198 ///
199 /// [Bit 1] Thread. Ovf_PMC1.
200 ///
201 UINT32 Ovf_PMC1:1;
202 ///
203 /// [Bit 2] Thread. Ovf_PMC2.
204 ///
205 UINT32 Ovf_PMC2:1;
206 ///
207 /// [Bit 3] Thread. Ovf_PMC3.
208 ///
209 UINT32 Ovf_PMC3:1;
210 ///
211 /// [Bit 4] Thread. Ovf_PMC4 (if CPUID.0AH:EAX[15:8] > 4).
212 ///
213 UINT32 Ovf_PMC4:1;
214 ///
215 /// [Bit 5] Thread. Ovf_PMC5 (if CPUID.0AH:EAX[15:8] > 5).
216 ///
217 UINT32 Ovf_PMC5:1;
218 ///
219 /// [Bit 6] Thread. Ovf_PMC6 (if CPUID.0AH:EAX[15:8] > 6).
220 ///
221 UINT32 Ovf_PMC6:1;
222 ///
223 /// [Bit 7] Thread. Ovf_PMC7 (if CPUID.0AH:EAX[15:8] > 7).
224 ///
225 UINT32 Ovf_PMC7:1;
226 UINT32 Reserved1:24;
227 ///
228 /// [Bit 32] Thread. Ovf_FixedCtr0.
229 ///
230 UINT32 Ovf_FixedCtr0:1;
231 ///
232 /// [Bit 33] Thread. Ovf_FixedCtr1.
233 ///
234 UINT32 Ovf_FixedCtr1:1;
235 ///
236 /// [Bit 34] Thread. Ovf_FixedCtr2.
237 ///
238 UINT32 Ovf_FixedCtr2:1;
239 UINT32 Reserved2:20;
240 ///
241 /// [Bit 55] Thread. Trace_ToPA_PMI.
242 ///
243 UINT32 Trace_ToPA_PMI:1;
244 UINT32 Reserved3:2;
245 ///
246 /// [Bit 58] Thread. LBR_Frz.
247 ///
248 UINT32 LBR_Frz:1;
249 ///
250 /// [Bit 59] Thread. CTR_Frz.
251 ///
252 UINT32 CTR_Frz:1;
253 ///
254 /// [Bit 60] Thread. ASCI.
255 ///
256 UINT32 ASCI:1;
257 ///
258 /// [Bit 61] Thread. Ovf_Uncore.
259 ///
260 UINT32 Ovf_Uncore:1;
261 ///
262 /// [Bit 62] Thread. Ovf_BufDSSAVE.
263 ///
264 UINT32 Ovf_BufDSSAVE:1;
265 ///
266 /// [Bit 63] Thread. CondChgd.
267 ///
268 UINT32 CondChgd:1;
269 } Bits;
270 ///
271 /// All bit fields as a 64-bit value
272 ///
273 UINT64 Uint64;
274 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_REGISTER;
275
276
277 /**
278 See Table 35-2. See Section 18.2.4, "Architectural Performance Monitoring
279 Version 4.".
280
281 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET (0x00000390)
282 @param EAX Lower 32-bits of MSR value.
283 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
284 @param EDX Upper 32-bits of MSR value.
285 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
286
287 <b>Example usage</b>
288 @code
289 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER Msr;
290
291 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET);
292 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET, Msr.Uint64);
293 @endcode
294 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET is defined as IA32_PERF_GLOBAL_STATUS_RESET in SDM.
295 **/
296 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET 0x00000390
297
298 /**
299 MSR information returned for MSR index
300 #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET
301 **/
302 typedef union {
303 ///
304 /// Individual bit fields
305 ///
306 struct {
307 ///
308 /// [Bit 0] Thread. Set 1 to clear Ovf_PMC0.
309 ///
310 UINT32 Ovf_PMC0:1;
311 ///
312 /// [Bit 1] Thread. Set 1 to clear Ovf_PMC1.
313 ///
314 UINT32 Ovf_PMC1:1;
315 ///
316 /// [Bit 2] Thread. Set 1 to clear Ovf_PMC2.
317 ///
318 UINT32 Ovf_PMC2:1;
319 ///
320 /// [Bit 3] Thread. Set 1 to clear Ovf_PMC3.
321 ///
322 UINT32 Ovf_PMC3:1;
323 ///
324 /// [Bit 4] Thread. Set 1 to clear Ovf_PMC4 (if CPUID.0AH:EAX[15:8] > 4).
325 ///
326 UINT32 Ovf_PMC4:1;
327 ///
328 /// [Bit 5] Thread. Set 1 to clear Ovf_PMC5 (if CPUID.0AH:EAX[15:8] > 5).
329 ///
330 UINT32 Ovf_PMC5:1;
331 ///
332 /// [Bit 6] Thread. Set 1 to clear Ovf_PMC6 (if CPUID.0AH:EAX[15:8] > 6).
333 ///
334 UINT32 Ovf_PMC6:1;
335 ///
336 /// [Bit 7] Thread. Set 1 to clear Ovf_PMC7 (if CPUID.0AH:EAX[15:8] > 7).
337 ///
338 UINT32 Ovf_PMC7:1;
339 UINT32 Reserved1:24;
340 ///
341 /// [Bit 32] Thread. Set 1 to clear Ovf_FixedCtr0.
342 ///
343 UINT32 Ovf_FixedCtr0:1;
344 ///
345 /// [Bit 33] Thread. Set 1 to clear Ovf_FixedCtr1.
346 ///
347 UINT32 Ovf_FixedCtr1:1;
348 ///
349 /// [Bit 34] Thread. Set 1 to clear Ovf_FixedCtr2.
350 ///
351 UINT32 Ovf_FixedCtr2:1;
352 UINT32 Reserved2:20;
353 ///
354 /// [Bit 55] Thread. Set 1 to clear Trace_ToPA_PMI.
355 ///
356 UINT32 Trace_ToPA_PMI:1;
357 UINT32 Reserved3:2;
358 ///
359 /// [Bit 58] Thread. Set 1 to clear LBR_Frz.
360 ///
361 UINT32 LBR_Frz:1;
362 ///
363 /// [Bit 59] Thread. Set 1 to clear CTR_Frz.
364 ///
365 UINT32 CTR_Frz:1;
366 ///
367 /// [Bit 60] Thread. Set 1 to clear ASCI.
368 ///
369 UINT32 ASCI:1;
370 ///
371 /// [Bit 61] Thread. Set 1 to clear Ovf_Uncore.
372 ///
373 UINT32 Ovf_Uncore:1;
374 ///
375 /// [Bit 62] Thread. Set 1 to clear Ovf_BufDSSAVE.
376 ///
377 UINT32 Ovf_BufDSSAVE:1;
378 ///
379 /// [Bit 63] Thread. Set 1 to clear CondChgd.
380 ///
381 UINT32 CondChgd:1;
382 } Bits;
383 ///
384 /// All bit fields as a 64-bit value
385 ///
386 UINT64 Uint64;
387 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER;
388
389
390 /**
391 See Table 35-2. See Section 18.2.4, "Architectural Performance Monitoring
392 Version 4.".
393
394 @param ECX MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET (0x00000391)
395 @param EAX Lower 32-bits of MSR value.
396 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
397 @param EDX Upper 32-bits of MSR value.
398 Described by the type MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
399
400 <b>Example usage</b>
401 @code
402 MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER Msr;
403
404 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET);
405 AsmWriteMsr64 (MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET, Msr.Uint64);
406 @endcode
407 @note MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET is defined as IA32_PERF_GLOBAL_STATUS_SET in SDM.
408 **/
409 #define MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET 0x00000391
410
411 /**
412 MSR information returned for MSR index
413 #MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET
414 **/
415 typedef union {
416 ///
417 /// Individual bit fields
418 ///
419 struct {
420 ///
421 /// [Bit 0] Thread. Set 1 to cause Ovf_PMC0 = 1.
422 ///
423 UINT32 Ovf_PMC0:1;
424 ///
425 /// [Bit 1] Thread. Set 1 to cause Ovf_PMC1 = 1.
426 ///
427 UINT32 Ovf_PMC1:1;
428 ///
429 /// [Bit 2] Thread. Set 1 to cause Ovf_PMC2 = 1.
430 ///
431 UINT32 Ovf_PMC2:1;
432 ///
433 /// [Bit 3] Thread. Set 1 to cause Ovf_PMC3 = 1.
434 ///
435 UINT32 Ovf_PMC3:1;
436 ///
437 /// [Bit 4] Thread. Set 1 to cause Ovf_PMC4=1 (if CPUID.0AH:EAX[15:8] > 4).
438 ///
439 UINT32 Ovf_PMC4:1;
440 ///
441 /// [Bit 5] Thread. Set 1 to cause Ovf_PMC5=1 (if CPUID.0AH:EAX[15:8] > 5).
442 ///
443 UINT32 Ovf_PMC5:1;
444 ///
445 /// [Bit 6] Thread. Set 1 to cause Ovf_PMC6=1 (if CPUID.0AH:EAX[15:8] > 6).
446 ///
447 UINT32 Ovf_PMC6:1;
448 ///
449 /// [Bit 7] Thread. Set 1 to cause Ovf_PMC7=1 (if CPUID.0AH:EAX[15:8] > 7).
450 ///
451 UINT32 Ovf_PMC7:1;
452 UINT32 Reserved1:24;
453 ///
454 /// [Bit 32] Thread. Set 1 to cause Ovf_FixedCtr0 = 1.
455 ///
456 UINT32 Ovf_FixedCtr0:1;
457 ///
458 /// [Bit 33] Thread. Set 1 to cause Ovf_FixedCtr1 = 1.
459 ///
460 UINT32 Ovf_FixedCtr1:1;
461 ///
462 /// [Bit 34] Thread. Set 1 to cause Ovf_FixedCtr2 = 1.
463 ///
464 UINT32 Ovf_FixedCtr2:1;
465 UINT32 Reserved2:20;
466 ///
467 /// [Bit 55] Thread. Set 1 to cause Trace_ToPA_PMI = 1.
468 ///
469 UINT32 Trace_ToPA_PMI:1;
470 UINT32 Reserved3:2;
471 ///
472 /// [Bit 58] Thread. Set 1 to cause LBR_Frz = 1.
473 ///
474 UINT32 LBR_Frz:1;
475 ///
476 /// [Bit 59] Thread. Set 1 to cause CTR_Frz = 1.
477 ///
478 UINT32 CTR_Frz:1;
479 ///
480 /// [Bit 60] Thread. Set 1 to cause ASCI = 1.
481 ///
482 UINT32 ASCI:1;
483 ///
484 /// [Bit 61] Thread. Set 1 to cause Ovf_Uncore.
485 ///
486 UINT32 Ovf_Uncore:1;
487 ///
488 /// [Bit 62] Thread. Set 1 to cause Ovf_BufDSSAVE.
489 ///
490 UINT32 Ovf_BufDSSAVE:1;
491 UINT32 Reserved4:1;
492 } Bits;
493 ///
494 /// All bit fields as a 64-bit value
495 ///
496 UINT64 Uint64;
497 } MSR_SKYLAKE_IA32_PERF_GLOBAL_STATUS_SET_REGISTER;
498
499
500 /**
501 Thread. FrontEnd Precise Event Condition Select (R/W).
502
503 @param ECX MSR_SKYLAKE_PEBS_FRONTEND (0x000003F7)
504 @param EAX Lower 32-bits of MSR value.
505 Described by the type MSR_SKYLAKE_PEBS_FRONTEND_REGISTER.
506 @param EDX Upper 32-bits of MSR value.
507 Described by the type MSR_SKYLAKE_PEBS_FRONTEND_REGISTER.
508
509 <b>Example usage</b>
510 @code
511 MSR_SKYLAKE_PEBS_FRONTEND_REGISTER Msr;
512
513 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PEBS_FRONTEND);
514 AsmWriteMsr64 (MSR_SKYLAKE_PEBS_FRONTEND, Msr.Uint64);
515 @endcode
516 @note MSR_SKYLAKE_PEBS_FRONTEND is defined as MSR_PEBS_FRONTEND in SDM.
517 **/
518 #define MSR_SKYLAKE_PEBS_FRONTEND 0x000003F7
519
520 /**
521 MSR information returned for MSR index #MSR_SKYLAKE_PEBS_FRONTEND
522 **/
523 typedef union {
524 ///
525 /// Individual bit fields
526 ///
527 struct {
528 ///
529 /// [Bits 2:0] Event Code Select.
530 ///
531 UINT32 EventCodeSelect:3;
532 UINT32 Reserved1:1;
533 ///
534 /// [Bit 4] Event Code Select High.
535 ///
536 UINT32 EventCodeSelectHigh:1;
537 UINT32 Reserved2:3;
538 ///
539 /// [Bits 19:8] IDQ_Bubble_Length Specifier.
540 ///
541 UINT32 IDQ_Bubble_Length:12;
542 ///
543 /// [Bits 22:20] IDQ_Bubble_Width Specifier.
544 ///
545 UINT32 IDQ_Bubble_Width:3;
546 UINT32 Reserved3:9;
547 UINT32 Reserved4:32;
548 } Bits;
549 ///
550 /// All bit fields as a 32-bit value
551 ///
552 UINT32 Uint32;
553 ///
554 /// All bit fields as a 64-bit value
555 ///
556 UINT64 Uint64;
557 } MSR_SKYLAKE_PEBS_FRONTEND_REGISTER;
558
559
560 /**
561 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL
562 Domains.".
563
564 @param ECX MSR_SKYLAKE_PP0_ENERGY_STATUS (0x00000639)
565 @param EAX Lower 32-bits of MSR value.
566 @param EDX Upper 32-bits of MSR value.
567
568 <b>Example usage</b>
569 @code
570 UINT64 Msr;
571
572 Msr = AsmReadMsr64 (MSR_SKYLAKE_PP0_ENERGY_STATUS);
573 @endcode
574 @note MSR_SKYLAKE_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
575 **/
576 #define MSR_SKYLAKE_PP0_ENERGY_STATUS 0x00000639
577
578
579 /**
580 Platform*. Platform Energy Counter. (R/O). This MSR is valid only if both
581 platform vendor hardware implementation and BIOS enablement support it. This
582 MSR will read 0 if not valid.
583
584 @param ECX MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER (0x0000064D)
585 @param EAX Lower 32-bits of MSR value.
586 Described by the type MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER.
587 @param EDX Upper 32-bits of MSR value.
588 Described by the type MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER.
589
590 <b>Example usage</b>
591 @code
592 MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER Msr;
593
594 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER);
595 @endcode
596 @note MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER is defined as MSR_PLATFORM_ENERGY_COUNTER in SDM.
597 **/
598 #define MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER 0x0000064D
599
600 /**
601 MSR information returned for MSR index #MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER
602 **/
603 typedef union {
604 ///
605 /// Individual bit fields
606 ///
607 struct {
608 ///
609 /// [Bits 31:0] Total energy consumed by all devices in the platform that
610 /// receive power from integrated power delivery mechanism, Included
611 /// platform devices are processor cores, SOC, memory, add-on or
612 /// peripheral devices that get powered directly from the platform power
613 /// delivery means. The energy units are specified in the
614 /// MSR_RAPL_POWER_UNIT.Enery_Status_Unit.
615 ///
616 UINT32 TotalEnergy:32;
617 UINT32 Reserved:32;
618 } Bits;
619 ///
620 /// All bit fields as a 32-bit value
621 ///
622 UINT32 Uint32;
623 ///
624 /// All bit fields as a 64-bit value
625 ///
626 UINT64 Uint64;
627 } MSR_SKYLAKE_PLATFORM_ENERGY_COUNTER_REGISTER;
628
629
630 /**
631 Thread. Productive Performance Count. (R/O). Hardware's view of workload
632 scalability. See Section 14.4.5.1.
633
634 @param ECX MSR_SKYLAKE_PPERF (0x0000064E)
635 @param EAX Lower 32-bits of MSR value.
636 @param EDX Upper 32-bits of MSR value.
637
638 <b>Example usage</b>
639 @code
640 UINT64 Msr;
641
642 Msr = AsmReadMsr64 (MSR_SKYLAKE_PPERF);
643 @endcode
644 @note MSR_SKYLAKE_PPERF is defined as MSR_PPERF in SDM.
645 **/
646 #define MSR_SKYLAKE_PPERF 0x0000064E
647
648
649 /**
650 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
651 refers to processor core frequency).
652
653 @param ECX MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS (0x0000064F)
654 @param EAX Lower 32-bits of MSR value.
655 Described by the type MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER.
656 @param EDX Upper 32-bits of MSR value.
657 Described by the type MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER.
658
659 <b>Example usage</b>
660 @code
661 MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
662
663 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS);
664 AsmWriteMsr64 (MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
665 @endcode
666 @note MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
667 **/
668 #define MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS 0x0000064F
669
670 /**
671 MSR information returned for MSR index #MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS
672 **/
673 typedef union {
674 ///
675 /// Individual bit fields
676 ///
677 struct {
678 ///
679 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced below the
680 /// operating system request due to assertion of external PROCHOT.
681 ///
682 UINT32 PROCHOT_Status:1;
683 ///
684 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
685 /// operating system request due to a thermal event.
686 ///
687 UINT32 ThermalStatus:1;
688 UINT32 Reserved1:2;
689 ///
690 /// [Bit 4] Residency State Regulation Status (R0) When set, frequency is
691 /// reduced below the operating system request due to residency state
692 /// regulation limit.
693 ///
694 UINT32 ResidencyStateRegulationStatus:1;
695 ///
696 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
697 /// is reduced below the operating system request due to Running Average
698 /// Thermal Limit (RATL).
699 ///
700 UINT32 RunningAverageThermalLimitStatus:1;
701 ///
702 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced
703 /// below the operating system request due to a thermal alert from a
704 /// processor Voltage Regulator (VR).
705 ///
706 UINT32 VRThermAlertStatus:1;
707 ///
708 /// [Bit 7] VR Therm Design Current Status (R0) When set, frequency is
709 /// reduced below the operating system request due to VR thermal design
710 /// current limit.
711 ///
712 UINT32 VRThermDesignCurrentStatus:1;
713 ///
714 /// [Bit 8] Other Status (R0) When set, frequency is reduced below the
715 /// operating system request due to electrical or other constraints.
716 ///
717 UINT32 OtherStatus:1;
718 UINT32 Reserved2:1;
719 ///
720 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
721 /// set, frequency is reduced below the operating system request due to
722 /// package/platform-level power limiting PL1.
723 ///
724 UINT32 PL1Status:1;
725 ///
726 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
727 /// set, frequency is reduced below the operating system request due to
728 /// package/platform-level power limiting PL2/PL3.
729 ///
730 UINT32 PL2Status:1;
731 ///
732 /// [Bit 12] Max Turbo Limit Status (R0) When set, frequency is reduced
733 /// below the operating system request due to multi-core turbo limits.
734 ///
735 UINT32 MaxTurboLimitStatus:1;
736 ///
737 /// [Bit 13] Turbo Transition Attenuation Status (R0) When set, frequency
738 /// is reduced below the operating system request due to Turbo transition
739 /// attenuation. This prevents performance degradation due to frequent
740 /// operating ratio changes.
741 ///
742 UINT32 TurboTransitionAttenuationStatus:1;
743 UINT32 Reserved3:2;
744 ///
745 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
746 /// has asserted since the log bit was last cleared. This log bit will
747 /// remain set until cleared by software writing 0.
748 ///
749 UINT32 PROCHOT_Log:1;
750 ///
751 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
752 /// has asserted since the log bit was last cleared. This log bit will
753 /// remain set until cleared by software writing 0.
754 ///
755 UINT32 ThermalLog:1;
756 UINT32 Reserved4:2;
757 ///
758 /// [Bit 20] Residency State Regulation Log When set, indicates that the
759 /// Residency State Regulation Status bit has asserted since the log bit
760 /// was last cleared. This log bit will remain set until cleared by
761 /// software writing 0.
762 ///
763 UINT32 ResidencyStateRegulationLog:1;
764 ///
765 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
766 /// the RATL Status bit has asserted since the log bit was last cleared.
767 /// This log bit will remain set until cleared by software writing 0.
768 ///
769 UINT32 RunningAverageThermalLimitLog:1;
770 ///
771 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
772 /// Alert Status bit has asserted since the log bit was last cleared. This
773 /// log bit will remain set until cleared by software writing 0.
774 ///
775 UINT32 VRThermAlertLog:1;
776 ///
777 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
778 /// VR TDC Status bit has asserted since the log bit was last cleared.
779 /// This log bit will remain set until cleared by software writing 0.
780 ///
781 UINT32 VRThermalDesignCurrentLog:1;
782 ///
783 /// [Bit 24] Other Log When set, indicates that the Other Status bit has
784 /// asserted since the log bit was last cleared. This log bit will remain
785 /// set until cleared by software writing 0.
786 ///
787 UINT32 OtherLog:1;
788 UINT32 Reserved5:1;
789 ///
790 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
791 /// indicates that the Package or Platform Level PL1 Power Limiting Status
792 /// bit has asserted since the log bit was last cleared. This log bit will
793 /// remain set until cleared by software writing 0.
794 ///
795 UINT32 PL1Log:1;
796 ///
797 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
798 /// indicates that the Package or Platform Level PL2/PL3 Power Limiting
799 /// Status bit has asserted since the log bit was last cleared. This log
800 /// bit will remain set until cleared by software writing 0.
801 ///
802 UINT32 PL2Log:1;
803 ///
804 /// [Bit 28] Max Turbo Limit Log When set, indicates that the Max Turbo
805 /// Limit Status bit has asserted since the log bit was last cleared. This
806 /// log bit will remain set until cleared by software writing 0.
807 ///
808 UINT32 MaxTurboLimitLog:1;
809 ///
810 /// [Bit 29] Turbo Transition Attenuation Log When set, indicates that the
811 /// Turbo Transition Attenuation Status bit has asserted since the log bit
812 /// was last cleared. This log bit will remain set until cleared by
813 /// software writing 0.
814 ///
815 UINT32 TurboTransitionAttenuationLog:1;
816 UINT32 Reserved6:2;
817 UINT32 Reserved7:32;
818 } Bits;
819 ///
820 /// All bit fields as a 32-bit value
821 ///
822 UINT32 Uint32;
823 ///
824 /// All bit fields as a 64-bit value
825 ///
826 UINT64 Uint64;
827 } MSR_SKYLAKE_CORE_PERF_LIMIT_REASONS_REGISTER;
828
829
830 /**
831 Package. HDC Configuration (R/W)..
832
833 @param ECX MSR_SKYLAKE_PKG_HDC_CONFIG (0x00000652)
834 @param EAX Lower 32-bits of MSR value.
835 Described by the type MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER.
836 @param EDX Upper 32-bits of MSR value.
837 Described by the type MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER.
838
839 <b>Example usage</b>
840 @code
841 MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER Msr;
842
843 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_CONFIG);
844 AsmWriteMsr64 (MSR_SKYLAKE_PKG_HDC_CONFIG, Msr.Uint64);
845 @endcode
846 @note MSR_SKYLAKE_PKG_HDC_CONFIG is defined as MSR_PKG_HDC_CONFIG in SDM.
847 **/
848 #define MSR_SKYLAKE_PKG_HDC_CONFIG 0x00000652
849
850 /**
851 MSR information returned for MSR index #MSR_SKYLAKE_PKG_HDC_CONFIG
852 **/
853 typedef union {
854 ///
855 /// Individual bit fields
856 ///
857 struct {
858 ///
859 /// [Bits 2:0] PKG_Cx_Monitor. Configures Package Cx state threshold for
860 /// MSR_PKG_HDC_DEEP_RESIDENCY.
861 ///
862 UINT32 PKG_Cx_Monitor:3;
863 UINT32 Reserved1:29;
864 UINT32 Reserved2:32;
865 } Bits;
866 ///
867 /// All bit fields as a 32-bit value
868 ///
869 UINT32 Uint32;
870 ///
871 /// All bit fields as a 64-bit value
872 ///
873 UINT64 Uint64;
874 } MSR_SKYLAKE_PKG_HDC_CONFIG_REGISTER;
875
876
877 /**
878 Core. Core HDC Idle Residency. (R/O). Core_Cx_Duty_Cycle_Cnt.
879
880 @param ECX MSR_SKYLAKE_CORE_HDC_RESIDENCY (0x00000653)
881 @param EAX Lower 32-bits of MSR value.
882 @param EDX Upper 32-bits of MSR value.
883
884 <b>Example usage</b>
885 @code
886 UINT64 Msr;
887
888 Msr = AsmReadMsr64 (MSR_SKYLAKE_CORE_HDC_RESIDENCY);
889 @endcode
890 @note MSR_SKYLAKE_CORE_HDC_RESIDENCY is defined as MSR_CORE_HDC_RESIDENCY in SDM.
891 **/
892 #define MSR_SKYLAKE_CORE_HDC_RESIDENCY 0x00000653
893
894
895 /**
896 Package. Accumulate the cycles the package was in C2 state and at least one
897 logical processor was in forced idle. (R/O). Pkg_C2_Duty_Cycle_Cnt.
898
899 @param ECX MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY (0x00000655)
900 @param EAX Lower 32-bits of MSR value.
901 @param EDX Upper 32-bits of MSR value.
902
903 <b>Example usage</b>
904 @code
905 UINT64 Msr;
906
907 Msr = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY);
908 @endcode
909 @note MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY is defined as MSR_PKG_HDC_SHALLOW_RESIDENCY in SDM.
910 **/
911 #define MSR_SKYLAKE_PKG_HDC_SHALLOW_RESIDENCY 0x00000655
912
913
914 /**
915 Package. Package Cx HDC Idle Residency. (R/O). Pkg_Cx_Duty_Cycle_Cnt.
916
917 @param ECX MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY (0x00000656)
918 @param EAX Lower 32-bits of MSR value.
919 @param EDX Upper 32-bits of MSR value.
920
921 <b>Example usage</b>
922 @code
923 UINT64 Msr;
924
925 Msr = AsmReadMsr64 (MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY);
926 @endcode
927 @note MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY is defined as MSR_PKG_HDC_DEEP_RESIDENCY in SDM.
928 **/
929 #define MSR_SKYLAKE_PKG_HDC_DEEP_RESIDENCY 0x00000656
930
931
932 /**
933 Package. Core-count Weighted C0 Residency. (R/O). Increment at the same rate
934 as the TSC. The increment each cycle is weighted by the number of processor
935 cores in the package that reside in C0. If N cores are simultaneously in C0,
936 then each cycle the counter increments by N.
937
938 @param ECX MSR_SKYLAKE_WEIGHTED_CORE_C0 (0x00000658)
939 @param EAX Lower 32-bits of MSR value.
940 @param EDX Upper 32-bits of MSR value.
941
942 <b>Example usage</b>
943 @code
944 UINT64 Msr;
945
946 Msr = AsmReadMsr64 (MSR_SKYLAKE_WEIGHTED_CORE_C0);
947 @endcode
948 @note MSR_SKYLAKE_WEIGHTED_CORE_C0 is defined as MSR_WEIGHTED_CORE_C0 in SDM.
949 **/
950 #define MSR_SKYLAKE_WEIGHTED_CORE_C0 0x00000658
951
952
953 /**
954 Package. Any Core C0 Residency. (R/O). Increment at the same rate as the
955 TSC. The increment each cycle is one if any processor core in the package is
956 in C0.
957
958 @param ECX MSR_SKYLAKE_ANY_CORE_C0 (0x00000659)
959 @param EAX Lower 32-bits of MSR value.
960 @param EDX Upper 32-bits of MSR value.
961
962 <b>Example usage</b>
963 @code
964 UINT64 Msr;
965
966 Msr = AsmReadMsr64 (MSR_SKYLAKE_ANY_CORE_C0);
967 @endcode
968 @note MSR_SKYLAKE_ANY_CORE_C0 is defined as MSR_ANY_CORE_C0 in SDM.
969 **/
970 #define MSR_SKYLAKE_ANY_CORE_C0 0x00000659
971
972
973 /**
974 Package. Any Graphics Engine C0 Residency. (R/O). Increment at the same rate
975 as the TSC. The increment each cycle is one if any processor graphic
976 device's compute engines are in C0.
977
978 @param ECX MSR_SKYLAKE_ANY_GFXE_C0 (0x0000065A)
979 @param EAX Lower 32-bits of MSR value.
980 @param EDX Upper 32-bits of MSR value.
981
982 <b>Example usage</b>
983 @code
984 UINT64 Msr;
985
986 Msr = AsmReadMsr64 (MSR_SKYLAKE_ANY_GFXE_C0);
987 @endcode
988 @note MSR_SKYLAKE_ANY_GFXE_C0 is defined as MSR_ANY_GFXE_C0 in SDM.
989 **/
990 #define MSR_SKYLAKE_ANY_GFXE_C0 0x0000065A
991
992
993 /**
994 Package. Core and Graphics Engine Overlapped C0 Residency. (R/O). Increment
995 at the same rate as the TSC. The increment each cycle is one if at least one
996 compute engine of the processor graphics is in C0 and at least one processor
997 core in the package is also in C0.
998
999 @param ECX MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 (0x0000065B)
1000 @param EAX Lower 32-bits of MSR value.
1001 @param EDX Upper 32-bits of MSR value.
1002
1003 <b>Example usage</b>
1004 @code
1005 UINT64 Msr;
1006
1007 Msr = AsmReadMsr64 (MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0);
1008 @endcode
1009 @note MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 is defined as MSR_CORE_GFXE_OVERLAP_C0 in SDM.
1010 **/
1011 #define MSR_SKYLAKE_CORE_GFXE_OVERLAP_C0 0x0000065B
1012
1013
1014 /**
1015 Platform*. Platform Power Limit Control (R/W-L) Allows platform BIOS to
1016 limit power consumption of the platform devices to the specified values. The
1017 Long Duration power consumption is specified via Platform_Power_Limit_1 and
1018 Platform_Power_Limit_1_Time. The Short Duration power consumption limit is
1019 specified via the Platform_Power_Limit_2 with duration chosen by the
1020 processor. The processor implements an exponential-weighted algorithm in the
1021 placement of the time windows.
1022
1023 @param ECX MSR_SKYLAKE_PLATFORM_POWER_LIMIT (0x0000065C)
1024 @param EAX Lower 32-bits of MSR value.
1025 Described by the type MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER.
1026 @param EDX Upper 32-bits of MSR value.
1027 Described by the type MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER.
1028
1029 <b>Example usage</b>
1030 @code
1031 MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER Msr;
1032
1033 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_PLATFORM_POWER_LIMIT);
1034 AsmWriteMsr64 (MSR_SKYLAKE_PLATFORM_POWER_LIMIT, Msr.Uint64);
1035 @endcode
1036 @note MSR_SKYLAKE_PLATFORM_POWER_LIMIT is defined as MSR_PLATFORM_POWER_LIMIT in SDM.
1037 **/
1038 #define MSR_SKYLAKE_PLATFORM_POWER_LIMIT 0x0000065C
1039
1040 /**
1041 MSR information returned for MSR index #MSR_SKYLAKE_PLATFORM_POWER_LIMIT
1042 **/
1043 typedef union {
1044 ///
1045 /// Individual bit fields
1046 ///
1047 struct {
1048 ///
1049 /// [Bits 14:0] Platform Power Limit #1. Average Power limit value which
1050 /// the platform must not exceed over a time window as specified by
1051 /// Power_Limit_1_TIME field. The default value is the Thermal Design
1052 /// Power (TDP) and varies with product skus. The unit is specified in
1053 /// MSR_RAPLPOWER_UNIT.
1054 ///
1055 UINT32 PlatformPowerLimit1:15;
1056 ///
1057 /// [Bit 15] Enable Platform Power Limit #1. When set, enables the
1058 /// processor to apply control policy such that the platform power does
1059 /// not exceed Platform Power limit #1 over the time window specified by
1060 /// Power Limit #1 Time Window.
1061 ///
1062 UINT32 EnablePlatformPowerLimit1:1;
1063 ///
1064 /// [Bit 16] Platform Clamping Limitation #1. When set, allows the
1065 /// processor to go below the OS requested P states in order to maintain
1066 /// the power below specified Platform Power Limit #1 value. This bit is
1067 /// writeable only when CPUID (EAX=6):EAX[4] is set.
1068 ///
1069 UINT32 PlatformClampingLimitation1:1;
1070 ///
1071 /// [Bits 23:17] Time Window for Platform Power Limit #1. Specifies the
1072 /// duration of the time window over which Platform Power Limit 1 value
1073 /// should be maintained for sustained long duration. This field is made
1074 /// up of two numbers from the following equation: Time Window = (float)
1075 /// ((1+(X/4))*(2^Y)), where: X. = POWER_LIMIT_1_TIME[23:22] Y. =
1076 /// POWER_LIMIT_1_TIME[21:17]. The maximum allowed value in this field is
1077 /// defined in MSR_PKG_POWER_INFO[PKG_MAX_WIN]. The default value is 0DH,
1078 /// The unit is specified in MSR_RAPLPOWER_UNIT[Time Unit].
1079 ///
1080 UINT32 Time:7;
1081 UINT32 Reserved1:8;
1082 ///
1083 /// [Bits 46:32] Platform Power Limit #2. Average Power limit value which
1084 /// the platform must not exceed over the Short Duration time window
1085 /// chosen by the processor. The recommended default value is 1.25 times
1086 /// the Long Duration Power Limit (i.e. Platform Power Limit # 1).
1087 ///
1088 UINT32 PlatformPowerLimit2:15;
1089 ///
1090 /// [Bit 47] Enable Platform Power Limit #2. When set, enables the
1091 /// processor to apply control policy such that the platform power does
1092 /// not exceed Platform Power limit #2 over the Short Duration time window.
1093 ///
1094 UINT32 EnablePlatformPowerLimit2:1;
1095 ///
1096 /// [Bit 48] Platform Clamping Limitation #2. When set, allows the
1097 /// processor to go below the OS requested P states in order to maintain
1098 /// the power below specified Platform Power Limit #2 value.
1099 ///
1100 UINT32 PlatformClampingLimitation2:1;
1101 UINT32 Reserved2:14;
1102 ///
1103 /// [Bit 63] Lock. Setting this bit will lock all other bits of this MSR
1104 /// until system RESET.
1105 ///
1106 UINT32 Lock:1;
1107 } Bits;
1108 ///
1109 /// All bit fields as a 64-bit value
1110 ///
1111 UINT64 Uint64;
1112 } MSR_SKYLAKE_PLATFORM_POWER_LIMIT_REGISTER;
1113
1114
1115 /**
1116 Thread. Last Branch Record n From IP (R/W) One of 32 triplets of last
1117 branch record registers on the last branch record stack. This part of the
1118 stack contains pointers to the source instruction. See also: - Last Branch
1119 Record Stack TOS at 1C9H - Section 17.10.
1120
1121 @param ECX MSR_SKYLAKE_LASTBRANCH_n_FROM_IP
1122 @param EAX Lower 32-bits of MSR value.
1123 @param EDX Upper 32-bits of MSR value.
1124
1125 <b>Example usage</b>
1126 @code
1127 UINT64 Msr;
1128
1129 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_16_FROM_IP);
1130 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_16_FROM_IP, Msr);
1131 @endcode
1132 @note MSR_SKYLAKE_LASTBRANCH_16_FROM_IP is defined as MSR_LASTBRANCH_16_FROM_IP in SDM.
1133 MSR_SKYLAKE_LASTBRANCH_17_FROM_IP is defined as MSR_LASTBRANCH_17_FROM_IP in SDM.
1134 MSR_SKYLAKE_LASTBRANCH_18_FROM_IP is defined as MSR_LASTBRANCH_18_FROM_IP in SDM.
1135 MSR_SKYLAKE_LASTBRANCH_19_FROM_IP is defined as MSR_LASTBRANCH_19_FROM_IP in SDM.
1136 MSR_SKYLAKE_LASTBRANCH_20_FROM_IP is defined as MSR_LASTBRANCH_20_FROM_IP in SDM.
1137 MSR_SKYLAKE_LASTBRANCH_21_FROM_IP is defined as MSR_LASTBRANCH_21_FROM_IP in SDM.
1138 MSR_SKYLAKE_LASTBRANCH_22_FROM_IP is defined as MSR_LASTBRANCH_22_FROM_IP in SDM.
1139 MSR_SKYLAKE_LASTBRANCH_23_FROM_IP is defined as MSR_LASTBRANCH_23_FROM_IP in SDM.
1140 MSR_SKYLAKE_LASTBRANCH_24_FROM_IP is defined as MSR_LASTBRANCH_24_FROM_IP in SDM.
1141 MSR_SKYLAKE_LASTBRANCH_25_FROM_IP is defined as MSR_LASTBRANCH_25_FROM_IP in SDM.
1142 MSR_SKYLAKE_LASTBRANCH_26_FROM_IP is defined as MSR_LASTBRANCH_26_FROM_IP in SDM.
1143 MSR_SKYLAKE_LASTBRANCH_27_FROM_IP is defined as MSR_LASTBRANCH_27_FROM_IP in SDM.
1144 MSR_SKYLAKE_LASTBRANCH_28_FROM_IP is defined as MSR_LASTBRANCH_28_FROM_IP in SDM.
1145 MSR_SKYLAKE_LASTBRANCH_29_FROM_IP is defined as MSR_LASTBRANCH_29_FROM_IP in SDM.
1146 MSR_SKYLAKE_LASTBRANCH_30_FROM_IP is defined as MSR_LASTBRANCH_30_FROM_IP in SDM.
1147 MSR_SKYLAKE_LASTBRANCH_31_FROM_IP is defined as MSR_LASTBRANCH_31_FROM_IP in SDM.
1148 @{
1149 **/
1150 #define MSR_SKYLAKE_LASTBRANCH_16_FROM_IP 0x00000690
1151 #define MSR_SKYLAKE_LASTBRANCH_17_FROM_IP 0x00000691
1152 #define MSR_SKYLAKE_LASTBRANCH_18_FROM_IP 0x00000692
1153 #define MSR_SKYLAKE_LASTBRANCH_19_FROM_IP 0x00000693
1154 #define MSR_SKYLAKE_LASTBRANCH_20_FROM_IP 0x00000694
1155 #define MSR_SKYLAKE_LASTBRANCH_21_FROM_IP 0x00000695
1156 #define MSR_SKYLAKE_LASTBRANCH_22_FROM_IP 0x00000696
1157 #define MSR_SKYLAKE_LASTBRANCH_23_FROM_IP 0x00000697
1158 #define MSR_SKYLAKE_LASTBRANCH_24_FROM_IP 0x00000698
1159 #define MSR_SKYLAKE_LASTBRANCH_25_FROM_IP 0x00000699
1160 #define MSR_SKYLAKE_LASTBRANCH_26_FROM_IP 0x0000069A
1161 #define MSR_SKYLAKE_LASTBRANCH_27_FROM_IP 0x0000069B
1162 #define MSR_SKYLAKE_LASTBRANCH_28_FROM_IP 0x0000069C
1163 #define MSR_SKYLAKE_LASTBRANCH_29_FROM_IP 0x0000069D
1164 #define MSR_SKYLAKE_LASTBRANCH_30_FROM_IP 0x0000069E
1165 #define MSR_SKYLAKE_LASTBRANCH_31_FROM_IP 0x0000069F
1166 /// @}
1167
1168
1169 /**
1170 Package. Indicator of Frequency Clipping in the Processor Graphics (R/W)
1171 (frequency refers to processor graphics frequency).
1172
1173 @param ECX MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS (0x000006B0)
1174 @param EAX Lower 32-bits of MSR value.
1175 Described by the type MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER.
1176 @param EDX Upper 32-bits of MSR value.
1177 Described by the type MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER.
1178
1179 <b>Example usage</b>
1180 @code
1181 MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER Msr;
1182
1183 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS);
1184 AsmWriteMsr64 (MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS, Msr.Uint64);
1185 @endcode
1186 @note MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS is defined as MSR_GRAPHICS_PERF_LIMIT_REASONS in SDM.
1187 **/
1188 #define MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS 0x000006B0
1189
1190 /**
1191 MSR information returned for MSR index
1192 #MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS
1193 **/
1194 typedef union {
1195 ///
1196 /// Individual bit fields
1197 ///
1198 struct {
1199 ///
1200 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced due to
1201 /// assertion of external PROCHOT.
1202 ///
1203 UINT32 PROCHOT_Status:1;
1204 ///
1205 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced due to a
1206 /// thermal event.
1207 ///
1208 UINT32 ThermalStatus:1;
1209 UINT32 Reserved1:3;
1210 ///
1211 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
1212 /// is reduced due to running average thermal limit.
1213 ///
1214 UINT32 RunningAverageThermalLimitStatus:1;
1215 ///
1216 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced due
1217 /// to a thermal alert from a processor Voltage Regulator.
1218 ///
1219 UINT32 VRThermAlertStatus:1;
1220 ///
1221 /// [Bit 7] VR Thermal Design Current Status (R0) When set, frequency is
1222 /// reduced due to VR TDC limit.
1223 ///
1224 UINT32 VRThermalDesignCurrentStatus:1;
1225 ///
1226 /// [Bit 8] Other Status (R0) When set, frequency is reduced due to
1227 /// electrical or other constraints.
1228 ///
1229 UINT32 OtherStatus:1;
1230 UINT32 Reserved2:1;
1231 ///
1232 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
1233 /// set, frequency is reduced due to package/platform-level power limiting
1234 /// PL1.
1235 ///
1236 UINT32 PL1Status:1;
1237 ///
1238 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
1239 /// set, frequency is reduced due to package/platform-level power limiting
1240 /// PL2/PL3.
1241 ///
1242 UINT32 PL2Status:1;
1243 ///
1244 /// [Bit 12] Inefficient Operation Status (R0) When set, processor
1245 /// graphics frequency is operating below target frequency.
1246 ///
1247 UINT32 InefficientOperationStatus:1;
1248 UINT32 Reserved3:3;
1249 ///
1250 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
1251 /// has asserted since the log bit was last cleared. This log bit will
1252 /// remain set until cleared by software writing 0.
1253 ///
1254 UINT32 PROCHOT_Log:1;
1255 ///
1256 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
1257 /// has asserted since the log bit was last cleared. This log bit will
1258 /// remain set until cleared by software writing 0.
1259 ///
1260 UINT32 ThermalLog:1;
1261 UINT32 Reserved4:3;
1262 ///
1263 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
1264 /// the RATL Status bit has asserted since the log bit was last cleared.
1265 /// This log bit will remain set until cleared by software writing 0.
1266 ///
1267 UINT32 RunningAverageThermalLimitLog:1;
1268 ///
1269 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
1270 /// Alert Status bit has asserted since the log bit was last cleared. This
1271 /// log bit will remain set until cleared by software writing 0.
1272 ///
1273 UINT32 VRThermAlertLog:1;
1274 ///
1275 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
1276 /// VR Therm Alert Status bit has asserted since the log bit was last
1277 /// cleared. This log bit will remain set until cleared by software
1278 /// writing 0.
1279 ///
1280 UINT32 VRThermalDesignCurrentLog:1;
1281 ///
1282 /// [Bit 24] Other Log When set, indicates that the OTHER Status bit has
1283 /// asserted since the log bit was last cleared. This log bit will remain
1284 /// set until cleared by software writing 0.
1285 ///
1286 UINT32 OtherLog:1;
1287 UINT32 Reserved5:1;
1288 ///
1289 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
1290 /// indicates that the Package/Platform Level PL1 Power Limiting Status
1291 /// bit has asserted since the log bit was last cleared. This log bit will
1292 /// remain set until cleared by software writing 0.
1293 ///
1294 UINT32 PL1Log:1;
1295 ///
1296 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
1297 /// indicates that the Package/Platform Level PL2 Power Limiting Status
1298 /// bit has asserted since the log bit was last cleared. This log bit will
1299 /// remain set until cleared by software writing 0.
1300 ///
1301 UINT32 PL2Log:1;
1302 ///
1303 /// [Bit 28] Inefficient Operation Log When set, indicates that the
1304 /// Inefficient Operation Status bit has asserted since the log bit was
1305 /// last cleared. This log bit will remain set until cleared by software
1306 /// writing 0.
1307 ///
1308 UINT32 InefficientOperationLog:1;
1309 UINT32 Reserved6:3;
1310 UINT32 Reserved7:32;
1311 } Bits;
1312 ///
1313 /// All bit fields as a 32-bit value
1314 ///
1315 UINT32 Uint32;
1316 ///
1317 /// All bit fields as a 64-bit value
1318 ///
1319 UINT64 Uint64;
1320 } MSR_SKYLAKE_GRAPHICS_PERF_LIMIT_REASONS_REGISTER;
1321
1322
1323 /**
1324 Package. Indicator of Frequency Clipping in the Ring Interconnect (R/W)
1325 (frequency refers to ring interconnect in the uncore).
1326
1327 @param ECX MSR_SKYLAKE_RING_PERF_LIMIT_REASONS (0x000006B1)
1328 @param EAX Lower 32-bits of MSR value.
1329 Described by the type MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER.
1330 @param EDX Upper 32-bits of MSR value.
1331 Described by the type MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER.
1332
1333 <b>Example usage</b>
1334 @code
1335 MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER Msr;
1336
1337 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_RING_PERF_LIMIT_REASONS);
1338 AsmWriteMsr64 (MSR_SKYLAKE_RING_PERF_LIMIT_REASONS, Msr.Uint64);
1339 @endcode
1340 @note MSR_SKYLAKE_RING_PERF_LIMIT_REASONS is defined as MSR_RING_PERF_LIMIT_REASONS in SDM.
1341 **/
1342 #define MSR_SKYLAKE_RING_PERF_LIMIT_REASONS 0x000006B1
1343
1344 /**
1345 MSR information returned for MSR index #MSR_SKYLAKE_RING_PERF_LIMIT_REASONS
1346 **/
1347 typedef union {
1348 ///
1349 /// Individual bit fields
1350 ///
1351 struct {
1352 ///
1353 /// [Bit 0] PROCHOT Status (R0) When set, frequency is reduced due to
1354 /// assertion of external PROCHOT.
1355 ///
1356 UINT32 PROCHOT_Status:1;
1357 ///
1358 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced due to a
1359 /// thermal event.
1360 ///
1361 UINT32 ThermalStatus:1;
1362 UINT32 Reserved1:3;
1363 ///
1364 /// [Bit 5] Running Average Thermal Limit Status (R0) When set, frequency
1365 /// is reduced due to running average thermal limit.
1366 ///
1367 UINT32 RunningAverageThermalLimitStatus:1;
1368 ///
1369 /// [Bit 6] VR Therm Alert Status (R0) When set, frequency is reduced due
1370 /// to a thermal alert from a processor Voltage Regulator.
1371 ///
1372 UINT32 VRThermAlertStatus:1;
1373 ///
1374 /// [Bit 7] VR Thermal Design Current Status (R0) When set, frequency is
1375 /// reduced due to VR TDC limit.
1376 ///
1377 UINT32 VRThermalDesignCurrentStatus:1;
1378 ///
1379 /// [Bit 8] Other Status (R0) When set, frequency is reduced due to
1380 /// electrical or other constraints.
1381 ///
1382 UINT32 OtherStatus:1;
1383 UINT32 Reserved2:1;
1384 ///
1385 /// [Bit 10] Package/Platform-Level Power Limiting PL1 Status (R0) When
1386 /// set, frequency is reduced due to package/Platform-level power limiting
1387 /// PL1.
1388 ///
1389 UINT32 PL1Status:1;
1390 ///
1391 /// [Bit 11] Package/Platform-Level PL2 Power Limiting Status (R0) When
1392 /// set, frequency is reduced due to package/Platform-level power limiting
1393 /// PL2/PL3.
1394 ///
1395 UINT32 PL2Status:1;
1396 UINT32 Reserved3:4;
1397 ///
1398 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
1399 /// has asserted since the log bit was last cleared. This log bit will
1400 /// remain set until cleared by software writing 0.
1401 ///
1402 UINT32 PROCHOT_Log:1;
1403 ///
1404 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
1405 /// has asserted since the log bit was last cleared. This log bit will
1406 /// remain set until cleared by software writing 0.
1407 ///
1408 UINT32 ThermalLog:1;
1409 UINT32 Reserved4:3;
1410 ///
1411 /// [Bit 21] Running Average Thermal Limit Log When set, indicates that
1412 /// the RATL Status bit has asserted since the log bit was last cleared.
1413 /// This log bit will remain set until cleared by software writing 0.
1414 ///
1415 UINT32 RunningAverageThermalLimitLog:1;
1416 ///
1417 /// [Bit 22] VR Therm Alert Log When set, indicates that the VR Therm
1418 /// Alert Status bit has asserted since the log bit was last cleared. This
1419 /// log bit will remain set until cleared by software writing 0.
1420 ///
1421 UINT32 VRThermAlertLog:1;
1422 ///
1423 /// [Bit 23] VR Thermal Design Current Log When set, indicates that the
1424 /// VR Therm Alert Status bit has asserted since the log bit was last
1425 /// cleared. This log bit will remain set until cleared by software
1426 /// writing 0.
1427 ///
1428 UINT32 VRThermalDesignCurrentLog:1;
1429 ///
1430 /// [Bit 24] Other Log When set, indicates that the OTHER Status bit has
1431 /// asserted since the log bit was last cleared. This log bit will remain
1432 /// set until cleared by software writing 0.
1433 ///
1434 UINT32 OtherLog:1;
1435 UINT32 Reserved5:1;
1436 ///
1437 /// [Bit 26] Package/Platform-Level PL1 Power Limiting Log When set,
1438 /// indicates that the Package/Platform Level PL1 Power Limiting Status
1439 /// bit has asserted since the log bit was last cleared. This log bit will
1440 /// remain set until cleared by software writing 0.
1441 ///
1442 UINT32 PL1Log:1;
1443 ///
1444 /// [Bit 27] Package/Platform-Level PL2 Power Limiting Log When set,
1445 /// indicates that the Package/Platform Level PL2 Power Limiting Status
1446 /// bit has asserted since the log bit was last cleared. This log bit will
1447 /// remain set until cleared by software writing 0.
1448 ///
1449 UINT32 PL2Log:1;
1450 UINT32 Reserved6:4;
1451 UINT32 Reserved7:32;
1452 } Bits;
1453 ///
1454 /// All bit fields as a 32-bit value
1455 ///
1456 UINT32 Uint32;
1457 ///
1458 /// All bit fields as a 64-bit value
1459 ///
1460 UINT64 Uint64;
1461 } MSR_SKYLAKE_RING_PERF_LIMIT_REASONS_REGISTER;
1462
1463
1464 /**
1465 Thread. Last Branch Record n To IP (R/W) One of 32 triplets of last branch
1466 record registers on the last branch record stack. This part of the stack
1467 contains pointers to the destination instruction. See also: - Last Branch
1468 Record Stack TOS at 1C9H - Section 17.10.
1469
1470 @param ECX MSR_SKYLAKE_LASTBRANCH_n_TO_IP
1471 @param EAX Lower 32-bits of MSR value.
1472 @param EDX Upper 32-bits of MSR value.
1473
1474 <b>Example usage</b>
1475 @code
1476 UINT64 Msr;
1477
1478 Msr = AsmReadMsr64 (MSR_SKYLAKE_LASTBRANCH_16_TO_IP);
1479 AsmWriteMsr64 (MSR_SKYLAKE_LASTBRANCH_16_TO_IP, Msr);
1480 @endcode
1481 @note MSR_SKYLAKE_LASTBRANCH_16_TO_IP is defined as MSR_LASTBRANCH_16_TO_IP in SDM.
1482 MSR_SKYLAKE_LASTBRANCH_17_TO_IP is defined as MSR_LASTBRANCH_17_TO_IP in SDM.
1483 MSR_SKYLAKE_LASTBRANCH_18_TO_IP is defined as MSR_LASTBRANCH_18_TO_IP in SDM.
1484 MSR_SKYLAKE_LASTBRANCH_19_TO_IP is defined as MSR_LASTBRANCH_19_TO_IP in SDM.
1485 MSR_SKYLAKE_LASTBRANCH_20_TO_IP is defined as MSR_LASTBRANCH_20_TO_IP in SDM.
1486 MSR_SKYLAKE_LASTBRANCH_21_TO_IP is defined as MSR_LASTBRANCH_21_TO_IP in SDM.
1487 MSR_SKYLAKE_LASTBRANCH_22_TO_IP is defined as MSR_LASTBRANCH_22_TO_IP in SDM.
1488 MSR_SKYLAKE_LASTBRANCH_23_TO_IP is defined as MSR_LASTBRANCH_23_TO_IP in SDM.
1489 MSR_SKYLAKE_LASTBRANCH_24_TO_IP is defined as MSR_LASTBRANCH_24_TO_IP in SDM.
1490 MSR_SKYLAKE_LASTBRANCH_25_TO_IP is defined as MSR_LASTBRANCH_25_TO_IP in SDM.
1491 MSR_SKYLAKE_LASTBRANCH_26_TO_IP is defined as MSR_LASTBRANCH_26_TO_IP in SDM.
1492 MSR_SKYLAKE_LASTBRANCH_27_TO_IP is defined as MSR_LASTBRANCH_27_TO_IP in SDM.
1493 MSR_SKYLAKE_LASTBRANCH_28_TO_IP is defined as MSR_LASTBRANCH_28_TO_IP in SDM.
1494 MSR_SKYLAKE_LASTBRANCH_29_TO_IP is defined as MSR_LASTBRANCH_29_TO_IP in SDM.
1495 MSR_SKYLAKE_LASTBRANCH_30_TO_IP is defined as MSR_LASTBRANCH_30_TO_IP in SDM.
1496 MSR_SKYLAKE_LASTBRANCH_31_TO_IP is defined as MSR_LASTBRANCH_31_TO_IP in SDM.
1497 @{
1498 **/
1499 #define MSR_SKYLAKE_LASTBRANCH_16_TO_IP 0x000006D0
1500 #define MSR_SKYLAKE_LASTBRANCH_17_TO_IP 0x000006D1
1501 #define MSR_SKYLAKE_LASTBRANCH_18_TO_IP 0x000006D2
1502 #define MSR_SKYLAKE_LASTBRANCH_19_TO_IP 0x000006D3
1503 #define MSR_SKYLAKE_LASTBRANCH_20_TO_IP 0x000006D4
1504 #define MSR_SKYLAKE_LASTBRANCH_21_TO_IP 0x000006D5
1505 #define MSR_SKYLAKE_LASTBRANCH_22_TO_IP 0x000006D6
1506 #define MSR_SKYLAKE_LASTBRANCH_23_TO_IP 0x000006D7
1507 #define MSR_SKYLAKE_LASTBRANCH_24_TO_IP 0x000006D8
1508 #define MSR_SKYLAKE_LASTBRANCH_25_TO_IP 0x000006D9
1509 #define MSR_SKYLAKE_LASTBRANCH_26_TO_IP 0x000006DA
1510 #define MSR_SKYLAKE_LASTBRANCH_27_TO_IP 0x000006DB
1511 #define MSR_SKYLAKE_LASTBRANCH_28_TO_IP 0x000006DC
1512 #define MSR_SKYLAKE_LASTBRANCH_29_TO_IP 0x000006DD
1513 #define MSR_SKYLAKE_LASTBRANCH_30_TO_IP 0x000006DE
1514 #define MSR_SKYLAKE_LASTBRANCH_31_TO_IP 0x000006DF
1515 /// @}
1516
1517
1518 /**
1519 Thread. Last Branch Record n Additional Information (R/W) One of 32 triplet
1520 of last branch record registers on the last branch record stack. This part
1521 of the stack contains flag, TSX-related and elapsed cycle information. See
1522 also: - Last Branch Record Stack TOS at 1C9H - Section 17.7.1, "LBR
1523 Stack.".
1524
1525 @param ECX MSR_SKYLAKE_LBR_INFO_n
1526 @param EAX Lower 32-bits of MSR value.
1527 @param EDX Upper 32-bits of MSR value.
1528
1529 <b>Example usage</b>
1530 @code
1531 UINT64 Msr;
1532
1533 Msr = AsmReadMsr64 (MSR_SKYLAKE_LBR_INFO_0);
1534 AsmWriteMsr64 (MSR_SKYLAKE_LBR_INFO_0, Msr);
1535 @endcode
1536 @note MSR_SKYLAKE_LBR_INFO_0 is defined as MSR_LBR_INFO_0 in SDM.
1537 MSR_SKYLAKE_LBR_INFO_1 is defined as MSR_LBR_INFO_1 in SDM.
1538 MSR_SKYLAKE_LBR_INFO_2 is defined as MSR_LBR_INFO_2 in SDM.
1539 MSR_SKYLAKE_LBR_INFO_3 is defined as MSR_LBR_INFO_3 in SDM.
1540 MSR_SKYLAKE_LBR_INFO_4 is defined as MSR_LBR_INFO_4 in SDM.
1541 MSR_SKYLAKE_LBR_INFO_5 is defined as MSR_LBR_INFO_5 in SDM.
1542 MSR_SKYLAKE_LBR_INFO_6 is defined as MSR_LBR_INFO_6 in SDM.
1543 MSR_SKYLAKE_LBR_INFO_7 is defined as MSR_LBR_INFO_7 in SDM.
1544 MSR_SKYLAKE_LBR_INFO_8 is defined as MSR_LBR_INFO_8 in SDM.
1545 MSR_SKYLAKE_LBR_INFO_9 is defined as MSR_LBR_INFO_9 in SDM.
1546 MSR_SKYLAKE_LBR_INFO_10 is defined as MSR_LBR_INFO_10 in SDM.
1547 MSR_SKYLAKE_LBR_INFO_11 is defined as MSR_LBR_INFO_11 in SDM.
1548 MSR_SKYLAKE_LBR_INFO_12 is defined as MSR_LBR_INFO_12 in SDM.
1549 MSR_SKYLAKE_LBR_INFO_13 is defined as MSR_LBR_INFO_13 in SDM.
1550 MSR_SKYLAKE_LBR_INFO_14 is defined as MSR_LBR_INFO_14 in SDM.
1551 MSR_SKYLAKE_LBR_INFO_15 is defined as MSR_LBR_INFO_15 in SDM.
1552 MSR_SKYLAKE_LBR_INFO_16 is defined as MSR_LBR_INFO_16 in SDM.
1553 MSR_SKYLAKE_LBR_INFO_17 is defined as MSR_LBR_INFO_17 in SDM.
1554 MSR_SKYLAKE_LBR_INFO_18 is defined as MSR_LBR_INFO_18 in SDM.
1555 MSR_SKYLAKE_LBR_INFO_19 is defined as MSR_LBR_INFO_19 in SDM.
1556 MSR_SKYLAKE_LBR_INFO_20 is defined as MSR_LBR_INFO_20 in SDM.
1557 MSR_SKYLAKE_LBR_INFO_21 is defined as MSR_LBR_INFO_21 in SDM.
1558 MSR_SKYLAKE_LBR_INFO_22 is defined as MSR_LBR_INFO_22 in SDM.
1559 MSR_SKYLAKE_LBR_INFO_23 is defined as MSR_LBR_INFO_23 in SDM.
1560 MSR_SKYLAKE_LBR_INFO_24 is defined as MSR_LBR_INFO_24 in SDM.
1561 MSR_SKYLAKE_LBR_INFO_25 is defined as MSR_LBR_INFO_25 in SDM.
1562 MSR_SKYLAKE_LBR_INFO_26 is defined as MSR_LBR_INFO_26 in SDM.
1563 MSR_SKYLAKE_LBR_INFO_27 is defined as MSR_LBR_INFO_27 in SDM.
1564 MSR_SKYLAKE_LBR_INFO_28 is defined as MSR_LBR_INFO_28 in SDM.
1565 MSR_SKYLAKE_LBR_INFO_29 is defined as MSR_LBR_INFO_29 in SDM.
1566 MSR_SKYLAKE_LBR_INFO_30 is defined as MSR_LBR_INFO_30 in SDM.
1567 MSR_SKYLAKE_LBR_INFO_31 is defined as MSR_LBR_INFO_31 in SDM.
1568 @{
1569 **/
1570 #define MSR_SKYLAKE_LBR_INFO_0 0x00000DC0
1571 #define MSR_SKYLAKE_LBR_INFO_1 0x00000DC1
1572 #define MSR_SKYLAKE_LBR_INFO_2 0x00000DC2
1573 #define MSR_SKYLAKE_LBR_INFO_3 0x00000DC3
1574 #define MSR_SKYLAKE_LBR_INFO_4 0x00000DC4
1575 #define MSR_SKYLAKE_LBR_INFO_5 0x00000DC5
1576 #define MSR_SKYLAKE_LBR_INFO_6 0x00000DC6
1577 #define MSR_SKYLAKE_LBR_INFO_7 0x00000DC7
1578 #define MSR_SKYLAKE_LBR_INFO_8 0x00000DC8
1579 #define MSR_SKYLAKE_LBR_INFO_9 0x00000DC9
1580 #define MSR_SKYLAKE_LBR_INFO_10 0x00000DCA
1581 #define MSR_SKYLAKE_LBR_INFO_11 0x00000DCB
1582 #define MSR_SKYLAKE_LBR_INFO_12 0x00000DCC
1583 #define MSR_SKYLAKE_LBR_INFO_13 0x00000DCD
1584 #define MSR_SKYLAKE_LBR_INFO_14 0x00000DCE
1585 #define MSR_SKYLAKE_LBR_INFO_15 0x00000DCF
1586 #define MSR_SKYLAKE_LBR_INFO_16 0x00000DD0
1587 #define MSR_SKYLAKE_LBR_INFO_17 0x00000DD1
1588 #define MSR_SKYLAKE_LBR_INFO_18 0x00000DD2
1589 #define MSR_SKYLAKE_LBR_INFO_19 0x00000DD3
1590 #define MSR_SKYLAKE_LBR_INFO_20 0x00000DD4
1591 #define MSR_SKYLAKE_LBR_INFO_21 0x00000DD5
1592 #define MSR_SKYLAKE_LBR_INFO_22 0x00000DD6
1593 #define MSR_SKYLAKE_LBR_INFO_23 0x00000DD7
1594 #define MSR_SKYLAKE_LBR_INFO_24 0x00000DD8
1595 #define MSR_SKYLAKE_LBR_INFO_25 0x00000DD9
1596 #define MSR_SKYLAKE_LBR_INFO_26 0x00000DDA
1597 #define MSR_SKYLAKE_LBR_INFO_27 0x00000DDB
1598 #define MSR_SKYLAKE_LBR_INFO_28 0x00000DDC
1599 #define MSR_SKYLAKE_LBR_INFO_29 0x00000DDD
1600 #define MSR_SKYLAKE_LBR_INFO_30 0x00000DDE
1601 #define MSR_SKYLAKE_LBR_INFO_31 0x00000DDF
1602 /// @}
1603
1604
1605 /**
1606 Package. Uncore fixed counter control (R/W).
1607
1608 @param ECX MSR_SKYLAKE_UNC_PERF_FIXED_CTRL (0x00000394)
1609 @param EAX Lower 32-bits of MSR value.
1610 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER.
1611 @param EDX Upper 32-bits of MSR value.
1612 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER.
1613
1614 <b>Example usage</b>
1615 @code
1616 MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER Msr;
1617
1618 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTRL);
1619 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTRL, Msr.Uint64);
1620 @endcode
1621 @note MSR_SKYLAKE_UNC_PERF_FIXED_CTRL is defined as MSR_UNC_PERF_FIXED_CTRL in SDM.
1622 **/
1623 #define MSR_SKYLAKE_UNC_PERF_FIXED_CTRL 0x00000394
1624
1625 /**
1626 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_FIXED_CTRL
1627 **/
1628 typedef union {
1629 ///
1630 /// Individual bit fields
1631 ///
1632 struct {
1633 UINT32 Reserved1:20;
1634 ///
1635 /// [Bit 20] Enable overflow propagation.
1636 ///
1637 UINT32 EnableOverflow:1;
1638 UINT32 Reserved2:1;
1639 ///
1640 /// [Bit 22] Enable counting.
1641 ///
1642 UINT32 EnableCounting:1;
1643 UINT32 Reserved3:9;
1644 UINT32 Reserved4:32;
1645 } Bits;
1646 ///
1647 /// All bit fields as a 32-bit value
1648 ///
1649 UINT32 Uint32;
1650 ///
1651 /// All bit fields as a 64-bit value
1652 ///
1653 UINT64 Uint64;
1654 } MSR_SKYLAKE_UNC_PERF_FIXED_CTRL_REGISTER;
1655
1656
1657 /**
1658 Package. Uncore fixed counter.
1659
1660 @param ECX MSR_SKYLAKE_UNC_PERF_FIXED_CTR (0x00000395)
1661 @param EAX Lower 32-bits of MSR value.
1662 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER.
1663 @param EDX Upper 32-bits of MSR value.
1664 Described by the type MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER.
1665
1666 <b>Example usage</b>
1667 @code
1668 MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER Msr;
1669
1670 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTR);
1671 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_FIXED_CTR, Msr.Uint64);
1672 @endcode
1673 @note MSR_SKYLAKE_UNC_PERF_FIXED_CTR is defined as MSR_UNC_PERF_FIXED_CTR in SDM.
1674 **/
1675 #define MSR_SKYLAKE_UNC_PERF_FIXED_CTR 0x00000395
1676
1677 /**
1678 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_FIXED_CTR
1679 **/
1680 typedef union {
1681 ///
1682 /// Individual bit fields
1683 ///
1684 struct {
1685 ///
1686 /// [Bits 31:0] Current count.
1687 ///
1688 UINT32 CurrentCount:32;
1689 ///
1690 /// [Bits 43:32] Current count.
1691 ///
1692 UINT32 CurrentCountHi:12;
1693 UINT32 Reserved:20;
1694 } Bits;
1695 ///
1696 /// All bit fields as a 64-bit value
1697 ///
1698 UINT64 Uint64;
1699 } MSR_SKYLAKE_UNC_PERF_FIXED_CTR_REGISTER;
1700
1701
1702 /**
1703 Package. Uncore C-Box configuration information (R/O).
1704
1705 @param ECX MSR_SKYLAKE_UNC_CBO_CONFIG (0x00000396)
1706 @param EAX Lower 32-bits of MSR value.
1707 Described by the type MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER.
1708 @param EDX Upper 32-bits of MSR value.
1709 Described by the type MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER.
1710
1711 <b>Example usage</b>
1712 @code
1713 MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER Msr;
1714
1715 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_CONFIG);
1716 @endcode
1717 @note MSR_SKYLAKE_UNC_CBO_CONFIG is defined as MSR_UNC_CBO_CONFIG in SDM.
1718 **/
1719 #define MSR_SKYLAKE_UNC_CBO_CONFIG 0x00000396
1720
1721 /**
1722 MSR information returned for MSR index #MSR_SKYLAKE_UNC_CBO_CONFIG
1723 **/
1724 typedef union {
1725 ///
1726 /// Individual bit fields
1727 ///
1728 struct {
1729 ///
1730 /// [Bits 3:0] Specifies the number of C-Box units with programmable
1731 /// counters (including processor cores and processor graphics),.
1732 ///
1733 UINT32 CBox:4;
1734 UINT32 Reserved1:28;
1735 UINT32 Reserved2:32;
1736 } Bits;
1737 ///
1738 /// All bit fields as a 32-bit value
1739 ///
1740 UINT32 Uint32;
1741 ///
1742 /// All bit fields as a 64-bit value
1743 ///
1744 UINT64 Uint64;
1745 } MSR_SKYLAKE_UNC_CBO_CONFIG_REGISTER;
1746
1747
1748 /**
1749 Package. Uncore Arb unit, performance counter 0.
1750
1751 @param ECX MSR_SKYLAKE_UNC_ARB_PERFCTR0 (0x000003B0)
1752 @param EAX Lower 32-bits of MSR value.
1753 @param EDX Upper 32-bits of MSR value.
1754
1755 <b>Example usage</b>
1756 @code
1757 UINT64 Msr;
1758
1759 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR0);
1760 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR0, Msr);
1761 @endcode
1762 @note MSR_SKYLAKE_UNC_ARB_PERFCTR0 is defined as MSR_UNC_ARB_PERFCTR0 in SDM.
1763 **/
1764 #define MSR_SKYLAKE_UNC_ARB_PERFCTR0 0x000003B0
1765
1766
1767 /**
1768 Package. Uncore Arb unit, performance counter 1.
1769
1770 @param ECX MSR_SKYLAKE_UNC_ARB_PERFCTR1 (0x000003B1)
1771 @param EAX Lower 32-bits of MSR value.
1772 @param EDX Upper 32-bits of MSR value.
1773
1774 <b>Example usage</b>
1775 @code
1776 UINT64 Msr;
1777
1778 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR1);
1779 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFCTR1, Msr);
1780 @endcode
1781 @note MSR_SKYLAKE_UNC_ARB_PERFCTR1 is defined as MSR_UNC_ARB_PERFCTR1 in SDM.
1782 **/
1783 #define MSR_SKYLAKE_UNC_ARB_PERFCTR1 0x000003B1
1784
1785
1786 /**
1787 Package. Uncore Arb unit, counter 0 event select MSR.
1788
1789 @param ECX MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 (0x000003B2)
1790 @param EAX Lower 32-bits of MSR value.
1791 @param EDX Upper 32-bits of MSR value.
1792
1793 <b>Example usage</b>
1794 @code
1795 UINT64 Msr;
1796
1797 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0);
1798 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0, Msr);
1799 @endcode
1800 @note MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 is defined as MSR_UNC_ARB_PERFEVTSEL0 in SDM.
1801 **/
1802 #define MSR_SKYLAKE_UNC_ARB_PERFEVTSEL0 0x000003B2
1803
1804
1805 /**
1806 Package. Uncore Arb unit, counter 1 event select MSR.
1807
1808 @param ECX MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 (0x000003B3)
1809 @param EAX Lower 32-bits of MSR value.
1810 @param EDX Upper 32-bits of MSR value.
1811
1812 <b>Example usage</b>
1813 @code
1814 UINT64 Msr;
1815
1816 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1);
1817 AsmWriteMsr64 (MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1, Msr);
1818 @endcode
1819 @note MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 is defined as MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 in SDM.
1820 **/
1821 #define MSR_SKYLAKE_UNC_ARB_PERFEVTSEL1 0x000003B3
1822
1823
1824 /**
1825 Package. Uncore C-Box 0, counter 0 event select MSR.
1826
1827 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 (0x00000700)
1828 @param EAX Lower 32-bits of MSR value.
1829 @param EDX Upper 32-bits of MSR value.
1830
1831 <b>Example usage</b>
1832 @code
1833 UINT64 Msr;
1834
1835 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0);
1836 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0, Msr);
1837 @endcode
1838 @note MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 is defined as MSR_UNC_CBO_0_PERFEVTSEL0 in SDM.
1839 **/
1840 #define MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL0 0x00000700
1841
1842
1843 /**
1844 Package. Uncore C-Box 0, counter 1 event select MSR.
1845
1846 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 (0x00000701)
1847 @param EAX Lower 32-bits of MSR value.
1848 @param EDX Upper 32-bits of MSR value.
1849
1850 <b>Example usage</b>
1851 @code
1852 UINT64 Msr;
1853
1854 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1);
1855 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1, Msr);
1856 @endcode
1857 @note MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 is defined as MSR_UNC_CBO_0_PERFEVTSEL1 in SDM.
1858 **/
1859 #define MSR_SKYLAKE_UNC_CBO_0_PERFEVTSEL1 0x00000701
1860
1861
1862 /**
1863 Package. Uncore C-Box 0, performance counter 0.
1864
1865 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 (0x00000706)
1866 @param EAX Lower 32-bits of MSR value.
1867 @param EDX Upper 32-bits of MSR value.
1868
1869 <b>Example usage</b>
1870 @code
1871 UINT64 Msr;
1872
1873 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR0);
1874 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR0, Msr);
1875 @endcode
1876 @note MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 is defined as MSR_UNC_CBO_0_PERFCTR0 in SDM.
1877 **/
1878 #define MSR_SKYLAKE_UNC_CBO_0_PERFCTR0 0x00000706
1879
1880
1881 /**
1882 Package. Uncore C-Box 0, performance counter 1.
1883
1884 @param ECX MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 (0x00000707)
1885 @param EAX Lower 32-bits of MSR value.
1886 @param EDX Upper 32-bits of MSR value.
1887
1888 <b>Example usage</b>
1889 @code
1890 UINT64 Msr;
1891
1892 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR1);
1893 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_0_PERFCTR1, Msr);
1894 @endcode
1895 @note MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 is defined as MSR_UNC_CBO_0_PERFCTR1 in SDM.
1896 **/
1897 #define MSR_SKYLAKE_UNC_CBO_0_PERFCTR1 0x00000707
1898
1899
1900 /**
1901 Package. Uncore C-Box 1, counter 0 event select MSR.
1902
1903 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 (0x00000710)
1904 @param EAX Lower 32-bits of MSR value.
1905 @param EDX Upper 32-bits of MSR value.
1906
1907 <b>Example usage</b>
1908 @code
1909 UINT64 Msr;
1910
1911 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0);
1912 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0, Msr);
1913 @endcode
1914 @note MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 is defined as MSR_UNC_CBO_1_PERFEVTSEL0 in SDM.
1915 **/
1916 #define MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL0 0x00000710
1917
1918
1919 /**
1920 Package. Uncore C-Box 1, counter 1 event select MSR.
1921
1922 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 (0x00000711)
1923 @param EAX Lower 32-bits of MSR value.
1924 @param EDX Upper 32-bits of MSR value.
1925
1926 <b>Example usage</b>
1927 @code
1928 UINT64 Msr;
1929
1930 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1);
1931 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1, Msr);
1932 @endcode
1933 @note MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 is defined as MSR_UNC_CBO_1_PERFEVTSEL1 in SDM.
1934 **/
1935 #define MSR_SKYLAKE_UNC_CBO_1_PERFEVTSEL1 0x00000711
1936
1937
1938 /**
1939 Package. Uncore C-Box 1, performance counter 0.
1940
1941 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 (0x00000716)
1942 @param EAX Lower 32-bits of MSR value.
1943 @param EDX Upper 32-bits of MSR value.
1944
1945 <b>Example usage</b>
1946 @code
1947 UINT64 Msr;
1948
1949 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR0);
1950 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR0, Msr);
1951 @endcode
1952 @note MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 is defined as MSR_UNC_CBO_1_PERFCTR0 in SDM.
1953 **/
1954 #define MSR_SKYLAKE_UNC_CBO_1_PERFCTR0 0x00000716
1955
1956
1957 /**
1958 Package. Uncore C-Box 1, performance counter 1.
1959
1960 @param ECX MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 (0x00000717)
1961 @param EAX Lower 32-bits of MSR value.
1962 @param EDX Upper 32-bits of MSR value.
1963
1964 <b>Example usage</b>
1965 @code
1966 UINT64 Msr;
1967
1968 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR1);
1969 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_1_PERFCTR1, Msr);
1970 @endcode
1971 @note MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 is defined as MSR_UNC_CBO_1_PERFCTR1 in SDM.
1972 **/
1973 #define MSR_SKYLAKE_UNC_CBO_1_PERFCTR1 0x00000717
1974
1975
1976 /**
1977 Package. Uncore C-Box 2, counter 0 event select MSR.
1978
1979 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 (0x00000720)
1980 @param EAX Lower 32-bits of MSR value.
1981 @param EDX Upper 32-bits of MSR value.
1982
1983 <b>Example usage</b>
1984 @code
1985 UINT64 Msr;
1986
1987 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0);
1988 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0, Msr);
1989 @endcode
1990 @note MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 is defined as MSR_UNC_CBO_2_PERFEVTSEL0 in SDM.
1991 **/
1992 #define MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL0 0x00000720
1993
1994
1995 /**
1996 Package. Uncore C-Box 2, counter 1 event select MSR.
1997
1998 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 (0x00000721)
1999 @param EAX Lower 32-bits of MSR value.
2000 @param EDX Upper 32-bits of MSR value.
2001
2002 <b>Example usage</b>
2003 @code
2004 UINT64 Msr;
2005
2006 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1);
2007 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1, Msr);
2008 @endcode
2009 @note MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 is defined as MSR_UNC_CBO_2_PERFEVTSEL1 in SDM.
2010 **/
2011 #define MSR_SKYLAKE_UNC_CBO_2_PERFEVTSEL1 0x00000721
2012
2013
2014 /**
2015 Package. Uncore C-Box 2, performance counter 0.
2016
2017 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 (0x00000726)
2018 @param EAX Lower 32-bits of MSR value.
2019 @param EDX Upper 32-bits of MSR value.
2020
2021 <b>Example usage</b>
2022 @code
2023 UINT64 Msr;
2024
2025 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR0);
2026 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR0, Msr);
2027 @endcode
2028 @note MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 is defined as MSR_UNC_CBO_2_PERFCTR0 in SDM.
2029 **/
2030 #define MSR_SKYLAKE_UNC_CBO_2_PERFCTR0 0x00000726
2031
2032
2033 /**
2034 Package. Uncore C-Box 2, performance counter 1.
2035
2036 @param ECX MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 (0x00000727)
2037 @param EAX Lower 32-bits of MSR value.
2038 @param EDX Upper 32-bits of MSR value.
2039
2040 <b>Example usage</b>
2041 @code
2042 UINT64 Msr;
2043
2044 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR1);
2045 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_2_PERFCTR1, Msr);
2046 @endcode
2047 @note MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 is defined as MSR_UNC_CBO_2_PERFCTR1 in SDM.
2048 **/
2049 #define MSR_SKYLAKE_UNC_CBO_2_PERFCTR1 0x00000727
2050
2051
2052 /**
2053 Package. Uncore C-Box 3, counter 0 event select MSR.
2054
2055 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 (0x00000730)
2056 @param EAX Lower 32-bits of MSR value.
2057 @param EDX Upper 32-bits of MSR value.
2058
2059 <b>Example usage</b>
2060 @code
2061 UINT64 Msr;
2062
2063 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0);
2064 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0, Msr);
2065 @endcode
2066 @note MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 is defined as MSR_UNC_CBO_3_PERFEVTSEL0 in SDM.
2067 **/
2068 #define MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL0 0x00000730
2069
2070
2071 /**
2072 Package. Uncore C-Box 3, counter 1 event select MSR.
2073
2074 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 (0x00000731)
2075 @param EAX Lower 32-bits of MSR value.
2076 @param EDX Upper 32-bits of MSR value.
2077
2078 <b>Example usage</b>
2079 @code
2080 UINT64 Msr;
2081
2082 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1);
2083 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1, Msr);
2084 @endcode
2085 @note MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 is defined as MSR_UNC_CBO_3_PERFEVTSEL1 in SDM.
2086 **/
2087 #define MSR_SKYLAKE_UNC_CBO_3_PERFEVTSEL1 0x00000731
2088
2089
2090 /**
2091 Package. Uncore C-Box 3, performance counter 0.
2092
2093 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 (0x00000736)
2094 @param EAX Lower 32-bits of MSR value.
2095 @param EDX Upper 32-bits of MSR value.
2096
2097 <b>Example usage</b>
2098 @code
2099 UINT64 Msr;
2100
2101 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR0);
2102 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR0, Msr);
2103 @endcode
2104 @note MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 is defined as MSR_UNC_CBO_3_PERFCTR0 in SDM.
2105 **/
2106 #define MSR_SKYLAKE_UNC_CBO_3_PERFCTR0 0x00000736
2107
2108
2109 /**
2110 Package. Uncore C-Box 3, performance counter 1.
2111
2112 @param ECX MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 (0x00000737)
2113 @param EAX Lower 32-bits of MSR value.
2114 @param EDX Upper 32-bits of MSR value.
2115
2116 <b>Example usage</b>
2117 @code
2118 UINT64 Msr;
2119
2120 Msr = AsmReadMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR1);
2121 AsmWriteMsr64 (MSR_SKYLAKE_UNC_CBO_3_PERFCTR1, Msr);
2122 @endcode
2123 @note MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 is defined as MSR_UNC_CBO_3_PERFCTR1 in SDM.
2124 **/
2125 #define MSR_SKYLAKE_UNC_CBO_3_PERFCTR1 0x00000737
2126
2127
2128 /**
2129 Package. Uncore PMU global control.
2130
2131 @param ECX MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL (0x00000E01)
2132 @param EAX Lower 32-bits of MSR value.
2133 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER.
2134 @param EDX Upper 32-bits of MSR value.
2135 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER.
2136
2137 <b>Example usage</b>
2138 @code
2139 MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER Msr;
2140
2141 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL);
2142 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL, Msr.Uint64);
2143 @endcode
2144 @note MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL is defined as MSR_UNC_PERF_GLOBAL_CTRL in SDM.
2145 **/
2146 #define MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL 0x00000E01
2147
2148 /**
2149 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL
2150 **/
2151 typedef union {
2152 ///
2153 /// Individual bit fields
2154 ///
2155 struct {
2156 ///
2157 /// [Bit 0] Slice 0 select.
2158 ///
2159 UINT32 PMI_Sel_Slice0:1;
2160 ///
2161 /// [Bit 1] Slice 1 select.
2162 ///
2163 UINT32 PMI_Sel_Slice1:1;
2164 ///
2165 /// [Bit 2] Slice 2 select.
2166 ///
2167 UINT32 PMI_Sel_Slice2:1;
2168 ///
2169 /// [Bit 3] Slice 3 select.
2170 ///
2171 UINT32 PMI_Sel_Slice3:1;
2172 ///
2173 /// [Bit 4] Slice 4select.
2174 ///
2175 UINT32 PMI_Sel_Slice4:1;
2176 UINT32 Reserved1:14;
2177 UINT32 Reserved2:10;
2178 ///
2179 /// [Bit 29] Enable all uncore counters.
2180 ///
2181 UINT32 EN:1;
2182 ///
2183 /// [Bit 30] Enable wake on PMI.
2184 ///
2185 UINT32 WakePMI:1;
2186 ///
2187 /// [Bit 31] Enable Freezing counter when overflow.
2188 ///
2189 UINT32 FREEZE:1;
2190 UINT32 Reserved3:32;
2191 } Bits;
2192 ///
2193 /// All bit fields as a 32-bit value
2194 ///
2195 UINT32 Uint32;
2196 ///
2197 /// All bit fields as a 64-bit value
2198 ///
2199 UINT64 Uint64;
2200 } MSR_SKYLAKE_UNC_PERF_GLOBAL_CTRL_REGISTER;
2201
2202
2203 /**
2204 Package. Uncore PMU main status.
2205
2206 @param ECX MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS (0x00000E02)
2207 @param EAX Lower 32-bits of MSR value.
2208 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER.
2209 @param EDX Upper 32-bits of MSR value.
2210 Described by the type MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER.
2211
2212 <b>Example usage</b>
2213 @code
2214 MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER Msr;
2215
2216 Msr.Uint64 = AsmReadMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS);
2217 AsmWriteMsr64 (MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS, Msr.Uint64);
2218 @endcode
2219 @note MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS is defined as MSR_UNC_PERF_GLOBAL_STATUS in SDM.
2220 **/
2221 #define MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS 0x00000E02
2222
2223 /**
2224 MSR information returned for MSR index #MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS
2225 **/
2226 typedef union {
2227 ///
2228 /// Individual bit fields
2229 ///
2230 struct {
2231 ///
2232 /// [Bit 0] Fixed counter overflowed.
2233 ///
2234 UINT32 Fixed:1;
2235 ///
2236 /// [Bit 1] An ARB counter overflowed.
2237 ///
2238 UINT32 ARB:1;
2239 UINT32 Reserved1:1;
2240 ///
2241 /// [Bit 3] A CBox counter overflowed (on any slice).
2242 ///
2243 UINT32 CBox:1;
2244 UINT32 Reserved2:28;
2245 UINT32 Reserved3:32;
2246 } Bits;
2247 ///
2248 /// All bit fields as a 32-bit value
2249 ///
2250 UINT32 Uint32;
2251 ///
2252 /// All bit fields as a 64-bit value
2253 ///
2254 UINT64 Uint64;
2255 } MSR_SKYLAKE_UNC_PERF_GLOBAL_STATUS_REGISTER;
2256
2257 #endif