]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/GoldmontMsr.h
UefiCpuPkg/Include/Register/Msr/GoldmontMsr.h: Add new MSR name and keep old one.
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / GoldmontMsr.h
1 /** @file
2 MSR Definitions for Intel Atom processors based on the Goldmont 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 __GOLDMONT_MSR_H__
25 #define __GOLDMONT_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Is Intel Atom processors based on the Goldmont 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_GOLDMONT_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
40 ( \
41 DisplayModel == 0x5C \
42 ) \
43 )
44
45 /**
46 Core. Control Features in Intel 64Processor (R/W).
47
48 @param ECX MSR_GOLDMONT_FEATURE_CONTROL (0x0000003A)
49 @param EAX Lower 32-bits of MSR value.
50 Described by the type MSR_GOLDMONT_FEATURE_CONTROL_REGISTER.
51 @param EDX Upper 32-bits of MSR value.
52 Described by the type MSR_GOLDMONT_FEATURE_CONTROL_REGISTER.
53
54 <b>Example usage</b>
55 @code
56 MSR_GOLDMONT_FEATURE_CONTROL_REGISTER Msr;
57
58 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_FEATURE_CONTROL);
59 AsmWriteMsr64 (MSR_GOLDMONT_FEATURE_CONTROL, Msr.Uint64);
60 @endcode
61 @note MSR_GOLDMONT_FEATURE_CONTROL is defined as IA32_FEATURE_CONTROL in SDM.
62 **/
63 #define MSR_GOLDMONT_FEATURE_CONTROL 0x0000003A
64
65 /**
66 MSR information returned for MSR index #MSR_GOLDMONT_FEATURE_CONTROL
67 **/
68 typedef union {
69 ///
70 /// Individual bit fields
71 ///
72 struct {
73 ///
74 /// [Bit 0] Lock bit (R/WL)
75 ///
76 UINT32 Lock:1;
77 ///
78 /// [Bit 1] Enable VMX inside SMX operation (R/WL)
79 ///
80 UINT32 EnableVmxInsideSmx:1;
81 ///
82 /// [Bit 2] Enable VMX outside SMX operation (R/WL)
83 ///
84 UINT32 EnableVmxOutsideSmx:1;
85 UINT32 Reserved1:5;
86 ///
87 /// [Bits 14:8] SENTER local function enables (R/WL)
88 ///
89 UINT32 SenterLocalFunctionEnables:7;
90 ///
91 /// [Bit 15] SENTER global functions enable (R/WL)
92 ///
93 UINT32 SenterGlobalEnable:1;
94 UINT32 Reserved2:2;
95 ///
96 /// [Bit 18] SGX global functions enable (R/WL)
97 ///
98 UINT32 SgxEnable:1;
99 UINT32 Reserved3:13;
100 UINT32 Reserved4:32;
101 } Bits;
102 ///
103 /// All bit fields as a 32-bit value
104 ///
105 UINT32 Uint32;
106 ///
107 /// All bit fields as a 64-bit value
108 ///
109 UINT64 Uint64;
110 } MSR_GOLDMONT_FEATURE_CONTROL_REGISTER;
111
112
113 /**
114 Package. See http://biosbits.org.
115
116 @param ECX MSR_GOLDMONT_PLATFORM_INFO (0x000000CE)
117 @param EAX Lower 32-bits of MSR value.
118 Described by the type MSR_GOLDMONT_PLATFORM_INFO_REGISTER.
119 @param EDX Upper 32-bits of MSR value.
120 Described by the type MSR_GOLDMONT_PLATFORM_INFO_REGISTER.
121
122 <b>Example usage</b>
123 @code
124 MSR_GOLDMONT_PLATFORM_INFO_REGISTER Msr;
125
126 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PLATFORM_INFO);
127 AsmWriteMsr64 (MSR_GOLDMONT_PLATFORM_INFO, Msr.Uint64);
128 @endcode
129 @note MSR_GOLDMONT_PLATFORM_INFO is defined as MSR_PLATFORM_INFO in SDM.
130 **/
131 #define MSR_GOLDMONT_PLATFORM_INFO 0x000000CE
132
133 /**
134 MSR information returned for MSR index #MSR_GOLDMONT_PLATFORM_INFO
135 **/
136 typedef union {
137 ///
138 /// Individual bit fields
139 ///
140 struct {
141 UINT32 Reserved1:8;
142 ///
143 /// [Bits 15:8] Package. Maximum Non-Turbo Ratio (R/O) The is the ratio
144 /// of the frequency that invariant TSC runs at. Frequency = ratio * 100
145 /// MHz.
146 ///
147 UINT32 MaximumNonTurboRatio:8;
148 UINT32 Reserved2:12;
149 ///
150 /// [Bit 28] Package. Programmable Ratio Limit for Turbo Mode (R/O) When
151 /// set to 1, indicates that Programmable Ratio Limits for Turbo mode is
152 /// enabled, and when set to 0, indicates Programmable Ratio Limits for
153 /// Turbo mode is disabled.
154 ///
155 UINT32 RatioLimit:1;
156 ///
157 /// [Bit 29] Package. Programmable TDP Limit for Turbo Mode (R/O) When
158 /// set to 1, indicates that TDP Limits for Turbo mode are programmable,
159 /// and when set to 0, indicates TDP Limit for Turbo mode is not
160 /// programmable.
161 ///
162 UINT32 TDPLimit:1;
163 ///
164 /// [Bit 30] Package. Programmable TJ OFFSET (R/O) When set to 1,
165 /// indicates that MSR_TEMPERATURE_TARGET.[27:24] is valid and writable to
166 /// specify an temperature offset.
167 ///
168 UINT32 TJOFFSET:1;
169 UINT32 Reserved3:1;
170 UINT32 Reserved4:8;
171 ///
172 /// [Bits 47:40] Package. Maximum Efficiency Ratio (R/O) The is the
173 /// minimum ratio (maximum efficiency) that the processor can operates, in
174 /// units of 100MHz.
175 ///
176 UINT32 MaximumEfficiencyRatio:8;
177 UINT32 Reserved5:16;
178 } Bits;
179 ///
180 /// All bit fields as a 64-bit value
181 ///
182 UINT64 Uint64;
183 } MSR_GOLDMONT_PLATFORM_INFO_REGISTER;
184
185
186 /**
187 Core. C-State Configuration Control (R/W) Note: C-state values are
188 processor specific C-state code names, unrelated to MWAIT extension C-state
189 parameters or ACPI CStates. See http://biosbits.org.
190
191 @param ECX MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL (0x000000E2)
192 @param EAX Lower 32-bits of MSR value.
193 Described by the type
194 MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL_REGISTER.
195 @param EDX Upper 32-bits of MSR value.
196 Described by the type
197 MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL_REGISTER.
198
199 <b>Example usage</b>
200 @code
201 MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
202
203 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL);
204 AsmWriteMsr64 (MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
205 @endcode
206 @note MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL is defined as MSR_PKG_CST_CONFIG_CONTROL in SDM.
207 **/
208 #define MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL 0x000000E2
209
210 /**
211 MSR information returned for MSR index #MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL
212 **/
213 typedef union {
214 ///
215 /// Individual bit fields
216 ///
217 struct {
218 ///
219 /// [Bits 3:0] Package C-State Limit (R/W) Specifies the lowest
220 /// processor-specific C-state code name (consuming the least power). for
221 /// the package. The default is set as factory-configured package C-state
222 /// limit. The following C-state code name encodings are supported: 0000b:
223 /// No limit 0001b: C1 0010b: C3 0011b: C6 0100b: C7 0101b: C7S 0110b: C8
224 /// 0111b: C9 1000b: C10.
225 ///
226 UINT32 Limit:4;
227 UINT32 Reserved1:6;
228 ///
229 /// [Bit 10] I/O MWAIT Redirection Enable (R/W) When set, will map
230 /// IO_read instructions sent to IO register specified by
231 /// MSR_PMG_IO_CAPTURE_BASE to MWAIT instructions.
232 ///
233 UINT32 IO_MWAIT:1;
234 UINT32 Reserved2:4;
235 ///
236 /// [Bit 15] CFG Lock (R/WO) When set, lock bits 15:0 of this register
237 /// until next reset.
238 ///
239 UINT32 CFGLock:1;
240 UINT32 Reserved3:16;
241 UINT32 Reserved4:32;
242 } Bits;
243 ///
244 /// All bit fields as a 32-bit value
245 ///
246 UINT32 Uint32;
247 ///
248 /// All bit fields as a 64-bit value
249 ///
250 UINT64 Uint64;
251 } MSR_GOLDMONT_PKG_CST_CONFIG_CONTROL_REGISTER;
252
253
254 /**
255 Core. Enhanced SMM Capabilities (SMM-RO) Reports SMM capability Enhancement.
256 Accessible only while in SMM.
257
258 @param ECX MSR_GOLDMONT_SMM_MCA_CAP (0x0000017D)
259 @param EAX Lower 32-bits of MSR value.
260 Described by the type MSR_GOLDMONT_SMM_MCA_CAP_REGISTER.
261 @param EDX Upper 32-bits of MSR value.
262 Described by the type MSR_GOLDMONT_SMM_MCA_CAP_REGISTER.
263
264 <b>Example usage</b>
265 @code
266 MSR_GOLDMONT_SMM_MCA_CAP_REGISTER Msr;
267
268 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_SMM_MCA_CAP);
269 AsmWriteMsr64 (MSR_GOLDMONT_SMM_MCA_CAP, Msr.Uint64);
270 @endcode
271 @note MSR_GOLDMONT_SMM_MCA_CAP is defined as MSR_SMM_MCA_CAP in SDM.
272 **/
273 #define MSR_GOLDMONT_SMM_MCA_CAP 0x0000017D
274
275 /**
276 MSR information returned for MSR index #MSR_GOLDMONT_SMM_MCA_CAP
277 **/
278 typedef union {
279 ///
280 /// Individual bit fields
281 ///
282 struct {
283 UINT32 Reserved1:32;
284 UINT32 Reserved2:26;
285 ///
286 /// [Bit 58] SMM_Code_Access_Chk (SMM-RO) If set to 1 indicates that the
287 /// SMM code access restriction is supported and the
288 /// MSR_SMM_FEATURE_CONTROL is supported.
289 ///
290 UINT32 SMM_Code_Access_Chk:1;
291 ///
292 /// [Bit 59] Long_Flow_Indication (SMM-RO) If set to 1 indicates that the
293 /// SMM long flow indicator is supported and the MSR_SMM_DELAYED is
294 /// supported.
295 ///
296 UINT32 Long_Flow_Indication:1;
297 UINT32 Reserved3:4;
298 } Bits;
299 ///
300 /// All bit fields as a 64-bit value
301 ///
302 UINT64 Uint64;
303 } MSR_GOLDMONT_SMM_MCA_CAP_REGISTER;
304
305
306 /**
307 Enable Misc. Processor Features (R/W) Allows a variety of processor
308 functions to be enabled and disabled.
309
310 @param ECX MSR_GOLDMONT_IA32_MISC_ENABLE (0x000001A0)
311 @param EAX Lower 32-bits of MSR value.
312 Described by the type MSR_GOLDMONT_IA32_MISC_ENABLE_REGISTER.
313 @param EDX Upper 32-bits of MSR value.
314 Described by the type MSR_GOLDMONT_IA32_MISC_ENABLE_REGISTER.
315
316 <b>Example usage</b>
317 @code
318 MSR_GOLDMONT_IA32_MISC_ENABLE_REGISTER Msr;
319
320 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_MISC_ENABLE);
321 AsmWriteMsr64 (MSR_GOLDMONT_IA32_MISC_ENABLE, Msr.Uint64);
322 @endcode
323 @note MSR_GOLDMONT_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
324 **/
325 #define MSR_GOLDMONT_IA32_MISC_ENABLE 0x000001A0
326
327 /**
328 MSR information returned for MSR index #MSR_GOLDMONT_IA32_MISC_ENABLE
329 **/
330 typedef union {
331 ///
332 /// Individual bit fields
333 ///
334 struct {
335 ///
336 /// [Bit 0] Core. Fast-Strings Enable See Table 2-2.
337 ///
338 UINT32 FastStrings:1;
339 UINT32 Reserved1:2;
340 ///
341 /// [Bit 3] Package. Automatic Thermal Control Circuit Enable (R/W) See
342 /// Table 2-2. Default value is 1.
343 ///
344 UINT32 AutomaticThermalControlCircuit:1;
345 UINT32 Reserved2:3;
346 ///
347 /// [Bit 7] Core. Performance Monitoring Available (R) See Table 2-2.
348 ///
349 UINT32 PerformanceMonitoring:1;
350 UINT32 Reserved3:3;
351 ///
352 /// [Bit 11] Core. Branch Trace Storage Unavailable (RO) See Table 2-2.
353 ///
354 UINT32 BTS:1;
355 ///
356 /// [Bit 12] Core. Processor Event Based Sampling Unavailable (RO) See
357 /// Table 2-2.
358 ///
359 UINT32 PEBS:1;
360 UINT32 Reserved4:3;
361 ///
362 /// [Bit 16] Package. Enhanced Intel SpeedStep Technology Enable (R/W) See
363 /// Table 2-2.
364 ///
365 UINT32 EIST:1;
366 UINT32 Reserved5:1;
367 ///
368 /// [Bit 18] Core. ENABLE MONITOR FSM (R/W) See Table 2-2.
369 ///
370 UINT32 MONITOR:1;
371 UINT32 Reserved6:3;
372 ///
373 /// [Bit 22] Core. Limit CPUID Maxval (R/W) See Table 2-2.
374 ///
375 UINT32 LimitCpuidMaxval:1;
376 ///
377 /// [Bit 23] Package. xTPR Message Disable (R/W) See Table 2-2.
378 ///
379 UINT32 xTPR_Message_Disable:1;
380 UINT32 Reserved7:8;
381 UINT32 Reserved8:2;
382 ///
383 /// [Bit 34] Core. XD Bit Disable (R/W) See Table 2-2.
384 ///
385 UINT32 XD:1;
386 UINT32 Reserved9:3;
387 ///
388 /// [Bit 38] Package. Turbo Mode Disable (R/W) When set to 1 on processors
389 /// that support Intel Turbo Boost Technology, the turbo mode feature is
390 /// disabled and the IDA_Enable feature flag will be clear (CPUID.06H:
391 /// EAX[1]=0). When set to a 0 on processors that support IDA, CPUID.06H:
392 /// EAX[1] reports the processor's support of turbo mode is enabled. Note:
393 /// the power-on default value is used by BIOS to detect hardware support
394 /// of turbo mode. If power-on default value is 1, turbo mode is available
395 /// in the processor. If power-on default value is 0, turbo mode is not
396 /// available.
397 ///
398 UINT32 TurboModeDisable:1;
399 UINT32 Reserved10:25;
400 } Bits;
401 ///
402 /// All bit fields as a 64-bit value
403 ///
404 UINT64 Uint64;
405 } MSR_GOLDMONT_IA32_MISC_ENABLE_REGISTER;
406
407
408 /**
409 Miscellaneous Feature Control (R/W).
410
411 @param ECX MSR_GOLDMONT_MISC_FEATURE_CONTROL (0x000001A4)
412 @param EAX Lower 32-bits of MSR value.
413 Described by the type MSR_GOLDMONT_MISC_FEATURE_CONTROL_REGISTER.
414 @param EDX Upper 32-bits of MSR value.
415 Described by the type MSR_GOLDMONT_MISC_FEATURE_CONTROL_REGISTER.
416
417 <b>Example usage</b>
418 @code
419 MSR_GOLDMONT_MISC_FEATURE_CONTROL_REGISTER Msr;
420
421 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_MISC_FEATURE_CONTROL);
422 AsmWriteMsr64 (MSR_GOLDMONT_MISC_FEATURE_CONTROL, Msr.Uint64);
423 @endcode
424 @note MSR_GOLDMONT_MISC_FEATURE_CONTROL is defined as MSR_MISC_FEATURE_CONTROL in SDM.
425 **/
426 #define MSR_GOLDMONT_MISC_FEATURE_CONTROL 0x000001A4
427
428 /**
429 MSR information returned for MSR index #MSR_GOLDMONT_MISC_FEATURE_CONTROL
430 **/
431 typedef union {
432 ///
433 /// Individual bit fields
434 ///
435 struct {
436 ///
437 /// [Bit 0] Core. L2 Hardware Prefetcher Disable (R/W) If 1, disables the
438 /// L2 hardware prefetcher, which fetches additional lines of code or data
439 /// into the L2 cache.
440 ///
441 UINT32 L2HardwarePrefetcherDisable:1;
442 UINT32 Reserved1:1;
443 ///
444 /// [Bit 2] Core. DCU Hardware Prefetcher Disable (R/W) If 1, disables
445 /// the L1 data cache prefetcher, which fetches the next cache line into
446 /// L1 data cache.
447 ///
448 UINT32 DCUHardwarePrefetcherDisable:1;
449 UINT32 Reserved2:29;
450 UINT32 Reserved3:32;
451 } Bits;
452 ///
453 /// All bit fields as a 32-bit value
454 ///
455 UINT32 Uint32;
456 ///
457 /// All bit fields as a 64-bit value
458 ///
459 UINT64 Uint64;
460 } MSR_GOLDMONT_MISC_FEATURE_CONTROL_REGISTER;
461
462
463 /**
464 Package. See http://biosbits.org.
465
466 @param ECX MSR_GOLDMONT_MISC_PWR_MGMT (0x000001AA)
467 @param EAX Lower 32-bits of MSR value.
468 Described by the type MSR_GOLDMONT_MISC_PWR_MGMT_REGISTER.
469 @param EDX Upper 32-bits of MSR value.
470 Described by the type MSR_GOLDMONT_MISC_PWR_MGMT_REGISTER.
471
472 <b>Example usage</b>
473 @code
474 MSR_GOLDMONT_MISC_PWR_MGMT_REGISTER Msr;
475
476 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_MISC_PWR_MGMT);
477 AsmWriteMsr64 (MSR_GOLDMONT_MISC_PWR_MGMT, Msr.Uint64);
478 @endcode
479 @note MSR_GOLDMONT_MISC_PWR_MGMT is defined as MSR_MISC_PWR_MGMT in SDM.
480 **/
481 #define MSR_GOLDMONT_MISC_PWR_MGMT 0x000001AA
482
483 /**
484 MSR information returned for MSR index #MSR_GOLDMONT_MISC_PWR_MGMT
485 **/
486 typedef union {
487 ///
488 /// Individual bit fields
489 ///
490 struct {
491 ///
492 /// [Bit 0] EIST Hardware Coordination Disable (R/W) When 0, enables
493 /// hardware coordination of Enhanced Intel Speedstep Technology request
494 /// from processor cores; When 1, disables hardware coordination of
495 /// Enhanced Intel Speedstep Technology requests.
496 ///
497 UINT32 EISTHardwareCoordinationDisable:1;
498 UINT32 Reserved1:21;
499 ///
500 /// [Bit 22] Thermal Interrupt Coordination Enable (R/W) If set, then
501 /// thermal interrupt on one core is routed to all cores.
502 ///
503 UINT32 ThermalInterruptCoordinationEnable:1;
504 UINT32 Reserved2:9;
505 UINT32 Reserved3:32;
506 } Bits;
507 ///
508 /// All bit fields as a 32-bit value
509 ///
510 UINT32 Uint32;
511 ///
512 /// All bit fields as a 64-bit value
513 ///
514 UINT64 Uint64;
515 } MSR_GOLDMONT_MISC_PWR_MGMT_REGISTER;
516
517
518 /**
519 Package. Maximum Ratio Limit of Turbo Mode by Core Groups (RW) Specifies
520 Maximum Ratio Limit for each Core Group. Max ratio for groups with more
521 cores must decrease monotonically. For groups with less than 4 cores, the
522 max ratio must be 32 or less. For groups with 4-5 cores, the max ratio must
523 be 22 or less. For groups with more than 5 cores, the max ratio must be 16
524 or less..
525
526 @param ECX MSR_GOLDMONT_TURBO_RATIO_LIMIT (0x000001AD)
527 @param EAX Lower 32-bits of MSR value.
528 Described by the type MSR_GOLDMONT_TURBO_RATIO_LIMIT_REGISTER.
529 @param EDX Upper 32-bits of MSR value.
530 Described by the type MSR_GOLDMONT_TURBO_RATIO_LIMIT_REGISTER.
531
532 <b>Example usage</b>
533 @code
534 MSR_GOLDMONT_TURBO_RATIO_LIMIT_REGISTER Msr;
535
536 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_TURBO_RATIO_LIMIT);
537 AsmWriteMsr64 (MSR_GOLDMONT_TURBO_RATIO_LIMIT, Msr.Uint64);
538 @endcode
539 @note MSR_GOLDMONT_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
540 **/
541 #define MSR_GOLDMONT_TURBO_RATIO_LIMIT 0x000001AD
542
543 /**
544 MSR information returned for MSR index #MSR_GOLDMONT_TURBO_RATIO_LIMIT
545 **/
546 typedef union {
547 ///
548 /// Individual bit fields
549 ///
550 struct {
551 ///
552 /// [Bits 7:0] Package. Maximum Ratio Limit for Active cores in Group 0
553 /// Maximum turbo ratio limit when number of active cores is less or equal
554 /// to Group 0 threshold.
555 ///
556 UINT32 MaxRatioLimitGroup0:8;
557 ///
558 /// [Bits 15:8] Package. Maximum Ratio Limit for Active cores in Group 1
559 /// Maximum turbo ratio limit when number of active cores is less or equal
560 /// to Group 1 threshold and greater than Group 0 threshold.
561 ///
562 UINT32 MaxRatioLimitGroup1:8;
563 ///
564 /// [Bits 23:16] Package. Maximum Ratio Limit for Active cores in Group 2
565 /// Maximum turbo ratio limit when number of active cores is less or equal
566 /// to Group 2 threshold and greater than Group 1 threshold.
567 ///
568 UINT32 MaxRatioLimitGroup2:8;
569 ///
570 /// [Bits 31:24] Package. Maximum Ratio Limit for Active cores in Group 3
571 /// Maximum turbo ratio limit when number of active cores is less or equal
572 /// to Group 3 threshold and greater than Group 2 threshold.
573 ///
574 UINT32 MaxRatioLimitGroup3:8;
575 ///
576 /// [Bits 39:32] Package. Maximum Ratio Limit for Active cores in Group 4
577 /// Maximum turbo ratio limit when number of active cores is less or equal
578 /// to Group 4 threshold and greater than Group 3 threshold.
579 ///
580 UINT32 MaxRatioLimitGroup4:8;
581 ///
582 /// [Bits 47:40] Package. Maximum Ratio Limit for Active cores in Group 5
583 /// Maximum turbo ratio limit when number of active cores is less or equal
584 /// to Group 5 threshold and greater than Group 4 threshold.
585 ///
586 UINT32 MaxRatioLimitGroup5:8;
587 ///
588 /// [Bits 55:48] Package. Maximum Ratio Limit for Active cores in Group 6
589 /// Maximum turbo ratio limit when number of active cores is less or equal
590 /// to Group 6 threshold and greater than Group 5 threshold.
591 ///
592 UINT32 MaxRatioLimitGroup6:8;
593 ///
594 /// [Bits 63:56] Package. Maximum Ratio Limit for Active cores in Group 7
595 /// Maximum turbo ratio limit when number of active cores is less or equal
596 /// to Group 7 threshold and greater than Group 6 threshold.
597 ///
598 UINT32 MaxRatioLimitGroup7:8;
599 } Bits;
600 ///
601 /// All bit fields as a 64-bit value
602 ///
603 UINT64 Uint64;
604 } MSR_GOLDMONT_TURBO_RATIO_LIMIT_REGISTER;
605
606
607 /**
608 Package. Group Size of Active Cores for Turbo Mode Operation (RW) Writes of
609 0 threshold is ignored.
610
611 @param ECX MSR_GOLDMONT_TURBO_GROUP_CORECNT (0x000001AE)
612 @param EAX Lower 32-bits of MSR value.
613 Described by the type MSR_GOLDMONT_TURBO_GROUP_CORECNT_REGISTER.
614 @param EDX Upper 32-bits of MSR value.
615 Described by the type MSR_GOLDMONT_TURBO_GROUP_CORECNT_REGISTER.
616
617 <b>Example usage</b>
618 @code
619 MSR_GOLDMONT_TURBO_GROUP_CORECNT_REGISTER Msr;
620
621 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_TURBO_GROUP_CORECNT);
622 AsmWriteMsr64 (MSR_GOLDMONT_TURBO_GROUP_CORECNT, Msr.Uint64);
623 @endcode
624 @note MSR_GOLDMONT_TURBO_GROUP_CORECNT is defined as MSR_TURBO_GROUP_CORECNT in SDM.
625 **/
626 #define MSR_GOLDMONT_TURBO_GROUP_CORECNT 0x000001AE
627
628 /**
629 MSR information returned for MSR index #MSR_GOLDMONT_TURBO_GROUP_CORECNT
630 **/
631 typedef union {
632 ///
633 /// Individual bit fields
634 ///
635 struct {
636 ///
637 /// [Bits 7:0] Package. Group 0 Core Count Threshold Maximum number of
638 /// active cores to operate under Group 0 Max Turbo Ratio limit.
639 ///
640 UINT32 CoreCountThresholdGroup0:8;
641 ///
642 /// [Bits 15:8] Package. Group 1 Core Count Threshold Maximum number of
643 /// active cores to operate under Group 1 Max Turbo Ratio limit. Must be
644 /// greater than Group 0 Core Count.
645 ///
646 UINT32 CoreCountThresholdGroup1:8;
647 ///
648 /// [Bits 23:16] Package. Group 2 Core Count Threshold Maximum number of
649 /// active cores to operate under Group 2 Max Turbo Ratio limit. Must be
650 /// greater than Group 1 Core Count.
651 ///
652 UINT32 CoreCountThresholdGroup2:8;
653 ///
654 /// [Bits 31:24] Package. Group 3 Core Count Threshold Maximum number of
655 /// active cores to operate under Group 3 Max Turbo Ratio limit. Must be
656 /// greater than Group 2 Core Count.
657 ///
658 UINT32 CoreCountThresholdGroup3:8;
659 ///
660 /// [Bits 39:32] Package. Group 4 Core Count Threshold Maximum number of
661 /// active cores to operate under Group 4 Max Turbo Ratio limit. Must be
662 /// greater than Group 3 Core Count.
663 ///
664 UINT32 CoreCountThresholdGroup4:8;
665 ///
666 /// [Bits 47:40] Package. Group 5 Core Count Threshold Maximum number of
667 /// active cores to operate under Group 5 Max Turbo Ratio limit. Must be
668 /// greater than Group 4 Core Count.
669 ///
670 UINT32 CoreCountThresholdGroup5:8;
671 ///
672 /// [Bits 55:48] Package. Group 6 Core Count Threshold Maximum number of
673 /// active cores to operate under Group 6 Max Turbo Ratio limit. Must be
674 /// greater than Group 5 Core Count.
675 ///
676 UINT32 CoreCountThresholdGroup6:8;
677 ///
678 /// [Bits 63:56] Package. Group 7 Core Count Threshold Maximum number of
679 /// active cores to operate under Group 7 Max Turbo Ratio limit. Must be
680 /// greater than Group 6 Core Count and not less than the total number of
681 /// processor cores in the package. E.g. specify 255.
682 ///
683 UINT32 CoreCountThresholdGroup7:8;
684 } Bits;
685 ///
686 /// All bit fields as a 64-bit value
687 ///
688 UINT64 Uint64;
689 } MSR_GOLDMONT_TURBO_GROUP_CORECNT_REGISTER;
690
691
692 /**
693 Core. Last Branch Record Filtering Select Register (R/W) See Section 17.9.2,
694 "Filtering of Last Branch Records.".
695
696 @param ECX MSR_GOLDMONT_LBR_SELECT (0x000001C8)
697 @param EAX Lower 32-bits of MSR value.
698 Described by the type MSR_GOLDMONT_LBR_SELECT_REGISTER.
699 @param EDX Upper 32-bits of MSR value.
700 Described by the type MSR_GOLDMONT_LBR_SELECT_REGISTER.
701
702 <b>Example usage</b>
703 @code
704 MSR_GOLDMONT_LBR_SELECT_REGISTER Msr;
705
706 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_LBR_SELECT);
707 AsmWriteMsr64 (MSR_GOLDMONT_LBR_SELECT, Msr.Uint64);
708 @endcode
709 @note MSR_GOLDMONT_LBR_SELECT is defined as MSR_LBR_SELECT in SDM.
710 **/
711 #define MSR_GOLDMONT_LBR_SELECT 0x000001C8
712
713 /**
714 MSR information returned for MSR index #MSR_GOLDMONT_LBR_SELECT
715 **/
716 typedef union {
717 ///
718 /// Individual bit fields
719 ///
720 struct {
721 ///
722 /// [Bit 0] CPL_EQ_0.
723 ///
724 UINT32 CPL_EQ_0:1;
725 ///
726 /// [Bit 1] CPL_NEQ_0.
727 ///
728 UINT32 CPL_NEQ_0:1;
729 ///
730 /// [Bit 2] JCC.
731 ///
732 UINT32 JCC:1;
733 ///
734 /// [Bit 3] NEAR_REL_CALL.
735 ///
736 UINT32 NEAR_REL_CALL:1;
737 ///
738 /// [Bit 4] NEAR_IND_CALL.
739 ///
740 UINT32 NEAR_IND_CALL:1;
741 ///
742 /// [Bit 5] NEAR_RET.
743 ///
744 UINT32 NEAR_RET:1;
745 ///
746 /// [Bit 6] NEAR_IND_JMP.
747 ///
748 UINT32 NEAR_IND_JMP:1;
749 ///
750 /// [Bit 7] NEAR_REL_JMP.
751 ///
752 UINT32 NEAR_REL_JMP:1;
753 ///
754 /// [Bit 8] FAR_BRANCH.
755 ///
756 UINT32 FAR_BRANCH:1;
757 ///
758 /// [Bit 9] EN_CALL_STACK.
759 ///
760 UINT32 EN_CALL_STACK:1;
761 UINT32 Reserved1:22;
762 UINT32 Reserved2:32;
763 } Bits;
764 ///
765 /// All bit fields as a 32-bit value
766 ///
767 UINT32 Uint32;
768 ///
769 /// All bit fields as a 64-bit value
770 ///
771 UINT64 Uint64;
772 } MSR_GOLDMONT_LBR_SELECT_REGISTER;
773
774
775 /**
776 Core. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-4) that
777 points to the MSR containing the most recent branch record. See
778 MSR_LASTBRANCH_0_FROM_IP.
779
780 @param ECX MSR_GOLDMONT_LASTBRANCH_TOS (0x000001C9)
781 @param EAX Lower 32-bits of MSR value.
782 @param EDX Upper 32-bits of MSR value.
783
784 <b>Example usage</b>
785 @code
786 UINT64 Msr;
787
788 Msr = AsmReadMsr64 (MSR_GOLDMONT_LASTBRANCH_TOS);
789 AsmWriteMsr64 (MSR_GOLDMONT_LASTBRANCH_TOS, Msr);
790 @endcode
791 @note MSR_GOLDMONT_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
792 **/
793 #define MSR_GOLDMONT_LASTBRANCH_TOS 0x000001C9
794
795
796 /**
797 Core. Power Control Register. See http://biosbits.org.
798
799 @param ECX MSR_GOLDMONT_POWER_CTL (0x000001FC)
800 @param EAX Lower 32-bits of MSR value.
801 Described by the type MSR_GOLDMONT_POWER_CTL_REGISTER.
802 @param EDX Upper 32-bits of MSR value.
803 Described by the type MSR_GOLDMONT_POWER_CTL_REGISTER.
804
805 <b>Example usage</b>
806 @code
807 MSR_GOLDMONT_POWER_CTL_REGISTER Msr;
808
809 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_POWER_CTL);
810 AsmWriteMsr64 (MSR_GOLDMONT_POWER_CTL, Msr.Uint64);
811 @endcode
812 @note MSR_GOLDMONT_POWER_CTL is defined as MSR_POWER_CTL in SDM.
813 **/
814 #define MSR_GOLDMONT_POWER_CTL 0x000001FC
815
816 /**
817 MSR information returned for MSR index #MSR_GOLDMONT_POWER_CTL
818 **/
819 typedef union {
820 ///
821 /// Individual bit fields
822 ///
823 struct {
824 UINT32 Reserved1:1;
825 ///
826 /// [Bit 1] Package. C1E Enable (R/W) When set to '1', will enable the
827 /// CPU to switch to the Minimum Enhanced Intel SpeedStep Technology
828 /// operating point when all execution cores enter MWAIT (C1).
829 ///
830 UINT32 C1EEnable:1;
831 UINT32 Reserved2:30;
832 UINT32 Reserved3:32;
833 } Bits;
834 ///
835 /// All bit fields as a 32-bit value
836 ///
837 UINT32 Uint32;
838 ///
839 /// All bit fields as a 64-bit value
840 ///
841 UINT64 Uint64;
842 } MSR_GOLDMONT_POWER_CTL_REGISTER;
843
844
845 /**
846 Package. Lower 64 Bit CR_SGXOWNEREPOCH (W) Writes do not update
847 CR_SGXOWNEREPOCH if CPUID.(EAX=12H, ECX=0):EAX.SGX1 is 1 on any thread in
848 the package. Lower 64 bits of an 128-bit external entropy value for key
849 derivation of an enclave.
850
851 @param ECX MSR_GOLDMONT_SGXOWNEREPOCH0 (0x00000300)
852 @param EAX Lower 32-bits of MSR value.
853 @param EDX Upper 32-bits of MSR value.
854
855 <b>Example usage</b>
856 @code
857 UINT64 Msr;
858
859 Msr = AsmReadMsr64 (MSR_GOLDMONT_SGXOWNEREPOCH0);
860 @endcode
861 @note MSR_GOLDMONT_SGXOWNEREPOCH0 is defined as MSR_SGXOWNEREPOCH0 in SDM.
862 **/
863 #define MSR_GOLDMONT_SGXOWNEREPOCH0 0x00000300
864
865
866 //
867 // Define MSR_GOLDMONT_SGXOWNER0 for compatibility due to name change in the SDM.
868 //
869 #define MSR_GOLDMONT_SGXOWNER0 MSR_GOLDMONT_SGXOWNEREPOCH0
870
871
872 /**
873 Package. Upper 64 Bit OwnerEpoch Component of SGX Key (RO). Upper 64 bits of
874 an 128-bit external entropy value for key derivation of an enclave.
875
876 @param ECX MSR_GOLDMONT_SGXOWNEREPOCH1 (0x00000301)
877 @param EAX Lower 32-bits of MSR value.
878 @param EDX Upper 32-bits of MSR value.
879
880 <b>Example usage</b>
881 @code
882 UINT64 Msr;
883
884 Msr = AsmReadMsr64 (MSR_GOLDMONT_SGXOWNEREPOCH1);
885 @endcode
886 @note MSR_GOLDMONT_SGXOWNEREPOCH1 is defined as MSR_SGXOWNEREPOCH1 in SDM.
887 **/
888 #define MSR_GOLDMONT_SGXOWNEREPOCH1 0x00000301
889
890
891 //
892 // Define MSR_GOLDMONT_SGXOWNER1 for compatibility due to name change in the SDM.
893 //
894 #define MSR_GOLDMONT_SGXOWNER1 MSR_GOLDMONT_SGXOWNEREPOCH1
895
896
897 /**
898 Core. See Table 2-2. See Section 18.2.4, "Architectural Performance
899 Monitoring Version 4.".
900
901 @param ECX MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET (0x00000390)
902 @param EAX Lower 32-bits of MSR value.
903 Described by the type MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
904 @param EDX Upper 32-bits of MSR value.
905 Described by the type MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER.
906
907 <b>Example usage</b>
908 @code
909 MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER Msr;
910
911 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET);
912 AsmWriteMsr64 (MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET, Msr.Uint64);
913 @endcode
914 @note MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET is defined as IA32_PERF_GLOBAL_STATUS_RESET in SDM.
915 **/
916 #define MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET 0x00000390
917
918 /**
919 MSR information returned for MSR index
920 #MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET
921 **/
922 typedef union {
923 ///
924 /// Individual bit fields
925 ///
926 struct {
927 ///
928 /// [Bit 0] Set 1 to clear Ovf_PMC0.
929 ///
930 UINT32 Ovf_PMC0:1;
931 ///
932 /// [Bit 1] Set 1 to clear Ovf_PMC1.
933 ///
934 UINT32 Ovf_PMC1:1;
935 ///
936 /// [Bit 2] Set 1 to clear Ovf_PMC2.
937 ///
938 UINT32 Ovf_PMC2:1;
939 ///
940 /// [Bit 3] Set 1 to clear Ovf_PMC3.
941 ///
942 UINT32 Ovf_PMC3:1;
943 UINT32 Reserved1:28;
944 ///
945 /// [Bit 32] Set 1 to clear Ovf_FixedCtr0.
946 ///
947 UINT32 Ovf_FixedCtr0:1;
948 ///
949 /// [Bit 33] Set 1 to clear Ovf_FixedCtr1.
950 ///
951 UINT32 Ovf_FixedCtr1:1;
952 ///
953 /// [Bit 34] Set 1 to clear Ovf_FixedCtr2.
954 ///
955 UINT32 Ovf_FixedCtr2:1;
956 UINT32 Reserved2:20;
957 ///
958 /// [Bit 55] Set 1 to clear Trace_ToPA_PMI.
959 ///
960 UINT32 Trace_ToPA_PMI:1;
961 UINT32 Reserved3:2;
962 ///
963 /// [Bit 58] Set 1 to clear LBR_Frz.
964 ///
965 UINT32 LBR_Frz:1;
966 ///
967 /// [Bit 59] Set 1 to clear CTR_Frz.
968 ///
969 UINT32 CTR_Frz:1;
970 ///
971 /// [Bit 60] Set 1 to clear ASCI.
972 ///
973 UINT32 ASCI:1;
974 ///
975 /// [Bit 61] Set 1 to clear Ovf_Uncore.
976 ///
977 UINT32 Ovf_Uncore:1;
978 ///
979 /// [Bit 62] Set 1 to clear Ovf_BufDSSAVE.
980 ///
981 UINT32 Ovf_BufDSSAVE:1;
982 ///
983 /// [Bit 63] Set 1 to clear CondChgd.
984 ///
985 UINT32 CondChgd:1;
986 } Bits;
987 ///
988 /// All bit fields as a 64-bit value
989 ///
990 UINT64 Uint64;
991 } MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_RESET_REGISTER;
992
993
994 /**
995 Core. See Table 2-2. See Section 18.2.4, "Architectural Performance
996 Monitoring Version 4.".
997
998 @param ECX MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET (0x00000391)
999 @param EAX Lower 32-bits of MSR value.
1000 Described by the type MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
1001 @param EDX Upper 32-bits of MSR value.
1002 Described by the type MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET_REGISTER.
1003
1004 <b>Example usage</b>
1005 @code
1006 MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET_REGISTER Msr;
1007
1008 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET);
1009 AsmWriteMsr64 (MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET, Msr.Uint64);
1010 @endcode
1011 @note MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET is defined as IA32_PERF_GLOBAL_STATUS_SET in SDM.
1012 **/
1013 #define MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET 0x00000391
1014
1015 /**
1016 MSR information returned for MSR index
1017 #MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET
1018 **/
1019 typedef union {
1020 ///
1021 /// Individual bit fields
1022 ///
1023 struct {
1024 ///
1025 /// [Bit 0] Set 1 to cause Ovf_PMC0 = 1.
1026 ///
1027 UINT32 Ovf_PMC0:1;
1028 ///
1029 /// [Bit 1] Set 1 to cause Ovf_PMC1 = 1.
1030 ///
1031 UINT32 Ovf_PMC1:1;
1032 ///
1033 /// [Bit 2] Set 1 to cause Ovf_PMC2 = 1.
1034 ///
1035 UINT32 Ovf_PMC2:1;
1036 ///
1037 /// [Bit 3] Set 1 to cause Ovf_PMC3 = 1.
1038 ///
1039 UINT32 Ovf_PMC3:1;
1040 UINT32 Reserved1:28;
1041 ///
1042 /// [Bit 32] Set 1 to cause Ovf_FixedCtr0 = 1.
1043 ///
1044 UINT32 Ovf_FixedCtr0:1;
1045 ///
1046 /// [Bit 33] Set 1 to cause Ovf_FixedCtr1 = 1.
1047 ///
1048 UINT32 Ovf_FixedCtr1:1;
1049 ///
1050 /// [Bit 34] Set 1 to cause Ovf_FixedCtr2 = 1.
1051 ///
1052 UINT32 Ovf_FixedCtr2:1;
1053 UINT32 Reserved2:20;
1054 ///
1055 /// [Bit 55] Set 1 to cause Trace_ToPA_PMI = 1.
1056 ///
1057 UINT32 Trace_ToPA_PMI:1;
1058 UINT32 Reserved3:2;
1059 ///
1060 /// [Bit 58] Set 1 to cause LBR_Frz = 1.
1061 ///
1062 UINT32 LBR_Frz:1;
1063 ///
1064 /// [Bit 59] Set 1 to cause CTR_Frz = 1.
1065 ///
1066 UINT32 CTR_Frz:1;
1067 ///
1068 /// [Bit 60] Set 1 to cause ASCI = 1.
1069 ///
1070 UINT32 ASCI:1;
1071 ///
1072 /// [Bit 61] Set 1 to cause Ovf_Uncore.
1073 ///
1074 UINT32 Ovf_Uncore:1;
1075 ///
1076 /// [Bit 62] Set 1 to cause Ovf_BufDSSAVE.
1077 ///
1078 UINT32 Ovf_BufDSSAVE:1;
1079 UINT32 Reserved4:1;
1080 } Bits;
1081 ///
1082 /// All bit fields as a 64-bit value
1083 ///
1084 UINT64 Uint64;
1085 } MSR_GOLDMONT_IA32_PERF_GLOBAL_STATUS_SET_REGISTER;
1086
1087
1088 /**
1089 Core. See Table 2-2. See Section 18.6.2.4, "Processor Event Based Sampling
1090 (PEBS).".
1091
1092 @param ECX MSR_GOLDMONT_PEBS_ENABLE (0x000003F1)
1093 @param EAX Lower 32-bits of MSR value.
1094 Described by the type MSR_GOLDMONT_PEBS_ENABLE_REGISTER.
1095 @param EDX Upper 32-bits of MSR value.
1096 Described by the type MSR_GOLDMONT_PEBS_ENABLE_REGISTER.
1097
1098 <b>Example usage</b>
1099 @code
1100 MSR_GOLDMONT_PEBS_ENABLE_REGISTER Msr;
1101
1102 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PEBS_ENABLE);
1103 AsmWriteMsr64 (MSR_GOLDMONT_PEBS_ENABLE, Msr.Uint64);
1104 @endcode
1105 @note MSR_GOLDMONT_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
1106 **/
1107 #define MSR_GOLDMONT_PEBS_ENABLE 0x000003F1
1108
1109 /**
1110 MSR information returned for MSR index #MSR_GOLDMONT_PEBS_ENABLE
1111 **/
1112 typedef union {
1113 ///
1114 /// Individual bit fields
1115 ///
1116 struct {
1117 ///
1118 /// [Bit 0] Enable PEBS trigger and recording for the programmed event
1119 /// (precise or otherwise) on IA32_PMC0. (R/W).
1120 ///
1121 UINT32 Enable:1;
1122 UINT32 Reserved1:31;
1123 UINT32 Reserved2:32;
1124 } Bits;
1125 ///
1126 /// All bit fields as a 32-bit value
1127 ///
1128 UINT32 Uint32;
1129 ///
1130 /// All bit fields as a 64-bit value
1131 ///
1132 UINT64 Uint64;
1133 } MSR_GOLDMONT_PEBS_ENABLE_REGISTER;
1134
1135
1136 /**
1137 Package. Note: C-state values are processor specific C-state code names,
1138 unrelated to MWAIT extension C-state parameters or ACPI CStates. Package C3
1139 Residency Counter. (R/O) Value since last reset that this package is in
1140 processor-specific C3 states. Count at the same frequency as the TSC.
1141
1142 @param ECX MSR_GOLDMONT_PKG_C3_RESIDENCY (0x000003F8)
1143 @param EAX Lower 32-bits of MSR value.
1144 @param EDX Upper 32-bits of MSR value.
1145
1146 <b>Example usage</b>
1147 @code
1148 UINT64 Msr;
1149
1150 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_C3_RESIDENCY);
1151 AsmWriteMsr64 (MSR_GOLDMONT_PKG_C3_RESIDENCY, Msr);
1152 @endcode
1153 @note MSR_GOLDMONT_PKG_C3_RESIDENCY is defined as MSR_PKG_C3_RESIDENCY in SDM.
1154 **/
1155 #define MSR_GOLDMONT_PKG_C3_RESIDENCY 0x000003F8
1156
1157
1158 /**
1159 Package. Note: C-state values are processor specific C-state code names,
1160 unrelated to MWAIT extension C-state parameters or ACPI CStates. Package C6
1161 Residency Counter. (R/O) Value since last reset that this package is in
1162 processor-specific C6 states. Count at the same frequency as the TSC.
1163
1164 @param ECX MSR_GOLDMONT_PKG_C6_RESIDENCY (0x000003F9)
1165 @param EAX Lower 32-bits of MSR value.
1166 @param EDX Upper 32-bits of MSR value.
1167
1168 <b>Example usage</b>
1169 @code
1170 UINT64 Msr;
1171
1172 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_C6_RESIDENCY);
1173 AsmWriteMsr64 (MSR_GOLDMONT_PKG_C6_RESIDENCY, Msr);
1174 @endcode
1175 @note MSR_GOLDMONT_PKG_C6_RESIDENCY is defined as MSR_PKG_C6_RESIDENCY in SDM.
1176 **/
1177 #define MSR_GOLDMONT_PKG_C6_RESIDENCY 0x000003F9
1178
1179
1180 /**
1181 Core. Note: C-state values are processor specific C-state code names,
1182 unrelated to MWAIT extension C-state parameters or ACPI CStates. CORE C3
1183 Residency Counter. (R/O) Value since last reset that this core is in
1184 processor-specific C3 states. Count at the same frequency as the TSC.
1185
1186 @param ECX MSR_GOLDMONT_CORE_C3_RESIDENCY (0x000003FC)
1187 @param EAX Lower 32-bits of MSR value.
1188 @param EDX Upper 32-bits of MSR value.
1189
1190 <b>Example usage</b>
1191 @code
1192 UINT64 Msr;
1193
1194 Msr = AsmReadMsr64 (MSR_GOLDMONT_CORE_C3_RESIDENCY);
1195 AsmWriteMsr64 (MSR_GOLDMONT_CORE_C3_RESIDENCY, Msr);
1196 @endcode
1197 @note MSR_GOLDMONT_CORE_C3_RESIDENCY is defined as MSR_CORE_C3_RESIDENCY in SDM.
1198 **/
1199 #define MSR_GOLDMONT_CORE_C3_RESIDENCY 0x000003FC
1200
1201
1202 /**
1203 Package. Enhanced SMM Feature Control (SMM-RW) Reports SMM capability
1204 Enhancement. Accessible only while in SMM.
1205
1206 @param ECX MSR_GOLDMONT_SMM_FEATURE_CONTROL (0x000004E0)
1207 @param EAX Lower 32-bits of MSR value.
1208 Described by the type MSR_GOLDMONT_SMM_FEATURE_CONTROL_REGISTER.
1209 @param EDX Upper 32-bits of MSR value.
1210 Described by the type MSR_GOLDMONT_SMM_FEATURE_CONTROL_REGISTER.
1211
1212 <b>Example usage</b>
1213 @code
1214 MSR_GOLDMONT_SMM_FEATURE_CONTROL_REGISTER Msr;
1215
1216 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_SMM_FEATURE_CONTROL);
1217 AsmWriteMsr64 (MSR_GOLDMONT_SMM_FEATURE_CONTROL, Msr.Uint64);
1218 @endcode
1219 @note MSR_GOLDMONT_SMM_FEATURE_CONTROL is defined as MSR_SMM_FEATURE_CONTROL in SDM.
1220 **/
1221 #define MSR_GOLDMONT_SMM_FEATURE_CONTROL 0x000004E0
1222
1223 /**
1224 MSR information returned for MSR index #MSR_GOLDMONT_SMM_FEATURE_CONTROL
1225 **/
1226 typedef union {
1227 ///
1228 /// Individual bit fields
1229 ///
1230 struct {
1231 ///
1232 /// [Bit 0] Lock (SMM-RWO) When set to '1' locks this register from
1233 /// further changes.
1234 ///
1235 UINT32 Lock:1;
1236 UINT32 Reserved1:1;
1237 ///
1238 /// [Bit 2] SMM_Code_Chk_En (SMM-RW) This control bit is available only if
1239 /// MSR_SMM_MCA_CAP[58] == 1. When set to '0' (default) none of the
1240 /// logical processors are prevented from executing SMM code outside the
1241 /// ranges defined by the SMRR. When set to '1' any logical processor in
1242 /// the package that attempts to execute SMM code not within the ranges
1243 /// defined by the SMRR will assert an unrecoverable MCE.
1244 ///
1245 UINT32 SMM_Code_Chk_En:1;
1246 UINT32 Reserved2:29;
1247 UINT32 Reserved3:32;
1248 } Bits;
1249 ///
1250 /// All bit fields as a 32-bit value
1251 ///
1252 UINT32 Uint32;
1253 ///
1254 /// All bit fields as a 64-bit value
1255 ///
1256 UINT64 Uint64;
1257 } MSR_GOLDMONT_SMM_FEATURE_CONTROL_REGISTER;
1258
1259
1260 /**
1261 Package. SMM Delayed (SMM-RO) Reports the interruptible state of all logical
1262 processors in the package. Available only while in SMM and
1263 MSR_SMM_MCA_CAP[LONG_FLOW_INDICATION] == 1.
1264
1265 @param ECX MSR_GOLDMONT_SMM_DELAYED (0x000004E2)
1266 @param EAX Lower 32-bits of MSR value.
1267 Described by the type MSR_GOLDMONT_SMM_DELAYED_REGISTER.
1268 @param EDX Upper 32-bits of MSR value.
1269 Described by the type MSR_GOLDMONT_SMM_DELAYED_REGISTER.
1270
1271 <b>Example usage</b>
1272 @code
1273 MSR_GOLDMONT_SMM_DELAYED_REGISTER Msr;
1274
1275 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_SMM_DELAYED);
1276 AsmWriteMsr64 (MSR_GOLDMONT_SMM_DELAYED, Msr.Uint64);
1277 @endcode
1278 @note MSR_GOLDMONT_SMM_DELAYED is defined as MSR_SMM_DELAYED in SDM.
1279 **/
1280 #define MSR_GOLDMONT_SMM_DELAYED 0x000004E2
1281
1282
1283 /**
1284 Package. SMM Blocked (SMM-RO) Reports the blocked state of all logical
1285 processors in the package. Available only while in SMM.
1286
1287 @param ECX MSR_GOLDMONT_SMM_BLOCKED (0x000004E3)
1288 @param EAX Lower 32-bits of MSR value.
1289 Described by the type MSR_GOLDMONT_SMM_BLOCKED_REGISTER.
1290 @param EDX Upper 32-bits of MSR value.
1291 Described by the type MSR_GOLDMONT_SMM_BLOCKED_REGISTER.
1292
1293 <b>Example usage</b>
1294 @code
1295 MSR_GOLDMONT_SMM_BLOCKED_REGISTER Msr;
1296
1297 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_SMM_BLOCKED);
1298 AsmWriteMsr64 (MSR_GOLDMONT_SMM_BLOCKED, Msr.Uint64);
1299 @endcode
1300 @note MSR_GOLDMONT_SMM_BLOCKED is defined as MSR_SMM_BLOCKED in SDM.
1301 **/
1302 #define MSR_GOLDMONT_SMM_BLOCKED 0x000004E3
1303
1304
1305 /**
1306 Core. Trace Control Register (R/W).
1307
1308 @param ECX MSR_GOLDMONT_IA32_RTIT_CTL (0x00000570)
1309 @param EAX Lower 32-bits of MSR value.
1310 Described by the type MSR_GOLDMONT_IA32_RTIT_CTL_REGISTER.
1311 @param EDX Upper 32-bits of MSR value.
1312 Described by the type MSR_GOLDMONT_IA32_RTIT_CTL_REGISTER.
1313
1314 <b>Example usage</b>
1315 @code
1316 MSR_GOLDMONT_IA32_RTIT_CTL_REGISTER Msr;
1317
1318 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_RTIT_CTL);
1319 AsmWriteMsr64 (MSR_GOLDMONT_IA32_RTIT_CTL, Msr.Uint64);
1320 @endcode
1321 @note MSR_GOLDMONT_IA32_RTIT_CTL is defined as IA32_RTIT_CTL in SDM.
1322 **/
1323 #define MSR_IA32_RTIT_CTL 0x00000570
1324
1325 /**
1326 MSR information returned for MSR index #MSR_IA32_RTIT_CTL
1327 **/
1328 typedef union {
1329 ///
1330 /// Individual bit fields
1331 ///
1332 struct {
1333 ///
1334 /// [Bit 0] TraceEn.
1335 ///
1336 UINT32 TraceEn:1;
1337 ///
1338 /// [Bit 1] CYCEn.
1339 ///
1340 UINT32 CYCEn:1;
1341 ///
1342 /// [Bit 2] OS.
1343 ///
1344 UINT32 OS:1;
1345 ///
1346 /// [Bit 3] User.
1347 ///
1348 UINT32 User:1;
1349 UINT32 Reserved1:3;
1350 ///
1351 /// [Bit 7] CR3 filter.
1352 ///
1353 UINT32 CR3:1;
1354 ///
1355 /// [Bit 8] ToPA. Writing 0 will #GP if also setting TraceEn.
1356 ///
1357 UINT32 ToPA:1;
1358 ///
1359 /// [Bit 9] MTCEn.
1360 ///
1361 UINT32 MTCEn:1;
1362 ///
1363 /// [Bit 10] TSCEn.
1364 ///
1365 UINT32 TSCEn:1;
1366 ///
1367 /// [Bit 11] DisRETC.
1368 ///
1369 UINT32 DisRETC:1;
1370 UINT32 Reserved2:1;
1371 ///
1372 /// [Bit 13] BranchEn.
1373 ///
1374 UINT32 BranchEn:1;
1375 ///
1376 /// [Bits 17:14] MTCFreq.
1377 ///
1378 UINT32 MTCFreq:4;
1379 UINT32 Reserved3:1;
1380 ///
1381 /// [Bits 22:19] CYCThresh.
1382 ///
1383 UINT32 CYCThresh:4;
1384 UINT32 Reserved4:1;
1385 ///
1386 /// [Bits 27:24] PSBFreq.
1387 ///
1388 UINT32 PSBFreq:4;
1389 UINT32 Reserved5:4;
1390 ///
1391 /// [Bits 35:32] ADDR0_CFG.
1392 ///
1393 UINT32 ADDR0_CFG:4;
1394 ///
1395 /// [Bits 39:36] ADDR1_CFG.
1396 ///
1397 UINT32 ADDR1_CFG:4;
1398 UINT32 Reserved6:24;
1399 } Bits;
1400 ///
1401 /// All bit fields as a 64-bit value
1402 ///
1403 UINT64 Uint64;
1404 } MSR_GOLDMONT_IA32_RTIT_CTL_REGISTER;
1405
1406
1407 /**
1408 Package. Unit Multipliers used in RAPL Interfaces (R/O) See Section 14.9.1,
1409 "RAPL Interfaces.".
1410
1411 @param ECX MSR_GOLDMONT_RAPL_POWER_UNIT (0x00000606)
1412 @param EAX Lower 32-bits of MSR value.
1413 Described by the type MSR_GOLDMONT_RAPL_POWER_UNIT_REGISTER.
1414 @param EDX Upper 32-bits of MSR value.
1415 Described by the type MSR_GOLDMONT_RAPL_POWER_UNIT_REGISTER.
1416
1417 <b>Example usage</b>
1418 @code
1419 MSR_GOLDMONT_RAPL_POWER_UNIT_REGISTER Msr;
1420
1421 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_RAPL_POWER_UNIT);
1422 @endcode
1423 @note MSR_GOLDMONT_RAPL_POWER_UNIT is defined as MSR_RAPL_POWER_UNIT in SDM.
1424 **/
1425 #define MSR_GOLDMONT_RAPL_POWER_UNIT 0x00000606
1426
1427 /**
1428 MSR information returned for MSR index #MSR_GOLDMONT_RAPL_POWER_UNIT
1429 **/
1430 typedef union {
1431 ///
1432 /// Individual bit fields
1433 ///
1434 struct {
1435 ///
1436 /// [Bits 3:0] Power Units. Power related information (in Watts) is in
1437 /// unit of, 1W/2^PU; where PU is an unsigned integer represented by bits
1438 /// 3:0. Default value is 1000b, indicating power unit is in 3.9
1439 /// milliWatts increment.
1440 ///
1441 UINT32 PowerUnits:4;
1442 UINT32 Reserved1:4;
1443 ///
1444 /// [Bits 12:8] Energy Status Units. Energy related information (in
1445 /// Joules) is in unit of, 1Joule/ (2^ESU); where ESU is an unsigned
1446 /// integer represented by bits 12:8. Default value is 01110b, indicating
1447 /// energy unit is in 61 microJoules.
1448 ///
1449 UINT32 EnergyStatusUnits:5;
1450 UINT32 Reserved2:3;
1451 ///
1452 /// [Bits 19:16] Time Unit. Time related information (in seconds) is in
1453 /// unit of, 1S/2^TU; where TU is an unsigned integer represented by bits
1454 /// 19:16. Default value is 1010b, indicating power unit is in 0.977
1455 /// millisecond.
1456 ///
1457 UINT32 TimeUnit:4;
1458 UINT32 Reserved3:12;
1459 UINT32 Reserved4:32;
1460 } Bits;
1461 ///
1462 /// All bit fields as a 32-bit value
1463 ///
1464 UINT32 Uint32;
1465 ///
1466 /// All bit fields as a 64-bit value
1467 ///
1468 UINT64 Uint64;
1469 } MSR_GOLDMONT_RAPL_POWER_UNIT_REGISTER;
1470
1471
1472 /**
1473 Package. Package C3 Interrupt Response Limit (R/W) Note: C-state values are
1474 processor specific C-state code names, unrelated to MWAIT extension C-state
1475 parameters or ACPI CStates.
1476
1477 @param ECX MSR_GOLDMONT_PKGC3_IRTL (0x0000060A)
1478 @param EAX Lower 32-bits of MSR value.
1479 Described by the type MSR_GOLDMONT_PKGC3_IRTL_REGISTER.
1480 @param EDX Upper 32-bits of MSR value.
1481 Described by the type MSR_GOLDMONT_PKGC3_IRTL_REGISTER.
1482
1483 <b>Example usage</b>
1484 @code
1485 MSR_GOLDMONT_PKGC3_IRTL_REGISTER Msr;
1486
1487 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PKGC3_IRTL);
1488 AsmWriteMsr64 (MSR_GOLDMONT_PKGC3_IRTL, Msr.Uint64);
1489 @endcode
1490 @note MSR_GOLDMONT_PKGC3_IRTL is defined as MSR_PKGC3_IRTL in SDM.
1491 **/
1492 #define MSR_GOLDMONT_PKGC3_IRTL 0x0000060A
1493
1494 /**
1495 MSR information returned for MSR index #MSR_GOLDMONT_PKGC3_IRTL
1496 **/
1497 typedef union {
1498 ///
1499 /// Individual bit fields
1500 ///
1501 struct {
1502 ///
1503 /// [Bits 9:0] Interrupt response time limit (R/W) Specifies the limit
1504 /// that should be used to decide if the package should be put into a
1505 /// package C3 state.
1506 ///
1507 UINT32 InterruptResponseTimeLimit:10;
1508 ///
1509 /// [Bits 12:10] Time Unit (R/W) Specifies the encoding value of time unit
1510 /// of the interrupt response time limit. See Table 2-19 for supported
1511 /// time unit encodings.
1512 ///
1513 UINT32 TimeUnit:3;
1514 UINT32 Reserved1:2;
1515 ///
1516 /// [Bit 15] Valid (R/W) Indicates whether the values in bits 12:0 are
1517 /// valid and can be used by the processor for package C-sate management.
1518 ///
1519 UINT32 Valid:1;
1520 UINT32 Reserved2:16;
1521 UINT32 Reserved3:32;
1522 } Bits;
1523 ///
1524 /// All bit fields as a 32-bit value
1525 ///
1526 UINT32 Uint32;
1527 ///
1528 /// All bit fields as a 64-bit value
1529 ///
1530 UINT64 Uint64;
1531 } MSR_GOLDMONT_PKGC3_IRTL_REGISTER;
1532
1533
1534 /**
1535 Package. Package C6/C7S Interrupt Response Limit 1 (R/W) This MSR defines
1536 the interrupt response time limit used by the processor to manage transition
1537 to package C6 or C7S state. Note: C-state values are processor specific
1538 C-state code names, unrelated to MWAIT extension C-state parameters or ACPI
1539 CStates.
1540
1541 @param ECX MSR_GOLDMONT_PKGC_IRTL1 (0x0000060B)
1542 @param EAX Lower 32-bits of MSR value.
1543 Described by the type MSR_GOLDMONT_PKGC_IRTL1_REGISTER.
1544 @param EDX Upper 32-bits of MSR value.
1545 Described by the type MSR_GOLDMONT_PKGC_IRTL1_REGISTER.
1546
1547 <b>Example usage</b>
1548 @code
1549 MSR_GOLDMONT_PKGC_IRTL1_REGISTER Msr;
1550
1551 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PKGC_IRTL1);
1552 AsmWriteMsr64 (MSR_GOLDMONT_PKGC_IRTL1, Msr.Uint64);
1553 @endcode
1554 @note MSR_GOLDMONT_PKGC_IRTL1 is defined as MSR_PKGC_IRTL1 in SDM.
1555 **/
1556 #define MSR_GOLDMONT_PKGC_IRTL1 0x0000060B
1557
1558 /**
1559 MSR information returned for MSR index #MSR_GOLDMONT_PKGC_IRTL1
1560 **/
1561 typedef union {
1562 ///
1563 /// Individual bit fields
1564 ///
1565 struct {
1566 ///
1567 /// [Bits 9:0] Interrupt response time limit (R/W) Specifies the limit
1568 /// that should be used to decide if the package should be put into a
1569 /// package C6 or C7S state.
1570 ///
1571 UINT32 InterruptResponseTimeLimit:10;
1572 ///
1573 /// [Bits 12:10] Time Unit (R/W) Specifies the encoding value of time unit
1574 /// of the interrupt response time limit. See Table 2-19 for supported
1575 /// time unit encodings.
1576 ///
1577 UINT32 TimeUnit:3;
1578 UINT32 Reserved1:2;
1579 ///
1580 /// [Bit 15] Valid (R/W) Indicates whether the values in bits 12:0 are
1581 /// valid and can be used by the processor for package C-sate management.
1582 ///
1583 UINT32 Valid:1;
1584 UINT32 Reserved2:16;
1585 UINT32 Reserved3:32;
1586 } Bits;
1587 ///
1588 /// All bit fields as a 32-bit value
1589 ///
1590 UINT32 Uint32;
1591 ///
1592 /// All bit fields as a 64-bit value
1593 ///
1594 UINT64 Uint64;
1595 } MSR_GOLDMONT_PKGC_IRTL1_REGISTER;
1596
1597
1598 /**
1599 Package. Package C7 Interrupt Response Limit 2 (R/W) This MSR defines the
1600 interrupt response time limit used by the processor to manage transition to
1601 package C7 state. Note: C-state values are processor specific C-state code
1602 names, unrelated to MWAIT extension C-state parameters or ACPI CStates.
1603
1604 @param ECX MSR_GOLDMONT_PKGC_IRTL2 (0x0000060C)
1605 @param EAX Lower 32-bits of MSR value.
1606 Described by the type MSR_GOLDMONT_PKGC_IRTL2_REGISTER.
1607 @param EDX Upper 32-bits of MSR value.
1608 Described by the type MSR_GOLDMONT_PKGC_IRTL2_REGISTER.
1609
1610 <b>Example usage</b>
1611 @code
1612 MSR_GOLDMONT_PKGC_IRTL2_REGISTER Msr;
1613
1614 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PKGC_IRTL2);
1615 AsmWriteMsr64 (MSR_GOLDMONT_PKGC_IRTL2, Msr.Uint64);
1616 @endcode
1617 @note MSR_GOLDMONT_PKGC_IRTL2 is defined as MSR_PKGC_IRTL2 in SDM.
1618 **/
1619 #define MSR_GOLDMONT_PKGC_IRTL2 0x0000060C
1620
1621 /**
1622 MSR information returned for MSR index #MSR_GOLDMONT_PKGC_IRTL2
1623 **/
1624 typedef union {
1625 ///
1626 /// Individual bit fields
1627 ///
1628 struct {
1629 ///
1630 /// [Bits 9:0] Interrupt response time limit (R/W) Specifies the limit
1631 /// that should be used to decide if the package should be put into a
1632 /// package C7 state.
1633 ///
1634 UINT32 InterruptResponseTimeLimit:10;
1635 ///
1636 /// [Bits 12:10] Time Unit (R/W) Specifies the encoding value of time unit
1637 /// of the interrupt response time limit. See Table 2-19 for supported
1638 /// time unit encodings.
1639 ///
1640 UINT32 TimeUnit:3;
1641 UINT32 Reserved1:2;
1642 ///
1643 /// [Bit 15] Valid (R/W) Indicates whether the values in bits 12:0 are
1644 /// valid and can be used by the processor for package C-sate management.
1645 ///
1646 UINT32 Valid:1;
1647 UINT32 Reserved2:16;
1648 UINT32 Reserved3:32;
1649 } Bits;
1650 ///
1651 /// All bit fields as a 32-bit value
1652 ///
1653 UINT32 Uint32;
1654 ///
1655 /// All bit fields as a 64-bit value
1656 ///
1657 UINT64 Uint64;
1658 } MSR_GOLDMONT_PKGC_IRTL2_REGISTER;
1659
1660
1661 /**
1662 Package. Note: C-state values are processor specific C-state code names,
1663 unrelated to MWAIT extension C-state parameters or ACPI CStates. Package C2
1664 Residency Counter. (R/O) Value since last reset that this package is in
1665 processor-specific C2 states. Count at the same frequency as the TSC.
1666
1667 @param ECX MSR_GOLDMONT_PKG_C2_RESIDENCY (0x0000060D)
1668 @param EAX Lower 32-bits of MSR value.
1669 @param EDX Upper 32-bits of MSR value.
1670
1671 <b>Example usage</b>
1672 @code
1673 UINT64 Msr;
1674
1675 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_C2_RESIDENCY);
1676 AsmWriteMsr64 (MSR_GOLDMONT_PKG_C2_RESIDENCY, Msr);
1677 @endcode
1678 @note MSR_GOLDMONT_PKG_C2_RESIDENCY is defined as MSR_PKG_C2_RESIDENCY in SDM.
1679 **/
1680 #define MSR_GOLDMONT_PKG_C2_RESIDENCY 0x0000060D
1681
1682
1683 /**
1684 Package. PKG RAPL Power Limit Control (R/W) See Section 14.9.3, "Package
1685 RAPL Domain.".
1686
1687 @param ECX MSR_GOLDMONT_PKG_POWER_LIMIT (0x00000610)
1688 @param EAX Lower 32-bits of MSR value.
1689 @param EDX Upper 32-bits of MSR value.
1690
1691 <b>Example usage</b>
1692 @code
1693 UINT64 Msr;
1694
1695 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_POWER_LIMIT);
1696 AsmWriteMsr64 (MSR_GOLDMONT_PKG_POWER_LIMIT, Msr);
1697 @endcode
1698 @note MSR_GOLDMONT_PKG_POWER_LIMIT is defined as MSR_PKG_POWER_LIMIT in SDM.
1699 **/
1700 #define MSR_GOLDMONT_PKG_POWER_LIMIT 0x00000610
1701
1702
1703 /**
1704 Package. PKG Energy Status (R/O) See Section 14.9.3, "Package RAPL Domain.".
1705
1706 @param ECX MSR_GOLDMONT_PKG_ENERGY_STATUS (0x00000611)
1707 @param EAX Lower 32-bits of MSR value.
1708 @param EDX Upper 32-bits of MSR value.
1709
1710 <b>Example usage</b>
1711 @code
1712 UINT64 Msr;
1713
1714 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_ENERGY_STATUS);
1715 @endcode
1716 @note MSR_GOLDMONT_PKG_ENERGY_STATUS is defined as MSR_PKG_ENERGY_STATUS in SDM.
1717 **/
1718 #define MSR_GOLDMONT_PKG_ENERGY_STATUS 0x00000611
1719
1720
1721 /**
1722 Package. PKG Perf Status (R/O) See Section 14.9.3, "Package RAPL Domain.".
1723
1724 @param ECX MSR_GOLDMONT_PKG_PERF_STATUS (0x00000613)
1725 @param EAX Lower 32-bits of MSR value.
1726 @param EDX Upper 32-bits of MSR value.
1727
1728 <b>Example usage</b>
1729 @code
1730 UINT64 Msr;
1731
1732 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_PERF_STATUS);
1733 @endcode
1734 @note MSR_GOLDMONT_PKG_PERF_STATUS is defined as MSR_PKG_PERF_STATUS in SDM.
1735 **/
1736 #define MSR_GOLDMONT_PKG_PERF_STATUS 0x00000613
1737
1738
1739 /**
1740 Package. PKG RAPL Parameters (R/W).
1741
1742 @param ECX MSR_GOLDMONT_PKG_POWER_INFO (0x00000614)
1743 @param EAX Lower 32-bits of MSR value.
1744 Described by the type MSR_GOLDMONT_PKG_POWER_INFO_REGISTER.
1745 @param EDX Upper 32-bits of MSR value.
1746 Described by the type MSR_GOLDMONT_PKG_POWER_INFO_REGISTER.
1747
1748 <b>Example usage</b>
1749 @code
1750 MSR_GOLDMONT_PKG_POWER_INFO_REGISTER Msr;
1751
1752 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_PKG_POWER_INFO);
1753 AsmWriteMsr64 (MSR_GOLDMONT_PKG_POWER_INFO, Msr.Uint64);
1754 @endcode
1755 @note MSR_GOLDMONT_PKG_POWER_INFO is defined as MSR_PKG_POWER_INFO in SDM.
1756 **/
1757 #define MSR_GOLDMONT_PKG_POWER_INFO 0x00000614
1758
1759 /**
1760 MSR information returned for MSR index #MSR_GOLDMONT_PKG_POWER_INFO
1761 **/
1762 typedef union {
1763 ///
1764 /// Individual bit fields
1765 ///
1766 struct {
1767 ///
1768 /// [Bits 14:0] Thermal Spec Power (R/W) See Section 14.9.3, "Package
1769 /// RAPL Domain.".
1770 ///
1771 UINT32 ThermalSpecPower:15;
1772 UINT32 Reserved1:1;
1773 ///
1774 /// [Bits 30:16] Minimum Power (R/W) See Section 14.9.3, "Package RAPL
1775 /// Domain.".
1776 ///
1777 UINT32 MinimumPower:15;
1778 UINT32 Reserved2:1;
1779 ///
1780 /// [Bits 46:32] Maximum Power (R/W) See Section 14.9.3, "Package RAPL
1781 /// Domain.".
1782 ///
1783 UINT32 MaximumPower:15;
1784 UINT32 Reserved3:1;
1785 ///
1786 /// [Bits 54:48] Maximum Time Window (R/W) Specified by 2^Y * (1.0 +
1787 /// Z/4.0) * Time_Unit, where "Y" is the unsigned integer value
1788 /// represented. by bits 52:48, "Z" is an unsigned integer represented by
1789 /// bits 54:53. "Time_Unit" is specified by the "Time Units" field of
1790 /// MSR_RAPL_POWER_UNIT.
1791 ///
1792 UINT32 MaximumTimeWindow:7;
1793 UINT32 Reserved4:9;
1794 } Bits;
1795 ///
1796 /// All bit fields as a 64-bit value
1797 ///
1798 UINT64 Uint64;
1799 } MSR_GOLDMONT_PKG_POWER_INFO_REGISTER;
1800
1801
1802 /**
1803 Package. DRAM RAPL Power Limit Control (R/W) See Section 14.9.5, "DRAM RAPL
1804 Domain.".
1805
1806 @param ECX MSR_GOLDMONT_DRAM_POWER_LIMIT (0x00000618)
1807 @param EAX Lower 32-bits of MSR value.
1808 @param EDX Upper 32-bits of MSR value.
1809
1810 <b>Example usage</b>
1811 @code
1812 UINT64 Msr;
1813
1814 Msr = AsmReadMsr64 (MSR_GOLDMONT_DRAM_POWER_LIMIT);
1815 AsmWriteMsr64 (MSR_GOLDMONT_DRAM_POWER_LIMIT, Msr);
1816 @endcode
1817 @note MSR_GOLDMONT_DRAM_POWER_LIMIT is defined as MSR_DRAM_POWER_LIMIT in SDM.
1818 **/
1819 #define MSR_GOLDMONT_DRAM_POWER_LIMIT 0x00000618
1820
1821
1822 /**
1823 Package. DRAM Energy Status (R/O) See Section 14.9.5, "DRAM RAPL Domain.".
1824
1825 @param ECX MSR_GOLDMONT_DRAM_ENERGY_STATUS (0x00000619)
1826 @param EAX Lower 32-bits of MSR value.
1827 @param EDX Upper 32-bits of MSR value.
1828
1829 <b>Example usage</b>
1830 @code
1831 UINT64 Msr;
1832
1833 Msr = AsmReadMsr64 (MSR_GOLDMONT_DRAM_ENERGY_STATUS);
1834 @endcode
1835 @note MSR_GOLDMONT_DRAM_ENERGY_STATUS is defined as MSR_DRAM_ENERGY_STATUS in SDM.
1836 **/
1837 #define MSR_GOLDMONT_DRAM_ENERGY_STATUS 0x00000619
1838
1839
1840 /**
1841 Package. DRAM Performance Throttling Status (R/O) See Section 14.9.5, "DRAM
1842 RAPL Domain.".
1843
1844 @param ECX MSR_GOLDMONT_DRAM_PERF_STATUS (0x0000061B)
1845 @param EAX Lower 32-bits of MSR value.
1846 @param EDX Upper 32-bits of MSR value.
1847
1848 <b>Example usage</b>
1849 @code
1850 UINT64 Msr;
1851
1852 Msr = AsmReadMsr64 (MSR_GOLDMONT_DRAM_PERF_STATUS);
1853 @endcode
1854 @note MSR_GOLDMONT_DRAM_PERF_STATUS is defined as MSR_DRAM_PERF_STATUS in SDM.
1855 **/
1856 #define MSR_GOLDMONT_DRAM_PERF_STATUS 0x0000061B
1857
1858
1859 /**
1860 Package. DRAM RAPL Parameters (R/W) See Section 14.9.5, "DRAM RAPL Domain.".
1861
1862 @param ECX MSR_GOLDMONT_DRAM_POWER_INFO (0x0000061C)
1863 @param EAX Lower 32-bits of MSR value.
1864 @param EDX Upper 32-bits of MSR value.
1865
1866 <b>Example usage</b>
1867 @code
1868 UINT64 Msr;
1869
1870 Msr = AsmReadMsr64 (MSR_GOLDMONT_DRAM_POWER_INFO);
1871 AsmWriteMsr64 (MSR_GOLDMONT_DRAM_POWER_INFO, Msr);
1872 @endcode
1873 @note MSR_GOLDMONT_DRAM_POWER_INFO is defined as MSR_DRAM_POWER_INFO in SDM.
1874 **/
1875 #define MSR_GOLDMONT_DRAM_POWER_INFO 0x0000061C
1876
1877
1878 /**
1879 Package. Note: C-state values are processor specific C-state code names,.
1880 Package C10 Residency Counter. (R/O) Value since last reset that the entire
1881 SOC is in an S0i3 state. Count at the same frequency as the TSC.
1882
1883 @param ECX MSR_GOLDMONT_PKG_C10_RESIDENCY (0x00000632)
1884 @param EAX Lower 32-bits of MSR value.
1885 @param EDX Upper 32-bits of MSR value.
1886
1887 <b>Example usage</b>
1888 @code
1889 UINT64 Msr;
1890
1891 Msr = AsmReadMsr64 (MSR_GOLDMONT_PKG_C10_RESIDENCY);
1892 AsmWriteMsr64 (MSR_GOLDMONT_PKG_C10_RESIDENCY, Msr);
1893 @endcode
1894 @note MSR_GOLDMONT_PKG_C10_RESIDENCY is defined as MSR_PKG_C10_RESIDENCY in SDM.
1895 **/
1896 #define MSR_GOLDMONT_PKG_C10_RESIDENCY 0x00000632
1897
1898
1899 /**
1900 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL
1901 Domains.".
1902
1903 @param ECX MSR_GOLDMONT_PP0_ENERGY_STATUS (0x00000639)
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_GOLDMONT_PP0_ENERGY_STATUS);
1912 @endcode
1913 @note MSR_GOLDMONT_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
1914 **/
1915 #define MSR_GOLDMONT_PP0_ENERGY_STATUS 0x00000639
1916
1917
1918 /**
1919 Package. PP1 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL
1920 Domains.".
1921
1922 @param ECX MSR_GOLDMONT_PP1_ENERGY_STATUS (0x00000641)
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_GOLDMONT_PP1_ENERGY_STATUS);
1931 @endcode
1932 @note MSR_GOLDMONT_PP1_ENERGY_STATUS is defined as MSR_PP1_ENERGY_STATUS in SDM.
1933 **/
1934 #define MSR_GOLDMONT_PP1_ENERGY_STATUS 0x00000641
1935
1936
1937 /**
1938 Package. ConfigTDP Control (R/W).
1939
1940 @param ECX MSR_GOLDMONT_TURBO_ACTIVATION_RATIO (0x0000064C)
1941 @param EAX Lower 32-bits of MSR value.
1942 Described by the type MSR_GOLDMONT_TURBO_ACTIVATION_RATIO_REGISTER.
1943 @param EDX Upper 32-bits of MSR value.
1944 Described by the type MSR_GOLDMONT_TURBO_ACTIVATION_RATIO_REGISTER.
1945
1946 <b>Example usage</b>
1947 @code
1948 MSR_GOLDMONT_TURBO_ACTIVATION_RATIO_REGISTER Msr;
1949
1950 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_TURBO_ACTIVATION_RATIO);
1951 AsmWriteMsr64 (MSR_GOLDMONT_TURBO_ACTIVATION_RATIO, Msr.Uint64);
1952 @endcode
1953 @note MSR_GOLDMONT_TURBO_ACTIVATION_RATIO is defined as MSR_TURBO_ACTIVATION_RATIO in SDM.
1954 **/
1955 #define MSR_GOLDMONT_TURBO_ACTIVATION_RATIO 0x0000064C
1956
1957 /**
1958 MSR information returned for MSR index #MSR_GOLDMONT_TURBO_ACTIVATION_RATIO
1959 **/
1960 typedef union {
1961 ///
1962 /// Individual bit fields
1963 ///
1964 struct {
1965 ///
1966 /// [Bits 7:0] MAX_NON_TURBO_RATIO (RW/L) System BIOS can program this
1967 /// field.
1968 ///
1969 UINT32 MAX_NON_TURBO_RATIO:8;
1970 UINT32 Reserved1:23;
1971 ///
1972 /// [Bit 31] TURBO_ACTIVATION_RATIO_Lock (RW/L) When this bit is set, the
1973 /// content of this register is locked until a reset.
1974 ///
1975 UINT32 TURBO_ACTIVATION_RATIO_Lock:1;
1976 UINT32 Reserved2:32;
1977 } Bits;
1978 ///
1979 /// All bit fields as a 32-bit value
1980 ///
1981 UINT32 Uint32;
1982 ///
1983 /// All bit fields as a 64-bit value
1984 ///
1985 UINT64 Uint64;
1986 } MSR_GOLDMONT_TURBO_ACTIVATION_RATIO_REGISTER;
1987
1988
1989 /**
1990 Package. Indicator of Frequency Clipping in Processor Cores (R/W) (frequency
1991 refers to processor core frequency).
1992
1993 @param ECX MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS (0x0000064F)
1994 @param EAX Lower 32-bits of MSR value.
1995 Described by the type MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS_REGISTER.
1996 @param EDX Upper 32-bits of MSR value.
1997 Described by the type MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS_REGISTER.
1998
1999 <b>Example usage</b>
2000 @code
2001 MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS_REGISTER Msr;
2002
2003 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS);
2004 AsmWriteMsr64 (MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS, Msr.Uint64);
2005 @endcode
2006 @note MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS is defined as MSR_CORE_PERF_LIMIT_REASONS in SDM.
2007 **/
2008 #define MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS 0x0000064F
2009
2010 /**
2011 MSR information returned for MSR index #MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS
2012 **/
2013 typedef union {
2014 ///
2015 /// Individual bit fields
2016 ///
2017 struct {
2018 ///
2019 /// [Bit 0] PROCHOT Status (R0) When set, processor core frequency is
2020 /// reduced below the operating system request due to assertion of
2021 /// external PROCHOT.
2022 ///
2023 UINT32 PROCHOTStatus:1;
2024 ///
2025 /// [Bit 1] Thermal Status (R0) When set, frequency is reduced below the
2026 /// operating system request due to a thermal event.
2027 ///
2028 UINT32 ThermalStatus:1;
2029 ///
2030 /// [Bit 2] Package-Level Power Limiting PL1 Status (R0) When set,
2031 /// frequency is reduced below the operating system request due to
2032 /// package-level power limiting PL1.
2033 ///
2034 UINT32 PL1Status:1;
2035 ///
2036 /// [Bit 3] Package-Level PL2 Power Limiting Status (R0) When set,
2037 /// frequency is reduced below the operating system request due to
2038 /// package-level power limiting PL2.
2039 ///
2040 UINT32 PL2Status:1;
2041 UINT32 Reserved1:5;
2042 ///
2043 /// [Bit 9] Core Power Limiting Status (R0) When set, frequency is reduced
2044 /// below the operating system request due to domain-level power limiting.
2045 ///
2046 UINT32 PowerLimitingStatus:1;
2047 ///
2048 /// [Bit 10] VR Therm Alert Status (R0) When set, frequency is reduced
2049 /// below the operating system request due to a thermal alert from the
2050 /// Voltage Regulator.
2051 ///
2052 UINT32 VRThermAlertStatus:1;
2053 ///
2054 /// [Bit 11] Max Turbo Limit Status (R0) When set, frequency is reduced
2055 /// below the operating system request due to multi-core turbo limits.
2056 ///
2057 UINT32 MaxTurboLimitStatus:1;
2058 ///
2059 /// [Bit 12] Electrical Design Point Status (R0) When set, frequency is
2060 /// reduced below the operating system request due to electrical design
2061 /// point constraints (e.g. maximum electrical current consumption).
2062 ///
2063 UINT32 ElectricalDesignPointStatus:1;
2064 ///
2065 /// [Bit 13] Turbo Transition Attenuation Status (R0) When set, frequency
2066 /// is reduced below the operating system request due to Turbo transition
2067 /// attenuation. This prevents performance degradation due to frequent
2068 /// operating ratio changes.
2069 ///
2070 UINT32 TurboTransitionAttenuationStatus:1;
2071 ///
2072 /// [Bit 14] Maximum Efficiency Frequency Status (R0) When set, frequency
2073 /// is reduced below the maximum efficiency frequency.
2074 ///
2075 UINT32 MaximumEfficiencyFrequencyStatus:1;
2076 UINT32 Reserved2:1;
2077 ///
2078 /// [Bit 16] PROCHOT Log When set, indicates that the PROCHOT Status bit
2079 /// has asserted since the log bit was last cleared. This log bit will
2080 /// remain set until cleared by software writing 0.
2081 ///
2082 UINT32 PROCHOT:1;
2083 ///
2084 /// [Bit 17] Thermal Log When set, indicates that the Thermal Status bit
2085 /// has asserted since the log bit was last cleared. This log bit will
2086 /// remain set until cleared by software writing 0.
2087 ///
2088 UINT32 ThermalLog:1;
2089 ///
2090 /// [Bit 18] Package-Level PL1 Power Limiting Log When set, indicates
2091 /// that the Package Level PL1 Power Limiting Status bit has asserted
2092 /// since the log bit was last cleared. This log bit will remain set until
2093 /// cleared by software writing 0.
2094 ///
2095 UINT32 PL1Log:1;
2096 ///
2097 /// [Bit 19] Package-Level PL2 Power Limiting Log When set, indicates that
2098 /// the Package Level PL2 Power Limiting Status bit has asserted since the
2099 /// log bit was last cleared. This log bit will remain set until cleared
2100 /// by software writing 0.
2101 ///
2102 UINT32 PL2Log:1;
2103 UINT32 Reserved3:5;
2104 ///
2105 /// [Bit 25] Core Power Limiting Log When set, indicates that the Core
2106 /// Power Limiting Status bit has asserted since the log bit was last
2107 /// cleared. This log bit will remain set until cleared by software
2108 /// writing 0.
2109 ///
2110 UINT32 CorePowerLimitingLog:1;
2111 ///
2112 /// [Bit 26] VR Therm Alert Log When set, indicates that the VR Therm
2113 /// Alert Status bit has asserted since the log bit was last cleared. This
2114 /// log bit will remain set until cleared by software writing 0.
2115 ///
2116 UINT32 VRThermAlertLog:1;
2117 ///
2118 /// [Bit 27] Max Turbo Limit Log When set, indicates that the Max Turbo
2119 /// Limit Status bit has asserted since the log bit was last cleared. This
2120 /// log bit will remain set until cleared by software writing 0.
2121 ///
2122 UINT32 MaxTurboLimitLog:1;
2123 ///
2124 /// [Bit 28] Electrical Design Point Log When set, indicates that the EDP
2125 /// Status bit has asserted since the log bit was last cleared. This log
2126 /// bit will remain set until cleared by software writing 0.
2127 ///
2128 UINT32 ElectricalDesignPointLog:1;
2129 ///
2130 /// [Bit 29] Turbo Transition Attenuation Log When set, indicates that the
2131 /// Turbo Transition Attenuation Status bit has asserted since the log bit
2132 /// was last cleared. This log bit will remain set until cleared by
2133 /// software writing 0.
2134 ///
2135 UINT32 TurboTransitionAttenuationLog:1;
2136 ///
2137 /// [Bit 30] Maximum Efficiency Frequency Log When set, indicates that
2138 /// the Maximum Efficiency Frequency Status bit has asserted since the log
2139 /// bit was last cleared. This log bit will remain set until cleared by
2140 /// software writing 0.
2141 ///
2142 UINT32 MaximumEfficiencyFrequencyLog:1;
2143 UINT32 Reserved4:1;
2144 UINT32 Reserved5:32;
2145 } Bits;
2146 ///
2147 /// All bit fields as a 32-bit value
2148 ///
2149 UINT32 Uint32;
2150 ///
2151 /// All bit fields as a 64-bit value
2152 ///
2153 UINT64 Uint64;
2154 } MSR_GOLDMONT_CORE_PERF_LIMIT_REASONS_REGISTER;
2155
2156
2157 /**
2158 Core. Last Branch Record n From IP (R/W) One of 32 pairs of last branch
2159 record registers on the last branch record stack. The From_IP part of the
2160 stack contains pointers to the source instruction . See also: - Last Branch
2161 Record Stack TOS at 1C9H - Section 17.6 and record format in Section
2162 17.4.8.1.
2163
2164 @param ECX MSR_GOLDMONT_LASTBRANCH_n_FROM_IP
2165 @param EAX Lower 32-bits of MSR value.
2166 Described by the type MSR_GOLDMONT_LASTBRANCH_FROM_IP_REGISTER.
2167 @param EDX Upper 32-bits of MSR value.
2168 Described by the type MSR_GOLDMONT_LASTBRANCH_FROM_IP_REGISTER.
2169
2170 <b>Example usage</b>
2171 @code
2172 MSR_GOLDMONT_LASTBRANCH_FROM_IP_REGISTER Msr;
2173
2174 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_LASTBRANCH_n_FROM_IP);
2175 AsmWriteMsr64 (MSR_GOLDMONT_LASTBRANCH_n_FROM_IP, Msr.Uint64);
2176 @endcode
2177 @note MSR_GOLDMONT_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.
2178 MSR_GOLDMONT_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.
2179 MSR_GOLDMONT_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.
2180 MSR_GOLDMONT_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.
2181 MSR_GOLDMONT_LASTBRANCH_4_FROM_IP is defined as MSR_LASTBRANCH_4_FROM_IP in SDM.
2182 MSR_GOLDMONT_LASTBRANCH_5_FROM_IP is defined as MSR_LASTBRANCH_5_FROM_IP in SDM.
2183 MSR_GOLDMONT_LASTBRANCH_6_FROM_IP is defined as MSR_LASTBRANCH_6_FROM_IP in SDM.
2184 MSR_GOLDMONT_LASTBRANCH_7_FROM_IP is defined as MSR_LASTBRANCH_7_FROM_IP in SDM.
2185 MSR_GOLDMONT_LASTBRANCH_8_FROM_IP is defined as MSR_LASTBRANCH_8_FROM_IP in SDM.
2186 MSR_GOLDMONT_LASTBRANCH_9_FROM_IP is defined as MSR_LASTBRANCH_9_FROM_IP in SDM.
2187 MSR_GOLDMONT_LASTBRANCH_10_FROM_IP is defined as MSR_LASTBRANCH_10_FROM_IP in SDM.
2188 MSR_GOLDMONT_LASTBRANCH_11_FROM_IP is defined as MSR_LASTBRANCH_11_FROM_IP in SDM.
2189 MSR_GOLDMONT_LASTBRANCH_12_FROM_IP is defined as MSR_LASTBRANCH_12_FROM_IP in SDM.
2190 MSR_GOLDMONT_LASTBRANCH_13_FROM_IP is defined as MSR_LASTBRANCH_13_FROM_IP in SDM.
2191 MSR_GOLDMONT_LASTBRANCH_14_FROM_IP is defined as MSR_LASTBRANCH_14_FROM_IP in SDM.
2192 MSR_GOLDMONT_LASTBRANCH_15_FROM_IP is defined as MSR_LASTBRANCH_15_FROM_IP in SDM.
2193 MSR_GOLDMONT_LASTBRANCH_16_FROM_IP is defined as MSR_LASTBRANCH_16_FROM_IP in SDM.
2194 MSR_GOLDMONT_LASTBRANCH_17_FROM_IP is defined as MSR_LASTBRANCH_17_FROM_IP in SDM.
2195 MSR_GOLDMONT_LASTBRANCH_18_FROM_IP is defined as MSR_LASTBRANCH_18_FROM_IP in SDM.
2196 MSR_GOLDMONT_LASTBRANCH_19_FROM_IP is defined as MSR_LASTBRANCH_19_FROM_IP in SDM.
2197 MSR_GOLDMONT_LASTBRANCH_20_FROM_IP is defined as MSR_LASTBRANCH_20_FROM_IP in SDM.
2198 MSR_GOLDMONT_LASTBRANCH_21_FROM_IP is defined as MSR_LASTBRANCH_21_FROM_IP in SDM.
2199 MSR_GOLDMONT_LASTBRANCH_22_FROM_IP is defined as MSR_LASTBRANCH_22_FROM_IP in SDM.
2200 MSR_GOLDMONT_LASTBRANCH_23_FROM_IP is defined as MSR_LASTBRANCH_23_FROM_IP in SDM.
2201 MSR_GOLDMONT_LASTBRANCH_24_FROM_IP is defined as MSR_LASTBRANCH_24_FROM_IP in SDM.
2202 MSR_GOLDMONT_LASTBRANCH_25_FROM_IP is defined as MSR_LASTBRANCH_25_FROM_IP in SDM.
2203 MSR_GOLDMONT_LASTBRANCH_26_FROM_IP is defined as MSR_LASTBRANCH_26_FROM_IP in SDM.
2204 MSR_GOLDMONT_LASTBRANCH_27_FROM_IP is defined as MSR_LASTBRANCH_27_FROM_IP in SDM.
2205 MSR_GOLDMONT_LASTBRANCH_28_FROM_IP is defined as MSR_LASTBRANCH_28_FROM_IP in SDM.
2206 MSR_GOLDMONT_LASTBRANCH_29_FROM_IP is defined as MSR_LASTBRANCH_29_FROM_IP in SDM.
2207 MSR_GOLDMONT_LASTBRANCH_30_FROM_IP is defined as MSR_LASTBRANCH_30_FROM_IP in SDM.
2208 MSR_GOLDMONT_LASTBRANCH_31_FROM_IP is defined as MSR_LASTBRANCH_31_FROM_IP in SDM.
2209 @{
2210 **/
2211 #define MSR_GOLDMONT_LASTBRANCH_0_FROM_IP 0x00000680
2212 #define MSR_GOLDMONT_LASTBRANCH_1_FROM_IP 0x00000681
2213 #define MSR_GOLDMONT_LASTBRANCH_2_FROM_IP 0x00000682
2214 #define MSR_GOLDMONT_LASTBRANCH_3_FROM_IP 0x00000683
2215 #define MSR_GOLDMONT_LASTBRANCH_4_FROM_IP 0x00000684
2216 #define MSR_GOLDMONT_LASTBRANCH_5_FROM_IP 0x00000685
2217 #define MSR_GOLDMONT_LASTBRANCH_6_FROM_IP 0x00000686
2218 #define MSR_GOLDMONT_LASTBRANCH_7_FROM_IP 0x00000687
2219 #define MSR_GOLDMONT_LASTBRANCH_8_FROM_IP 0x00000688
2220 #define MSR_GOLDMONT_LASTBRANCH_9_FROM_IP 0x00000689
2221 #define MSR_GOLDMONT_LASTBRANCH_10_FROM_IP 0x0000068A
2222 #define MSR_GOLDMONT_LASTBRANCH_11_FROM_IP 0x0000068B
2223 #define MSR_GOLDMONT_LASTBRANCH_12_FROM_IP 0x0000068C
2224 #define MSR_GOLDMONT_LASTBRANCH_13_FROM_IP 0x0000068D
2225 #define MSR_GOLDMONT_LASTBRANCH_14_FROM_IP 0x0000068E
2226 #define MSR_GOLDMONT_LASTBRANCH_15_FROM_IP 0x0000068F
2227 #define MSR_GOLDMONT_LASTBRANCH_16_FROM_IP 0x00000690
2228 #define MSR_GOLDMONT_LASTBRANCH_17_FROM_IP 0x00000691
2229 #define MSR_GOLDMONT_LASTBRANCH_18_FROM_IP 0x00000692
2230 #define MSR_GOLDMONT_LASTBRANCH_19_FROM_IP 0x00000693
2231 #define MSR_GOLDMONT_LASTBRANCH_20_FROM_IP 0x00000694
2232 #define MSR_GOLDMONT_LASTBRANCH_21_FROM_IP 0x00000695
2233 #define MSR_GOLDMONT_LASTBRANCH_22_FROM_IP 0x00000696
2234 #define MSR_GOLDMONT_LASTBRANCH_23_FROM_IP 0x00000697
2235 #define MSR_GOLDMONT_LASTBRANCH_24_FROM_IP 0x00000698
2236 #define MSR_GOLDMONT_LASTBRANCH_25_FROM_IP 0x00000699
2237 #define MSR_GOLDMONT_LASTBRANCH_26_FROM_IP 0x0000069A
2238 #define MSR_GOLDMONT_LASTBRANCH_27_FROM_IP 0x0000069B
2239 #define MSR_GOLDMONT_LASTBRANCH_28_FROM_IP 0x0000069C
2240 #define MSR_GOLDMONT_LASTBRANCH_29_FROM_IP 0x0000069D
2241 #define MSR_GOLDMONT_LASTBRANCH_30_FROM_IP 0x0000069E
2242 #define MSR_GOLDMONT_LASTBRANCH_31_FROM_IP 0x0000069F
2243 /// @}
2244
2245 /**
2246 MSR information returned for MSR indexes #MSR_GOLDMONT_LASTBRANCH_0_FROM_IP
2247 to #MSR_GOLDMONT_LASTBRANCH_31_FROM_IP.
2248 **/
2249 typedef union {
2250 ///
2251 /// Individual bit fields
2252 ///
2253 struct {
2254 ///
2255 /// [Bit 31:0] From Linear Address (R/W).
2256 ///
2257 UINT32 FromLinearAddress:32;
2258 ///
2259 /// [Bit 47:32] From Linear Address (R/W).
2260 ///
2261 UINT32 FromLinearAddressHi:16;
2262 ///
2263 /// [Bits 62:48] Signed extension of bits 47:0.
2264 ///
2265 UINT32 SignedExtension:15;
2266 ///
2267 /// [Bit 63] Mispred.
2268 ///
2269 UINT32 Mispred:1;
2270 } Bits;
2271 ///
2272 /// All bit fields as a 32-bit value
2273 ///
2274 UINT32 Uint32;
2275 ///
2276 /// All bit fields as a 64-bit value
2277 ///
2278 UINT64 Uint64;
2279 } MSR_GOLDMONT_LASTBRANCH_FROM_IP_REGISTER;
2280
2281
2282 /**
2283 Core. Last Branch Record n To IP (R/W) One of 32 pairs of last branch record
2284 registers on the last branch record stack. The To_IP part of the stack
2285 contains pointers to the Destination instruction and elapsed cycles from
2286 last LBR update. See also: - Section 17.6.
2287
2288 @param ECX MSR_GOLDMONT_LASTBRANCH_n_TO_IP
2289 @param EAX Lower 32-bits of MSR value.
2290 Described by the type MSR_GOLDMONT_LASTBRANCH_TO_IP_REGISTER.
2291 @param EDX Upper 32-bits of MSR value.
2292 Described by the type MSR_GOLDMONT_LASTBRANCH_TO_IP_REGISTER.
2293
2294 <b>Example usage</b>
2295 @code
2296 MSR_GOLDMONT_LASTBRANCH_TO_IP_REGISTER Msr;
2297
2298 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_LASTBRANCH_0_TO_IP);
2299 AsmWriteMsr64 (MSR_GOLDMONT_LASTBRANCH_0_TO_IP, Msr.Uint64);
2300 @endcode
2301 @note MSR_GOLDMONT_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.
2302 MSR_GOLDMONT_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.
2303 MSR_GOLDMONT_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.
2304 MSR_GOLDMONT_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.
2305 MSR_GOLDMONT_LASTBRANCH_4_TO_IP is defined as MSR_LASTBRANCH_4_TO_IP in SDM.
2306 MSR_GOLDMONT_LASTBRANCH_5_TO_IP is defined as MSR_LASTBRANCH_5_TO_IP in SDM.
2307 MSR_GOLDMONT_LASTBRANCH_6_TO_IP is defined as MSR_LASTBRANCH_6_TO_IP in SDM.
2308 MSR_GOLDMONT_LASTBRANCH_7_TO_IP is defined as MSR_LASTBRANCH_7_TO_IP in SDM.
2309 MSR_GOLDMONT_LASTBRANCH_8_TO_IP is defined as MSR_LASTBRANCH_8_TO_IP in SDM.
2310 MSR_GOLDMONT_LASTBRANCH_9_TO_IP is defined as MSR_LASTBRANCH_9_TO_IP in SDM.
2311 MSR_GOLDMONT_LASTBRANCH_10_TO_IP is defined as MSR_LASTBRANCH_10_TO_IP in SDM.
2312 MSR_GOLDMONT_LASTBRANCH_11_TO_IP is defined as MSR_LASTBRANCH_11_TO_IP in SDM.
2313 MSR_GOLDMONT_LASTBRANCH_12_TO_IP is defined as MSR_LASTBRANCH_12_TO_IP in SDM.
2314 MSR_GOLDMONT_LASTBRANCH_13_TO_IP is defined as MSR_LASTBRANCH_13_TO_IP in SDM.
2315 MSR_GOLDMONT_LASTBRANCH_14_TO_IP is defined as MSR_LASTBRANCH_14_TO_IP in SDM.
2316 MSR_GOLDMONT_LASTBRANCH_15_TO_IP is defined as MSR_LASTBRANCH_15_TO_IP in SDM.
2317 MSR_GOLDMONT_LASTBRANCH_16_TO_IP is defined as MSR_LASTBRANCH_16_TO_IP in SDM.
2318 MSR_GOLDMONT_LASTBRANCH_17_TO_IP is defined as MSR_LASTBRANCH_17_TO_IP in SDM.
2319 MSR_GOLDMONT_LASTBRANCH_18_TO_IP is defined as MSR_LASTBRANCH_18_TO_IP in SDM.
2320 MSR_GOLDMONT_LASTBRANCH_19_TO_IP is defined as MSR_LASTBRANCH_19_TO_IP in SDM.
2321 MSR_GOLDMONT_LASTBRANCH_20_TO_IP is defined as MSR_LASTBRANCH_20_TO_IP in SDM.
2322 MSR_GOLDMONT_LASTBRANCH_21_TO_IP is defined as MSR_LASTBRANCH_21_TO_IP in SDM.
2323 MSR_GOLDMONT_LASTBRANCH_22_TO_IP is defined as MSR_LASTBRANCH_22_TO_IP in SDM.
2324 MSR_GOLDMONT_LASTBRANCH_23_TO_IP is defined as MSR_LASTBRANCH_23_TO_IP in SDM.
2325 MSR_GOLDMONT_LASTBRANCH_24_TO_IP is defined as MSR_LASTBRANCH_24_TO_IP in SDM.
2326 MSR_GOLDMONT_LASTBRANCH_25_TO_IP is defined as MSR_LASTBRANCH_25_TO_IP in SDM.
2327 MSR_GOLDMONT_LASTBRANCH_26_TO_IP is defined as MSR_LASTBRANCH_26_TO_IP in SDM.
2328 MSR_GOLDMONT_LASTBRANCH_27_TO_IP is defined as MSR_LASTBRANCH_27_TO_IP in SDM.
2329 MSR_GOLDMONT_LASTBRANCH_28_TO_IP is defined as MSR_LASTBRANCH_28_TO_IP in SDM.
2330 MSR_GOLDMONT_LASTBRANCH_29_TO_IP is defined as MSR_LASTBRANCH_29_TO_IP in SDM.
2331 MSR_GOLDMONT_LASTBRANCH_30_TO_IP is defined as MSR_LASTBRANCH_30_TO_IP in SDM.
2332 MSR_GOLDMONT_LASTBRANCH_31_TO_IP is defined as MSR_LASTBRANCH_31_TO_IP in SDM.
2333 @{
2334 **/
2335 #define MSR_GOLDMONT_LASTBRANCH_0_TO_IP 0x000006C0
2336 #define MSR_GOLDMONT_LASTBRANCH_1_TO_IP 0x000006C1
2337 #define MSR_GOLDMONT_LASTBRANCH_2_TO_IP 0x000006C2
2338 #define MSR_GOLDMONT_LASTBRANCH_3_TO_IP 0x000006C3
2339 #define MSR_GOLDMONT_LASTBRANCH_4_TO_IP 0x000006C4
2340 #define MSR_GOLDMONT_LASTBRANCH_5_TO_IP 0x000006C5
2341 #define MSR_GOLDMONT_LASTBRANCH_6_TO_IP 0x000006C6
2342 #define MSR_GOLDMONT_LASTBRANCH_7_TO_IP 0x000006C7
2343 #define MSR_GOLDMONT_LASTBRANCH_8_TO_IP 0x000006C8
2344 #define MSR_GOLDMONT_LASTBRANCH_9_TO_IP 0x000006C9
2345 #define MSR_GOLDMONT_LASTBRANCH_10_TO_IP 0x000006CA
2346 #define MSR_GOLDMONT_LASTBRANCH_11_TO_IP 0x000006CB
2347 #define MSR_GOLDMONT_LASTBRANCH_12_TO_IP 0x000006CC
2348 #define MSR_GOLDMONT_LASTBRANCH_13_TO_IP 0x000006CD
2349 #define MSR_GOLDMONT_LASTBRANCH_14_TO_IP 0x000006CE
2350 #define MSR_GOLDMONT_LASTBRANCH_15_TO_IP 0x000006CF
2351 #define MSR_GOLDMONT_LASTBRANCH_16_TO_IP 0x000006D0
2352 #define MSR_GOLDMONT_LASTBRANCH_17_TO_IP 0x000006D1
2353 #define MSR_GOLDMONT_LASTBRANCH_18_TO_IP 0x000006D2
2354 #define MSR_GOLDMONT_LASTBRANCH_19_TO_IP 0x000006D3
2355 #define MSR_GOLDMONT_LASTBRANCH_20_TO_IP 0x000006D4
2356 #define MSR_GOLDMONT_LASTBRANCH_21_TO_IP 0x000006D5
2357 #define MSR_GOLDMONT_LASTBRANCH_22_TO_IP 0x000006D6
2358 #define MSR_GOLDMONT_LASTBRANCH_23_TO_IP 0x000006D7
2359 #define MSR_GOLDMONT_LASTBRANCH_24_TO_IP 0x000006D8
2360 #define MSR_GOLDMONT_LASTBRANCH_25_TO_IP 0x000006D9
2361 #define MSR_GOLDMONT_LASTBRANCH_26_TO_IP 0x000006DA
2362 #define MSR_GOLDMONT_LASTBRANCH_27_TO_IP 0x000006DB
2363 #define MSR_GOLDMONT_LASTBRANCH_28_TO_IP 0x000006DC
2364 #define MSR_GOLDMONT_LASTBRANCH_29_TO_IP 0x000006DD
2365 #define MSR_GOLDMONT_LASTBRANCH_30_TO_IP 0x000006DE
2366 #define MSR_GOLDMONT_LASTBRANCH_31_TO_IP 0x000006DF
2367 /// @}
2368
2369 /**
2370 MSR information returned for MSR indexes #MSR_GOLDMONT_LASTBRANCH_0_TO_IP to
2371 #MSR_GOLDMONT_LASTBRANCH_31_TO_IP.
2372 **/
2373 typedef union {
2374 ///
2375 /// Individual bit fields
2376 ///
2377 struct {
2378 ///
2379 /// [Bit 31:0] Target Linear Address (R/W).
2380 ///
2381 UINT32 TargetLinearAddress:32;
2382 ///
2383 /// [Bit 47:32] Target Linear Address (R/W).
2384 ///
2385 UINT32 TargetLinearAddressHi:16;
2386 ///
2387 /// [Bits 63:48] Elapsed cycles from last update to the LBR.
2388 ///
2389 UINT32 ElapsedCycles:16;
2390 } Bits;
2391 ///
2392 /// All bit fields as a 32-bit value
2393 ///
2394 UINT32 Uint32;
2395 ///
2396 /// All bit fields as a 64-bit value
2397 ///
2398 UINT64 Uint64;
2399 } MSR_GOLDMONT_LASTBRANCH_TO_IP_REGISTER;
2400
2401
2402 /**
2403 Core. Resource Association Register (R/W).
2404
2405 @param ECX MSR_GOLDMONT_IA32_PQR_ASSOC (0x00000C8F)
2406 @param EAX Lower 32-bits of MSR value.
2407 Described by the type MSR_GOLDMONT_IA32_PQR_ASSOC_REGISTER.
2408 @param EDX Upper 32-bits of MSR value.
2409 Described by the type MSR_GOLDMONT_IA32_PQR_ASSOC_REGISTER.
2410
2411 <b>Example usage</b>
2412 @code
2413 MSR_GOLDMONT_IA32_PQR_ASSOC_REGISTER Msr;
2414
2415 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_PQR_ASSOC);
2416 AsmWriteMsr64 (MSR_GOLDMONT_IA32_PQR_ASSOC, Msr.Uint64);
2417 @endcode
2418 @note MSR_GOLDMONT_IA32_PQR_ASSOC is defined as IA32_PQR_ASSOC in SDM.
2419 **/
2420 #define MSR_GOLDMONT_IA32_PQR_ASSOC 0x00000C8F
2421
2422 /**
2423 MSR information returned for MSR index #MSR_GOLDMONT_IA32_PQR_ASSOC
2424 **/
2425 typedef union {
2426 ///
2427 /// Individual bit fields
2428 ///
2429 struct {
2430 UINT32 Reserved1:32;
2431 ///
2432 /// [Bits 33:32] COS (R/W).
2433 ///
2434 UINT32 COS:2;
2435 UINT32 Reserved2:30;
2436 } Bits;
2437 ///
2438 /// All bit fields as a 64-bit value
2439 ///
2440 UINT64 Uint64;
2441 } MSR_GOLDMONT_IA32_PQR_ASSOC_REGISTER;
2442
2443
2444 /**
2445 Module. L2 Class Of Service Mask - COS n (R/W) if CPUID.(EAX=10H,
2446 ECX=1):EDX.COS_MAX[15:0] >=n.
2447
2448 @param ECX MSR_GOLDMONT_IA32_L2_QOS_MASK_n
2449 @param EAX Lower 32-bits of MSR value.
2450 Described by the type MSR_GOLDMONT_IA32_L2_QOS_MASK_REGISTER.
2451 @param EDX Upper 32-bits of MSR value.
2452 Described by the type MSR_GOLDMONT_IA32_L2_QOS_MASK_REGISTER.
2453
2454 <b>Example usage</b>
2455 @code
2456 MSR_GOLDMONT_IA32_L2_QOS_MASK_REGISTER Msr;
2457
2458 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_L2_QOS_MASK_n);
2459 AsmWriteMsr64 (MSR_GOLDMONT_IA32_L2_QOS_MASK_n, Msr.Uint64);
2460 @endcode
2461 @note MSR_GOLDMONT_IA32_L2_QOS_MASK_0 is defined as IA32_L2_QOS_MASK_0 in SDM.
2462 MSR_GOLDMONT_IA32_L2_QOS_MASK_1 is defined as IA32_L2_QOS_MASK_1 in SDM.
2463 MSR_GOLDMONT_IA32_L2_QOS_MASK_2 is defined as IA32_L2_QOS_MASK_2 in SDM.
2464 @{
2465 **/
2466 #define MSR_GOLDMONT_IA32_L2_QOS_MASK_0 0x00000D10
2467 #define MSR_GOLDMONT_IA32_L2_QOS_MASK_1 0x00000D11
2468 #define MSR_GOLDMONT_IA32_L2_QOS_MASK_2 0x00000D12
2469 /// @}
2470
2471 /**
2472 MSR information returned for MSR indexes #MSR_GOLDMONT_IA32_L2_QOS_MASK_0 to
2473 #MSR_GOLDMONT_IA32_L2_QOS_MASK_2.
2474 **/
2475 typedef union {
2476 ///
2477 /// Individual bit fields
2478 ///
2479 struct {
2480 ///
2481 /// [Bits 7:0] CBM: Bit vector of available L2 ways for COS 0 enforcement
2482 ///
2483 UINT32 CBM:8;
2484 UINT32 Reserved1:24;
2485 UINT32 Reserved2:32;
2486 } Bits;
2487 ///
2488 /// All bit fields as a 32-bit value
2489 ///
2490 UINT32 Uint32;
2491 ///
2492 /// All bit fields as a 64-bit value
2493 ///
2494 UINT64 Uint64;
2495 } MSR_GOLDMONT_IA32_L2_QOS_MASK_REGISTER;
2496
2497
2498 /**
2499 Package. L2 Class Of Service Mask - COS 3 (R/W) if CPUID.(EAX=10H,
2500 ECX=1):EDX.COS_MAX[15:0] >=3.
2501
2502 @param ECX MSR_GOLDMONT_IA32_L2_QOS_MASK_3
2503 @param EAX Lower 32-bits of MSR value.
2504 Described by the type MSR_GOLDMONT_IA32_L2_QOS_MASK_3_REGISTER.
2505 @param EDX Upper 32-bits of MSR value.
2506 Described by the type MSR_GOLDMONT_IA32_L2_QOS_MASK_3_REGISTER.
2507
2508 <b>Example usage</b>
2509 @code
2510 MSR_GOLDMONT_IA32_L2_QOS_MASK_3_REGISTER Msr;
2511
2512 Msr.Uint64 = AsmReadMsr64 (MSR_GOLDMONT_IA32_L2_QOS_MASK_3);
2513 AsmWriteMsr64 (MSR_GOLDMONT_IA32_L2_QOS_MASK_3, Msr.Uint64);
2514 @endcode
2515 @note MSR_GOLDMONT_IA32_L2_QOS_MASK_3 is defined as IA32_L2_QOS_MASK_3 in SDM.
2516 **/
2517 #define MSR_GOLDMONT_IA32_L2_QOS_MASK_3 0x00000D13
2518
2519 /**
2520 MSR information returned for MSR index #MSR_GOLDMONT_IA32_L2_QOS_MASK_3.
2521 **/
2522 typedef union {
2523 ///
2524 /// Individual bit fields
2525 ///
2526 struct {
2527 ///
2528 /// [Bits 19:0] CBM: Bit vector of available L2 ways for COS 0 enforcement
2529 ///
2530 UINT32 CBM:20;
2531 UINT32 Reserved1:12;
2532 UINT32 Reserved2:32;
2533 } Bits;
2534 ///
2535 /// All bit fields as a 32-bit value
2536 ///
2537 UINT32 Uint32;
2538 ///
2539 /// All bit fields as a 64-bit value
2540 ///
2541 UINT64 Uint64;
2542 } MSR_GOLDMONT_IA32_L2_QOS_MASK_3_REGISTER;
2543
2544
2545 #endif