1 /* SPDX-License-Identifier: GPL-2.0-only */
5 int intel_atom_probe(const struct targetdef
*target
, const struct cpuid_t
*id
) {
6 return ((VENDOR_INTEL
== id
->vendor
) &&
11 const struct msrdef intel_atom_msrs
[] = {
12 {0x0, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_P5_MC_ADDR",
13 "Pentium Processor Machine-Check Exception Address", {
16 {0x1, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_P5_MC_TYPE",
17 "Pentium Processor Machine-Check Exception Type", {
20 {0x10, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TIME_STEP_COUNTER", "TSC", {
23 {0x17, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PLATFORM_ID", "", {
26 {0x2a, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_EBL_CR_POWERON", "", {
29 {0xcd, MSRTYPE_RDONLY
, MSR2(0, 0), "MSR_FSB_FREQ", "Scalable Bus Speed", {
32 {0xfe, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRRCAP", "", {
35 {0x11e, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BBL_CR_CTL3", "", {
38 {0x198, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_STATUS", "", {
40 { 44, 5, "Maximum Bus Ratio", "R/O", PRESENT_DEC
, {
44 { 15, 16, "Current Performance State Value", "R/O", PRESENT_HEX
, {
49 {0x19d, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_THERM2_CTL", "", {
52 {0x200, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE0", "", {
55 {0x201, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK0", "", {
58 {0x202, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE1", "", {
61 {0x203, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK1", "", {
64 {0x204, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE2", "", {
67 {0x205, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK2", "", {
70 {0x206, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE3", "", {
73 {0x207, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK3", "", {
76 {0x208, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE4", "", {
79 {0x209, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK4", "", {
82 {0x20a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE5", "", {
85 {0x20b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK5", "", {
88 {0x20c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE6", "", {
91 {0x20d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK6", "", {
95 {0x20e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_BASE7", "", {
98 {0x20f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYS_MASK7", "", {
102 {0x250, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
105 {0x258, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
108 {0x259, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
111 {0x268, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
114 {0x269, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
117 {0x26a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
120 {0x26b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
123 {0x26c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
126 {0x26d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
129 {0x26e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
132 {0x26f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
135 /* if CPUID.01H: ECX[15] = 1 */
136 {0x345, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_PERF_CAPABILITIES", "", {
137 /* Additional info available at Section 17.4.1 of
138 * Intel 64 and IA-32 Architectures Software Developer's
141 { 63, 50, RESERVED
},
142 { 13, 1, "Counter width", "R/O", PRESENT_BIN
, {
143 { MSR1(0), "Nothing" },
144 { MSR1(1), "Full width of counter writable via IA32_A_PMCx" },
147 { 12, 1, "SMM_FREEZE", "R/O", PRESENT_BIN
, {
148 { MSR1(0), "Nothing" },
149 { MSR1(1), "Freeze while SMM is supported" },
152 { 11, 4, "PEBS_REC_FORMAT", "R/O", PRESENT_HEX
, {
155 { 7, 1, "PEBSSaveArchRegs", "R/O", PRESENT_BIN
, {
158 { 6, 1, "PEBS Record Format", "R/O", PRESENT_BIN
, {
161 { 5, 6, "LBR Format", "R/O", PRESENT_HEX
, {
166 {0x400, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_CTL", "", {
169 {0x401, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_STATUS", "", {
172 {0x402, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_ADDR", "", {
175 {0x404, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC1_CTL", "", {
178 {0x405, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC1_STATUS", "", {
181 {0x408, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC2_CTL", "", {
184 {0x409, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC2_STATUS", "", {
187 {0x40a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC2_ADDR", "", {
190 {0x40c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_CTL", "", {
193 {0x40d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_STATUS", "", {
196 {0x40e, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_ADDR", "", {
199 {0x410, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC4_CTL", "", {
202 {0x411, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC4_STATUS", "", {
205 {0x412, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC4_ADDR", "", {
209 /* ==========================================================================
211 * ==========================================================================
214 {0x6, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MONITOR_FILTER_SIZE", "", {
217 {0x10, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TIME_STEP_COUNTER", "TSC", {
220 {0x1b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APIC_BASE", "APIC BASE", {
221 /* In Intel's manual there is MAXPHYWID,
222 * which determine index of highest bit of
223 * APIC Base itself, so marking it as
226 { 63, 52, RESERVED
},
227 { 11, 1, "APIC Global Enable", "R/W", PRESENT_BIN
, {
230 { 10, 1, "x2APIC mode", "R/W", PRESENT_BIN
, {
231 { MSR1(0), "x2APIC mode is disabled" },
232 { MSR1(1), "x2APIC mode is enabled" },
236 { 8, 1, "BSP Flag", "R/W", PRESENT_BIN
, {
242 /* if CPUID.01H: ECX[bit 5 or bit 6] = 1 */
243 {0x3a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FEATURE_CONTROL",
244 "Control features in Intel 64Processor", {
245 { 63, 48, RESERVED
},
246 /* if CPUID.01H: ECX[6] = 1 */
247 { 15, 1, "SENTER Global Enable", "R/WL", PRESENT_BIN
, {
248 { MSR1(0), "SENTER leaf functions are disabled" },
249 { MSR1(1), "SENTER leaf functions are enabled" },
252 /* if CPUID.01H: ECX[6] = 1 */
253 { 14, 7, "SENTER Local Function Enables", "R/WL", PRESENT_BIN
, {
257 /* if CPUID.01H: ECX[5 or 6] = 1 */
258 { 2, 1, "VMX outside of SMX operation", "R/WL", PRESENT_BIN
, {
259 /* This bit enables VMX for system executive
260 * that do not require SMX.
262 { MSR1(0), "VMX outside of SMX operation disabled" },
263 { MSR1(1), "VMX outside of SMX operation enabled" },
266 { 1, 1, "VMX inside of SMX operation", "R/WL", PRESENT_BIN
, {
267 /* This bit enables a system executive to use
268 * VMX in conjunction with SMX to support Intel
269 * Trusted Execution Technology.
271 { MSR1(0), "VMX inside of SMX operation disabled" },
272 { MSR1(1), "VMX inside of SMX operation enabled" },
275 /* if CPUID.01H: ECX[5 or 6] = 1 */
276 { 0, 1, "Lock bit", "R/WO", PRESENT_BIN
, {
277 /* Once the Lock bit is set, the contents
278 * of this register cannot be modified.
279 * Therefore the lock bit must be set after
280 * configuring support for Intel Virtualization
281 * Technology and prior transferring control
282 * to an Option ROM or bootloader. Hence, once
283 * the lock bit is set, the entire IA32_FEATURE_CONTROL_MSR
284 * contents are preserved across RESET when
285 * PWRGOOD it not deasserted.
287 { MSR1(0), "IA32_FEATURE_CONTROL MSR can be modified" },
288 { MSR1(1), "IA32_FEATURE_CONTROL MSR cannot be modified" },
293 {0x40, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_0_FROM_IP", "", {
296 {0x41, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_1_FROM_IP", "", {
299 {0x42, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_2_FROM_IP", "", {
302 {0x43, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_3_FROM_IP", "", {
305 {0x44, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_4_FROM_IP", "", {
308 {0x45, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_5_FROM_IP", "", {
311 {0x46, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_6_FROM_IP", "", {
314 {0x47, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_7_FROM_IP", "", {
317 {0x60, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_0_TO_LIP", "", {
320 {0x61, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_1_TO_LIP", "", {
323 {0x62, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_2_TO_LIP", "", {
326 {0x63, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_3_TO_LIP", "", {
329 {0x64, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_4_TO_LIP", "", {
332 {0x65, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_5_TO_LIP", "", {
335 {0x66, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_6_TO_LIP", "", {
338 {0x67, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_7_TO_LIP", "", {
341 {0x8b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_BIOS_SIGN_ID",
342 "BIOS Update Signature ID (RO)", {
345 {0xc1, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PMC0",
346 "Performance counter register", {
349 {0xc2, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PMC1",
350 "Performance counter register", {
353 {0xe7, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MPERF", "", {
356 {0xe8, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APERF", "", {
359 {0x174, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_CS", "", {
362 {0x175, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_ESP", "", {
365 {0x176, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_EIP", "", {
368 {0x17a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_STATUS", "", {
369 { 63, 61, RESERVED
},
370 { 2, 1, "MCIP", "R/W", PRESENT_BIN
, {
371 /* When set, bit indicates that a machine check has been
372 * generated. If a second machine check is detected while
373 * this bit is still set, the processor enters a shutdown state.
374 * Software should write this bit to 0 after processing
375 * a machine check exception.
377 { MSR1(0), "Nothing" },
378 { MSR1(1), "Machine check has been generated" },
381 { 1, 1, "EPIV", "R/W", PRESENT_BIN
, {
382 /* When set, bit indicates that the instruction addressed
383 * by the instruction pointer pushed on the stack (when
384 * the machine check was generated) is directly associated
387 { MSR1(0), "Nothing" },
388 { MSR1(1), "Instruction addressed directly associated with the error" },
391 { 0, 1, "RIPV", "R/W", PRESENT_BIN
, {
392 /* When set, bit indicates that the instruction addressed
393 * by the instruction pointer pushed on the stack (when
394 * the machine check was generated) can be used to restart
395 * the program. If cleared, the program cannot be reliably restarted
397 { MSR1(0), "Program cannot be reliably restarted" },
398 { MSR1(1), "Instruction addressed can be used to restart the program" },
403 /* if CPUID.0AH: EAX[15:8] > 0 */
404 {0x186, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERFEVTSEL0",
405 "Performance Event Select Register 0", {
406 { 63, 32, RESERVED
},
407 { 31, 8, "CMASK", "R/W", PRESENT_HEX
, {
408 /* When CMASK is not zero, the corresponding performance
409 * counter 0 increments each cycle if the event count
410 * is greater than or equal to the CMASK.
414 { 23, 1, "INV", "R/W", PRESENT_BIN
, {
415 { MSR1(0), "CMASK using as is" },
416 { MSR1(1), "CMASK inerting" },
419 { 22, 1, "EN", "R/W", PRESENT_BIN
, {
420 { MSR1(0), "No commence counting" },
421 { MSR1(1), "Commence counting" },
424 { 21, 1, "AnyThread", "R/W", PRESENT_BIN
, {
427 { 20, 1, "INT", "R/W", PRESENT_BIN
, {
428 { MSR1(0), "Interrupt on counter overflow is disabled" },
429 { MSR1(1), "Interrupt on counter overflow is enabled" },
432 { 19, 1, "PC", "R/W", PRESENT_BIN
, {
433 { MSR1(0), "Disabled pin control" },
434 { MSR1(1), "Enabled pin control" },
437 { 18, 1, "Edge", "R/W", PRESENT_BIN
, {
438 { MSR1(0), "Disabled edge detection" },
439 { MSR1(1), "Enabled edge detection" },
442 { 17, 1, "OS", "R/W", PRESENT_BIN
, {
443 { MSR1(0), "Nothing" },
444 { MSR1(1), "Counts while in privilege level is ring 0" },
447 { 16, 1, "USR", "R/W", PRESENT_BIN
, {
448 { MSR1(0), "Nothing" },
449 { MSR1(1), "Counts while in privilege level is not ring 0" },
452 { 15, 8, "UMask", "R/W", PRESENT_HEX
, {
453 /* Qualifies the microarchitectural condition
454 * to detect on the selected event logic. */
457 { 7, 8, "Event Select", "R/W", PRESENT_HEX
, {
458 /* Selects a performance event logic unit. */
463 /* if CPUID.0AH: EAX[15:8] > 0 */
464 {0x187, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERFEVTSEL1",
465 "Performance Event Select Register 1", {
466 { 63, 32, RESERVED
},
467 { 31, 8, "CMASK", "R/W", PRESENT_HEX
, {
468 /* When CMASK is not zero, the corresponding performance
469 * counter 1 increments each cycle if the event count
470 * is greater than or equal to the CMASK.
474 { 23, 1, "INV", "R/W", PRESENT_BIN
, {
475 { MSR1(0), "CMASK using as is" },
476 { MSR1(1), "CMASK inerting" },
479 { 22, 1, "EN", "R/W", PRESENT_BIN
, {
480 { MSR1(0), "No commence counting" },
481 { MSR1(1), "Commence counting" },
484 { 21, 1, "AnyThread", "R/W", PRESENT_BIN
, {
487 { 20, 1, "INT", "R/W", PRESENT_BIN
, {
488 { MSR1(0), "Interrupt on counter overflow is disabled" },
489 { MSR1(1), "Interrupt on counter overflow is enabled" },
492 { 19, 1, "PC", "R/W", PRESENT_BIN
, {
493 { MSR1(0), "Disabled pin control" },
494 { MSR1(1), "Enabled pin control" },
497 { 18, 1, "Edge", "R/W", PRESENT_BIN
, {
498 { MSR1(0), "Disabled edge detection" },
499 { MSR1(1), "Enabled edge detection" },
502 { 17, 1, "OS", "R/W", PRESENT_BIN
, {
503 { MSR1(0), "Nothing" },
504 { MSR1(1), "Counts while in privilege level is ring 0" },
507 { 16, 1, "USR", "R/W", PRESENT_BIN
, {
508 { MSR1(0), "Nothing" },
509 { MSR1(1), "Counts while in privilege level is not ring 0" },
512 { 15, 8, "UMask", "R/W", PRESENT_HEX
, {
513 /* Qualifies the microarchitectural condition
514 * to detect on the selected event logic. */
517 { 7, 8, "Event Select", "R/W", PRESENT_HEX
, {
518 /* Selects a performance event logic unit. */
523 {0x199, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_CTL", "", {
526 {0x19a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_CLOCK_MODULATION",
527 "Clock Modulation", {
528 { 63, 59, RESERVED
},
529 { 4, 1, "On demand Clock Modulation", "R/W", PRESENT_BIN
, {
530 { MSR1(0), "On demand Clock Modulation is disabled" },
531 { MSR1(1), "On demand Clock Modulation is enabled" },
534 { 3, 3, "On demand Clock Modulation Duty Cycle", "R/W", PRESENT_HEX
, {
540 {0x19b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_INTERRUPT",
541 "Thermal Interrupt Control", {
544 {0x19c, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_STATUS",
545 "Thermal Monitor Status", {
548 {0x1a0, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MISC_ENABLE",
549 "Enable miscellaneous processor features", {
550 { 63, 25, RESERVED
},
551 /* Note: [38] bit using for whole package,
552 * while some other bits can be Core or Thread
555 { 38, 1, "Turbo Mode", "R/W", PRESENT_BIN
, {
556 /* When set to a 0 on processors that support IDA,
557 * CPUID.06H: EAX[1] reports the processor's
558 * support of turbo mode is enabled.
560 { MSR1(0), "Turbo Mode enabled" },
561 /* When set 1 on processors that support Intel Turbo Boost
562 * technology, the turbo mode feature is disabled and
563 * the IDA_Enable feature flag will be clear (CPUID.06H: EAX[1]=0).
565 { MSR1(1), "Turbo Mode disabled" },
567 /* Note: the power-on default value is used by BIOS to detect
568 * hardware support of turbo mode. If power-on default value is 1,
569 * turbo mode is available in the processor. If power-on default
570 * value is 0, turbo mode not available.
574 { 34, 1, "XD Bit Disable", "R/W", PRESENT_BIN
, {
577 { 33, 10, RESERVED
},
578 { 23, 1, "xTPR Message Disable", "R/W", PRESENT_BIN
, {
581 { 22, 1, "Limit CPUID Maxval", "R/W", PRESENT_BIN
, {
585 { 18, 1, "Enable Monitor FSM", "R/W", PRESENT_BIN
, {
588 { 17, 1, "UNDOCUMENTED", "R/W", PRESENT_BIN
, {
591 /* Note: [16] bit using for whole package,
592 * while some other bits can be Core or Thread
595 { 16, 1, "Enhanced Intel SpeedStep Technology Enable", "R/W",
600 { 12, 1, "Precise Event Based Sampling Unavailable", "R/O",
604 { 11, 1, "Branch Trace Storage Unavailable", "R/O", PRESENT_BIN
, {
608 { 7, 1, "Performance Monitoring Available", "R", PRESENT_BIN
, {
612 { 3, 1, "Automatic Thermal Control Circuit Enable", "R/W"
617 { 0, 1, "Fast-Strings Enable", "R/W", PRESENT_BIN
, {
622 {0x1c9, MSRTYPE_RDONLY
, MSR2(0, 0), "MSR_LASTBRANCH_TOS",
623 "Last Branch Record Stack TOS", {
624 /* Contains an index (bits 0-3) that points to the MSR containing
625 * the most recent branch record. See also MSR_LASTBRANCH_0_FROM_IP (0x680).
629 {0x1d9, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DEBUGCTL",
630 "Debug/Trace/Profile Resource Control", {
631 /* (MSR_DEBUGCTTLA, MSR_DEBUGCTLB) */
632 { 63, 49, RESERVED
},
633 /* Only if IA32_PERF_CAPABILITIES[12] = 1 */
634 { 14, 1, "FREEZE_WHILE_SMM", "R/O", PRESENT_BIN
, {
635 { MSR1(0), "Nothing" },
636 { MSR1(1), "Freeze perfmon and trace messages while in SMM" },
639 { 13, 1, "ENABLE_UNCORE_PMI", "R/O", PRESENT_BIN
, {
640 { MSR1(0), "Nothing" },
641 { MSR1(1), "Logical processor can receive and generate PMI "
642 "on behalf of the uncore" },
645 /* Only if CPUID.01H: ECX[15] = 1 and CPUID.0AH: EAX[7:0]>1 */
646 { 12, 1, "FREEZE_PERFMON_ON_PMI", "R/O", PRESENT_BIN
, {
647 { MSR1(0), "Nothing" },
648 { MSR1(1), "Each ENABLE bit of the global counter control MSR "
649 "are frozen (address 0x3bf) on PMI request" },
652 /* Only if CPUID.01H: ECX[15] = 1 and CPUID.0AH: EAX[7:0]>1 */
653 { 11, 1, "FREEZE_LBRS_ON_PMI", "R/O", PRESENT_BIN
, {
654 { MSR1(0), "Nothing" },
655 { MSR1(1), "LBR stack is frozen on PMI request" },
658 { 10, 1, "BTS_OFF_USR", "R/O", PRESENT_BIN
, {
659 { MSR1(0), "Nothing" },
660 { MSR1(1), "BTS or BTM is skipped if CPL > 0" },
663 { 9, 1, "BTS_OFF_OS", "R/O", PRESENT_BIN
, {
664 { MSR1(0), "Nothing" },
665 { MSR1(1), "BTS or BTM is skipped if CPL = 0" },
668 { 8, 1, "BTINT", "R/O", PRESENT_BIN
, {
669 { MSR1(0), "BTMs are logged in a BTS buffer in circular fashion" },
670 { MSR1(1), "An interrupt is generated by the BTS facility "
671 "when the BTS buffer is full" },
674 { 7, 1, "BTS", "R/O", PRESENT_BIN
, {
675 { MSR1(0), "Logging of BTMs (branch trace messages) "
676 "in BTS buffer is disabled" },
677 { MSR1(1), "Logging of BTMs (branch trace messages) "
678 "in BTS buffer is enabled" },
681 { 6, 1, "TR", "R/O", PRESENT_BIN
, {
682 { MSR1(0), "Branch trace messages are disabled" },
683 { MSR1(1), "Branch trace messages are enabled" },
687 { 1, 1, "BTF", "R/O", PRESENT_BIN
, {
688 { MSR1(0), "Nothing" },
689 { MSR1(1), "Enabled treating EFLAGS.TF as single-step on "
690 "branches instead of single-step on instructions" },
693 { 0, 1, "LBR", "R/O", PRESENT_BIN
, {
694 { MSR1(0), "Nothing" },
695 { MSR1(1), "Enabled recording a running trace of the most "
696 "recent branches taken by the processor in the LBR stack" },
701 {0x1dd, MSRTYPE_RDONLY
, MSR2(0, 0), "MSR_LER_FROM_LIP",
702 "Last Exception Record From Linear IP", {
703 /* Contains a pointer to the last branch instruction
704 * that the processor executed prior to the last exception
705 * that was generated or the last interrupt that was handled.
709 {0x1de, MSRTYPE_RDONLY
, MSR2(0, 0), "MSR_LER_TO_LIP",
710 "Last Exception Record To Linear IP", {
711 /* This area contains a pointer to the target of the
712 * last branch instruction that the processor executed
713 * prior to the last exception that was generated or
714 * the last interrupt that was handled
718 {0x277, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PAT", "IA32_PAT", {
720 { 58, 3, "PA7", "R/W", PRESENT_BIN
, {
724 { 40, 3, "PA6", "R/W", PRESENT_BIN
, {
728 { 42, 3, "PA5", "R/W", PRESENT_BIN
, {
732 { 34, 3, "PA4", "R/W", PRESENT_BIN
, {
736 { 26, 3, "PA3", "R/W", PRESENT_BIN
, {
740 { 18, 3, "PA2", "R/W", PRESENT_BIN
, {
744 { 10, 3, "PA1", "R/W", PRESENT_BIN
, {
748 { 2, 3, "PA0", "R/W", PRESENT_BIN
, {
753 /* if CPUID.0AH: EDX[4:0] > 0 */
754 {0x309, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FIXED_CTR0", "Fixed-Function "
755 "Performance Counter Register 0: Counts Instr_Retired.Any", {
756 /* Also known as MSR_PERF_FIXED_CTR0 */
759 /* if CPUID.0AH: EDX[4:0] > 1 */
760 {0x30a, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FIXED_CTR1", "Fixed-Function "
761 "Performance Counter Register 1: Counts CPU_CLK_Unhalted.Core ", {
762 /* Also known as MSR_PERF_FIXED_CTR1 */
765 /* if CPUID.0AH: EDX[4:0] > 2 */
766 {0x30b, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FIXED_CTR2", "Fixed-Function "
767 "Performance Counter Register 2: Counts CPU_CLK_Unhalted.Ref", {
768 /* Also known as MSR_PERF_FIXED_CTR2 */
771 /* if CPUID.0AH: EAX[7:0] > 1*/
772 {0x38d, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FIXED_CTR_CTRL",
773 "Fixed-Function-Counter Control Register", {
774 /* Also known as MSR_PERF_FIXED_CTR_CTRL.
775 * Counter increments while the results of ANDing respective enable bit
776 * in IA32_PERF_GLOBAL_CTRL with the corresponding OS or USR bits
777 * in this MSR is true. */
778 { 63, 52, RESERVED
},
779 { 11, 1, "EN2_PMI", "R/W", PRESENT_BIN
, {
780 { MSR1(0), "Nothing" },
781 { MSR1(1), "PMI when fixed counter 2 overflows is enabled" },
784 /* if CPUID.0AH EAX[7:0] > 2 */
785 { 10, 1, "AnyThread 2", "R/W", PRESENT_BIN
, {
786 { MSR1(0), "Counter only increments the associated event "
787 "conditions occurring in the logical processor "
788 "which programmed the MSR" },
789 { MSR1(1), "Counting the associated event conditions "
790 "occurring across all logical processors sharing "
791 "a processor core" },
794 { 9, 1, "EN2_Usr", "R/W", PRESENT_BIN
, {
795 { MSR1(0), "Nothing" },
796 { MSR1(1), "Fixed counter 2 is enabled to count while CPL > 0" },
799 { 8, 1, "EN2_OS", "R/W", PRESENT_BIN
, {
800 { MSR1(0), "Nothing" },
801 { MSR1(1), "Fixed counter 2 is enabled to count while CPL = 0" },
804 { 7, 1, "EN1_PMI", "R/W", PRESENT_BIN
, {
805 { MSR1(0), "Nothing" },
806 { MSR1(1), "PMI when fixed counter 1 overflows is enabled" },
809 /* if CPUID.0AH: EAX[7:0] > 2 */
810 { 6, 1, "AnyThread 1", "R/W", PRESENT_BIN
, {
811 { MSR1(0), "Counter only increments the associated event "
812 "conditions occurring in the logical processor "
813 "which programmed the MSR" },
814 { MSR1(1), "Counting the associated event conditions "
815 "occurring across all logical processors sharing "
816 "a processor core" },
819 { 5, 1, "EN1_Usr", "R/W", PRESENT_BIN
, {
820 { MSR1(0), "Nothing" },
821 { MSR1(1), "Fixed counter 1 is enabled to count while CPL > 0" },
824 { 4, 1, "EN1_OS", "R/W", PRESENT_BIN
, {
825 { MSR1(0), "Nothing" },
826 { MSR1(1), "Fixed counter 1 is enabled to count while CPL = 0" },
829 { 3, 1, "EN0_PMI", "R/W", PRESENT_BIN
, {
830 { MSR1(0), "Nothing" },
831 { MSR1(1), "PMI when fixed counter 0 overflows is enabled" },
834 /* if CPUID.0AH: EAX[7:0] > 2 */
835 { 2, 1, "AnyThread 0", "R/W", PRESENT_BIN
, {
836 { MSR1(0), "Counter only increments the associated event "
837 "conditions occurring in the logical processor "
838 "which programmed the MSR" },
839 { MSR1(1), "Counting the associated event conditions "
840 "occurring across all logical processors sharing "
841 "a processor core" },
844 { 1, 1, "EN0_Usr", "R/W", PRESENT_BIN
, {
845 { MSR1(0), "Nothing" },
846 { MSR1(1), "Fixed counter 0 is enabled to count while CPL > 0" },
849 { 0, 1, "EN0_OS", "R/W", PRESENT_BIN
, {
850 { MSR1(0), "Nothing" },
851 { MSR1(1), "Fixed counter 0 is enabled to count while CPL = 0" },
856 /* if CPUID.0AH: EAX[7:0] > 0 */
857 {0x38e, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_PERF_GLOBAL_STATUS",
858 "Global Performance Counter Status", {
859 /* Also known as MSR_PERF_GLOBAL_STATUS */
860 /* if CPUID.0AH: EAX[7:0] > 0 */
861 { 63, 1, "CondChg: Status bits of this register has changed",
862 "R/O", PRESENT_BIN
, {
865 /* if CPUID.0AH: EAX[7:0] > 0 */
866 { 62, 1, "OvfBuf: DS SAVE area Buffer overflow status",
867 "R/O", PRESENT_BIN
, {
870 /* if CPUID.0AH: EAX[7:0] > 2 */
871 { 61, 1, "Ovf_Uncore: Uncore counter overflow status",
872 "R/O", PRESENT_BIN
, {
875 { 60, 26, RESERVED
},
876 /* if CPUID.0AH: EAX[7:0] > 1 */
877 { 34, 1, "Ovf_FixedCtr2: Overflow status of IA32_FIXED_CTR2",
878 "R/O", PRESENT_BIN
, {
881 /* if CPUID.0AH: EAX[7:0] > 1 */
882 { 33, 1, "Ovf_FixedCtr1: Overflow status of IA32_FIXED_CTR1",
883 "R/O", PRESENT_BIN
, {
886 /* if CPUID.0AH: EAX[7:0] > 1 */
887 { 32, 1, "Ovf_FixedCtr0: Overflow status of IA32_FIXED_CTR0",
888 "R/O", PRESENT_BIN
, {
891 { 31, 28, RESERVED
},
892 /* presented only in 06_2EH Nehalem model */
893 { 3, 1, "Ovf_PMC3: Overflow status of IA32_PMC3", "R/O", PRESENT_BIN
, {
896 /* presented only in 06_2EH Nehalem model */
897 { 2, 1, "Ovf_PMC2: Overflow status of IA32_PMC2", "R/O", PRESENT_BIN
, {
900 /* if CPUID.0AH: EAX[7:0] > 0 */
901 { 1, 1, "Ovf_PMC1: Overflow status of IA32_PMC1", "R/O", PRESENT_BIN
, {
904 /* if CPUID.0AH: EAX[7:0] > 0 */
905 { 0, 1, "Ovf_PMC0: Overflow status of IA32_PMC0", "R/O", PRESENT_BIN
, {
910 /* if CPUID.0AH: EAX[7:0] > 0 */
911 {0x38f, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_GLOBAL_CTL",
912 "Global Performance Counter Control", {
913 /* Counter increments while the result of ANDing respective
914 * enable bit in this MSR with corresponding OS or USR bits
915 * in general-purpose or fixed counter control MSR is true.
917 { 63, 29, RESERVED
},
918 /* if CPUID.0AH: EAX[7:0] > 1 */
919 { 34, 1, "EN_FIXED_CTR2", "R/W", PRESENT_BIN
, {
922 /* if CPUID.0AH: EAX[7:0] > 1 */
923 { 33, 1, "EN_FIXED_CTR1", "R/W", PRESENT_BIN
, {
926 /* if CPUID.0AH: EAX[7:0] > 1 */
927 { 32, 1, "EN_FIXED_CTR0", "R/W", PRESENT_BIN
, {
930 { 31, 30, RESERVED
},
931 /* if CPUID.0AH: EAX[7:0] > 0 */
932 { 1, 1, "EN_PMC1", "R/W", PRESENT_BIN
, {
935 /* if CPUID.0AH: EAX[7:0] > 0 */
936 { 0, 1, "EN_PMC0", "R/W", PRESENT_BIN
, {
941 /* if CPUID.0AH: EAX[7:0] > 0 */
942 {0x390, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_GLOBAL_OVF_CTL",
943 "Global Performance Counter Overflow Control", {
944 /* if CPUID.0AH: EAX[7:0] > 0 */
945 { 63, 1, "Clear CondChg bit", "R/W", PRESENT_BIN
, {
948 /* if CPUID.0AH: EAX[7:0] > 0 */
949 { 62, 1, "Clear OvfBuf bit", "R/W", PRESENT_BIN
, {
952 /* Presented only in 06_2EH Nehalem model */
953 { 61, 1, "Clear Ovf_Uncore bit", "R/W", PRESENT_BIN
, {
956 { 60, 26, RESERVED
},
957 /* if CPUID.0AH: EAX[7:0] > 1 */
958 { 34, 1, "Clear Ovf_FIXED_CTR2 bit", "R/W", PRESENT_BIN
, {
961 /* if CPUID.0AH: EAX[7:0] > 1 */
962 { 33, 1, "Clear Ovf_FIXED_CTR1 bit", "R/W", PRESENT_BIN
, {
965 /* if CPUID.0AH: EAX[7:0] > 1 */
966 { 32, 1, "Clear Ovf_FIXED_CTR0 bit", "R/W", PRESENT_BIN
, {
969 { 31, 30, RESERVED
},
970 /* if CPUID.0AH: EAX[7:0] > 0 */
971 { 1, 1, "Clear Ovf_PMC1 bit", "R/W", PRESENT_BIN
, {
974 /* if CPUID.0AH: EAX[7:0] > 0 */
975 { 0, 1, "Clear Ovf_PMC0 bit", "R/W", PRESENT_BIN
, {
980 /* See Section 18.6.1.1 of Intel 64 and IA-32 Architectures
981 * Software Developer's Manual, Volume 3,
982 * "Precise Event Based Sampling (PEBS)".
984 {0x3f1, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PEBS_ENABLE", "PEBS Control", {
985 { 63, 28, RESERVED
},
986 { 35, 1, "Load Latency on IA32_PMC3", "R/W", PRESENT_BIN
, {
987 { MSR1(0), "Disabled" },
988 { MSR1(1), "Enabled" },
991 { 34, 1, "Load Latency on IA32_PMC2", "R/W", PRESENT_BIN
, {
992 { MSR1(0), "Disabled" },
993 { MSR1(1), "Enabled" },
996 { 33, 1, "Load Latency on IA32_PMC1", "R/W", PRESENT_BIN
, {
997 { MSR1(0), "Disabled" },
998 { MSR1(1), "Enabled" },
1001 { 32, 1, "Load Latency on IA32_PMC0", "R/W", PRESENT_BIN
, {
1002 { MSR1(0), "Disabled" },
1003 { MSR1(1), "Enabled" },
1006 { 31, 28, RESERVED
},
1007 { 3, 1, "PEBS on IA32_PMC3", "R/W", PRESENT_BIN
, {
1008 { MSR1(0), "Disabled" },
1009 { MSR1(1), "Enabled" },
1012 { 2, 1, "PEBS on IA32_PMC2", "R/W", PRESENT_BIN
, {
1013 { MSR1(0), "Disabled" },
1014 { MSR1(1), "Enabled" },
1017 { 1, 1, "PEBS on IA32_PMC1", "R/W", PRESENT_BIN
, {
1018 { MSR1(0), "Disabled" },
1019 { MSR1(1), "Enabled" },
1022 { 0, 1, "PEBS on IA32_PMC0", "R/W", PRESENT_BIN
, {
1023 { MSR1(0), "Disabled" },
1024 { MSR1(1), "Enabled" },
1030 {0x480, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_BASIC",
1031 "Reporting Register of Basic VMX Capabilities", {
1032 /* Additional info available at
1033 * Appendix A.1, "Basic VMX Information" */
1034 { 63, 10, RESERVED
},
1035 { 53, 4, "Memory type for VMREAD and VMWRITE", "R/O", PRESENT_HEX
, {
1038 { 49, 1, "Support of dual-treatment of system-management functions",
1039 "R/O", PRESENT_BIN
, {
1042 { 48, 1, "Enable full linear address access", "R/O", PRESENT_BIN
, {
1045 { 47, 3, RESERVED
},
1046 { 44, 13, "VMXON region allocation size", "R/O", PRESENT_DEC
, {
1049 { 31, 32, "VMCS Revision Identifier", "R/O", PRESENT_HEX
, {
1054 {0x481, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_PINBASED_CTLS",
1055 "Capability Reporting Register of "
1056 "Pin-based VM-execution Controls", {
1057 /* Additional info available at Appendix A.3,
1058 * "VM-Execution Controls" */
1061 {0x482, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_PROCBASED_CTLS",
1062 "Capability Reporting Register of "
1063 "Primary Processor-based VM-execution Controls", {
1064 /* Additional info available at Appendix A.3,
1065 * "VM-Execution Controls" */
1068 {0x483, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_EXIT_CTLS",
1069 "Capability Reporting Register of VM-exit Controls", {
1070 /* Additional info available at Appendix A.4,
1071 * "VM-Exit Controls" */
1074 {0x484, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_ENTRY_CTLS",
1075 "Capability Reporting Register of VM-entry Controls", {
1076 /* Additional info available at Appendix A.5,
1077 * "VM-Entry Controls" */
1080 {0x485, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_MISC",
1081 "Reporting Register of Miscellaneous VMX Capabilities", {
1082 /* Additional info available at Appendix A.6,
1083 * "Miscellaneous Data" */
1086 {0x486, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_CR0_FIXED0",
1087 "Capability Reporting Register of CR0 Bits Fixed to 0", {
1088 /* Additional info available at Appendix A.7,
1089 * "VMX-Fixed Bits in CR0" */
1092 {0x487, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_CR0_FIXED1",
1093 "Capability Reporting Register of CR0 Bits Fixed to 1", {
1094 /* Additional info available at Appendix A.7,
1095 * "VMX-Fixed Bits in CR0" */
1098 {0x488, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_CR4_FIXED0",
1099 "Capability Reporting Register of CR4 Bits Fixed to 0", {
1100 /* Additional info available at Appendix A.8,
1101 * "VMX-Fixed Bits in CR4" */
1104 {0x489, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_CR4_FIXED1",
1105 "Capability Reporting Register of CR4 Bits Fixed to 1", {
1106 /* Additional info available at Appendix A.8,
1107 * "VMX-Fixed Bits in CR4" */
1110 {0x48a, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_VMCS_ENUM",
1111 "Capability Reporting Register of VMCS Field Enumeration", {
1112 /* Additional info available at Appendix A.9,
1113 * "VMCS Enumeration" */
1116 {0x48b, MSRTYPE_RDONLY
, MSR2(0, 0), "IA32_VMX_PROCBASED_CTLS2",
1117 "Capability Reporting Register of Secondary "
1118 "Processor-based VM-execution Controls", {
1119 /* Additional info available at Appendix A.3,
1120 * "VM-Execution Controls" */
1124 {0x600, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DS_AREA", "DS Save Area", {
1125 /* Additional info available at Section 18.10.4 of Intel 64
1126 * and IA-32 Architectures Software Developer's Manual,
1127 * "Debug Store (DS) Mechanism".
1129 { 63, 32, RESERVED
}, // reserved if not in IA-32e mode
1130 { 31, 32, "Linear address of DS buffer management area",
1131 "R/W", PRESENT_HEX
, {