Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of msrtool. |
| 3 | * |
| 4 | * Copyright (C) 2011 Anton Kochkov <anton.kochkov@gmail.com> |
| 5 | * Copyright (C) 2017 Lubomir Rintel <lkundrak@v3.sk> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include "msrtool.h" |
| 18 | |
| 19 | int via_c7_probe(const struct targetdef *target, const struct cpuid_t *id) { |
| 20 | return ((VENDOR_CENTAUR == id->vendor) && |
| 21 | (0x6 == id->family) && ( |
| 22 | (0xa == id->model) || /* C7 A */ |
| 23 | (0xd == id->model) || /* C7 D */ |
| 24 | (0xf == id->model) /* Nano */ |
| 25 | )); |
| 26 | } |
| 27 | |
| 28 | const struct msrdef via_c7_msrs[] = { |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 29 | {0x10, MSRTYPE_RDWR, MSR2(0, 0), "IA32_TIME_STAMP_COUNTER", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 30 | { BITS_EOT } |
| 31 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 32 | {0x2a, MSRTYPE_RDWR, MSR2(0, 0), "EBL_CR_POWERON", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 33 | { BITS_EOT } |
| 34 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 35 | {0xc1, MSRTYPE_RDWR, MSR2(0, 0), "PERFCTR0", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 36 | { BITS_EOT } |
| 37 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 38 | {0xc2, MSRTYPE_RDWR, MSR2(0, 0), "PERFCTR1", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 39 | { BITS_EOT } |
| 40 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 41 | {0x11e, MSRTYPE_RDWR, MSR2(0, 0), "BBL_CR_CTL3", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 42 | { BITS_EOT } |
| 43 | }}, |
| 44 | /* if CPUID.0AH: EAX[15:8] > 0 */ |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 45 | {0x186, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERFEVTSEL0", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 46 | "Performance Event Select Register 0", { |
| 47 | { 63, 32, RESERVED }, |
| 48 | { 31, 8, "CMASK", "R/W", PRESENT_HEX, { |
| 49 | /* When CMASK is not zero, the corresponding performance |
| 50 | * counter 0 increments each cycle if the event count |
| 51 | * is greater than or equal to the CMASK. |
| 52 | */ |
| 53 | { BITVAL_EOT } |
| 54 | }}, |
| 55 | { 23, 1, "INV", "R/W", PRESENT_BIN, { |
| 56 | { MSR1(0), "CMASK using as is" }, |
| 57 | { MSR1(1), "CMASK inerting" }, |
| 58 | { BITVAL_EOT } |
| 59 | }}, |
| 60 | { 22, 1, "EN", "R/W", PRESENT_BIN, { |
| 61 | { MSR1(0), "No commence counting" }, |
| 62 | { MSR1(1), "Commence counting" }, |
| 63 | { BITVAL_EOT } |
| 64 | }}, |
| 65 | { 21, 1, "AnyThread", "R/W", PRESENT_BIN, { |
| 66 | { BITVAL_EOT } |
| 67 | }}, |
| 68 | { 20, 1, "INT", "R/W", PRESENT_BIN, { |
| 69 | { MSR1(0), "Interrupt on counter overflow is disabled" }, |
| 70 | { MSR1(1), "Interrupt on counter overflow is enabled" }, |
| 71 | { BITVAL_EOT } |
| 72 | }}, |
| 73 | { 19, 1, "PC", "R/W", PRESENT_BIN, { |
| 74 | { MSR1(0), "Disabled pin control" }, |
| 75 | { MSR1(1), "Enabled pin control" }, |
| 76 | { BITVAL_EOT } |
| 77 | }}, |
| 78 | { 18, 1, "Edge", "R/W", PRESENT_BIN, { |
| 79 | { MSR1(0), "Disabled edge detection" }, |
| 80 | { MSR1(1), "Enabled edge detection" }, |
| 81 | { BITVAL_EOT } |
| 82 | }}, |
| 83 | { 17, 1, "OS", "R/W", PRESENT_BIN, { |
| 84 | { MSR1(0), "Nothing" }, |
| 85 | { MSR1(1), "Counts while in privilege level is ring 0" }, |
| 86 | { BITVAL_EOT } |
| 87 | }}, |
| 88 | { 16, 1, "USR", "R/W", PRESENT_BIN, { |
| 89 | { MSR1(0), "Nothing" }, |
| 90 | { MSR1(1), "Counts while in privilege level is not ring 0" }, |
| 91 | { BITVAL_EOT } |
| 92 | }}, |
| 93 | { 15, 8, "UMask", "R/W", PRESENT_HEX, { |
| 94 | /* Qualifies the microarchitectural condition |
| 95 | * to detect on the selected event logic. */ |
| 96 | { BITVAL_EOT } |
| 97 | }}, |
| 98 | { 7, 8, "Event Select", "R/W", PRESENT_HEX, { |
| 99 | /* Selects a performance event logic unit. */ |
| 100 | { BITVAL_EOT } |
| 101 | }}, |
| 102 | { BITS_EOT } |
| 103 | }}, |
| 104 | /* if CPUID.0AH: EAX[15:8] > 0 */ |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 105 | {0x187, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERFEVTSEL1", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 106 | "Performance Event Select Register 1", { |
| 107 | { 63, 32, RESERVED }, |
| 108 | { 31, 8, "CMASK", "R/W", PRESENT_HEX, { |
| 109 | /* When CMASK is not zero, the corresponding performance |
| 110 | * counter 1 increments each cycle if the event count |
| 111 | * is greater than or equal to the CMASK. |
| 112 | */ |
| 113 | { BITVAL_EOT } |
| 114 | }}, |
| 115 | { 23, 1, "INV", "R/W", PRESENT_BIN, { |
| 116 | { MSR1(0), "CMASK using as is" }, |
| 117 | { MSR1(1), "CMASK inerting" }, |
| 118 | { BITVAL_EOT } |
| 119 | }}, |
| 120 | { 22, 1, "EN", "R/W", PRESENT_BIN, { |
| 121 | { MSR1(0), "No commence counting" }, |
| 122 | { MSR1(1), "Commence counting" }, |
| 123 | { BITVAL_EOT } |
| 124 | }}, |
| 125 | { 21, 1, "AnyThread", "R/W", PRESENT_BIN, { |
| 126 | { BITVAL_EOT } |
| 127 | }}, |
| 128 | { 20, 1, "INT", "R/W", PRESENT_BIN, { |
| 129 | { MSR1(0), "Interrupt on counter overflow is disabled" }, |
| 130 | { MSR1(1), "Interrupt on counter overflow is enabled" }, |
| 131 | { BITVAL_EOT } |
| 132 | }}, |
| 133 | { 19, 1, "PC", "R/W", PRESENT_BIN, { |
| 134 | { MSR1(0), "Disabled pin control" }, |
| 135 | { MSR1(1), "Enabled pin control" }, |
| 136 | { BITVAL_EOT } |
| 137 | }}, |
| 138 | { 18, 1, "Edge", "R/W", PRESENT_BIN, { |
| 139 | { MSR1(0), "Disabled edge detection" }, |
| 140 | { MSR1(1), "Enabled edge detection" }, |
| 141 | { BITVAL_EOT } |
| 142 | }}, |
| 143 | { 17, 1, "OS", "R/W", PRESENT_BIN, { |
| 144 | { MSR1(0), "Nothing" }, |
| 145 | { MSR1(1), "Counts while in privilege level is ring 0" }, |
| 146 | { BITVAL_EOT } |
| 147 | }}, |
| 148 | { 16, 1, "USR", "R/W", PRESENT_BIN, { |
| 149 | { MSR1(0), "Nothing" }, |
| 150 | { MSR1(1), "Counts while in privilege level is not ring 0" }, |
| 151 | { BITVAL_EOT } |
| 152 | }}, |
| 153 | { 15, 8, "UMask", "R/W", PRESENT_HEX, { |
| 154 | /* Qualifies the microarchitectural condition |
| 155 | * to detect on the selected event logic. */ |
| 156 | { BITVAL_EOT } |
| 157 | }}, |
| 158 | { 7, 8, "Event Select", "R/W", PRESENT_HEX, { |
| 159 | /* Selects a performance event logic unit. */ |
| 160 | { BITVAL_EOT } |
| 161 | }}, |
| 162 | { BITS_EOT } |
| 163 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 164 | {0x198, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_STATUS", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 165 | { 63, 8, "Lowest Supported Clock Ratio", "R/O", PRESENT_HEX, { |
| 166 | { BITVAL_EOT } |
| 167 | }}, |
| 168 | { 55, 8, "Lowest Supported Voltage", "R/O", PRESENT_HEX, { |
| 169 | { BITVAL_EOT } |
| 170 | }}, |
| 171 | { 47, 8, "Highest Supported Clock Ratio", "R/O", PRESENT_HEX, { |
| 172 | { BITVAL_EOT } |
| 173 | }}, |
| 174 | { 39, 8, "Highest Supported Voltage", "R/O", PRESENT_HEX, { |
| 175 | { BITVAL_EOT } |
| 176 | }}, |
| 177 | { 31, 8, "Lowest Clock Ratio", "R/O", PRESENT_HEX, { |
| 178 | { BITVAL_EOT } |
| 179 | }}, |
| 180 | { 23, 2, RESERVED }, |
| 181 | { 21, 2, "Performance Control MSR Transition", "R/O", PRESENT_HEX, { |
| 182 | { BITVAL_EOT } |
| 183 | }}, |
| 184 | { 19, 1, "Thermal Monitor 2 transition", "R/O", PRESENT_BIN, { |
| 185 | { BITVAL_EOT } |
| 186 | }}, |
| 187 | { 18, 1, "Thermal Monitor 2 transition", "R/O", PRESENT_BIN, { |
| 188 | { BITVAL_EOT } |
| 189 | }}, |
| 190 | { 17, 1, "Voltage Transition in progress", "R/O", PRESENT_BIN, { |
| 191 | { BITVAL_EOT } |
| 192 | }}, |
| 193 | { 16, 1, "Clock Ratio Transition in progress", "R/O", PRESENT_BIN, { |
| 194 | { BITVAL_EOT } |
| 195 | }}, |
| 196 | { 15, 8, "Current Clock Ratio", "R/W", PRESENT_HEX, { |
| 197 | { BITVAL_EOT } |
| 198 | }}, |
| 199 | { 7, 8, "16*x + 700 = Current voltage in mV", "R/W", PRESENT_HEX, { |
| 200 | { BITVAL_EOT } |
| 201 | }}, |
| 202 | { BITS_EOT } |
| 203 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 204 | {0x199, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_CTL", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 205 | { 63, 48, RESERVED }, |
| 206 | { 15, 8, "Desired Clock Ratio", "R/W", PRESENT_HEX, { |
| 207 | { BITVAL_EOT } |
| 208 | }}, |
| 209 | { 7, 8, "16*x + 700 = Desired voltage in mV", "R/W", PRESENT_HEX, { |
| 210 | { BITVAL_EOT } |
| 211 | }}, |
| 212 | { BITS_EOT } |
| 213 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 214 | {0x19a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_CLOCK_MODULATION", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 215 | { 63, 59, RESERVED }, |
| 216 | { 15, 8, "allows selection of the on-demand clock modulation duty cycle", "R/W", PRESENT_BIN, { |
| 217 | { MSR1(0), "Reserved" }, |
| 218 | { MSR1(1), "12.5%" }, |
| 219 | { MSR1(2), "25.0%" }, |
| 220 | { MSR1(3), "37.5%" }, |
| 221 | { MSR1(4), "50.0%" }, |
| 222 | { MSR1(5), "62.5%" }, |
| 223 | { MSR1(6), "75.0%" }, |
| 224 | { MSR1(7), "87.5%" }, |
| 225 | { BITVAL_EOT } |
| 226 | }}, |
| 227 | { 0, 1, RESERVED }, |
| 228 | { BITS_EOT } |
| 229 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 230 | {0x19b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_INTERRUPT", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 231 | { 63, 62, RESERVED }, |
| 232 | { 1, 1, "Enables APIC LVT interrupt on a low-to-high temp transition", "R/W", PRESENT_BIN, { |
| 233 | { BITVAL_EOT } |
| 234 | }}, |
| 235 | { 0, 1, "Enables APIC LVT interrupt on a high-to-low temp transition", "R/W", PRESENT_BIN, { |
| 236 | { BITVAL_EOT } |
| 237 | }}, |
| 238 | { BITS_EOT } |
| 239 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 240 | {0x19c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_STATUS", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 241 | { 63, 62, RESERVED }, |
| 242 | { 1, 1, "TCC assert detect", "R/O", PRESENT_BIN, { |
| 243 | { MSR1(0), "TCC not asserted" }, |
| 244 | { MSR1(1), "TCC asserted" }, |
| 245 | { BITVAL_EOT } |
| 246 | }}, |
| 247 | { 0, 1, "TCC trigger detect (Sticky bit, only cleared upon reset)", "R/O", PRESENT_BIN, { |
| 248 | { MSR1(0), "TCC not triggered" }, |
| 249 | { MSR1(1), "TCC triggered" }, |
| 250 | { BITVAL_EOT } |
| 251 | }}, |
| 252 | { BITS_EOT } |
| 253 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 254 | {0x19d, MSRTYPE_RDWR, MSR2(0, 0), "MSR_THERM2_CTL", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 255 | { 63, 47, RESERVED }, |
| 256 | { 16, 1, "Thermal Monitor enable", "R/W", PRESENT_HEX, { |
| 257 | { MSR1(0), "Thermal Monitor 1 enabled" }, |
| 258 | { MSR1(1), "Thermal Monitor 2 enabled" }, |
| 259 | { BITVAL_EOT } |
| 260 | }}, |
| 261 | { 15, 8, "Thermal Monitor 2 performance state clock ratio", "R/W", PRESENT_HEX, { |
| 262 | { BITVAL_EOT } |
| 263 | }}, |
| 264 | { 7, 8, "Thermal Monitor 2 performance state volatege", "R/W", PRESENT_HEX, { |
| 265 | { BITVAL_EOT } |
| 266 | }}, |
| 267 | { BITS_EOT } |
| 268 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 269 | {0x1a0, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MISC_ENABLES", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 270 | { 63, 43, RESERVED }, |
| 271 | { 20, 1, "PowerSaver lock", "R/W", PRESENT_BIN, { |
| 272 | { MSR1(0), "Bit 16 can be set and cleared." }, |
| 273 | { MSR1(1), "Bit 16 can only be cleared upon reset." }, |
| 274 | { BITVAL_EOT } |
| 275 | }}, |
| 276 | { 19, 3, RESERVED }, |
| 277 | { 16, 1, "Enhanced PowerSaver enable", "R/W", PRESENT_BIN, { |
| 278 | { MSR1(0), "Performance state changes disabled" }, |
| 279 | { MSR1(1), "Performance state changes enabled" }, |
| 280 | { BITVAL_EOT } |
| 281 | }}, |
| 282 | { 15, 5, RESERVED }, |
| 283 | { 10, 1, "PBE enable", "R/W", PRESENT_BIN, { |
| 284 | { MSR1(0), "FERR# legacy mode" }, |
| 285 | { MSR1(1), "Enables break events for APIC via FERR#" }, |
| 286 | { BITVAL_EOT } |
| 287 | }}, |
| 288 | { 9, 6, RESERVED }, |
| 289 | { 3, 1, "Thermal Monitor 2 enable", "R/W", PRESENT_BIN, { |
| 290 | { MSR1(0), "On-die clock throttling enabled" }, |
| 291 | { MSR1(1), "Thermal Monitor 1 or 2 enabled" }, |
| 292 | { BITVAL_EOT } |
| 293 | }}, |
| 294 | { 2, 3, RESERVED }, |
| 295 | { BITS_EOT } |
| 296 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 297 | {0x200, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE0", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 298 | { BITS_EOT } |
| 299 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 300 | {0x201, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK0", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 301 | { BITS_EOT } |
| 302 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 303 | {0x202, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE1", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 304 | { BITS_EOT } |
| 305 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 306 | {0x203, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK1", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 307 | { BITS_EOT } |
| 308 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 309 | {0x204, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE2", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 310 | { BITS_EOT } |
| 311 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 312 | {0x205, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK2", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 313 | { BITS_EOT } |
| 314 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 315 | {0x206, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE3", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 316 | { BITS_EOT } |
| 317 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 318 | {0x207, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK3", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 319 | { BITS_EOT } |
| 320 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 321 | {0x208, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE4", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 322 | { BITS_EOT } |
| 323 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 324 | {0x209, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK4", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 325 | { BITS_EOT } |
| 326 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 327 | {0x20a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE5", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 328 | { BITS_EOT } |
| 329 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 330 | {0x20b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK5", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 331 | { BITS_EOT } |
| 332 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 333 | {0x20c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE6", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 334 | { BITS_EOT } |
| 335 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 336 | {0x20d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK6", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 337 | { BITS_EOT } |
| 338 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 339 | {0x20e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSBASE7", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 340 | { BITS_EOT } |
| 341 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 342 | {0x20f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYSMASK7", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 343 | { BITS_EOT } |
| 344 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 345 | {0x250, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 346 | { BITS_EOT } |
| 347 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 348 | {0x258, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 349 | { BITS_EOT } |
| 350 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 351 | {0x259, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 352 | { BITS_EOT } |
| 353 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 354 | {0x268, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 355 | { BITS_EOT } |
| 356 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 357 | {0x269, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 358 | { BITS_EOT } |
| 359 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 360 | {0x26a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 361 | { BITS_EOT } |
| 362 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 363 | {0x26b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 364 | { BITS_EOT } |
| 365 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 366 | {0x26c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 367 | { BITS_EOT } |
| 368 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 369 | {0x26d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 370 | { BITS_EOT } |
| 371 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 372 | {0x26e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 373 | { BITS_EOT } |
| 374 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 375 | {0x26f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 376 | { BITS_EOT } |
| 377 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 378 | {0x2ff, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_DEF_TYPE", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 379 | { BITS_EOT } |
| 380 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 381 | {0x1107, MSRTYPE_RDWR, MSR2(0, 0), "FCR", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 382 | "Feature Control Register", { |
| 383 | { 63, 55, RESERVED }, |
| 384 | { 8, 1, "Disables L2 Cache", "R/W", PRESENT_BIN, { |
| 385 | { MSR1(0), "L2 Cache enabled" }, |
| 386 | { MSR1(1), "L2 Cache disabled" }, |
| 387 | { BITVAL_EOT } |
| 388 | }}, |
| 389 | { 7, 6, RESERVED }, |
| 390 | { 1, 1, "Enables CPUID reporting CMPXCHG8B", "R/W", PRESENT_BIN, { |
| 391 | { MSR1(0), "Disabled CPUID reporting CMPXCHG8B" }, |
| 392 | { MSR1(1), "Enabled CPUID reporting CMPXCHG8B" }, |
| 393 | { BITVAL_EOT } |
| 394 | }}, |
| 395 | { 0, 1, RESERVED }, |
| 396 | { BITS_EOT } |
| 397 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 398 | {0x1108, MSRTYPE_RDWR, MSR2(0, 0), "FCR2", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 399 | "Feature Control Register 2", { |
| 400 | { 63, 32, "Last 4 characters of Alternate Vendor ID string", "R/W", PRESENT_STR, { |
| 401 | { BITVAL_EOT } |
| 402 | }}, |
| 403 | { 31, 17, RESERVED }, |
| 404 | { 14, 1, "Use the Alternate Vendor ID string", "R/W", PRESENT_BIN, { |
| 405 | { MSR1(0), "The CPUID instruction vendor ID is CentaurHauls" }, |
| 406 | { MSR1(1), "The CPUID instruction returns the alternate Vendor ID" }, |
| 407 | { BITVAL_EOT } |
| 408 | }}, |
| 409 | { 13, 2, RESERVED }, |
| 410 | { 11, 4, "Family ID", "R/W", PRESENT_HEX, { |
| 411 | { BITVAL_EOT } |
| 412 | }}, |
| 413 | { 7, 4, "Model ID", "R/W", PRESENT_HEX, { |
| 414 | { BITVAL_EOT } |
| 415 | }}, |
| 416 | { 3, 4, RESERVED }, |
| 417 | { BITS_EOT } |
| 418 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 419 | {0x1109, MSRTYPE_WRONLY, MSR2(0, 0), "FCR3", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 420 | "Feature Control Register 3", { |
| 421 | { 63, 32, "First 4 characters of Alternate Vendor ID string", "W/O", PRESENT_STR, { |
| 422 | { BITVAL_EOT } |
| 423 | }}, |
| 424 | { 31, 32, "Middle 4 characters of Alternate Vendor ID string", "W/O", PRESENT_STR, { |
| 425 | { BITVAL_EOT } |
| 426 | }}, |
| 427 | { BITS_EOT } |
| 428 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 429 | {0x1152, MSRTYPE_RDONLY, MSR2(0, 0), "FUSES", "Fuses", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 430 | { BITS_EOT } |
| 431 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 432 | {0x1153, MSRTYPE_RDONLY, MSR2(0, 0), "BRAND", |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 433 | "BRAND_1 XOR BRAND_2, (00b = C7-M, 01b = C7, 10b = Eden, 11b = Reserved)", { |
| 434 | { 63, 42, RESERVED }, |
| 435 | { 21, 2, "BRAND_1", "R/O", PRESENT_BIN, { |
| 436 | { BITVAL_EOT } |
| 437 | }}, |
| 438 | { 19, 2, "BRAND_2", "R/O", PRESENT_BIN, { |
| 439 | { BITVAL_EOT } |
| 440 | }}, |
| 441 | { 17, 18, RESERVED }, |
| 442 | { BITS_EOT } |
| 443 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 444 | {0x1160, MSRTYPE_RDWR, MSR2(0, 0), "UNK0", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 445 | { BITS_EOT } |
| 446 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 447 | {0x1161, MSRTYPE_RDWR, MSR2(0, 0), "UNK1", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 448 | { BITS_EOT } |
| 449 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 450 | {0x1164, MSRTYPE_RDWR, MSR2(0, 0), "THERM_THRESH_LOW", "(FUSES[6:4] * 5 + 65)", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 451 | { BITS_EOT } |
| 452 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 453 | {0x1165, MSRTYPE_RDWR, MSR2(0, 0), "THERM_THRESH_HI", "(FUSES[6:4] * 5 + 65) + 5", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 454 | { BITS_EOT } |
| 455 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 456 | {0x1166, MSRTYPE_RDWR, MSR2(0, 0), "THERM_THRESH_OVERSTRESS", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 457 | { BITS_EOT } |
| 458 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 459 | {0x1167, MSRTYPE_RDWR, MSR2(0, 0), "THERM_THRESH_USER_TRIP", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 460 | { BITS_EOT } |
| 461 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 462 | {0x1168, MSRTYPE_RDWR, MSR2(0, 0), "UNK2", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 463 | { BITS_EOT } |
| 464 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 465 | {0x116a, MSRTYPE_RDWR, MSR2(0, 0), "UNK3", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 466 | { BITS_EOT } |
| 467 | }}, |
Patrick Georgi | 5c65d00 | 2020-01-29 13:45:45 +0100 | [diff] [blame] | 468 | {0x116b, MSRTYPE_RDWR, MSR2(0, 0), "UNK4", "", { |
Lubomir Rintel | 6cc4dea | 2017-01-22 22:20:04 +0100 | [diff] [blame] | 469 | { BITS_EOT } |
| 470 | }}, |
| 471 | { MSR_EOT } |
| 472 | }; |