2 * This file is part of msrtool.
4 * Copyright (C) 2013 Olivier Langlois <olivier@olivierlanglois.net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
18 int intel_atom_probe(const struct targetdef
*target
, const struct cpuid_t
*id
) {
19 return (0x6 == id
->family
) &&
23 const struct msrdef intel_atom_msrs
[] = {
24 {0x0, MSRTYPE_RDWR
, MSR2(0,0), "IA32_P5_MC_ADDR", "Pentium Processor\
25 Machine-Check Exception Address", {
28 {0x1, MSRTYPE_RDWR
, MSR2(0,0), "IA32_P5_MC_TYPE", "Pentium Processor\
29 Machine-Check Exception Type", {
32 {0x10, MSRTYPE_RDWR
, MSR2(0,0), "IA32_TIME_STEP_COUNTER", "TSC", {
35 {0x17, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PLATFORM_ID", "", {
38 {0x2a, MSRTYPE_RDWR
, MSR2(0,0), "MSR_EBL_CR_POWERON", "", {
41 {0xcd, MSRTYPE_RDONLY
, MSR2(0,0), "MSR_FSB_FREQ", "Scaleable Bus Speed", {
44 {0xfe, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRRCAP", "", {
47 {0x11e, MSRTYPE_RDWR
, MSR2(0,0), "MSR_BBL_CR_CTL3", "", {
50 {0x198, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERF_STATUS", "", {
52 { 44, 5, "Maximum Bus Ratio", "R/O", PRESENT_DEC
, {
56 { 15, 16, "Current Performance State Value", "R/O", PRESENT_HEX
, {
61 {0x19d, MSRTYPE_RDWR
, MSR2(0,0), "MSR_THERM2_CTL", "", {
64 {0x200, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE0", "", {
67 {0x201, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK0", "", {
70 {0x202, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE1", "", {
73 {0x203, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK1", "", {
76 {0x204, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE2", "", {
79 {0x205, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK2", "", {
82 {0x206, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE3", "", {
85 {0x207, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK3", "", {
88 {0x208, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE4", "", {
91 {0x209, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK4", "", {
94 {0x20a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE5", "", {
97 {0x20b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK5", "", {
100 {0x20c, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE6", "", {
103 {0x20d, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK6", "", {
107 {0x20e, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_BASE7", "", {
110 {0x20f, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_PHYS_MASK7", "", {
114 {0x250, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX64K_00000", "", {
117 {0x258, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX16K_80000", "", {
120 {0x259, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX16K_A0000", "", {
123 {0x268, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_C0000", "", {
126 {0x269, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_C8000", "", {
129 {0x26a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_D0000", "", {
132 {0x26b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_D8000", "", {
135 {0x26c, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_E0000", "", {
138 {0x26d, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_E8000", "", {
141 {0x26e, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_F0000", "", {
144 {0x26f, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MTRR_FIX4K_F8000", "", {
147 /* if CPUID.01H: ECX[15] = 1 */
148 {0x345, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_PERF_CAPABILITIES", "", {
149 /* Additional info available at Section 17.4.1 of
150 * Intel 64 and IA-32 Architecures Software Developer's
153 { 63, 50, RESERVED
},
154 { 13, 1, "Counter width", "R/O", PRESENT_BIN
, {
155 { MSR1(0), "Nothing" },
156 { MSR1(1), "Full width of counter writable via IA32_A_PMCx" },
159 { 12, 1, "SMM_FREEZE", "R/O", PRESENT_BIN
, {
160 { MSR1(0), "Nothing" },
161 { MSR1(1), "Freeze while SMM is supported" },
164 { 11, 4, "PEBS_REC_FORMAT", "R/O", PRESENT_HEX
, {
167 { 7, 1, "PEBSSaveArchRegs", "R/O", PRESENT_BIN
, {
170 { 6, 1, "PEBS Record Format", "R/O", PRESENT_BIN
, {
173 { 5, 6, "LBR Format", "R/O", PRESENT_HEX
, {
178 {0x400, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MCO_CTL", "", {
181 {0x401, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MCO_STATUS", "", {
184 {0x402, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MCO_ADDR", "", {
187 {0x404, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC1_CTL", "", {
190 {0x405, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC1_STATUS", "", {
193 {0x408, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC2_CTL", "", {
196 {0x409, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC2_STATUS", "", {
199 {0x40a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC2_ADDR", "", {
202 {0x40c, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC4_CTL", "", {
205 {0x40d, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC4_STATUS", "", {
208 {0x40e, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC4_ADDR", "", {
211 {0x410, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC3_CTL", "", {
214 {0x411, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC3_STATUS", "", {
217 {0x412, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MC3_ADDR", "", {
221 /* ==========================================================================
223 * ==========================================================================
226 {0x6, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MONITOR_FILTER_SIZE", "", {
229 {0x10, MSRTYPE_RDWR
, MSR2(0,0), "IA32_TIME_STEP_COUNTER", "TSC", {
232 {0x1b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_APIC_BASE", "APIC BASE", {
233 /* In Intel's manual there is MAXPHYWID,
234 * which determine index of highest bit of
235 * APIC Base itself, so marking it as
238 { 63, 52, RESERVED
},
239 { 11, 1, "APIC Global Enable", "R/W", PRESENT_BIN
, {
242 { 10, 1, "x2APIC mode", "R/W", PRESENT_BIN
, {
243 { MSR1(0), "x2APIC mode is disabled" },
244 { MSR1(1), "x2APIC mode is enabled" },
248 { 8, 1, "BSP Flag", "R/W", PRESENT_BIN
, {
254 /* if CPUID.01H: ECX[bit 5 or bit 6] = 1 */
255 {0x3a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_FEATURE_CONTROL",
256 "Control features in Intel 64Processor", {
257 { 63, 48, RESERVED
},
258 /* if CPUID.01H: ECX[6] = 1 */
259 { 15, 1, "SENTER Global Enable", "R/WL", PRESENT_BIN
, {
260 { MSR1(0), "SENTER leaf functions are disabled" },
261 { MSR1(1), "SENTER leaf functions are enabled" },
264 /* if CPUID.01H: ECX[6] = 1 */
265 { 14, 7, "SENTER Local Function Enables", "R/WL", PRESENT_BIN
, {
269 /* if CPUID.01H: ECX[5 or 6] = 1 */
270 { 2, 1, "VMX outside of SMX operation", "R/WL", PRESENT_BIN
, {
271 /* This bit enables VMX for system executive
272 * that do not require SMX.
274 { MSR1(0), "VMX outside of SMX operation disabled" },
275 { MSR1(1), "VMX outside of SMX operation enabled" },
278 { 1, 1, "VMX inside of SMX operation", "R/WL", PRESENT_BIN
, {
279 /* This bit enables a system executive to use
280 * VMX in conjuction with SMX to support Intel
281 * Trusted Execution Technology.
283 { MSR1(0), "VMX inside of SMX operation disabled" },
284 { MSR1(1), "VMX inside of SMX operation enabled" },
287 /* if CPUID.01H: ECX[5 or 6] = 1 */
288 { 0, 1, "Lock bit", "R/WO", PRESENT_BIN
, {
289 /* Once the Lock bit is set, the contents
290 * of this register cannot be modified.
291 * Therefore the lock bit must be set after
292 * configuring support for Intel Virtualization
293 * Technology and prior transferring control
294 * to an Option ROM or bootloader. Hence, once
295 * the lock bit is set, the entire IA32_FEATURE_CONTROL_MSR
296 * contents are preserved across RESET when
297 * PWRGOOD it not deasserted.
299 { MSR1(0), "IA32_FEATURE_CONTROL MSR can be modified" },
300 { MSR1(1), "IA32_FEATURE_CONTROL MSR cannot be modified" },
305 {0x40, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_0_FROM_IP", "", {
308 {0x41, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_1_FROM_IP", "", {
311 {0x42, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_2_FROM_IP", "", {
314 {0x43, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_3_FROM_IP", "", {
317 {0x44, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_4_FROM_IP", "", {
320 {0x45, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_5_FROM_IP", "", {
323 {0x46, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_6_FROM_IP", "", {
326 {0x47, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_7_FROM_IP", "", {
329 {0x60, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_0_TO_LIP", "", {
332 {0x61, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_1_TO_LIP", "", {
335 {0x62, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_2_TO_LIP", "", {
338 {0x63, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_3_TO_LIP", "", {
341 {0x64, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_4_TO_LIP", "", {
344 {0x65, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_5_TO_LIP", "", {
347 {0x66, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_6_TO_LIP", "", {
350 {0x67, MSRTYPE_RDWR
, MSR2(0,0), "MSR_LASTBRANCH_7_TO_LIP", "", {
353 {0x8b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_BIOS_SIGN_ID",
354 "BIOS Update Signature ID (RO)", {
357 {0xc1, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PMC0",
358 "Performance counter register", {
361 {0xc2, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PMC1",
362 "Performance counter register", {
365 {0xe7, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MPERF", "", {
368 {0xe8, MSRTYPE_RDWR
, MSR2(0,0), "IA32_APERF", "", {
371 {0x174, MSRTYPE_RDWR
, MSR2(0,0), "IA32_SYSENTER_CS", "", {
374 {0x175, MSRTYPE_RDWR
, MSR2(0,0), "IA32_SYSENTER_ESP", "", {
377 {0x176, MSRTYPE_RDWR
, MSR2(0,0), "IA32_SYSENTER_EIP", "", {
380 {0x17a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MCG_STATUS", "", {
381 { 63, 61, RESERVED
},
382 { 2, 1, "MCIP", "R/W", PRESENT_BIN
, {
383 /* When set, bit indicates that a machine check has been
384 * generated. If a second machine check is detected while
385 * this bit is still set, the processor enters a shutdown state.
386 * Software should write this bit to 0 after processing
387 * a machine check exception.
389 { MSR1(0), "Nothing" },
390 { MSR1(1), "Machine check has been generated" },
393 { 1, 1, "EPIV", "R/W", PRESENT_BIN
, {
394 /* When set, bit indicates that the instruction addressed
395 * by the instruction pointer pushed on the stack (when
396 * the machine check was generated) is directly associated
399 { MSR1(0), "Nothing" },
400 { MSR1(1), "Instruction addressed directly associated with the error" },
403 { 0, 1, "RIPV", "R/W", PRESENT_BIN
, {
404 /* When set, bit indicates that the instruction addressed
405 * by the instruction pointer pushed on the stack (when
406 * the machine check was generated) can be used to restart
407 * the program. If cleared, the program cannot be reliably restarted
409 { MSR1(0), "Program cannot be reliably restarted" },
410 { MSR1(1), "Instruction addressed can be used to restart the program" },
415 /* if CPUID.0AH: EAX[15:8] > 0 */
416 {0x186, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERFEVTSEL0",
417 "Performance Event Select Register 0", {
418 { 63, 32, RESERVED
},
419 { 31, 8, "CMASK", "R/W", PRESENT_HEX
, {
420 /* When CMASK is not zero, the corresponding performance
421 * counter 0 increments each cycle if the event count
422 * is greater than or equal to the CMASK.
426 { 23, 1, "INV", "R/W", PRESENT_BIN
, {
427 { MSR1(0), "CMASK using as is" },
428 { MSR1(1), "CMASK inerting" },
431 { 22, 1, "EN", "R/W", PRESENT_BIN
, {
432 { MSR1(0), "No commence counting" },
433 { MSR1(1), "Commence counting" },
436 { 21, 1, "AnyThread", "R/W", PRESENT_BIN
, {
439 { 20, 1, "INT", "R/W", PRESENT_BIN
, {
440 { MSR1(0), "Interrupt on counter overflow is disabled" },
441 { MSR1(1), "Interrupt on counter overflow is enabled" },
444 { 19, 1, "PC", "R/W", PRESENT_BIN
, {
445 { MSR1(0), "Disabled pin control" },
446 { MSR1(1), "Enabled pin control" },
449 { 18, 1, "Edge", "R/W", PRESENT_BIN
, {
450 { MSR1(0), "Disabled edge detection" },
451 { MSR1(1), "Enabled edge detection" },
454 { 17, 1, "OS", "R/W", PRESENT_BIN
, {
455 { MSR1(0), "Nothing" },
456 { MSR1(1), "Counts while in privilege level is ring 0" },
459 { 16, 1, "USR", "R/W", PRESENT_BIN
, {
460 { MSR1(0), "Nothing" },
461 { MSR1(1), "Counts while in privilege level is not ring 0" },
464 { 15, 8, "UMask", "R/W", PRESENT_HEX
, {
465 /* Qualifies the microarchitectural condition
466 * to detect on the selected event logic. */
469 { 7, 8, "Event Select", "R/W", PRESENT_HEX
, {
470 /* Selects a performance event logic unit. */
475 /* if CPUID.0AH: EAX[15:8] > 0 */
476 {0x187, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERFEVTSEL1",
477 "Performance Event Select Register 1", {
478 { 63, 32, RESERVED
},
479 { 31, 8, "CMASK", "R/W", PRESENT_HEX
, {
480 /* When CMASK is not zero, the corresponding performance
481 * counter 1 increments each cycle if the event count
482 * is greater than or equal to the CMASK.
486 { 23, 1, "INV", "R/W", PRESENT_BIN
, {
487 { MSR1(0), "CMASK using as is" },
488 { MSR1(1), "CMASK inerting" },
491 { 22, 1, "EN", "R/W", PRESENT_BIN
, {
492 { MSR1(0), "No commence counting" },
493 { MSR1(1), "Commence counting" },
496 { 21, 1, "AnyThread", "R/W", PRESENT_BIN
, {
499 { 20, 1, "INT", "R/W", PRESENT_BIN
, {
500 { MSR1(0), "Interrupt on counter overflow is disabled" },
501 { MSR1(1), "Interrupt on counter overflow is enabled" },
504 { 19, 1, "PC", "R/W", PRESENT_BIN
, {
505 { MSR1(0), "Disabled pin control" },
506 { MSR1(1), "Enabled pin control" },
509 { 18, 1, "Edge", "R/W", PRESENT_BIN
, {
510 { MSR1(0), "Disabled edge detection" },
511 { MSR1(1), "Enabled edge detection" },
514 { 17, 1, "OS", "R/W", PRESENT_BIN
, {
515 { MSR1(0), "Nothing" },
516 { MSR1(1), "Counts while in privilege level is ring 0" },
519 { 16, 1, "USR", "R/W", PRESENT_BIN
, {
520 { MSR1(0), "Nothing" },
521 { MSR1(1), "Counts while in privilege level is not ring 0" },
524 { 15, 8, "UMask", "R/W", PRESENT_HEX
, {
525 /* Qualifies the microarchitectural condition
526 * to detect on the selected event logic. */
529 { 7, 8, "Event Select", "R/W", PRESENT_HEX
, {
530 /* Selects a performance event logic unit. */
535 {0x199, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERF_CTL", "", {
538 {0x19a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_CLOCK_MODULATION",
539 "Clock Modulation", {
540 { 63, 59, RESERVED
},
541 { 4, 1, "On demand Clock Modulation", "R/W", PRESENT_BIN
, {
542 { MSR1(0), "On demand Clock Modulation is disabled" },
543 { MSR1(1), "On demand Clock Modulation is enabled" },
546 { 3, 3, "On demand Clock Modulation Duty Cycle", "R/W", PRESENT_HEX
, {
552 {0x19b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_THERM_INTERRUPT",
553 "Thermal Interrupt Control", {
556 {0x19c, MSRTYPE_RDWR
, MSR2(0,0), "IA32_THERM_STATUS",
557 "Thermal Monitor Status", {
560 {0x1a0, MSRTYPE_RDWR
, MSR2(0,0), "IA32_MISC_ENABLE",
561 "Enable miscellaneous processor features", {
562 { 63, 25, RESERVED
},
563 /* Note: [38] bit using for whole package,
564 * while some other bits can be Core or Thread
567 { 38, 1, "Turbo Mode", "R/W", PRESENT_BIN
, {
568 /* When set to a 0 on processors that support IDA,
569 * CPUID.06H: EAX[1] reports the processor's
570 * support of turbo mode is enabled.
572 { MSR1(0), "Turbo Mode enabled" },
573 /* When set 1 on processors that support Intel Turbo Boost
574 * technology, the turbo mode feature is disabled and
575 * the IDA_Enable feature flag will be clear (CPUID.06H: EAX[1]=0).
577 { MSR1(1), "Turbo Mode disabled" },
579 /* Note: the power-on default value is used by BIOS to detect
580 * hardware support of turbo mode. If power-on default value is 1,
581 * turbo mode is available in the processor. If power-on default
582 * value is 0, turbo mode not available.
586 { 34, 1, "XD Bit Disable", "R/W", PRESENT_BIN
, {
589 { 33, 10, RESERVED
},
590 { 23, 1, "xTPR Message Disable", "R/W", PRESENT_BIN
, {
593 { 22, 1, "Limit CPUID Maxval", "R/W", PRESENT_BIN
, {
597 { 18, 1, "Enable Monitor FSM", "R/W", PRESENT_BIN
, {
600 { 17, 1, "UNDOCUMENTED", "R/W", PRESENT_BIN
, {
603 /* Note: [16] bit using for whole package,
604 * while some other bits can be Core or Thread
607 { 16, 1, "Enhanced Intel SpeedStep Technology Enable", "R/W",
612 { 12, 1, "Precise Event Based Sampling Unavailable", "R/O",
616 { 11, 1, "Branch Trace Storage Unavailable", "R/O", PRESENT_BIN
, {
620 { 7, 1, "Performance Monitoring Available", "R", PRESENT_BIN
, {
624 { 3, 1, "Automatic Thermal Control Circuit Enable", "R/W"
629 { 0, 1, "Fast-Strings Enable", "R/W", PRESENT_BIN
, {
634 {0x1c9, MSRTYPE_RDONLY
, MSR2(0,0), "MSR_LASTBRANCH_TOS",
635 "Last Branch Record Stack TOS", {
636 /* Contains an index (bits 0-3) that points to the MSR containing
637 * the most recent branch record. See also MSR_LASTBRANCH_0_FROM_IP (0x680).
641 {0x1d9, MSRTYPE_RDWR
, MSR2(0,0), "IA32_DEBUGCTL",
642 "Debug/Trace/Profile Resource Control", {
643 /* (MSR_DEBUGCTTLA, MSR_DEBUGCTLB) */
644 { 63, 49, RESERVED
},
645 /* Only if IA32_PERF_CAPABILITIES[12] = 1 */
646 { 14, 1, "FREEZE_WHILE_SMM", "R/O", PRESENT_BIN
, {
647 { MSR1(0), "Nothing" },
648 { MSR1(1), "Freeze perfmon and trace messages while in SMM" },
651 { 13, 1, "ENABLE_UNCORE_PMI", "R/O", PRESENT_BIN
, {
652 { MSR1(0), "Nothing" },
653 { MSR1(1), "Logical processor can receive and generate PMI \
654 on behalf of the uncore" },
657 /* Only if CPUID.01H: ECX[15] = 1 and CPUID.0AH: EAX[7:0]>1 */
658 { 12, 1, "FREEZE_PERFMON_ON_PMI", "R/O", PRESENT_BIN
, {
659 { MSR1(0), "Nothing" },
660 { MSR1(1), "Each ENABLE bit of the global counter control MSR \
661 are frozen (address 0x3bf) on PMI request" },
664 /* Only if CPUID.01H: ECX[15] = 1 and CPUID.0AH: EAX[7:0]>1 */
665 { 11, 1, "FREEZE_LBRS_ON_PMI", "R/O", PRESENT_BIN
, {
666 { MSR1(0), "Nothing" },
667 { MSR1(1), "LBR stack is frozen on PMI request" },
670 { 10, 1, "BTS_OFF_USR", "R/O", PRESENT_BIN
, {
671 { MSR1(0), "Nothing" },
672 { MSR1(1), "BTS or BTM is skipped if CPL > 0" },
675 { 9, 1, "BTS_OFF_OS", "R/O", PRESENT_BIN
, {
676 { MSR1(0), "Nothing" },
677 { MSR1(1), "BTS or BTM is skipped if CPL = 0" },
680 { 8, 1, "BTINT", "R/O", PRESENT_BIN
, {
681 { MSR1(0), "BTMs are logged in a BTS buffer in circular fashion" },
682 { MSR1(1), "An interrupt is generated by the BTS facility \
683 when the BTS buffer is full" },
686 { 7, 1, "BTS", "R/O", PRESENT_BIN
, {
687 { MSR1(0), "Logging of BTMs (branch trace messages) \
688 in BTS buffer is disabled" },
689 { MSR1(1), "Logging of BTMs (branch trace messages) \
690 in BTS buffer is enabled" },
693 { 6, 1, "TR", "R/O", PRESENT_BIN
, {
694 { MSR1(0), "Branch trace messages are disabled" },
695 { MSR1(1), "Branch trace messages are enabled" },
699 { 1, 1, "BTF", "R/O", PRESENT_BIN
, {
700 { MSR1(0), "Nothing" },
701 { MSR1(1), "Enabled treating EFLAGS.TF as single-step on \
702 branches instead of single-step on instructions" },
705 { 0, 1, "LBR", "R/O", PRESENT_BIN
, {
706 { MSR1(0), "Nothing" },
707 { MSR1(1), "Enabled recording a running trace of the most \
708 recent branches taken by the processor in the LBR stack" },
713 {0x1dd, MSRTYPE_RDONLY
, MSR2(0,0), "MSR_LER_FROM_LIP",
714 "Last Exception Record From Linear IP", {
715 /* Contains a pointer to the last branch instruction
716 * that the processor executed prior to the last exception
717 * that was generated or the last interrupt that was handled.
721 {0x1de, MSRTYPE_RDONLY
, MSR2(0,0), "MSR_LER_TO_LIP",
722 "Last Exception Record To Linear IP", {
723 /* This area contains a pointer to the target of the
724 * last branch instruction that the processor executed
725 * prior to the last exception that was generated or
726 * the last interrupt that was handled
730 {0x277, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PAT", "IA32_PAT", {
732 { 58, 3, "PA7", "R/W", PRESENT_BIN
, {
736 { 40, 3, "PA6", "R/W", PRESENT_BIN
, {
740 { 42, 3, "PA5", "R/W", PRESENT_BIN
, {
744 { 34, 3, "PA4", "R/W", PRESENT_BIN
, {
748 { 26, 3, "PA3", "R/W", PRESENT_BIN
, {
752 { 18, 3, "PA2", "R/W", PRESENT_BIN
, {
756 { 10, 3, "PA1", "R/W", PRESENT_BIN
, {
760 { 2, 3, "PA0", "R/W", PRESENT_BIN
, {
765 /* if CPUID.0AH: EDX[4:0] > 0 */
766 {0x309, MSRTYPE_RDWR
, MSR2(0,0), "IA32_FIXED_CTR0", "Fixed-Function \
767 Performance Counter Register 0: Counts Instr_Retired.Any", {
768 /* Also known as MSR_PERF_FIXED_CTR0 */
771 /* if CPUID.0AH: EDX[4:0] > 1 */
772 {0x30a, MSRTYPE_RDWR
, MSR2(0,0), "IA32_FIXED_CTR1", "Fixed-Function \
773 Performance Counter Register 1: Counts CPU_CLK_Unhalted.Core ", {
774 /* Also known as MSR_PERF_FIXED_CTR1 */
777 /* if CPUID.0AH: EDX[4:0] > 2 */
778 {0x30b, MSRTYPE_RDWR
, MSR2(0,0), "IA32_FIXED_CTR2", "Fixed-Function \
779 Performance Counter Register 2: Counts CPU_CLK_Unhalted.Ref", {
780 /* Also known as MSR_PERF_FIXED_CTR2 */
783 /* if CPUID.0AH: EAX[7:0] > 1*/
784 {0x38d, MSRTYPE_RDWR
, MSR2(0,0), "IA32_FIXED_CTR_CTRL",
785 "Fixed-Function-Counter Control Register", {
786 /* Also known as MSR_PERF_FIXED_CTR_CTRL.
787 * Counter increments while the results of ANDing respective enable bit
788 * in IA32_PERF_GLOBAL_CTRL with the corresponding OS or USR bits
789 * in this MSR is true. */
790 { 63, 52, RESERVED
},
791 { 11, 1, "EN2_PMI", "R/W", PRESENT_BIN
, {
792 { MSR1(0), "Nothing" },
793 { MSR1(1), "PMI when fixed counter 2 overflows is enabled" },
796 /* if CPUID.0AH EAX[7:0] > 2 */
797 { 10, 1, "AnyThread 2", "R/W", PRESENT_BIN
, {
798 { MSR1(0), "Counter only increments the associated event \
799 conditions occuring in the logical processor which programmed the MSR" },
800 { MSR1(1), "Counting the associated event conditions \
801 occuring across all logical processors sharing a processor core" },
804 { 9, 1, "EN2_Usr", "R/W", PRESENT_BIN
, {
805 { MSR1(0), "Nothing" },
806 { MSR1(1), "Fixed counter 2 is enabled to count while CPL > 0" },
809 { 8, 1, "EN2_OS", "R/W", PRESENT_BIN
, {
810 { MSR1(0), "Nothing" },
811 { MSR1(1), "Fixed counter 2 is enabled to count while CPL = 0" },
814 { 7, 1, "EN1_PMI", "R/W", PRESENT_BIN
, {
815 { MSR1(0), "Nothing" },
816 { MSR1(1), "PMI when fixed counter 1 overflows is enabled" },
819 /* if CPUID.0AH: EAX[7:0] > 2 */
820 { 6, 1, "AnyThread 1", "R/W", PRESENT_BIN
, {
821 { MSR1(0), "Counter only increments the associated event \
822 conditions occuring in the logical processor which programmed the MSR" },
823 { MSR1(1), "Counting the associated event conditions \
824 occuring across all logical processors sharing a processor core" },
827 { 5, 1, "EN1_Usr", "R/W", PRESENT_BIN
, {
828 { MSR1(0), "Nothing" },
829 { MSR1(1), "Fixed counter 1 is enabled to count while CPL > 0" },
832 { 4, 1, "EN1_OS", "R/W", PRESENT_BIN
, {
833 { MSR1(0), "Nothing" },
834 { MSR1(1), "Fixed counter 1 is enabled to count while CPL = 0" },
837 { 3, 1, "EN0_PMI", "R/W", PRESENT_BIN
, {
838 { MSR1(0), "Nothing" },
839 { MSR1(1), "PMI when fixed counter 0 overflows is enabled" },
842 /* if CPUID.0AH: EAX[7:0] > 2 */
843 { 2, 1, "AnyThread 0", "R/W", PRESENT_BIN
, {
844 { MSR1(0), "Counter only increments the associated event \
845 conditions occuring in the logical processor which programmed the MSR" },
846 { MSR1(1), "Counting the associated event conditions \
847 occuring across all logical processors sharing a processor core" },
850 { 1, 1, "EN0_Usr", "R/W", PRESENT_BIN
, {
851 { MSR1(0), "Nothing" },
852 { MSR1(1), "Fixed counter 0 is enabled to count while CPL > 0" },
855 { 0, 1, "EN0_OS", "R/W", PRESENT_BIN
, {
856 { MSR1(0), "Nothing" },
857 { MSR1(1), "Fixed counter 0 is enabled to count while CPL = 0" },
862 /* if CPUID.0AH: EAX[7:0] > 0 */
863 {0x38e, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_PERF_GLOBAL_STATUS",
864 "Global Performance Counter Status", {
865 /* Also known as MSR_PERF_GLOBAL_STATUS */
866 /* if CPUID.0AH: EAX[7:0] > 0 */
867 { 63, 1, "CondChg: Status bits of this register has changed",
868 "R/O", PRESENT_BIN
, {
871 /* if CPUID.0AH: EAX[7:0] > 0 */
872 { 62, 1, "OvfBuf: DS SAVE area Buffer overflow status",
873 "R/O", PRESENT_BIN
, {
876 /* if CPUID.0AH: EAX[7:0] > 2 */
877 { 61, 1, "Ovf_Uncore: Uncore counter overflow status",
878 "R/O", PRESENT_BIN
, {
881 { 60, 26, RESERVED
},
882 /* if CPUID.0AH: EAX[7:0] > 1 */
883 { 34, 1, "Ovf_FixedCtr2: Overflow status of IA32_FIXED_CTR2",
884 "R/O", PRESENT_BIN
, {
887 /* if CPUID.0AH: EAX[7:0] > 1 */
888 { 33, 1, "Ovf_FixedCtr1: Overflow status of IA32_FIXED_CTR1",
889 "R/O", PRESENT_BIN
, {
892 /* if CPUID.0AH: EAX[7:0] > 1 */
893 { 32, 1, "Ovf_FixedCtr0: Overflow status of IA32_FIXED_CTR0",
894 "R/O", PRESENT_BIN
, {
897 { 31, 28, RESERVED
},
898 /* presented only in 06_2EH Nehalem model */
899 { 3, 1, "Ovf_PMC3: Overflow status of IA32_PMC3", "R/O", PRESENT_BIN
, {
902 /* presented only in 06_2EH Nehalem model */
903 { 2, 1, "Ovf_PMC2: Overflow status of IA32_PMC2", "R/O", PRESENT_BIN
, {
906 /* if CPUID.0AH: EAX[7:0] > 0 */
907 { 1, 1, "Ovf_PMC1: Overflow status of IA32_PMC1", "R/O", PRESENT_BIN
, {
910 /* if CPUID.0AH: EAX[7:0] > 0 */
911 { 0, 1, "Ovf_PMC0: Overflow status of IA32_PMC0", "R/O", PRESENT_BIN
, {
916 /* if CPUID.0AH: EAX[7:0] > 0 */
917 {0x38f, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERF_GLOBAL_CTL",
918 "Global Performance Counter Control", {
919 /* Counter increments while the result of ANDing respective
920 * enable bit in this MSR with corresponding OS or USR bits
921 * in general-purpose or fixed counter control MSR is true.
923 { 63, 29, RESERVED
},
924 /* if CPUID.0AH: EAX[7:0] > 1 */
925 { 34, 1, "EN_FIXED_CTR2", "R/W", PRESENT_BIN
, {
928 /* if CPUID.0AH: EAX[7:0] > 1 */
929 { 33, 1, "EN_FIXED_CTR1", "R/W", PRESENT_BIN
, {
932 /* if CPUID.0AH: EAX[7:0] > 1 */
933 { 32, 1, "EN_FIXED_CTR0", "R/W", PRESENT_BIN
, {
936 { 31, 30, RESERVED
},
937 /* if CPUID.0AH: EAX[7:0] > 0 */
938 { 1, 1, "EN_PMC1", "R/W", PRESENT_BIN
, {
941 /* if CPUID.0AH: EAX[7:0] > 0 */
942 { 0, 1, "EN_PMC0", "R/W", PRESENT_BIN
, {
947 /* if CPUID.0AH: EAX[7:0] > 0 */
948 {0x390, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PERF_GLOBAL_OVF_CTL",
949 "Global Performance Counter Overflow Control", {
950 /* if CPUID.0AH: EAX[7:0] > 0 */
951 { 63, 1, "Clear CondChg bit", "R/W", PRESENT_BIN
, {
954 /* if CPUID.0AH: EAX[7:0] > 0 */
955 { 62, 1, "Clear OvfBuf bit", "R/W", PRESENT_BIN
, {
958 /* Presented only in 06_2EH Nehalem model */
959 { 61, 1, "Clear Ovf_Uncore bit", "R/W", PRESENT_BIN
, {
962 { 60, 26, RESERVED
},
963 /* if CPUID.0AH: EAX[7:0] > 1 */
964 { 34, 1, "Clear Ovf_FIXED_CTR2 bit", "R/W", PRESENT_BIN
, {
967 /* if CPUID.0AH: EAX[7:0] > 1 */
968 { 33, 1, "Clear Ovf_FIXED_CTR1 bit", "R/W", PRESENT_BIN
, {
971 /* if CPUID.0AH: EAX[7:0] > 1 */
972 { 32, 1, "Clear Ovf_FIXED_CTR0 bit", "R/W", PRESENT_BIN
, {
975 { 31, 30, RESERVED
},
976 /* if CPUID.0AH: EAX[7:0] > 0 */
977 { 1, 1, "Clear Ovf_PMC1 bit", "R/W", PRESENT_BIN
, {
980 /* if CPUID.0AH: EAX[7:0] > 0 */
981 { 0, 1, "Clear Ovf_PMC0 bit", "R/W", PRESENT_BIN
, {
986 /* See Section 18.6.1.1 of Intel 64 and IA-32 Architectures
987 * Software Developer's Manual, Volume 3,
988 * "Precise Event Based Sampling (PEBS)".
990 {0x3f1, MSRTYPE_RDWR
, MSR2(0,0), "IA32_PEBS_ENABLE", "PEBS Control", {
991 { 63, 28, RESERVED
},
992 { 35, 1, "Load Latency on IA32_PMC3", "R/W", PRESENT_BIN
, {
993 { MSR1(0), "Disabled" },
994 { MSR1(1), "Enabled" },
997 { 34, 1, "Load Latency on IA32_PMC2", "R/W", PRESENT_BIN
, {
998 { MSR1(0), "Disabled" },
999 { MSR1(1), "Enabled" },
1002 { 33, 1, "Load Latency on IA32_PMC1", "R/W", PRESENT_BIN
, {
1003 { MSR1(0), "Disabled" },
1004 { MSR1(1), "Enabled" },
1007 { 32, 1, "Load Latency on IA32_PMC0", "R/W", PRESENT_BIN
, {
1008 { MSR1(0), "Disabled" },
1009 { MSR1(1), "Enabled" },
1012 { 31, 28, RESERVED
},
1013 { 3, 1, "PEBS on IA32_PMC3", "R/W", PRESENT_BIN
, {
1014 { MSR1(0), "Disabled" },
1015 { MSR1(1), "Enabled" },
1018 { 2, 1, "PEBS on IA32_PMC2", "R/W", PRESENT_BIN
, {
1019 { MSR1(0), "Disabled" },
1020 { MSR1(1), "Enabled" },
1023 { 1, 1, "PEBS on IA32_PMC1", "R/W", PRESENT_BIN
, {
1024 { MSR1(0), "Disabled" },
1025 { MSR1(1), "Enabled" },
1028 { 0, 1, "PEBS on IA32_PMC0", "R/W", PRESENT_BIN
, {
1029 { MSR1(0), "Disabled" },
1030 { MSR1(1), "Enabled" },
1036 {0x480, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_BASIC",
1037 "Reporting Register of Basic VMX Capabilities", {
1038 /* Additional info available at
1039 * Appendix A.1, "Basic VMX Information" */
1040 { 63, 10, RESERVED
},
1041 { 53, 4, "Memory type for VMREAD and VMWRITE", "R/O", PRESENT_HEX
, {
1044 { 49, 1, "Support of dual-treatment of system-management functions",
1045 "R/O", PRESENT_BIN
, {
1048 { 48, 1, "Enable full linear address access", "R/O", PRESENT_BIN
, {
1051 { 47, 3, RESERVED
},
1052 { 44, 13, "VMXON region allocation size", "R/O", PRESENT_DEC
, {
1055 { 31, 32, "VMCS Revision Identifier", "R/O", PRESENT_HEX
, {
1060 {0x481, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_PINBASED_CTLS",
1061 "Capability Reporting Register of \
1062 Pin-based VM-execution Controls", {
1063 /* Additional info available at Appendix A.3,
1064 * "VM-Execution Controls" */
1067 {0x482, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_PROCBASED_CTLS",
1068 "Capability Reporting Register of \
1069 Primary Processor-based VM-execution Controls", {
1070 /* Additional info available at Appendix A.3,
1071 * "VM-Execution Controls" */
1074 {0x483, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_EXIT_CTLS",
1075 "Capability Reporting Register of VM-exit Controls", {
1076 /* Additional info available at Appendix A.4,
1077 * "VM-Exit Controls" */
1080 {0x484, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_ENTRY_CTLS",
1081 "Capability Reporting Register of VM-entry Controls", {
1082 /* Additional info available at Appendix A.5,
1083 * "VM-Entry Controls" */
1086 {0x485, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_MISC",
1087 "Reporting Register of Miscellaneous VMX Capabilities", {
1088 /* Additional info available at Appendix A.6,
1089 * "Miscellaneous Data" */
1092 {0x486, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_CR0_FIXED0",
1093 "Capability Reporting Register of CR0 Bits Fixed to 0", {
1094 /* Additional info available at Appendix A.7,
1095 * "VMX-Fixed Bits in CR0" */
1098 {0x487, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_CR0_FIXED1",
1099 "Capability Reporting Register of CR0 Bits Fixed to 1", {
1100 /* Additional info available at Appendix A.7,
1101 * "VMX-Fixed Bits in CR0" */
1104 {0x488, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_CR4_FIXED0",
1105 "Capability Reporting Register of CR4 Bits Fixed to 0", {
1106 /* Additional info available at Appendix A.8,
1107 * "VMX-Fixed Bits in CR4" */
1110 {0x489, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_CR4_FIXED1",
1111 "Capability Reporting Register of CR4 Bits Fixed to 1", {
1112 /* Additional info available at Appendix A.8,
1113 * "VMX-Fixed Bits in CR4" */
1116 {0x48a, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_VMCS_ENUM",
1117 "Capability Reporting Register of VMCS Field Enumeration", {
1118 /* Additional info available at Appendix A.9,
1119 * "VMCS Enumeration" */
1122 {0x48b, MSRTYPE_RDONLY
, MSR2(0,0), "IA32_VMX_PROCBASED_CTLS2",
1123 "Capability Reporting Register of Secondary \
1124 Processor-based VM-execution Controls", {
1125 /* Additional info available at Appendix A.3,
1126 * "VM-Execution Controls" */
1130 {0x600, MSRTYPE_RDWR
, MSR2(0,0), "IA32_DS_AREA", "DS Save Area", {
1131 /* Additional info available at Section 18.10.4 of Intel 64
1132 * and IA-32 Architectures Software Developer's Manual,
1133 * "Debug Store (DS) Mechanism".
1135 { 63, 32, RESERVED
}, // reserved if not in IA-32e mode
1136 { 31, 32, "Linear address of DS buffer management area",
1137 "R/W", PRESENT_HEX
, {