]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Register/Msr/SilvermontMsr.h
UefiCpuPkg/Include/Register/Msr: Update reference spec info.
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Msr / SilvermontMsr.h
1 /** @file
2 MSR Definitions for Intel processors based on the Silvermont 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 __SILVERMONT_MSR_H__
25 #define __SILVERMONT_MSR_H__
26
27 #include <Register/ArchitecturalMsr.h>
28
29 /**
30 Is Intel processors based on the Silvermont 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_SILVERMONT_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
40 ( \
41 DisplayModel == 0x37 || \
42 DisplayModel == 0x4A || \
43 DisplayModel == 0x4D || \
44 DisplayModel == 0x5A || \
45 DisplayModel == 0x5D \
46 ) \
47 )
48
49 /**
50 Module. Model Specific Platform ID (R).
51
52 @param ECX MSR_SILVERMONT_PLATFORM_ID (0x00000017)
53 @param EAX Lower 32-bits of MSR value.
54 Described by the type MSR_SILVERMONT_PLATFORM_ID_REGISTER.
55 @param EDX Upper 32-bits of MSR value.
56 Described by the type MSR_SILVERMONT_PLATFORM_ID_REGISTER.
57
58 <b>Example usage</b>
59 @code
60 MSR_SILVERMONT_PLATFORM_ID_REGISTER Msr;
61
62 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PLATFORM_ID);
63 @endcode
64 @note MSR_SILVERMONT_PLATFORM_ID is defined as MSR_PLATFORM_ID in SDM.
65 **/
66 #define MSR_SILVERMONT_PLATFORM_ID 0x00000017
67
68 /**
69 MSR information returned for MSR index #MSR_SILVERMONT_PLATFORM_ID
70 **/
71 typedef union {
72 ///
73 /// Individual bit fields
74 ///
75 struct {
76 UINT32 Reserved1:8;
77 ///
78 /// [Bits 12:8] Maximum Qualified Ratio (R) The maximum allowed bus ratio.
79 ///
80 UINT32 MaximumQualifiedRatio:5;
81 UINT32 Reserved2:19;
82 UINT32 Reserved3:18;
83 ///
84 /// [Bits 52:50] See Table 2-2.
85 ///
86 UINT32 PlatformId:3;
87 UINT32 Reserved4:11;
88 } Bits;
89 ///
90 /// All bit fields as a 64-bit value
91 ///
92 UINT64 Uint64;
93 } MSR_SILVERMONT_PLATFORM_ID_REGISTER;
94
95
96 /**
97 Module. Processor Hard Power-On Configuration (R/W) Writes ignored.
98
99 @param ECX MSR_SILVERMONT_EBL_CR_POWERON (0x0000002A)
100 @param EAX Lower 32-bits of MSR value.
101 Described by the type MSR_SILVERMONT_EBL_CR_POWERON_REGISTER.
102 @param EDX Upper 32-bits of MSR value.
103 Described by the type MSR_SILVERMONT_EBL_CR_POWERON_REGISTER.
104
105 <b>Example usage</b>
106 @code
107 MSR_SILVERMONT_EBL_CR_POWERON_REGISTER Msr;
108
109 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_EBL_CR_POWERON);
110 AsmWriteMsr64 (MSR_SILVERMONT_EBL_CR_POWERON, Msr.Uint64);
111 @endcode
112 @note MSR_SILVERMONT_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.
113 **/
114 #define MSR_SILVERMONT_EBL_CR_POWERON 0x0000002A
115
116 /**
117 MSR information returned for MSR index #MSR_SILVERMONT_EBL_CR_POWERON
118 **/
119 typedef union {
120 ///
121 /// Individual bit fields
122 ///
123 struct {
124 UINT32 Reserved1:32;
125 UINT32 Reserved2:32;
126 } Bits;
127 ///
128 /// All bit fields as a 32-bit value
129 ///
130 UINT32 Uint32;
131 ///
132 /// All bit fields as a 64-bit value
133 ///
134 UINT64 Uint64;
135 } MSR_SILVERMONT_EBL_CR_POWERON_REGISTER;
136
137
138 /**
139 Core. SMI Counter (R/O).
140
141 @param ECX MSR_SILVERMONT_SMI_COUNT (0x00000034)
142 @param EAX Lower 32-bits of MSR value.
143 Described by the type MSR_SILVERMONT_SMI_COUNT_REGISTER.
144 @param EDX Upper 32-bits of MSR value.
145 Described by the type MSR_SILVERMONT_SMI_COUNT_REGISTER.
146
147 <b>Example usage</b>
148 @code
149 MSR_SILVERMONT_SMI_COUNT_REGISTER Msr;
150
151 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_SMI_COUNT);
152 @endcode
153 @note MSR_SILVERMONT_SMI_COUNT is defined as MSR_SMI_COUNT in SDM.
154 **/
155 #define MSR_SILVERMONT_SMI_COUNT 0x00000034
156
157 /**
158 MSR information returned for MSR index #MSR_SILVERMONT_SMI_COUNT
159 **/
160 typedef union {
161 ///
162 /// Individual bit fields
163 ///
164 struct {
165 ///
166 /// [Bits 31:0] SMI Count (R/O) Running count of SMI events since last
167 /// RESET.
168 ///
169 UINT32 SMICount:32;
170 UINT32 Reserved:32;
171 } Bits;
172 ///
173 /// All bit fields as a 32-bit value
174 ///
175 UINT32 Uint32;
176 ///
177 /// All bit fields as a 64-bit value
178 ///
179 UINT64 Uint64;
180 } MSR_SILVERMONT_SMI_COUNT_REGISTER;
181
182
183 /**
184 Core. Control Features in Intel 64 Processor (R/W). See Table 2-2.
185
186 @param ECX MSR_IA32_SILVERMONT_FEATURE_CONTROL (0x0000003A)
187 @param EAX Lower 32-bits of MSR value.
188 Described by the type
189 MSR_SILVERMONT_IA32_FEATURE_CONTROL_REGISTER.
190 @param EDX Upper 32-bits of MSR value.
191 Described by the type
192 MSR_SILVERMONT_IA32_FEATURE_CONTROL_REGISTER.
193
194 <b>Example usage</b>
195 @code
196 MSR_SILVERMONT_IA32_FEATURE_CONTROL_REGISTER Msr;
197
198 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_IA32_FEATURE_CONTROL);
199 AsmWriteMsr64 (MSR_SILVERMONT_IA32_FEATURE_CONTROL, Msr.Uint64);
200 @endcode
201 @note MSR_SILVERMONT_IA32_FEATURE_CONTROL is defined as IA32_FEATURE_CONTROL in SDM.
202 **/
203 #define MSR_SILVERMONT_IA32_FEATURE_CONTROL 0x0000003A
204
205 /**
206 MSR information returned for MSR index #MSR_SILVERMONT_IA32_FEATURE_CONTROL
207 **/
208 typedef union {
209 ///
210 /// Individual bit fields
211 ///
212 struct {
213 ///
214 /// [Bit 0] Lock (R/WL).
215 ///
216 UINT32 Lock:1;
217 UINT32 Reserved1:1;
218 ///
219 /// [Bit 2] Enable VMX outside SMX operation (R/WL).
220 ///
221 UINT32 EnableVmxOutsideSmx:1;
222 UINT32 Reserved2:29;
223 UINT32 Reserved3:32;
224 } Bits;
225 ///
226 /// All bit fields as a 32-bit value
227 ///
228 UINT32 Uint32;
229 ///
230 /// All bit fields as a 64-bit value
231 ///
232 UINT64 Uint64;
233 } MSR_SILVERMONT_IA32_FEATURE_CONTROL_REGISTER;
234
235
236 /**
237 Core. Last Branch Record n From IP (R/W) One of eight pairs of last branch
238 record registers on the last branch record stack. The From_IP part of the
239 stack contains pointers to the source instruction. See also: - Last Branch
240 Record Stack TOS at 1C9H - Section 17.5 and record format in Section
241 17.4.8.1.
242
243 @param ECX MSR_SILVERMONT_LASTBRANCH_n_FROM_IP
244 @param EAX Lower 32-bits of MSR value.
245 @param EDX Upper 32-bits of MSR value.
246
247 <b>Example usage</b>
248 @code
249 UINT64 Msr;
250
251 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_0_FROM_IP);
252 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_0_FROM_IP, Msr);
253 @endcode
254 @note MSR_SILVERMONT_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.
255 MSR_SILVERMONT_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.
256 MSR_SILVERMONT_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.
257 MSR_SILVERMONT_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.
258 MSR_SILVERMONT_LASTBRANCH_4_FROM_IP is defined as MSR_LASTBRANCH_4_FROM_IP in SDM.
259 MSR_SILVERMONT_LASTBRANCH_5_FROM_IP is defined as MSR_LASTBRANCH_5_FROM_IP in SDM.
260 MSR_SILVERMONT_LASTBRANCH_6_FROM_IP is defined as MSR_LASTBRANCH_6_FROM_IP in SDM.
261 MSR_SILVERMONT_LASTBRANCH_7_FROM_IP is defined as MSR_LASTBRANCH_7_FROM_IP in SDM.
262 @{
263 **/
264 #define MSR_SILVERMONT_LASTBRANCH_0_FROM_IP 0x00000040
265 #define MSR_SILVERMONT_LASTBRANCH_1_FROM_IP 0x00000041
266 #define MSR_SILVERMONT_LASTBRANCH_2_FROM_IP 0x00000042
267 #define MSR_SILVERMONT_LASTBRANCH_3_FROM_IP 0x00000043
268 #define MSR_SILVERMONT_LASTBRANCH_4_FROM_IP 0x00000044
269 #define MSR_SILVERMONT_LASTBRANCH_5_FROM_IP 0x00000045
270 #define MSR_SILVERMONT_LASTBRANCH_6_FROM_IP 0x00000046
271 #define MSR_SILVERMONT_LASTBRANCH_7_FROM_IP 0x00000047
272 /// @}
273
274
275 /**
276 Core. Last Branch Record n To IP (R/W) One of eight pairs of last branch
277 record registers on the last branch record stack. The To_IP part of the
278 stack contains pointers to the destination instruction.
279
280 @param ECX MSR_SILVERMONT_LASTBRANCH_n_TO_IP
281 @param EAX Lower 32-bits of MSR value.
282 @param EDX Upper 32-bits of MSR value.
283
284 <b>Example usage</b>
285 @code
286 UINT64 Msr;
287
288 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_0_TO_IP);
289 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_0_TO_IP, Msr);
290 @endcode
291 @note MSR_SILVERMONT_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.
292 MSR_SILVERMONT_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.
293 MSR_SILVERMONT_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.
294 MSR_SILVERMONT_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.
295 MSR_SILVERMONT_LASTBRANCH_4_TO_IP is defined as MSR_LASTBRANCH_4_TO_IP in SDM.
296 MSR_SILVERMONT_LASTBRANCH_5_TO_IP is defined as MSR_LASTBRANCH_5_TO_IP in SDM.
297 MSR_SILVERMONT_LASTBRANCH_6_TO_IP is defined as MSR_LASTBRANCH_6_TO_IP in SDM.
298 MSR_SILVERMONT_LASTBRANCH_7_TO_IP is defined as MSR_LASTBRANCH_7_TO_IP in SDM.
299 @{
300 **/
301 #define MSR_SILVERMONT_LASTBRANCH_0_TO_IP 0x00000060
302 #define MSR_SILVERMONT_LASTBRANCH_1_TO_IP 0x00000061
303 #define MSR_SILVERMONT_LASTBRANCH_2_TO_IP 0x00000062
304 #define MSR_SILVERMONT_LASTBRANCH_3_TO_IP 0x00000063
305 #define MSR_SILVERMONT_LASTBRANCH_4_TO_IP 0x00000064
306 #define MSR_SILVERMONT_LASTBRANCH_5_TO_IP 0x00000065
307 #define MSR_SILVERMONT_LASTBRANCH_6_TO_IP 0x00000066
308 #define MSR_SILVERMONT_LASTBRANCH_7_TO_IP 0x00000067
309 /// @}
310
311
312 /**
313 Module. Scalable Bus Speed(RO) This field indicates the intended scalable
314 bus clock speed for processors based on Silvermont microarchitecture:.
315
316 @param ECX MSR_SILVERMONT_FSB_FREQ (0x000000CD)
317 @param EAX Lower 32-bits of MSR value.
318 Described by the type MSR_SILVERMONT_FSB_FREQ_REGISTER.
319 @param EDX Upper 32-bits of MSR value.
320 Described by the type MSR_SILVERMONT_FSB_FREQ_REGISTER.
321
322 <b>Example usage</b>
323 @code
324 MSR_SILVERMONT_FSB_FREQ_REGISTER Msr;
325
326 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_FSB_FREQ);
327 @endcode
328 @note MSR_SILVERMONT_FSB_FREQ is defined as MSR_FSB_FREQ in SDM.
329 **/
330 #define MSR_SILVERMONT_FSB_FREQ 0x000000CD
331
332 /**
333 MSR information returned for MSR index #MSR_SILVERMONT_FSB_FREQ
334 **/
335 typedef union {
336 ///
337 /// Individual bit fields
338 ///
339 struct {
340 ///
341 /// [Bits 3:0] Scalable Bus Speed
342 ///
343 /// Silvermont Processor Family
344 /// ---------------------------
345 /// 100B: 080.0 MHz
346 /// 000B: 083.3 MHz
347 /// 001B: 100.0 MHz
348 /// 010B: 133.3 MHz
349 /// 011B: 116.7 MHz
350 ///
351 /// Airmont Processor Family
352 /// ---------------------------
353 /// 0000B: 083.3 MHz
354 /// 0001B: 100.0 MHz
355 /// 0010B: 133.3 MHz
356 /// 0011B: 116.7 MHz
357 /// 0100B: 080.0 MHz
358 /// 0101B: 093.3 MHz
359 /// 0110B: 090.0 MHz
360 /// 0111B: 088.9 MHz
361 /// 1000B: 087.5 MHz
362 ///
363 UINT32 ScalableBusSpeed:4;
364 UINT32 Reserved1:28;
365 UINT32 Reserved2:32;
366 } Bits;
367 ///
368 /// All bit fields as a 32-bit value
369 ///
370 UINT32 Uint32;
371 ///
372 /// All bit fields as a 64-bit value
373 ///
374 UINT64 Uint64;
375 } MSR_SILVERMONT_FSB_FREQ_REGISTER;
376
377
378 /**
379 Module. C-State Configuration Control (R/W) Note: C-state values are
380 processor specific C-state code names, unrelated to MWAIT extension C-state
381 parameters or ACPI CStates. See http://biosbits.org.
382
383 @param ECX MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL (0x000000E2)
384 @param EAX Lower 32-bits of MSR value.
385 Described by the type MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER.
386 @param EDX Upper 32-bits of MSR value.
387 Described by the type MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER.
388
389 <b>Example usage</b>
390 @code
391 MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
392
393 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL);
394 AsmWriteMsr64 (MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
395 @endcode
396 @note MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL is defined as MSR_PKG_CST_CONFIG_CONTROL in SDM.
397 **/
398 #define MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL 0x000000E2
399
400 /**
401 MSR information returned for MSR index #MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL
402 **/
403 typedef union {
404 ///
405 /// Individual bit fields
406 ///
407 struct {
408 ///
409 /// [Bits 2:0] Package C-State Limit (R/W) Specifies the lowest
410 /// processor-specific C-state code name (consuming the least power). for
411 /// the package. The default is set as factory-configured package C-state
412 /// limit. The following C-state code name encodings are supported: 000b:
413 /// C0 (no package C-sate support) 001b: C1 (Behavior is the same as 000b)
414 /// 100b: C4 110b: C6 111b: C7 (Silvermont only).
415 ///
416 UINT32 Limit:3;
417 UINT32 Reserved1:7;
418 ///
419 /// [Bit 10] I/O MWAIT Redirection Enable (R/W) When set, will map
420 /// IO_read instructions sent to IO register specified by
421 /// MSR_PMG_IO_CAPTURE_BASE to MWAIT instructions.
422 ///
423 UINT32 IO_MWAIT:1;
424 UINT32 Reserved2:4;
425 ///
426 /// [Bit 15] CFG Lock (R/WO) When set, lock bits 15:0 of this register
427 /// until next reset.
428 ///
429 UINT32 CFGLock:1;
430 UINT32 Reserved3:16;
431 UINT32 Reserved4:32;
432 } Bits;
433 ///
434 /// All bit fields as a 32-bit value
435 ///
436 UINT32 Uint32;
437 ///
438 /// All bit fields as a 64-bit value
439 ///
440 UINT64 Uint64;
441 } MSR_SILVERMONT_PKG_CST_CONFIG_CONTROL_REGISTER;
442
443
444 /**
445 Module. Power Management IO Redirection in C-state (R/W) See
446 http://biosbits.org.
447
448 @param ECX MSR_SILVERMONT_PMG_IO_CAPTURE_BASE (0x000000E4)
449 @param EAX Lower 32-bits of MSR value.
450 Described by the type MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER.
451 @param EDX Upper 32-bits of MSR value.
452 Described by the type MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER.
453
454 <b>Example usage</b>
455 @code
456 MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER Msr;
457
458 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PMG_IO_CAPTURE_BASE);
459 AsmWriteMsr64 (MSR_SILVERMONT_PMG_IO_CAPTURE_BASE, Msr.Uint64);
460 @endcode
461 @note MSR_SILVERMONT_PMG_IO_CAPTURE_BASE is defined as MSR_PMG_IO_CAPTURE_BASE in SDM.
462 **/
463 #define MSR_SILVERMONT_PMG_IO_CAPTURE_BASE 0x000000E4
464
465 /**
466 MSR information returned for MSR index #MSR_SILVERMONT_PMG_IO_CAPTURE_BASE
467 **/
468 typedef union {
469 ///
470 /// Individual bit fields
471 ///
472 struct {
473 ///
474 /// [Bits 15:0] LVL_2 Base Address (R/W) Specifies the base address
475 /// visible to software for IO redirection. If IO MWAIT Redirection is
476 /// enabled, reads to this address will be consumed by the power
477 /// management logic and decoded to MWAIT instructions. When IO port
478 /// address redirection is enabled, this is the IO port address reported
479 /// to the OS/software.
480 ///
481 UINT32 Lvl2Base:16;
482 ///
483 /// [Bits 18:16] C-state Range (R/W) Specifies the encoding value of the
484 /// maximum C-State code name to be included when IO read to MWAIT
485 /// redirection is enabled by MSR_PKG_CST_CONFIG_CONTROL[bit10]: 100b - C4
486 /// is the max C-State to include 110b - C6 is the max C-State to include
487 /// 111b - C7 is the max C-State to include.
488 ///
489 UINT32 CStateRange:3;
490 UINT32 Reserved1:13;
491 UINT32 Reserved2:32;
492 } Bits;
493 ///
494 /// All bit fields as a 32-bit value
495 ///
496 UINT32 Uint32;
497 ///
498 /// All bit fields as a 64-bit value
499 ///
500 UINT64 Uint64;
501 } MSR_SILVERMONT_PMG_IO_CAPTURE_BASE_REGISTER;
502
503
504 /**
505 Module.
506
507 @param ECX MSR_SILVERMONT_BBL_CR_CTL3 (0x0000011E)
508 @param EAX Lower 32-bits of MSR value.
509 Described by the type MSR_SILVERMONT_BBL_CR_CTL3_REGISTER.
510 @param EDX Upper 32-bits of MSR value.
511 Described by the type MSR_SILVERMONT_BBL_CR_CTL3_REGISTER.
512
513 <b>Example usage</b>
514 @code
515 MSR_SILVERMONT_BBL_CR_CTL3_REGISTER Msr;
516
517 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_BBL_CR_CTL3);
518 AsmWriteMsr64 (MSR_SILVERMONT_BBL_CR_CTL3, Msr.Uint64);
519 @endcode
520 @note MSR_SILVERMONT_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.
521 **/
522 #define MSR_SILVERMONT_BBL_CR_CTL3 0x0000011E
523
524 /**
525 MSR information returned for MSR index #MSR_SILVERMONT_BBL_CR_CTL3
526 **/
527 typedef union {
528 ///
529 /// Individual bit fields
530 ///
531 struct {
532 ///
533 /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =
534 /// Indicates if the L2 is hardware-disabled.
535 ///
536 UINT32 L2HardwareEnabled:1;
537 UINT32 Reserved1:7;
538 ///
539 /// [Bit 8] L2 Enabled. (R/W) 1 = L2 cache has been initialized 0 =
540 /// Disabled (default) Until this bit is set the processor will not
541 /// respond to the WBINVD instruction or the assertion of the FLUSH# input.
542 ///
543 UINT32 L2Enabled:1;
544 UINT32 Reserved2:14;
545 ///
546 /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.
547 ///
548 UINT32 L2NotPresent:1;
549 UINT32 Reserved3:8;
550 UINT32 Reserved4:32;
551 } Bits;
552 ///
553 /// All bit fields as a 32-bit value
554 ///
555 UINT32 Uint32;
556 ///
557 /// All bit fields as a 64-bit value
558 ///
559 UINT64 Uint64;
560 } MSR_SILVERMONT_BBL_CR_CTL3_REGISTER;
561
562
563 /**
564 Core. AES Configuration (RW-L) Privileged post-BIOS agent must provide a #GP
565 handler to handle unsuccessful read of this MSR.
566
567 @param ECX MSR_SILVERMONT_FEATURE_CONFIG (0x0000013C)
568 @param EAX Lower 32-bits of MSR value.
569 Described by the type MSR_SILVERMONT_FEATURE_CONFIG_REGISTER.
570 @param EDX Upper 32-bits of MSR value.
571 Described by the type MSR_SILVERMONT_FEATURE_CONFIG_REGISTER.
572
573 <b>Example usage</b>
574 @code
575 MSR_SILVERMONT_FEATURE_CONFIG_REGISTER Msr;
576
577 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_FEATURE_CONFIG);
578 AsmWriteMsr64 (MSR_SILVERMONT_FEATURE_CONFIG, Msr.Uint64);
579 @endcode
580 @note MSR_SILVERMONT_FEATURE_CONFIG is defined as MSR_FEATURE_CONFIG in SDM.
581 **/
582 #define MSR_SILVERMONT_FEATURE_CONFIG 0x0000013C
583
584 /**
585 MSR information returned for MSR index #MSR_SILVERMONT_FEATURE_CONFIG
586 **/
587 typedef union {
588 ///
589 /// Individual bit fields
590 ///
591 struct {
592 ///
593 /// [Bits 1:0] AES Configuration (RW-L) Upon a successful read of this
594 /// MSR, the configuration of AES instruction set availability is as
595 /// follows: 11b: AES instructions are not available until next RESET.
596 /// otherwise, AES instructions are available. Note, AES instruction set
597 /// is not available if read is unsuccessful. If the configuration is not
598 /// 01b, AES instruction can be mis-configured if a privileged agent
599 /// unintentionally writes 11b.
600 ///
601 UINT32 AESConfiguration:2;
602 UINT32 Reserved1:30;
603 UINT32 Reserved2:32;
604 } Bits;
605 ///
606 /// All bit fields as a 32-bit value
607 ///
608 UINT32 Uint32;
609 ///
610 /// All bit fields as a 64-bit value
611 ///
612 UINT64 Uint64;
613 } MSR_SILVERMONT_FEATURE_CONFIG_REGISTER;
614
615
616 /**
617 Enable Misc. Processor Features (R/W) Allows a variety of processor
618 functions to be enabled and disabled.
619
620 @param ECX MSR_SILVERMONT_IA32_MISC_ENABLE (0x000001A0)
621 @param EAX Lower 32-bits of MSR value.
622 Described by the type MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER.
623 @param EDX Upper 32-bits of MSR value.
624 Described by the type MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER.
625
626 <b>Example usage</b>
627 @code
628 MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER Msr;
629
630 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_IA32_MISC_ENABLE);
631 AsmWriteMsr64 (MSR_SILVERMONT_IA32_MISC_ENABLE, Msr.Uint64);
632 @endcode
633 @note MSR_SILVERMONT_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
634 **/
635 #define MSR_SILVERMONT_IA32_MISC_ENABLE 0x000001A0
636
637 /**
638 MSR information returned for MSR index #MSR_SILVERMONT_IA32_MISC_ENABLE
639 **/
640 typedef union {
641 ///
642 /// Individual bit fields
643 ///
644 struct {
645 ///
646 /// [Bit 0] Core. Fast-Strings Enable See Table 2-2.
647 ///
648 UINT32 FastStrings:1;
649 UINT32 Reserved1:2;
650 ///
651 /// [Bit 3] Module. Automatic Thermal Control Circuit Enable (R/W) See
652 /// Table 2-2. Default value is 0.
653 ///
654 UINT32 AutomaticThermalControlCircuit:1;
655 UINT32 Reserved2:3;
656 ///
657 /// [Bit 7] Core. Performance Monitoring Available (R) See Table 2-2.
658 ///
659 UINT32 PerformanceMonitoring:1;
660 UINT32 Reserved3:3;
661 ///
662 /// [Bit 11] Core. Branch Trace Storage Unavailable (RO) See Table 2-2.
663 ///
664 UINT32 BTS:1;
665 ///
666 /// [Bit 12] Core. Processor Event Based Sampling Unavailable (RO) See
667 /// Table 2-2.
668 ///
669 UINT32 PEBS:1;
670 UINT32 Reserved4:3;
671 ///
672 /// [Bit 16] Module. Enhanced Intel SpeedStep Technology Enable (R/W) See
673 /// Table 2-2.
674 ///
675 UINT32 EIST:1;
676 UINT32 Reserved5:1;
677 ///
678 /// [Bit 18] Core. ENABLE MONITOR FSM (R/W) See Table 2-2.
679 ///
680 UINT32 MONITOR:1;
681 UINT32 Reserved6:3;
682 ///
683 /// [Bit 22] Core. Limit CPUID Maxval (R/W) See Table 2-2.
684 ///
685 UINT32 LimitCpuidMaxval:1;
686 ///
687 /// [Bit 23] Module. xTPR Message Disable (R/W) See Table 2-2.
688 ///
689 UINT32 xTPR_Message_Disable:1;
690 UINT32 Reserved7:8;
691 UINT32 Reserved8:2;
692 ///
693 /// [Bit 34] Core. XD Bit Disable (R/W) See Table 2-2.
694 ///
695 UINT32 XD:1;
696 UINT32 Reserved9:3;
697 ///
698 /// [Bit 38] Module. Turbo Mode Disable (R/W) When set to 1 on processors
699 /// that support Intel Turbo Boost Technology, the turbo mode feature is
700 /// disabled and the IDA_Enable feature flag will be clear (CPUID.06H:
701 /// EAX[1]=0). When set to a 0 on processors that support IDA, CPUID.06H:
702 /// EAX[1] reports the processor's support of turbo mode is enabled. Note:
703 /// the power-on default value is used by BIOS to detect hardware support
704 /// of turbo mode. If power-on default value is 1, turbo mode is available
705 /// in the processor. If power-on default value is 0, turbo mode is not
706 /// available.
707 ///
708 UINT32 TurboModeDisable:1;
709 UINT32 Reserved10:25;
710 } Bits;
711 ///
712 /// All bit fields as a 64-bit value
713 ///
714 UINT64 Uint64;
715 } MSR_SILVERMONT_IA32_MISC_ENABLE_REGISTER;
716
717
718 /**
719 Package.
720
721 @param ECX MSR_SILVERMONT_TEMPERATURE_TARGET (0x000001A2)
722 @param EAX Lower 32-bits of MSR value.
723 Described by the type MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER.
724 @param EDX Upper 32-bits of MSR value.
725 Described by the type MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER.
726
727 <b>Example usage</b>
728 @code
729 MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER Msr;
730
731 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_TEMPERATURE_TARGET);
732 AsmWriteMsr64 (MSR_SILVERMONT_TEMPERATURE_TARGET, Msr.Uint64);
733 @endcode
734 @note MSR_SILVERMONT_TEMPERATURE_TARGET is defined as MSR_TEMPERATURE_TARGET in SDM.
735 **/
736 #define MSR_SILVERMONT_TEMPERATURE_TARGET 0x000001A2
737
738 /**
739 MSR information returned for MSR index #MSR_SILVERMONT_TEMPERATURE_TARGET
740 **/
741 typedef union {
742 ///
743 /// Individual bit fields
744 ///
745 struct {
746 UINT32 Reserved1:16;
747 ///
748 /// [Bits 23:16] Temperature Target (R) The default thermal throttling or
749 /// PROCHOT# activation temperature in degree C, The effective temperature
750 /// for thermal throttling or PROCHOT# activation is "Temperature Target"
751 /// + "Target Offset".
752 ///
753 UINT32 TemperatureTarget:8;
754 ///
755 /// [Bits 29:24] Target Offset (R/W) Specifies an offset in degrees C to
756 /// adjust the throttling and PROCHOT# activation temperature from the
757 /// default target specified in TEMPERATURE_TARGET (bits 23:16).
758 ///
759 UINT32 TargetOffset:6;
760 UINT32 Reserved2:2;
761 UINT32 Reserved3:32;
762 } Bits;
763 ///
764 /// All bit fields as a 32-bit value
765 ///
766 UINT32 Uint32;
767 ///
768 /// All bit fields as a 64-bit value
769 ///
770 UINT64 Uint64;
771 } MSR_SILVERMONT_TEMPERATURE_TARGET_REGISTER;
772
773
774 /**
775 Miscellaneous Feature Control (R/W).
776
777 @param ECX MSR_SILVERMONT_MISC_FEATURE_CONTROL (0x000001A4)
778 @param EAX Lower 32-bits of MSR value.
779 Described by the type MSR_SILVERMONT_MISC_FEATURE_CONTROL_REGISTER.
780 @param EDX Upper 32-bits of MSR value.
781 Described by the type MSR_SILVERMONT_MISC_FEATURE_CONTROL_REGISTER.
782
783 <b>Example usage</b>
784 @code
785 MSR_SILVERMONT_MISC_FEATURE_CONTROL_REGISTER Msr;
786
787 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_MISC_FEATURE_CONTROL);
788 AsmWriteMsr64 (MSR_SILVERMONT_MISC_FEATURE_CONTROL, Msr.Uint64);
789 @endcode
790 @note MSR_SILVERMONT_MISC_FEATURE_CONTROL is defined as MSR_MISC_FEATURE_CONTROL in SDM.
791 **/
792 #define MSR_SILVERMONT_MISC_FEATURE_CONTROL 0x000001A4
793
794 /**
795 MSR information returned for MSR index #MSR_SILVERMONT_MISC_FEATURE_CONTROL
796 **/
797 typedef union {
798 ///
799 /// Individual bit fields
800 ///
801 struct {
802 ///
803 /// [Bit 0] Core. L2 Hardware Prefetcher Disable (R/W) If 1, disables the
804 /// L2 hardware prefetcher, which fetches additional lines of code or data
805 /// into the L2 cache.
806 ///
807 UINT32 L2HardwarePrefetcherDisable:1;
808 UINT32 Reserved1:1;
809 ///
810 /// [Bit 2] Core. DCU Hardware Prefetcher Disable (R/W) If 1, disables
811 /// the L1 data cache prefetcher, which fetches the next cache line into
812 /// L1 data cache.
813 ///
814 UINT32 DCUHardwarePrefetcherDisable:1;
815 UINT32 Reserved2:29;
816 UINT32 Reserved3:32;
817 } Bits;
818 ///
819 /// All bit fields as a 32-bit value
820 ///
821 UINT32 Uint32;
822 ///
823 /// All bit fields as a 64-bit value
824 ///
825 UINT64 Uint64;
826 } MSR_SILVERMONT_MISC_FEATURE_CONTROL_REGISTER;
827
828
829 /**
830 Module. Offcore Response Event Select Register (R/W).
831
832 @param ECX MSR_SILVERMONT_OFFCORE_RSP_0 (0x000001A6)
833 @param EAX Lower 32-bits of MSR value.
834 @param EDX Upper 32-bits of MSR value.
835
836 <b>Example usage</b>
837 @code
838 UINT64 Msr;
839
840 Msr = AsmReadMsr64 (MSR_SILVERMONT_OFFCORE_RSP_0);
841 AsmWriteMsr64 (MSR_SILVERMONT_OFFCORE_RSP_0, Msr);
842 @endcode
843 @note MSR_SILVERMONT_OFFCORE_RSP_0 is defined as MSR_OFFCORE_RSP_0 in SDM.
844 **/
845 #define MSR_SILVERMONT_OFFCORE_RSP_0 0x000001A6
846
847
848 /**
849 Module. Offcore Response Event Select Register (R/W).
850
851 @param ECX MSR_SILVERMONT_OFFCORE_RSP_1 (0x000001A7)
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_SILVERMONT_OFFCORE_RSP_1);
860 AsmWriteMsr64 (MSR_SILVERMONT_OFFCORE_RSP_1, Msr);
861 @endcode
862 @note MSR_SILVERMONT_OFFCORE_RSP_1 is defined as MSR_OFFCORE_RSP_1 in SDM.
863 **/
864 #define MSR_SILVERMONT_OFFCORE_RSP_1 0x000001A7
865
866
867 /**
868 Package. Maximum Ratio Limit of Turbo Mode (RW).
869
870 @param ECX MSR_SILVERMONT_TURBO_RATIO_LIMIT (0x000001AD)
871 @param EAX Lower 32-bits of MSR value.
872 Described by the type MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER.
873 @param EDX Upper 32-bits of MSR value.
874 Described by the type MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER.
875
876 <b>Example usage</b>
877 @code
878 MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER Msr;
879
880 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_TURBO_RATIO_LIMIT);
881 AsmWriteMsr64 (MSR_SILVERMONT_TURBO_RATIO_LIMIT, Msr.Uint64);
882 @endcode
883 @note MSR_SILVERMONT_TURBO_RATIO_LIMIT is defined as MSR_TURBO_RATIO_LIMIT in SDM.
884 **/
885 #define MSR_SILVERMONT_TURBO_RATIO_LIMIT 0x000001AD
886
887 /**
888 MSR information returned for MSR index #MSR_SILVERMONT_TURBO_RATIO_LIMIT
889 **/
890 typedef union {
891 ///
892 /// Individual bit fields
893 ///
894 struct {
895 ///
896 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio
897 /// limit of 1 core active.
898 ///
899 UINT32 Maximum1C:8;
900 ///
901 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio
902 /// limit of 2 core active.
903 ///
904 UINT32 Maximum2C:8;
905 ///
906 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio
907 /// limit of 3 core active.
908 ///
909 UINT32 Maximum3C:8;
910 ///
911 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio
912 /// limit of 4 core active.
913 ///
914 UINT32 Maximum4C:8;
915 ///
916 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C Maximum turbo ratio
917 /// limit of 5 core active.
918 ///
919 UINT32 Maximum5C:8;
920 ///
921 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C Maximum turbo ratio
922 /// limit of 6 core active.
923 ///
924 UINT32 Maximum6C:8;
925 ///
926 /// [Bits 55:48] Package. Maximum Ratio Limit for 7C Maximum turbo ratio
927 /// limit of 7 core active.
928 ///
929 UINT32 Maximum7C:8;
930 ///
931 /// [Bits 63:56] Package. Maximum Ratio Limit for 8C Maximum turbo ratio
932 /// limit of 8 core active.
933 ///
934 UINT32 Maximum8C:8;
935 } Bits;
936 ///
937 /// All bit fields as a 64-bit value
938 ///
939 UINT64 Uint64;
940 } MSR_SILVERMONT_TURBO_RATIO_LIMIT_REGISTER;
941
942
943 /**
944 Core. Last Branch Record Filtering Select Register (R/W) See Section 17.9.2,
945 "Filtering of Last Branch Records.".
946
947 @param ECX MSR_SILVERMONT_LBR_SELECT (0x000001C8)
948 @param EAX Lower 32-bits of MSR value.
949 Described by the type MSR_SILVERMONT_LBR_SELECT_REGISTER.
950 @param EDX Upper 32-bits of MSR value.
951 Described by the type MSR_SILVERMONT_LBR_SELECT_REGISTER.
952
953 <b>Example usage</b>
954 @code
955 MSR_SILVERMONT_LBR_SELECT_REGISTER Msr;
956
957 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_LBR_SELECT);
958 AsmWriteMsr64 (MSR_SILVERMONT_LBR_SELECT, Msr.Uint64);
959 @endcode
960 @note MSR_SILVERMONT_LBR_SELECT is defined as MSR_LBR_SELECT in SDM.
961 **/
962 #define MSR_SILVERMONT_LBR_SELECT 0x000001C8
963
964 /**
965 MSR information returned for MSR index #MSR_SILVERMONT_LBR_SELECT
966 **/
967 typedef union {
968 ///
969 /// Individual bit fields
970 ///
971 struct {
972 ///
973 /// [Bit 0] CPL_EQ_0.
974 ///
975 UINT32 CPL_EQ_0:1;
976 ///
977 /// [Bit 1] CPL_NEQ_0.
978 ///
979 UINT32 CPL_NEQ_0:1;
980 ///
981 /// [Bit 2] JCC.
982 ///
983 UINT32 JCC:1;
984 ///
985 /// [Bit 3] NEAR_REL_CALL.
986 ///
987 UINT32 NEAR_REL_CALL:1;
988 ///
989 /// [Bit 4] NEAR_IND_CALL.
990 ///
991 UINT32 NEAR_IND_CALL:1;
992 ///
993 /// [Bit 5] NEAR_RET.
994 ///
995 UINT32 NEAR_RET:1;
996 ///
997 /// [Bit 6] NEAR_IND_JMP.
998 ///
999 UINT32 NEAR_IND_JMP:1;
1000 ///
1001 /// [Bit 7] NEAR_REL_JMP.
1002 ///
1003 UINT32 NEAR_REL_JMP:1;
1004 ///
1005 /// [Bit 8] FAR_BRANCH.
1006 ///
1007 UINT32 FAR_BRANCH:1;
1008 UINT32 Reserved1:23;
1009 UINT32 Reserved2:32;
1010 } Bits;
1011 ///
1012 /// All bit fields as a 32-bit value
1013 ///
1014 UINT32 Uint32;
1015 ///
1016 /// All bit fields as a 64-bit value
1017 ///
1018 UINT64 Uint64;
1019 } MSR_SILVERMONT_LBR_SELECT_REGISTER;
1020
1021
1022 /**
1023 Core. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-2) that
1024 points to the MSR containing the most recent branch record. See
1025 MSR_LASTBRANCH_0_FROM_IP.
1026
1027 @param ECX MSR_SILVERMONT_LASTBRANCH_TOS (0x000001C9)
1028 @param EAX Lower 32-bits of MSR value.
1029 @param EDX Upper 32-bits of MSR value.
1030
1031 <b>Example usage</b>
1032 @code
1033 UINT64 Msr;
1034
1035 Msr = AsmReadMsr64 (MSR_SILVERMONT_LASTBRANCH_TOS);
1036 AsmWriteMsr64 (MSR_SILVERMONT_LASTBRANCH_TOS, Msr);
1037 @endcode
1038 @note MSR_SILVERMONT_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
1039 **/
1040 #define MSR_SILVERMONT_LASTBRANCH_TOS 0x000001C9
1041
1042
1043 /**
1044 Core. Last Exception Record From Linear IP (R) Contains a pointer to the
1045 last branch instruction that the processor executed prior to the last
1046 exception that was generated or the last interrupt that was handled.
1047
1048 @param ECX MSR_SILVERMONT_LER_FROM_LIP (0x000001DD)
1049 @param EAX Lower 32-bits of MSR value.
1050 @param EDX Upper 32-bits of MSR value.
1051
1052 <b>Example usage</b>
1053 @code
1054 UINT64 Msr;
1055
1056 Msr = AsmReadMsr64 (MSR_SILVERMONT_LER_FROM_LIP);
1057 @endcode
1058 @note MSR_SILVERMONT_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.
1059 **/
1060 #define MSR_SILVERMONT_LER_FROM_LIP 0x000001DD
1061
1062
1063 /**
1064 Core. Last Exception Record To Linear IP (R) This area contains a pointer
1065 to the target of the last branch instruction that the processor executed
1066 prior to the last exception that was generated or the last interrupt that
1067 was handled.
1068
1069 @param ECX MSR_SILVERMONT_LER_TO_LIP (0x000001DE)
1070 @param EAX Lower 32-bits of MSR value.
1071 @param EDX Upper 32-bits of MSR value.
1072
1073 <b>Example usage</b>
1074 @code
1075 UINT64 Msr;
1076
1077 Msr = AsmReadMsr64 (MSR_SILVERMONT_LER_TO_LIP);
1078 @endcode
1079 @note MSR_SILVERMONT_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.
1080 **/
1081 #define MSR_SILVERMONT_LER_TO_LIP 0x000001DE
1082
1083
1084 /**
1085 Core. See Table 2-2. See Section 18.6.2.4, "Processor Event Based Sampling
1086 (PEBS).".
1087
1088 @param ECX MSR_SILVERMONT_PEBS_ENABLE (0x000003F1)
1089 @param EAX Lower 32-bits of MSR value.
1090 Described by the type MSR_SILVERMONT_PEBS_ENABLE_REGISTER.
1091 @param EDX Upper 32-bits of MSR value.
1092 Described by the type MSR_SILVERMONT_PEBS_ENABLE_REGISTER.
1093
1094 <b>Example usage</b>
1095 @code
1096 MSR_SILVERMONT_PEBS_ENABLE_REGISTER Msr;
1097
1098 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PEBS_ENABLE);
1099 AsmWriteMsr64 (MSR_SILVERMONT_PEBS_ENABLE, Msr.Uint64);
1100 @endcode
1101 @note MSR_SILVERMONT_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
1102 **/
1103 #define MSR_SILVERMONT_PEBS_ENABLE 0x000003F1
1104
1105 /**
1106 MSR information returned for MSR index #MSR_SILVERMONT_PEBS_ENABLE
1107 **/
1108 typedef union {
1109 ///
1110 /// Individual bit fields
1111 ///
1112 struct {
1113 ///
1114 /// [Bit 0] Enable PEBS for precise event on IA32_PMC0. (R/W).
1115 ///
1116 UINT32 PEBS:1;
1117 UINT32 Reserved1:31;
1118 UINT32 Reserved2:32;
1119 } Bits;
1120 ///
1121 /// All bit fields as a 32-bit value
1122 ///
1123 UINT32 Uint32;
1124 ///
1125 /// All bit fields as a 64-bit value
1126 ///
1127 UINT64 Uint64;
1128 } MSR_SILVERMONT_PEBS_ENABLE_REGISTER;
1129
1130
1131 /**
1132 Package. Note: C-state values are processor specific C-state code names,
1133 unrelated to MWAIT extension C-state parameters or ACPI CStates. Package C6
1134 Residency Counter. (R/O) Value since last reset that this package is in
1135 processor-specific C6 states. Counts at the TSC Frequency.
1136
1137 @param ECX MSR_SILVERMONT_PKG_C6_RESIDENCY (0x000003FA)
1138 @param EAX Lower 32-bits of MSR value.
1139 @param EDX Upper 32-bits of MSR value.
1140
1141 <b>Example usage</b>
1142 @code
1143 UINT64 Msr;
1144
1145 Msr = AsmReadMsr64 (MSR_SILVERMONT_PKG_C6_RESIDENCY);
1146 AsmWriteMsr64 (MSR_SILVERMONT_PKG_C6_RESIDENCY, Msr);
1147 @endcode
1148 @note MSR_SILVERMONT_PKG_C6_RESIDENCY is defined as MSR_PKG_C6_RESIDENCY in SDM.
1149 **/
1150 #define MSR_SILVERMONT_PKG_C6_RESIDENCY 0x000003FA
1151
1152
1153 /**
1154 Core. Note: C-state values are processor specific C-state code names,
1155 unrelated to MWAIT extension C-state parameters or ACPI CStates. CORE C6
1156 Residency Counter. (R/O) Value since last reset that this core is in
1157 processor-specific C6 states. Counts at the TSC Frequency.
1158
1159 @param ECX MSR_SILVERMONT_CORE_C6_RESIDENCY (0x000003FD)
1160 @param EAX Lower 32-bits of MSR value.
1161 @param EDX Upper 32-bits of MSR value.
1162
1163 <b>Example usage</b>
1164 @code
1165 UINT64 Msr;
1166
1167 Msr = AsmReadMsr64 (MSR_SILVERMONT_CORE_C6_RESIDENCY);
1168 AsmWriteMsr64 (MSR_SILVERMONT_CORE_C6_RESIDENCY, Msr);
1169 @endcode
1170 @note MSR_SILVERMONT_CORE_C6_RESIDENCY is defined as MSR_CORE_C6_RESIDENCY in SDM.
1171 **/
1172 #define MSR_SILVERMONT_CORE_C6_RESIDENCY 0x000003FD
1173
1174
1175 /**
1176 Core. Capability Reporting Register of EPT and VPID (R/O) See Table 2-2.
1177
1178 @param ECX MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM (0x0000048C)
1179 @param EAX Lower 32-bits of MSR value.
1180 @param EDX Upper 32-bits of MSR value.
1181
1182 <b>Example usage</b>
1183 @code
1184 UINT64 Msr;
1185
1186 Msr = AsmReadMsr64 (MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM);
1187 @endcode
1188 @note MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM is defined as IA32_VMX_EPT_VPID_ENUM in SDM.
1189 **/
1190 #define MSR_SILVERMONT_IA32_VMX_EPT_VPID_ENUM 0x0000048C
1191
1192
1193 /**
1194 Core. Capability Reporting Register of VM-Function Controls (R/O) See Table
1195 2-2.
1196
1197 @param ECX MSR_SILVERMONT_IA32_VMX_FMFUNC (0x00000491)
1198 @param EAX Lower 32-bits of MSR value.
1199 @param EDX Upper 32-bits of MSR value.
1200
1201 <b>Example usage</b>
1202 @code
1203 UINT64 Msr;
1204
1205 Msr = AsmReadMsr64 (MSR_SILVERMONT_IA32_VMX_FMFUNC);
1206 @endcode
1207 @note MSR_SILVERMONT_IA32_VMX_FMFUNC is defined as IA32_VMX_FMFUNC in SDM.
1208 **/
1209 #define MSR_SILVERMONT_IA32_VMX_FMFUNC 0x00000491
1210
1211
1212 /**
1213 Core. Note: C-state values are processor specific C-state code names,
1214 unrelated to MWAIT extension C-state parameters or ACPI CStates. CORE C1
1215 Residency Counter. (R/O) Value since last reset that this core is in
1216 processor-specific C1 states. Counts at the TSC frequency.
1217
1218 @param ECX MSR_SILVERMONT_CORE_C1_RESIDENCY (0x00000660)
1219 @param EAX Lower 32-bits of MSR value.
1220 @param EDX Upper 32-bits of MSR value.
1221
1222 <b>Example usage</b>
1223 @code
1224 UINT64 Msr;
1225
1226 Msr = AsmReadMsr64 (MSR_SILVERMONT_CORE_C1_RESIDENCY);
1227 AsmWriteMsr64 (MSR_SILVERMONT_CORE_C1_RESIDENCY, Msr);
1228 @endcode
1229 @note MSR_SILVERMONT_CORE_C1_RESIDENCY is defined as MSR_CORE_C1_RESIDENCY in SDM.
1230 **/
1231 #define MSR_SILVERMONT_CORE_C1_RESIDENCY 0x00000660
1232
1233
1234 /**
1235 Package. Unit Multipliers used in RAPL Interfaces (R/O) See Section 14.9.1,
1236 "RAPL Interfaces.".
1237
1238 @param ECX MSR_SILVERMONT_RAPL_POWER_UNIT (0x00000606)
1239 @param EAX Lower 32-bits of MSR value.
1240 Described by the type MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER.
1241 @param EDX Upper 32-bits of MSR value.
1242 Described by the type MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER.
1243
1244 <b>Example usage</b>
1245 @code
1246 MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER Msr;
1247
1248 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_RAPL_POWER_UNIT);
1249 @endcode
1250 @note MSR_SILVERMONT_RAPL_POWER_UNIT is defined as MSR_RAPL_POWER_UNIT in SDM.
1251 **/
1252 #define MSR_SILVERMONT_RAPL_POWER_UNIT 0x00000606
1253
1254 /**
1255 MSR information returned for MSR index #MSR_SILVERMONT_RAPL_POWER_UNIT
1256 **/
1257 typedef union {
1258 ///
1259 /// Individual bit fields
1260 ///
1261 struct {
1262 ///
1263 /// [Bits 3:0] Power Units. Power related information (in milliWatts) is
1264 /// based on the multiplier, 2^PU; where PU is an unsigned integer
1265 /// represented by bits 3:0. Default value is 0101b, indicating power unit
1266 /// is in 32 milliWatts increment.
1267 ///
1268 UINT32 PowerUnits:4;
1269 UINT32 Reserved1:4;
1270 ///
1271 /// [Bits 12:8] Energy Status Units. Energy related information (in
1272 /// microJoules) is based on the multiplier, 2^ESU; where ESU is an
1273 /// unsigned integer represented by bits 12:8. Default value is 00101b,
1274 /// indicating energy unit is in 32 microJoules increment.
1275 ///
1276 UINT32 EnergyStatusUnits:5;
1277 UINT32 Reserved2:3;
1278 ///
1279 /// [Bits 19:16] Time Unit. The value is 0000b, indicating time unit is in
1280 /// one second.
1281 ///
1282 UINT32 TimeUnits:4;
1283 UINT32 Reserved3:12;
1284 UINT32 Reserved4:32;
1285 } Bits;
1286 ///
1287 /// All bit fields as a 32-bit value
1288 ///
1289 UINT32 Uint32;
1290 ///
1291 /// All bit fields as a 64-bit value
1292 ///
1293 UINT64 Uint64;
1294 } MSR_SILVERMONT_RAPL_POWER_UNIT_REGISTER;
1295
1296
1297 /**
1298 Package. PKG RAPL Power Limit Control (R/W).
1299
1300 @param ECX MSR_SILVERMONT_PKG_POWER_LIMIT (0x00000610)
1301 @param EAX Lower 32-bits of MSR value.
1302 Described by the type MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER.
1303 @param EDX Upper 32-bits of MSR value.
1304 Described by the type MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER.
1305
1306 <b>Example usage</b>
1307 @code
1308 MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER Msr;
1309
1310 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_POWER_LIMIT);
1311 AsmWriteMsr64 (MSR_SILVERMONT_PKG_POWER_LIMIT, Msr.Uint64);
1312 @endcode
1313 @note MSR_SILVERMONT_PKG_POWER_LIMIT is defined as MSR_PKG_POWER_LIMIT in SDM.
1314 **/
1315 #define MSR_SILVERMONT_PKG_POWER_LIMIT 0x00000610
1316
1317 /**
1318 MSR information returned for MSR index #MSR_SILVERMONT_PKG_POWER_LIMIT
1319 **/
1320 typedef union {
1321 ///
1322 /// Individual bit fields
1323 ///
1324 struct {
1325 ///
1326 /// [Bits 14:0] Package Power Limit #1 (R/W) See Section 14.9.3, "Package
1327 /// RAPL Domain." and MSR_RAPL_POWER_UNIT in Table 2-8.
1328 ///
1329 UINT32 Limit:15;
1330 ///
1331 /// [Bit 15] Enable Power Limit #1. (R/W) See Section 14.9.3, "Package
1332 /// RAPL Domain.".
1333 ///
1334 UINT32 Enable:1;
1335 ///
1336 /// [Bit 16] Package Clamping Limitation #1. (R/W) See Section 14.9.3,
1337 /// "Package RAPL Domain.".
1338 ///
1339 UINT32 ClampingLimit:1;
1340 ///
1341 /// [Bits 23:17] Time Window for Power Limit #1. (R/W) in unit of second.
1342 /// If 0 is specified in bits [23:17], defaults to 1 second window.
1343 ///
1344 UINT32 Time:7;
1345 UINT32 Reserved1:8;
1346 UINT32 Reserved2:32;
1347 } Bits;
1348 ///
1349 /// All bit fields as a 32-bit value
1350 ///
1351 UINT32 Uint32;
1352 ///
1353 /// All bit fields as a 64-bit value
1354 ///
1355 UINT64 Uint64;
1356 } MSR_SILVERMONT_PKG_POWER_LIMIT_REGISTER;
1357
1358
1359 /**
1360 Package. PKG Energy Status (R/O) See Section 14.9.3, "Package RAPL Domain."
1361 and MSR_RAPL_POWER_UNIT in Table 2-8.
1362
1363 @param ECX MSR_SILVERMONT_PKG_ENERGY_STATUS (0x00000611)
1364 @param EAX Lower 32-bits of MSR value.
1365 @param EDX Upper 32-bits of MSR value.
1366
1367 <b>Example usage</b>
1368 @code
1369 UINT64 Msr;
1370
1371 Msr = AsmReadMsr64 (MSR_SILVERMONT_PKG_ENERGY_STATUS);
1372 @endcode
1373 @note MSR_SILVERMONT_PKG_ENERGY_STATUS is defined as MSR_PKG_ENERGY_STATUS in SDM.
1374 **/
1375 #define MSR_SILVERMONT_PKG_ENERGY_STATUS 0x00000611
1376
1377
1378 /**
1379 Package. PP0 Energy Status (R/O) See Section 14.9.4, "PP0/PP1 RAPL Domains."
1380 and MSR_RAPL_POWER_UNIT in Table 2-8.
1381
1382 @param ECX MSR_SILVERMONT_PP0_ENERGY_STATUS (0x00000639)
1383 @param EAX Lower 32-bits of MSR value.
1384 @param EDX Upper 32-bits of MSR value.
1385
1386 <b>Example usage</b>
1387 @code
1388 UINT64 Msr;
1389
1390 Msr = AsmReadMsr64 (MSR_SILVERMONT_PP0_ENERGY_STATUS);
1391 @endcode
1392 @note MSR_SILVERMONT_PP0_ENERGY_STATUS is defined as MSR_PP0_ENERGY_STATUS in SDM.
1393 **/
1394 #define MSR_SILVERMONT_PP0_ENERGY_STATUS 0x00000639
1395
1396
1397 /**
1398 Package. Core C6 demotion policy config MSR. Controls per-core C6 demotion
1399 policy. Writing a value of 0 disables core level HW demotion policy.
1400
1401 @param ECX MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG (0x00000668)
1402 @param EAX Lower 32-bits of MSR value.
1403 @param EDX Upper 32-bits of MSR value.
1404
1405 <b>Example usage</b>
1406 @code
1407 UINT64 Msr;
1408
1409 Msr = AsmReadMsr64 (MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG);
1410 AsmWriteMsr64 (MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG, Msr);
1411 @endcode
1412 @note MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG is defined as MSR_CC6_DEMOTION_POLICY_CONFIG in SDM.
1413 **/
1414 #define MSR_SILVERMONT_CC6_DEMOTION_POLICY_CONFIG 0x00000668
1415
1416
1417 /**
1418 Package. Module C6 demotion policy config MSR. Controls module (i.e. two
1419 cores sharing the second-level cache) C6 demotion policy. Writing a value of
1420 0 disables module level HW demotion policy.
1421
1422 @param ECX MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG (0x00000669)
1423 @param EAX Lower 32-bits of MSR value.
1424 @param EDX Upper 32-bits of MSR value.
1425
1426 <b>Example usage</b>
1427 @code
1428 UINT64 Msr;
1429
1430 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG);
1431 AsmWriteMsr64 (MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG, Msr);
1432 @endcode
1433 @note MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG is defined as MSR_MC6_DEMOTION_POLICY_CONFIG in SDM.
1434 **/
1435 #define MSR_SILVERMONT_MC6_DEMOTION_POLICY_CONFIG 0x00000669
1436
1437
1438 /**
1439 Module. Module C6 Residency Counter (R/0) Note: C-state values are processor
1440 specific C-state code names, unrelated to MWAIT extension C-state parameters
1441 or ACPI CStates. Time that this module is in module-specific C6 states since
1442 last reset. Counts at 1 Mhz frequency.
1443
1444 @param ECX MSR_SILVERMONT_MC6_RESIDENCY_COUNTER (0x00000664)
1445 @param EAX Lower 32-bits of MSR value.
1446 @param EDX Upper 32-bits of MSR value.
1447
1448 <b>Example usage</b>
1449 @code
1450 UINT64 Msr;
1451
1452 Msr = AsmReadMsr64 (MSR_SILVERMONT_MC6_RESIDENCY_COUNTER);
1453 @endcode
1454 @note MSR_SILVERMONT_MC6_RESIDENCY_COUNTER is defined as MSR_MC6_RESIDENCY_COUNTER in SDM.
1455 **/
1456 #define MSR_SILVERMONT_MC6_RESIDENCY_COUNTER 0x00000664
1457
1458
1459 /**
1460 Package. PKG RAPL Parameter (R/0).
1461
1462 @param ECX MSR_SILVERMONT_PKG_POWER_INFO (0x0000066E)
1463 @param EAX Lower 32-bits of MSR value.
1464 Described by the type MSR_SILVERMONT_PKG_POWER_INFO_REGISTER.
1465 @param EDX Upper 32-bits of MSR value.
1466 Described by the type MSR_SILVERMONT_PKG_POWER_INFO_REGISTER.
1467
1468 <b>Example usage</b>
1469 @code
1470 MSR_SILVERMONT_PKG_POWER_INFO_REGISTER Msr;
1471
1472 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PKG_POWER_INFO);
1473 @endcode
1474 @note MSR_SILVERMONT_PKG_POWER_INFO is defined as MSR_PKG_POWER_INFO in SDM.
1475 **/
1476 #define MSR_SILVERMONT_PKG_POWER_INFO 0x0000066E
1477
1478 /**
1479 MSR information returned for MSR index #MSR_SILVERMONT_PKG_POWER_INFO
1480 **/
1481 typedef union {
1482 ///
1483 /// Individual bit fields
1484 ///
1485 struct {
1486 ///
1487 /// [Bits 14:0] Thermal Spec Power. (R/0) The unsigned integer value is
1488 /// the equivalent of thermal specification power of the package domain.
1489 /// The unit of this field is specified by the "Power Units" field of
1490 /// MSR_RAPL_POWER_UNIT.
1491 ///
1492 UINT32 ThermalSpecPower:15;
1493 UINT32 Reserved1:17;
1494 UINT32 Reserved2:32;
1495 } Bits;
1496 ///
1497 /// All bit fields as a 32-bit value
1498 ///
1499 UINT32 Uint32;
1500 ///
1501 /// All bit fields as a 64-bit value
1502 ///
1503 UINT64 Uint64;
1504 } MSR_SILVERMONT_PKG_POWER_INFO_REGISTER;
1505
1506
1507 /**
1508 Package. PP0 RAPL Power Limit Control (R/W).
1509
1510 @param ECX MSR_SILVERMONT_PP0_POWER_LIMIT (0x00000638)
1511 @param EAX Lower 32-bits of MSR value.
1512 Described by the type MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER.
1513 @param EDX Upper 32-bits of MSR value.
1514 Described by the type MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER.
1515
1516 <b>Example usage</b>
1517 @code
1518 MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER Msr;
1519
1520 Msr.Uint64 = AsmReadMsr64 (MSR_SILVERMONT_PP0_POWER_LIMIT);
1521 AsmWriteMsr64 (MSR_SILVERMONT_PP0_POWER_LIMIT, Msr.Uint64);
1522 @endcode
1523 @note MSR_SILVERMONT_PP0_POWER_LIMIT is defined as MSR_PP0_POWER_LIMIT in SDM.
1524 **/
1525 #define MSR_SILVERMONT_PP0_POWER_LIMIT 0x00000638
1526
1527 /**
1528 MSR information returned for MSR index #MSR_SILVERMONT_PP0_POWER_LIMIT
1529 **/
1530 typedef union {
1531 ///
1532 /// Individual bit fields
1533 ///
1534 struct {
1535 ///
1536 /// [Bits 14:0] PP0 Power Limit #1. (R/W) See Section 14.9.4, "PP0/PP1
1537 /// RAPL Domains." and MSR_RAPL_POWER_UNIT in Table 35-8.
1538 ///
1539 UINT32 Limit:15;
1540 ///
1541 /// [Bit 15] Enable Power Limit #1. (R/W) See Section 14.9.4, "PP0/PP1
1542 /// RAPL Domains.".
1543 ///
1544 UINT32 Enable:1;
1545 UINT32 Reserved1:1;
1546 ///
1547 /// [Bits 23:17] Time Window for Power Limit #1. (R/W) Specifies the time
1548 /// duration over which the average power must remain below
1549 /// PP0_POWER_LIMIT #1(14:0). Supported Encodings: 0x0: 1 second time
1550 /// duration. 0x1: 5 second time duration (Default). 0x2: 10 second time
1551 /// duration. 0x3: 15 second time duration. 0x4: 20 second time duration.
1552 /// 0x5: 25 second time duration. 0x6: 30 second time duration. 0x7: 35
1553 /// second time duration. 0x8: 40 second time duration. 0x9: 45 second
1554 /// time duration. 0xA: 50 second time duration. 0xB-0x7F - reserved.
1555 ///
1556 UINT32 Time:7;
1557 UINT32 Reserved2:8;
1558 UINT32 Reserved3:32;
1559 } Bits;
1560 ///
1561 /// All bit fields as a 32-bit value
1562 ///
1563 UINT32 Uint32;
1564 ///
1565 /// All bit fields as a 64-bit value
1566 ///
1567 UINT64 Uint64;
1568 } MSR_SILVERMONT_PP0_POWER_LIMIT_REGISTER;
1569
1570 #endif