2 MSR Definitions for Intel(R) Xeon(R) Processor Series 5600.
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-6.
24 #ifndef __XEON_5600_MSR_H__
25 #define __XEON_5600_MSR_H__
27 #include <Register/ArchitecturalMsr.h>
30 Core. AES Configuration (RW-L) Privileged post-BIOS agent must provide a #GP
31 handler to handle unsuccessful read of this MSR.
33 @param ECX MSR_XEON_5600_FEATURE_CONFIG (0x0000013C)
34 @param EAX Lower 32-bits of MSR value.
35 Described by the type MSR_XEON_5600_FEATURE_CONFIG_REGISTER.
36 @param EDX Upper 32-bits of MSR value.
37 Described by the type MSR_XEON_5600_FEATURE_CONFIG_REGISTER.
41 MSR_XEON_5600_FEATURE_CONFIG_REGISTER Msr;
43 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_5600_FEATURE_CONFIG);
44 AsmWriteMsr64 (MSR_XEON_5600_FEATURE_CONFIG, Msr.Uint64);
47 #define MSR_XEON_5600_FEATURE_CONFIG 0x0000013C
50 MSR information returned for MSR index #MSR_XEON_5600_FEATURE_CONFIG
54 /// Individual bit fields
58 /// [Bits 1:0] AES Configuration (RW-L) Upon a successful read of this
59 /// MSR, the configuration of AES instruction set availability is as
60 /// follows: 11b: AES instructions are not available until next RESET.
61 /// otherwise, AES instructions are available. Note, AES instruction set
62 /// is not available if read is unsuccessful. If the configuration is not
63 /// 01b, AES instruction can be mis-configured if a privileged agent
64 /// unintentionally writes 11b.
66 UINT32 AESConfiguration
:2;
71 /// All bit fields as a 32-bit value
75 /// All bit fields as a 64-bit value
78 } MSR_XEON_5600_FEATURE_CONFIG_REGISTER
;
82 Thread. Offcore Response Event Select Register (R/W).
84 @param ECX MSR_XEON_5600_OFFCORE_RSP_1 (0x000001A7)
85 @param EAX Lower 32-bits of MSR value.
86 @param EDX Upper 32-bits of MSR value.
92 Msr = AsmReadMsr64 (MSR_XEON_5600_OFFCORE_RSP_1);
93 AsmWriteMsr64 (MSR_XEON_5600_OFFCORE_RSP_1, Msr);
96 #define MSR_XEON_5600_OFFCORE_RSP_1 0x000001A7
100 Package. Maximum Ratio Limit of Turbo Mode RO if MSR_PLATFORM_INFO.[28] = 0,
101 RW if MSR_PLATFORM_INFO.[28] = 1.
103 @param ECX MSR_XEON_5600_TURBO_RATIO_LIMIT (0x000001AD)
104 @param EAX Lower 32-bits of MSR value.
105 Described by the type MSR_XEON_5600_TURBO_RATIO_LIMIT_REGISTER.
106 @param EDX Upper 32-bits of MSR value.
107 Described by the type MSR_XEON_5600_TURBO_RATIO_LIMIT_REGISTER.
111 MSR_XEON_5600_TURBO_RATIO_LIMIT_REGISTER Msr;
113 Msr.Uint64 = AsmReadMsr64 (MSR_XEON_5600_TURBO_RATIO_LIMIT);
116 #define MSR_XEON_5600_TURBO_RATIO_LIMIT 0x000001AD
119 MSR information returned for MSR index #MSR_XEON_5600_TURBO_RATIO_LIMIT_REGISTER
123 /// Individual bit fields
127 /// [Bits 7:0] Package. Maximum Ratio Limit for 1C Maximum turbo ratio
128 /// limit of 1 core active.
132 /// [Bits 15:8] Package. Maximum Ratio Limit for 2C Maximum turbo ratio
133 /// limit of 2 core active.
137 /// [Bits 23:16] Package. Maximum Ratio Limit for 3C Maximum turbo ratio
138 /// limit of 3 core active.
142 /// [Bits 31:24] Package. Maximum Ratio Limit for 4C Maximum turbo ratio
143 /// limit of 4 core active.
147 /// [Bits 39:32] Package. Maximum Ratio Limit for 5C Maximum turbo ratio
148 /// limit of 5 core active.
152 /// [Bits 47:40] Package. Maximum Ratio Limit for 6C Maximum turbo ratio
153 /// limit of 6 core active.
159 /// All bit fields as a 64-bit value
162 } MSR_XEON_5600_TURBO_RATIO_LIMIT_REGISTER
;
166 Package. See Table 35-2.
168 @param ECX MSR_XEON_5600_IA32_ENERGY_PERF_BIAS (0x000001B0)
169 @param EAX Lower 32-bits of MSR value.
170 @param EDX Upper 32-bits of MSR value.
176 Msr = AsmReadMsr64 (MSR_XEON_5600_IA32_ENERGY_PERF_BIAS);
177 AsmWriteMsr64 (MSR_XEON_5600_IA32_ENERGY_PERF_BIAS, Msr);
180 #define MSR_XEON_5600_IA32_ENERGY_PERF_BIAS 0x000001B0