blob: dfe7ae5e4ab63001545b74b0559fa0d71d43ced4 [file] [log] [blame]
Angel Ponsf23ae0b2020-04-02 23:48:12 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer5c554632012-04-04 00:09:50 +02002
3#include <console/console.h>
4#include <device/device.h>
Stefan Reinauer5c554632012-04-04 00:09:50 +02005#include <cpu/cpu.h>
6#include <cpu/x86/mtrr.h>
7#include <cpu/x86/msr.h>
Arthur Heymansedbf5d92018-01-25 20:03:42 +01008#include <cpu/x86/mp.h>
Stefan Reinauer5c554632012-04-04 00:09:50 +02009#include <cpu/intel/microcode.h>
10#include <cpu/intel/speedstep.h>
11#include <cpu/intel/turbo.h>
12#include <cpu/x86/cache.h>
13#include <cpu/x86/name.h>
Stefan Reinauer5c554632012-04-04 00:09:50 +020014#include "model_206ax.h"
Duncan Laurie55632112012-07-16 12:19:00 -070015#include "chip.h"
Kyösti Mälkkif091f4d2019-08-14 03:49:21 +030016#include <cpu/intel/smm_reloc.h>
Matt DeVilliered6fe2f2016-12-14 16:12:43 -060017#include <cpu/intel/common/common.h>
Michał Żygowski0d11dbf2020-10-31 21:43:25 +010018#include <smbios.h>
Patrick Rudolphea04a532023-10-20 14:17:24 +020019#include <smp/node.h>
Felix Heldd27ef5b2021-10-20 20:18:12 +020020#include <types.h>
Vladimir Serbinenkoc16e9dfa2015-05-29 16:18:01 +020021
Stefan Reinauer5c554632012-04-04 00:09:50 +020022/* Convert time in seconds to POWER_LIMIT_1_TIME MSR value */
23static const u8 power_limit_time_sec_to_msr[] = {
24 [0] = 0x00,
25 [1] = 0x0a,
26 [2] = 0x0b,
27 [3] = 0x4b,
28 [4] = 0x0c,
29 [5] = 0x2c,
30 [6] = 0x4c,
31 [7] = 0x6c,
32 [8] = 0x0d,
33 [10] = 0x2d,
34 [12] = 0x4d,
35 [14] = 0x6d,
36 [16] = 0x0e,
37 [20] = 0x2e,
38 [24] = 0x4e,
39 [28] = 0x6e,
40 [32] = 0x0f,
41 [40] = 0x2f,
42 [48] = 0x4f,
43 [56] = 0x6f,
44 [64] = 0x10,
45 [80] = 0x30,
46 [96] = 0x50,
47 [112] = 0x70,
48 [128] = 0x11,
49};
50
51/* Convert POWER_LIMIT_1_TIME MSR value to seconds */
52static const u8 power_limit_time_msr_to_sec[] = {
53 [0x00] = 0,
54 [0x0a] = 1,
55 [0x0b] = 2,
56 [0x4b] = 3,
57 [0x0c] = 4,
58 [0x2c] = 5,
59 [0x4c] = 6,
60 [0x6c] = 7,
61 [0x0d] = 8,
62 [0x2d] = 10,
63 [0x4d] = 12,
64 [0x6d] = 14,
65 [0x0e] = 16,
66 [0x2e] = 20,
67 [0x4e] = 24,
68 [0x6e] = 28,
69 [0x0f] = 32,
70 [0x2f] = 40,
71 [0x4f] = 48,
72 [0x6f] = 56,
73 [0x10] = 64,
74 [0x30] = 80,
75 [0x50] = 96,
76 [0x70] = 112,
77 [0x11] = 128,
78};
79
Duncan Laurie77dbbac2012-06-25 09:51:59 -070080int cpu_config_tdp_levels(void)
81{
82 msr_t platform_info;
83
84 /* Minimum CPU revision */
85 if (cpuid_eax(1) < IVB_CONFIG_TDP_MIN_CPUID)
86 return 0;
87
88 /* Bits 34:33 indicate how many levels supported */
89 platform_info = rdmsr(MSR_PLATFORM_INFO);
90 return (platform_info.hi >> 1) & 3;
91}
92
Stefan Reinauer5c554632012-04-04 00:09:50 +020093/*
94 * Configure processor power limits if possible
95 * This must be done AFTER set of BIOS_RESET_CPL
96 */
97void set_power_limits(u8 power_limit_1_time)
98{
99 msr_t msr = rdmsr(MSR_PLATFORM_INFO);
100 msr_t limit;
Lee Leahy73a28942017-03-15 17:52:06 -0700101 unsigned int power_unit;
102 unsigned int tdp, min_power, max_power, max_time;
Stefan Reinauer5c554632012-04-04 00:09:50 +0200103 u8 power_limit_1_val;
104
Edward O'Callaghan5cfef132014-08-03 20:00:47 +1000105 if (power_limit_1_time >= ARRAY_SIZE(power_limit_time_sec_to_msr))
Stefan Reinauer5c554632012-04-04 00:09:50 +0200106 return;
107
108 if (!(msr.lo & PLATFORM_INFO_SET_TDP))
109 return;
110
111 /* Get units */
112 msr = rdmsr(MSR_PKG_POWER_SKU_UNIT);
113 power_unit = 2 << ((msr.lo & 0xf) - 1);
114
115 /* Get power defaults for this SKU */
116 msr = rdmsr(MSR_PKG_POWER_SKU);
117 tdp = msr.lo & 0x7fff;
118 min_power = (msr.lo >> 16) & 0x7fff;
119 max_power = msr.hi & 0x7fff;
120 max_time = (msr.hi >> 16) & 0x7f;
121
122 printk(BIOS_DEBUG, "CPU TDP: %u Watts\n", tdp / power_unit);
123
124 if (power_limit_time_msr_to_sec[max_time] > power_limit_1_time)
125 power_limit_1_time = power_limit_time_msr_to_sec[max_time];
126
127 if (min_power > 0 && tdp < min_power)
128 tdp = min_power;
129
130 if (max_power > 0 && tdp > max_power)
131 tdp = max_power;
132
133 power_limit_1_val = power_limit_time_sec_to_msr[power_limit_1_time];
134
135 /* Set long term power limit to TDP */
136 limit.lo = 0;
137 limit.lo |= tdp & PKG_POWER_LIMIT_MASK;
138 limit.lo |= PKG_POWER_LIMIT_EN;
139 limit.lo |= (power_limit_1_val & PKG_POWER_LIMIT_TIME_MASK) <<
140 PKG_POWER_LIMIT_TIME_SHIFT;
141
142 /* Set short term power limit to 1.25 * TDP */
143 limit.hi = 0;
144 limit.hi |= ((tdp * 125) / 100) & PKG_POWER_LIMIT_MASK;
145 limit.hi |= PKG_POWER_LIMIT_EN;
146 /* Power limit 2 time is only programmable on SNB EP/EX */
147
148 wrmsr(MSR_PKG_POWER_LIMIT, limit);
Duncan Laurie77dbbac2012-06-25 09:51:59 -0700149
150 /* Use nominal TDP values for CPUs with configurable TDP */
151 if (cpu_config_tdp_levels()) {
152 msr = rdmsr(MSR_CONFIG_TDP_NOMINAL);
153 limit.hi = 0;
154 limit.lo = msr.lo & 0xff;
155 wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit);
156 }
Stefan Reinauer5c554632012-04-04 00:09:50 +0200157}
158
159static void configure_c_states(void)
160{
161 msr_t msr;
162
Elyes HAOUAS4e6b7902018-10-02 08:44:47 +0200163 msr = rdmsr(MSR_PKG_CST_CONFIG_CONTROL);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200164 msr.lo |= (1 << 28); // C1 Auto Undemotion Enable
165 msr.lo |= (1 << 27); // C3 Auto Undemotion Enable
166 msr.lo |= (1 << 26); // C1 Auto Demotion Enable
167 msr.lo |= (1 << 25); // C3 Auto Demotion Enable
168 msr.lo &= ~(1 << 10); // Disable IO MWAIT redirection
169 msr.lo |= 7; // No package C-state limit
Patrick Rudolph573481b2020-03-02 14:21:32 +0100170
171 msr.lo |= (1 << 15); // Lock C-State MSR
Elyes HAOUAS4e6b7902018-10-02 08:44:47 +0200172 wrmsr(MSR_PKG_CST_CONFIG_CONTROL, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200173
Patrick Rudolphea04a532023-10-20 14:17:24 +0200174 if (boot_cpu()) {
175 /*
176 * The following MSRs are in scope 'Package', thus it's sufficient
177 * to write them once on one core.
178 */
Stefan Reinauer5c554632012-04-04 00:09:50 +0200179
Patrick Rudolphea04a532023-10-20 14:17:24 +0200180 msr = rdmsr(MSR_MISC_PWR_MGMT);
181 msr.lo &= ~(1 << 0); // Enable P-state HW_ALL coordination
182 wrmsr(MSR_MISC_PWR_MGMT, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200183
Patrick Rudolphea04a532023-10-20 14:17:24 +0200184 msr = rdmsr(MSR_POWER_CTL);
185 msr.lo |= (1 << 18); // Enable Energy Perf Bias MSR 0x1b0
186 msr.lo |= (1 << 1); // C1E Enable
187 msr.lo |= (1 << 0); // Bi-directional PROCHOT#
188 wrmsr(MSR_POWER_CTL, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200189
Patrick Rudolphea04a532023-10-20 14:17:24 +0200190 /* C3 Interrupt Response Time Limit */
191 msr.hi = 0;
192 msr.lo = IRTL_VALID | IRTL_1024_NS | 0x50;
193 wrmsr(MSR_PKGC3_IRTL, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200194
Patrick Rudolphea04a532023-10-20 14:17:24 +0200195 /* C6 Interrupt Response Time Limit */
196 msr.hi = 0;
197 msr.lo = IRTL_VALID | IRTL_1024_NS | 0x68;
198 wrmsr(MSR_PKGC6_IRTL, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200199
Patrick Rudolphea04a532023-10-20 14:17:24 +0200200 /* C7 Interrupt Response Time Limit */
201 msr.hi = 0;
202 msr.lo = IRTL_VALID | IRTL_1024_NS | 0x6D;
203 wrmsr(MSR_PKGC7_IRTL, msr);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200204
Patrick Rudolphea04a532023-10-20 14:17:24 +0200205 /* Primary Plane Current Limit */
206 msr = rdmsr(MSR_PP0_CURRENT_CONFIG);
207 msr.lo &= ~0x1fff;
208 msr.lo |= PP0_CURRENT_LIMIT;
Patrick Rudolph86852052023-10-20 14:37:07 +0200209 msr.lo |= PP0_CURRENT_LIMIT_LOCK;
Patrick Rudolphea04a532023-10-20 14:17:24 +0200210 wrmsr(MSR_PP0_CURRENT_CONFIG, msr);
211
212 /* Secondary Plane Current Limit */
213 msr = rdmsr(MSR_PP1_CURRENT_CONFIG);
214 msr.lo &= ~0x1fff;
215 if (cpuid_eax(1) >= 0x30600)
216 msr.lo |= PP1_CURRENT_LIMIT_IVB;
217 else
218 msr.lo |= PP1_CURRENT_LIMIT_SNB;
Patrick Rudolph86852052023-10-20 14:37:07 +0200219 msr.lo |= PP1_CURRENT_LIMIT_LOCK;
Patrick Rudolphea04a532023-10-20 14:17:24 +0200220 wrmsr(MSR_PP1_CURRENT_CONFIG, msr);
221 }
Stefan Reinauer5c554632012-04-04 00:09:50 +0200222}
223
Arthur Heymanscdb26fd2021-11-15 20:12:02 +0100224static void configure_thermal_target(struct device *dev)
Duncan Laurie55632112012-07-16 12:19:00 -0700225{
Arthur Heymanscdb26fd2021-11-15 20:12:02 +0100226 struct cpu_intel_model_206ax_config *conf = dev->bus->dev->chip_info;
Duncan Laurie55632112012-07-16 12:19:00 -0700227 msr_t msr;
228
Patrick Rudolphea04a532023-10-20 14:17:24 +0200229 if (boot_cpu()) {
230 /*
231 * The following MSR is in scope 'Package', thus it's sufficient
232 * to write it once on one core.
233 */
234
235 /* Set TCC activation offset if supported */
236 msr = rdmsr(MSR_PLATFORM_INFO);
237 if ((msr.lo & (1 << 30)) && conf->tcc_offset) {
238 msr = rdmsr(MSR_TEMPERATURE_TARGET);
239 msr.lo &= ~(0xf << 24); /* Bits 27:24 */
240 msr.lo |= (conf->tcc_offset & 0xf) << 24;
241 wrmsr(MSR_TEMPERATURE_TARGET, msr);
242 }
Duncan Laurie55632112012-07-16 12:19:00 -0700243 }
244}
245
Stefan Reinauer5c554632012-04-04 00:09:50 +0200246static void configure_misc(void)
247{
248 msr_t msr;
249
250 msr = rdmsr(IA32_MISC_ENABLE);
251 msr.lo |= (1 << 0); /* Fast String enable */
Lee Leahy7b5f12b92017-03-15 17:16:59 -0700252 msr.lo |= (1 << 3); /* TM1/TM2/EMTTM enable */
Stefan Reinauer5c554632012-04-04 00:09:50 +0200253 msr.lo |= (1 << 16); /* Enhanced SpeedStep Enable */
254 wrmsr(IA32_MISC_ENABLE, msr);
255
256 /* Disable Thermal interrupts */
257 msr.lo = 0;
258 msr.hi = 0;
259 wrmsr(IA32_THERM_INTERRUPT, msr);
260
Patrick Rudolphea04a532023-10-20 14:17:24 +0200261 if (boot_cpu()) {
262 /*
263 * The following MSR is in scope 'Package', thus it's sufficient
264 * to write it once on one core.
265 */
266
267 /* Enable package critical interrupt only */
268 msr.lo = 1 << 4;
269 msr.hi = 0;
270 wrmsr(IA32_PACKAGE_THERM_INTERRUPT, msr);
271 }
Stefan Reinauer5c554632012-04-04 00:09:50 +0200272}
273
Stefan Reinauer5c554632012-04-04 00:09:50 +0200274static void set_max_ratio(void)
275{
Duncan Laurie77dbbac2012-06-25 09:51:59 -0700276 msr_t msr, perf_ctl;
Stefan Reinauer5c554632012-04-04 00:09:50 +0200277
Duncan Laurie77dbbac2012-06-25 09:51:59 -0700278 perf_ctl.hi = 0;
279
280 /* Check for configurable TDP option */
281 if (cpu_config_tdp_levels()) {
282 /* Set to nominal TDP ratio */
283 msr = rdmsr(MSR_CONFIG_TDP_NOMINAL);
284 perf_ctl.lo = (msr.lo & 0xff) << 8;
285 } else {
286 /* Platform Info bits 15:8 give max ratio */
287 msr = rdmsr(MSR_PLATFORM_INFO);
288 perf_ctl.lo = msr.lo & 0xff00;
289 }
290 wrmsr(IA32_PERF_CTL, perf_ctl);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200291
292 printk(BIOS_DEBUG, "model_x06ax: frequency set to %d\n",
Duncan Laurie77dbbac2012-06-25 09:51:59 -0700293 ((perf_ctl.lo >> 8) & 0xff) * SANDYBRIDGE_BCLK);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200294}
295
Michał Żygowski0d11dbf2020-10-31 21:43:25 +0100296unsigned int smbios_cpu_get_max_speed_mhz(void)
297{
298 msr_t msr;
299 msr = rdmsr(MSR_TURBO_RATIO_LIMIT);
300 return (msr.lo & 0xff) * SANDYBRIDGE_BCLK;
301}
302
303unsigned int smbios_cpu_get_current_speed_mhz(void)
304{
305 msr_t msr;
306 msr = rdmsr(MSR_PLATFORM_INFO);
307 return ((msr.lo >> 8) & 0xff) * SANDYBRIDGE_BCLK;
308}
309
310unsigned int smbios_processor_external_clock(void)
311{
312 return SANDYBRIDGE_BCLK;
313}
314
Patrick Rudolph9e1b9b52018-07-27 17:25:05 +0200315static void model_206ax_report(void)
316{
317 static const char *const mode[] = {"NOT ", ""};
Patrick Rudolph9e1b9b52018-07-27 17:25:05 +0200318 char processor_name[49];
319 int vt, txt, aes;
Subrata Banik53b08c32018-12-10 14:11:35 +0530320 uint32_t cpu_id, cpu_feature_flag;
Patrick Rudolph9e1b9b52018-07-27 17:25:05 +0200321
322 /* Print processor name */
323 fill_processor_name(processor_name);
324 printk(BIOS_INFO, "CPU: %s.\n", processor_name);
325
326 /* Print platform ID */
327 printk(BIOS_INFO, "CPU: platform id %x\n", get_platform_id());
328
329 /* CPUID and features */
Subrata Banik53b08c32018-12-10 14:11:35 +0530330 cpu_id = cpu_get_cpuid();
331 printk(BIOS_INFO, "CPU: cpuid(1) 0x%x\n", cpu_id);
332
333 cpu_feature_flag = cpu_get_feature_flags_ecx();
334 aes = (cpu_feature_flag & CPUID_AES) ? 1 : 0;
335 txt = (cpu_feature_flag & CPUID_SMX) ? 1 : 0;
336 vt = (cpu_feature_flag & CPUID_VMX) ? 1 : 0;
Patrick Rudolph9e1b9b52018-07-27 17:25:05 +0200337 printk(BIOS_INFO, "CPU: AES %ssupported\n", mode[aes]);
338 printk(BIOS_INFO, "CPU: TXT %ssupported\n", mode[txt]);
339 printk(BIOS_INFO, "CPU: VT %ssupported\n", mode[vt]);
340}
341
Edward O'Callaghan2c9d2cf2014-10-27 23:29:29 +1100342static void model_206ax_init(struct device *cpu)
Stefan Reinauer5c554632012-04-04 00:09:50 +0200343{
Stefan Reinauer5c554632012-04-04 00:09:50 +0200344 /* Clear out pending MCEs */
Felix Heldacbf1542021-07-13 16:44:18 +0200345 /* This should only be done on a cold boot */
346 mca_clear_status();
Stefan Reinauer5c554632012-04-04 00:09:50 +0200347
Patrick Rudolph9e1b9b52018-07-27 17:25:05 +0200348 /* Print infos */
349 model_206ax_report();
Patrick Rudolph74203de2017-11-20 11:57:01 +0100350
Stefan Reinauer5c554632012-04-04 00:09:50 +0200351 /* Setup Page Attribute Tables (PAT) */
352 // TODO set up PAT
353
Stefan Reinauer5c554632012-04-04 00:09:50 +0200354 enable_lapic_tpr();
Stefan Reinauer5c554632012-04-04 00:09:50 +0200355
Matt DeVilliered6fe2f2016-12-14 16:12:43 -0600356 /* Set virtualization based on Kconfig option */
Matt DeVillierf9aed652018-12-15 15:57:33 -0600357 set_vmx_and_lock();
Marc Jones5986eda2012-10-25 09:37:19 -0600358
Stefan Reinauer5c554632012-04-04 00:09:50 +0200359 /* Configure C States */
360 configure_c_states();
361
362 /* Configure Enhanced SpeedStep and Thermal Sensors */
363 configure_misc();
364
Duncan Laurie55632112012-07-16 12:19:00 -0700365 /* Thermal throttle activation offset */
Arthur Heymanscdb26fd2021-11-15 20:12:02 +0100366 configure_thermal_target(cpu);
Duncan Laurie55632112012-07-16 12:19:00 -0700367
Michael Niewöhner63032432020-10-11 17:34:54 +0200368 set_aesni_lock();
Michael Niewöhner7f8767d2020-10-18 00:45:38 +0200369
Stefan Reinauer5c554632012-04-04 00:09:50 +0200370 /* Enable Direct Cache Access */
371 configure_dca_cap();
372
373 /* Set energy policy */
374 set_energy_perf_bias(ENERGY_POLICY_NORMAL);
375
376 /* Set Max Ratio */
377 set_max_ratio();
378
379 /* Enable Turbo */
380 enable_turbo();
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100381}
Sven Schnelle51676b12012-07-29 19:18:03 +0200382
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100383/* MP initialization support. */
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100384static void pre_mp_init(void)
385{
386 /* Setup MTRRs based on physical address size. */
387 x86_setup_mtrrs_with_detect();
388 x86_mtrr_check();
389}
390
391static int get_cpu_count(void)
392{
393 msr_t msr;
Angel Pons04c497a2021-11-03 16:30:10 +0100394 unsigned int num_threads;
395 unsigned int num_cores;
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100396
Elyes HAOUASa6a396d2019-05-26 13:25:30 +0200397 msr = rdmsr(MSR_CORE_THREAD_COUNT);
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100398 num_threads = (msr.lo >> 0) & 0xffff;
399 num_cores = (msr.lo >> 16) & 0xffff;
400 printk(BIOS_DEBUG, "CPU has %u cores, %u threads enabled.\n",
401 num_cores, num_threads);
402
403 return num_threads;
404}
405
406static void get_microcode_info(const void **microcode, int *parallel)
407{
Patrick Rudolph3fa23b82021-01-25 09:42:08 +0100408 *microcode = intel_microcode_find();
Patrick Rudolphce51b342021-01-11 09:21:58 +0100409 *parallel = !intel_ht_supported();
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100410}
411
412static void per_cpu_smm_trigger(void)
413{
414 /* Relocate the SMM handler. */
415 smm_relocate();
416
417 /* After SMM relocation a 2nd microcode load is required. */
Patrick Rudolph3fa23b82021-01-25 09:42:08 +0100418 const void *microcode_patch = intel_microcode_find();
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100419 intel_microcode_load_unlocked(microcode_patch);
420}
421
422static void post_mp_init(void)
423{
424 /* Now that all APs have been relocated as well as the BSP let SMIs
425 * start flowing. */
Kyösti Mälkki0778c862020-06-10 12:44:03 +0300426 global_smi_enable();
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100427
428 /* Lock down the SMRAM space. */
429 smm_lock();
430}
431
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100432static const struct mp_ops mp_ops = {
433 .pre_mp_init = pre_mp_init,
434 .get_cpu_count = get_cpu_count,
435 .get_smm_info = smm_info,
436 .get_microcode_info = get_microcode_info,
437 .pre_mp_smm_init = smm_initialize,
438 .per_cpu_smm_trigger = per_cpu_smm_trigger,
439 .relocation_handler = smm_relocation_handler,
440 .post_mp_init = post_mp_init,
441};
442
Kyösti Mälkkib3267e02019-08-13 16:44:04 +0300443void mp_init_cpus(struct bus *cpu_bus)
Arthur Heymansedbf5d92018-01-25 20:03:42 +0100444{
Felix Held4dd7d112021-10-20 23:31:43 +0200445 /* TODO: Handle mp_init_with_smm failure? */
446 mp_init_with_smm(cpu_bus, &mp_ops);
Stefan Reinauer5c554632012-04-04 00:09:50 +0200447}
448
449static struct device_operations cpu_dev_ops = {
450 .init = model_206ax_init,
451};
452
Jonathan Neuschäfer8f06ce32017-11-20 01:56:44 +0100453static const struct cpu_device_id cpu_table[] = {
Felix Helda5aee112023-02-06 17:01:59 +0100454 { X86_VENDOR_INTEL, 0x206a0, CPUID_ALL_STEPPINGS_MASK }, /* Intel Sandybridge */
455 { X86_VENDOR_INTEL, 0x306a0, CPUID_ALL_STEPPINGS_MASK }, /* Intel IvyBridge */
Felix Held1e781652023-02-08 11:39:16 +0100456 CPU_TABLE_END
Stefan Reinauer5c554632012-04-04 00:09:50 +0200457};
458
459static const struct cpu_driver driver __cpu_driver = {
460 .ops = &cpu_dev_ops,
461 .id_table = cpu_table,
Stefan Reinauer5c554632012-04-04 00:09:50 +0200462};