1 /* SPDX-License-Identifier: GPL-2.0-only */
5 int intel_pentium_d_probe(const struct targetdef
*target
, const struct cpuid_t
*id
) {
6 return ((VENDOR_INTEL
== id
->vendor
) &&
11 const struct msrdef intel_pentium_d_msrs
[] = {
12 {0x0000, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_P5_MC_ADDR", "", {
15 {0x0001, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_P5_MC_TYPE", "", {
18 {0x0006, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MONITOR_FILTER_LINE_SIZE", "", {
21 {0x0010, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_TIME_STAMP_COUNTER", "", {
24 {0x0017, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PLATFORM_ID", "", {
27 {0x001B, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_APIC_BASE", "", {
30 {0x002A, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_EBC_HARD_POWERON", "", {
33 {0x002B, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_EBC_SOFT_POWERON", "", {
36 {0x002C, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_EBC_FREQUENCY_ID", "", {
39 {0x008B, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_BIOS_SIGN_ID", "", {
42 {0x00FE, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRRCAP", "", {
45 {0x0174, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_CS", "", {
48 {0x0175, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_ESP", "", {
51 {0x0176, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_SYSENTER_EIP", "", {
54 {0x0179, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_CAP", "", {
57 {0x017A, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MCG_STATUS", "", {
60 {0x0180, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RAX", "", {
63 {0x0181, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RBX", "", {
66 {0x0182, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RCX", "", {
69 {0x0183, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RDX", "", {
72 {0x0184, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RSI", "", {
75 {0x0185, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RDI", "", {
78 {0x0186, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_EVNTSEL0", "", {
81 {0x0187, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_EVNTSEL1", "", {
84 {0x0188, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RFLAGS", "", {
87 {0x0189, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_RIP", "", {
90 {0x018A, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_MISC", "", {
93 {0x0190, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R8", "", {
96 {0x0191, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R9", "", {
99 {0x0192, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R10", "", {
102 {0x0193, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R11", "", {
105 {0x0194, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R12", "", {
108 {0x0195, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R13", "", {
111 {0x0196, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R14", "", {
114 {0x0197, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MCG_R15", "", {
117 {0x0198, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_STATUS", "", {
120 {0x0199, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_CONTROL", "", {
123 {0x019A, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_CLOCK_MODULATION", "", {
126 {0x019B, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_INTERRUPT", "", {
129 {0x019C, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_THERM_STATUS", "", {
132 {0x019D, MSRTYPE_RDWR
, MSR2(0, 0), "GV_THERM", "", {
135 {0x01A0, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MISC_ENABLES", "", {
138 {0x01A1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_PLATFORM_BRV", "", {
141 {0x01A2, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TEMPERATURE_TARGET", "", {
144 {0x01D7, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LER_FROM_LIP", "", {
147 {0x01D8, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LER_TO_LIP", "", {
150 {0x01D9, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DEBUGCTL", "", {
153 {0x01DA, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_LASTBRANCH_TOS", "", {
156 {0x0200, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE0", "", {
159 {0x0201, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK0", "", {
162 {0x0202, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE1", "", {
165 {0x0203, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK1", "", {
168 {0x0204, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE2", "", {
171 {0x0205, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK2", "", {
174 {0x0206, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE3", "", {
177 {0x0207, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK3", "", {
180 {0x0208, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE4", "", {
183 {0x0209, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK4", "", {
186 {0x020A, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE5", "", {
189 {0x020B, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK5", "", {
192 {0x020C, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE6", "", {
195 {0x020D, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK6", "", {
198 {0x020E, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSBASE7", "", {
201 {0x020F, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_PHYSMASK7", "", {
204 {0x0250, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
207 {0x0258, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
210 {0x0259, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
213 {0x0268, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
216 {0x0269, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
219 {0x026A, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
222 {0x026B, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
225 {0x026C, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
228 {0x026D, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
231 {0x026E, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
234 {0x026F, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
237 {0x0277, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PAT", "", {
240 {0x02FF, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MTRR_DEF_TYPE", "", {
243 {0x0300, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_COUNTER0", "", {
246 {0x0301, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_COUNTER1", "", {
249 {0x0302, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_COUNTER2", "", {
252 {0x0303, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_COUNTER3", "", {
255 {0x0304, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_COUNTER0", "", {
258 {0x0305, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_COUNTER1", "", {
261 {0x0306, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_COUNTER2", "", {
264 {0x0307, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_COUNTER3", "", {
267 {0x0308, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_COUNTER0", "", {
270 {0x0309, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_COUNTER1", "", {
273 {0x030A, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_FIXED_CTR1", "", {
276 {0x030B, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_COUNTER3", "", {
279 {0x030C, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER0", "", {
282 {0x030D, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER1", "", {
285 {0x030E, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER2", "", {
288 {0x030F, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER3", "", {
291 {0x0310, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER4", "", {
294 {0x0311, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_COUNTER5", "", {
297 {0x0345, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_PERF_CAPABILITIES", "", {
300 {0x0360, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_CCCR0", "", {
303 {0x0361, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_CCCR1", "", {
306 {0x0362, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_CCCR2", "", {
309 {0x0363, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_CCCR3", "", {
312 {0x0364, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_CCCR0", "", {
315 {0x0365, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_CCCR1", "", {
318 {0x0366, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_CCCR2", "", {
321 {0x0367, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_CCCR3", "", {
324 {0x0368, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_CCCR0", "", {
327 {0x0369, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_CCCR1", "", {
330 {0x036A, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_CCCR2", "", {
333 {0x036B, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_CCCR3", "", {
336 {0x036C, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR0", "", {
339 {0x036D, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR1", "", {
342 {0x036E, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR2", "", {
345 {0x036F, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR3", "", {
348 {0x0370, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR4", "", {
351 {0x0371, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_CCCR5", "", {
354 {0x03A0, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BSU_ESCR0", "", {
357 {0x03A1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BSU_ESCR1", "", {
360 {0x03A2, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FSB_ESCR0", "", {
363 {0x03A3, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FSB_ESCR1", "", {
366 {0x03A4, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FIRM_ESCR0", "", {
369 {0x03A5, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FIRM_ESCR1", "", {
372 {0x03A6, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_ESCR0", "", {
375 {0x03A7, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_FLAME_ESCR1", "", {
378 {0x03A8, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_DAC_ESCR0", "", {
381 {0x03A9, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_DAC_ESCR1", "", {
384 {0x03AA, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MOB_ESCR0", "", {
387 {0x03AB, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MOB_ESCR1", "", {
390 {0x03AC, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_PMH_ESCR0", "", {
393 {0x03AD, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_PMH_ESCR1", "", {
396 {0x03AE, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_SAAT_ESCR0", "", {
399 {0x03AF, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_SAAT_ESCR1", "", {
402 {0x03B0, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_U2L_ESCR0", "", {
405 {0x03B1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_U2L_ESCR1", "", {
408 {0x03B2, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_ESCR0", "", {
411 {0x03B3, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_ESCR1", "", {
414 {0x03B4, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IS_ESCR0", "", {
417 {0x03B5, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_BPU_ESCR1", "", {
420 {0x03B6, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_ITLB_ESCR0", "", {
423 {0x03B7, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_ITLB_ESCR1", "", {
426 {0x03B8, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR0", "", {
429 {0x03B9, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR1", "", {
432 {0x03BA, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_ESCR0", "", {
435 {0x03BB, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IQ_ESCR1", "", {
438 {0x03BC, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_RAT_ESCR0", "", {
441 {0x03BD, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_RAT_ESCR1", "", {
444 {0x03BE, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_SSU_ESCR0", "", {
447 {0x03C0, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_ESCR0", "", {
450 {0x03C1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_MS_ESCR1", "", {
453 {0x03C2, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TBPU_ESCR0", "", {
456 {0x03C3, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TBPU_ESCR1", "", {
459 {0x03C4, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TC_ESCR0", "", {
462 {0x03C5, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TC_ESCR1", "", {
465 {0x03C8, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IX_ESCR0", "", {
468 {0x03C9, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_IX_ESCR1", "", {
471 {0x03CA, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_ALF_ESCR0", "", {
474 {0x03CB, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_ALF_ESCR1", "", {
477 {0x03CC, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR2", "", {
480 {0x03CD, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR3", "", {
483 {0x03E0, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR4", "", {
486 {0x03E1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_CRU_ESCR5", "", {
489 {0x03F0, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_TC_PRECISE_EVENT", "", {
492 {0x03F1, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_PEBS_ENABLE", "", {
495 {0x03F2, MSRTYPE_RDWR
, MSR2(0, 0), "MSR_PEBS_MATRIX_VERT", "", {
498 {0x0400, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_CTL", "", {
501 {0x0401, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_STATUS", "", {
504 {0x0402, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_ADDR", "", {
507 {0x0403, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC0_MISC", "", {
510 {0x0404, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC1_CTL", "", {
513 {0x0405, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC1_STATUS", "", {
516 {0x0406, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC1_ADDR", "", {
519 {0x0408, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC2_CTL", "", {
522 {0x0409, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC2_STATUS", "", {
525 {0x040C, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_CTL", "", {
528 {0x040D, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_STATUS", "", {
531 {0x040E, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_ADDR", "", {
534 {0x040F, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_MC3_MISC", "", {
537 {0x0600, MSRTYPE_RDWR
, MSR2(0, 0), "IA32_DS_AREA", "", {