diff options
author | Borislav Petkov <bp@suse.de> | 2015-06-04 12:55:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-06-07 09:38:14 -0400 |
commit | ee38a90709084b1c91279cde8f783e90f85285a1 (patch) | |
tree | 30f2e65400112a25f65173f0270fc837fa7f3648 | |
parent | e774eaa9f6069b70b5208aa50539a09f41cf7e73 (diff) |
x86/microcode: Disable builtin microcode loading on 32-bit for now
Andy Shevchenko reported machine freezes when booting latest tip
on 32-bit setups. Problem is, the builtin microcode handling cannot
really work that early, when we haven't even enabled paging.
A proper fix would involve handling that case specially as every
other early 32-bit boot case in the microcode loader and would
require much more involved changes for which it is too late now,
more than a week before the upcoming merge window.
So, disable the builtin microcode loading on 32-bit for now.
Reported-and-tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1433436928-31903-20-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/kernel/cpu/microcode/amd_early.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/microcode/intel_early.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd_early.c b/arch/x86/kernel/cpu/microcode/amd_early.c index 9208a36d0f03..9243cd839829 100644 --- a/arch/x86/kernel/cpu/microcode/amd_early.c +++ b/arch/x86/kernel/cpu/microcode/amd_early.c | |||
@@ -230,6 +230,7 @@ static void apply_ucode_in_initrd(void *ucode, size_t size, bool save_patch) | |||
230 | 230 | ||
231 | static bool __init load_builtin_amd_microcode(struct cpio_data *cp, int family) | 231 | static bool __init load_builtin_amd_microcode(struct cpio_data *cp, int family) |
232 | { | 232 | { |
233 | #ifdef CONFIG_X86_64 | ||
233 | char fw_name[36] = "amd-ucode/microcode_amd.bin"; | 234 | char fw_name[36] = "amd-ucode/microcode_amd.bin"; |
234 | 235 | ||
235 | if (family >= 0x15) | 236 | if (family >= 0x15) |
@@ -237,6 +238,9 @@ static bool __init load_builtin_amd_microcode(struct cpio_data *cp, int family) | |||
237 | "amd-ucode/microcode_amd_fam%.2xh.bin", family); | 238 | "amd-ucode/microcode_amd_fam%.2xh.bin", family); |
238 | 239 | ||
239 | return get_builtin_firmware(cp, fw_name); | 240 | return get_builtin_firmware(cp, fw_name); |
241 | #else | ||
242 | return false; | ||
243 | #endif | ||
240 | } | 244 | } |
241 | 245 | ||
242 | void __init load_ucode_amd_bsp(int family) | 246 | void __init load_ucode_amd_bsp(int family) |
diff --git a/arch/x86/kernel/cpu/microcode/intel_early.c b/arch/x86/kernel/cpu/microcode/intel_early.c index 10dff3f3f686..b4858d892592 100644 --- a/arch/x86/kernel/cpu/microcode/intel_early.c +++ b/arch/x86/kernel/cpu/microcode/intel_early.c | |||
@@ -523,6 +523,7 @@ EXPORT_SYMBOL_GPL(save_mc_for_early); | |||
523 | 523 | ||
524 | static bool __init load_builtin_intel_microcode(struct cpio_data *cp) | 524 | static bool __init load_builtin_intel_microcode(struct cpio_data *cp) |
525 | { | 525 | { |
526 | #ifdef CONFIG_X86_64 | ||
526 | u32 eax = 0x00000001, ebx, ecx = 0, edx; | 527 | u32 eax = 0x00000001, ebx, ecx = 0, edx; |
527 | int family, model, stepping; | 528 | int family, model, stepping; |
528 | char name[30]; | 529 | char name[30]; |
@@ -536,6 +537,9 @@ static bool __init load_builtin_intel_microcode(struct cpio_data *cp) | |||
536 | sprintf(name, "intel-ucode/%02x-%02x-%02x", family, model, stepping); | 537 | sprintf(name, "intel-ucode/%02x-%02x-%02x", family, model, stepping); |
537 | 538 | ||
538 | return get_builtin_firmware(cp, name); | 539 | return get_builtin_firmware(cp, name); |
540 | #else | ||
541 | return false; | ||
542 | #endif | ||
539 | } | 543 | } |
540 | 544 | ||
541 | static __initdata char ucode_name[] = "kernel/x86/microcode/GenuineIntel.bin"; | 545 | static __initdata char ucode_name[] = "kernel/x86/microcode/GenuineIntel.bin"; |