2 MSR Definitions for Intel processors based on the Broadwell microarchitecture.
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
9 Copyright (c) 2016, 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
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.
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 December 2015, Chapter 35 Model-Specific-Registers (MSR), Section 35-12.
24 #ifndef __BROADWELL_MSR_H__
25 #define __BROADWELL_MSR_H__
27 #include <Register/ArchitecturalMsr.h>
30 Thread. See Table 35-2. See Section 18.4.2, "Global Counter Control
33 @param ECX MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS (0x0000038E)
34 @param EAX Lower 32-bits of MSR value.
35 Described by the type MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS_REGISTER.
36 @param EDX Upper 32-bits of MSR value.
37 Described by the type MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS_REGISTER.
41 MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS_REGISTER Msr;
43 Msr.Uint64 = AsmReadMsr64 (MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS);
44 AsmWriteMsr64 (MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS, Msr.Uint64);
47 #define MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS 0x0000038E
50 MSR information returned for MSR index #MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS
54 /// Individual bit fields
75 /// [Bit 32] Ovf_FixedCtr0.
77 UINT32 Ovf_FixedCtr0
:1;
79 /// [Bit 33] Ovf_FixedCtr1.
81 UINT32 Ovf_FixedCtr1
:1;
83 /// [Bit 34] Ovf_FixedCtr2.
85 UINT32 Ovf_FixedCtr2
:1;
88 /// [Bit 55] Trace_ToPA_PMI. See Section 36.2.4.2, "Table of Physical
89 /// Addresses (ToPA).".
91 UINT32 Trace_ToPA_PMI
:1;
94 /// [Bit 61] Ovf_Uncore.
98 /// [Bit 62] Ovf_BufDSSAVE.
102 /// [Bit 63] CondChgd.
107 /// All bit fields as a 64-bit value
110 } MSR_BROADWELL_IA32_PERF_GLOBAL_STAUS_REGISTER
;
114 Core. C-State Configuration Control (R/W) Note: C-state values are processor
115 specific C-state code names, unrelated to MWAIT extension C-state parameters
116 or ACPI C-states. `See http://biosbits.org. <http://biosbits.org>`__.
118 @param ECX MSR_BROADWELL_PKG_CST_CONFIG_CONTROL (0x000000E2)
119 @param EAX Lower 32-bits of MSR value.
120 Described by the type MSR_BROADWELL_PKG_CST_CONFIG_CONTROL_REGISTER.
121 @param EDX Upper 32-bits of MSR value.
122 Described by the type MSR_BROADWELL_PKG_CST_CONFIG_CONTROL_REGISTER.
126 MSR_BROADWELL_PKG_CST_CONFIG_CONTROL_REGISTER Msr;
128 Msr.Uint64 = AsmReadMsr64 (MSR_BROADWELL_PKG_CST_CONFIG_CONTROL);
129 AsmWriteMsr64 (MSR_BROADWELL_PKG_CST_CONFIG_CONTROL, Msr.Uint64);
132 #define MSR_BROADWELL_PKG_CST_CONFIG_CONTROL 0x000000E2
135 MSR information returned for MSR index #MSR_BROADWELL_PKG_CST_CONFIG_CONTROL
139 /// Individual bit fields
143 /// [Bits 3:0] Package C-State Limit (R/W) Specifies the lowest
144 /// processor-specific C-state code name (consuming the least power) for
145 /// the package. The default is set as factory-configured package C-state
146 /// limit. The following C-state code name encodings are supported: 0000b:
147 /// C0/C1 (no package C-state support) 0001b: C2 0010b: C3 0011b: C6
148 /// 0100b: C7 0101b: C7s 0110b: C8 0111b: C9 1000b: C10.
153 /// [Bit 10] I/O MWAIT Redirection Enable (R/W).
158 /// [Bit 15] CFG Lock (R/WO).
163 /// [Bit 25] C3 State Auto Demotion Enable (R/W).
165 UINT32 C3AutoDemotion
:1;
167 /// [Bit 26] C1 State Auto Demotion Enable (R/W).
169 UINT32 C1AutoDemotion
:1;
171 /// [Bit 27] Enable C3 Undemotion (R/W).
173 UINT32 C3Undemotion
:1;
175 /// [Bit 28] Enable C1 Undemotion (R/W).
177 UINT32 C1Undemotion
:1;
179 /// [Bit 29] Enable Package C-State Auto-demotion (R/W).
181 UINT32 CStateAutoDemotion
:1;
183 /// [Bit 30] Enable Package C-State Undemotion (R/W).
185 UINT32 CStateUndemotion
:1;
190 /// All bit fields as a 32-bit value
194 /// All bit fields as a 64-bit value
197 } MSR_BROADWELL_PKG_CST_CONFIG_CONTROL_REGISTER
;
201 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
202 RW if MSR_PLATFORM_INFO.[28] = 1.
204 @param ECX MSR_BROADWELL_TURBO_RATIO_LIMIT (0x000001AD)
205 @param EAX Lower 32-bits of MSR value.
206 Described by the type MSR_BROADWELL_TURBO_RATIO_LIMIT_REGISTER.
207 @param EDX Upper 32-bits of MSR value.
208 Described by the type MSR_BROADWELL_TURBO_RATIO_LIMIT_REGISTER.
212 MSR_BROADWELL_TURBO_RATIO_LIMIT_REGISTER Msr;
214 Msr.Uint64 = AsmReadMsr64 (MSR_BROADWELL_TURBO_RATIO_LIMIT);
217 #define MSR_BROADWELL_TURBO_RATIO_LIMIT 0x000001AD
220 MSR information returned for MSR index #MSR_BROADWELL_TURBO_RATIO_LIMIT
224 /// Individual bit fields
228 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio
229 /// limit of 1 core active.
233 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio
234 /// limit of 2 core active.
238 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio
239 /// limit of 3 core active.
243 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio
244 /// limit of 4 core active.
248 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C Maximum turbo ratio
249 /// limit of 5core active.
253 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C Maximum turbo ratio
254 /// limit of 6core active.
260 /// All bit fields as a 64-bit value
263 } MSR_BROADWELL_TURBO_RATIO_LIMIT_REGISTER
;