Skip to content

Commit 42fd2b5

Browse files
committed
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 bugfix from Thomas Gleixner: "A single bugfix for the recent changes related to registering the boot cpu when this has not happened before prefill_possible_map(). The main problem with this change got fixed already, but we missed the case where the local APIC is not yet mapped, when prefill_possible_map() is invoked, so the registration of the boot cpu which has the APIC bit set in CPUID will explode. I should have seen that issue earlier, but all I can do now is feeling embarassed" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/smpboot: Init apic mapping before usage
2 parents efa5637 + 1e90a13 commit 42fd2b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/x86/kernel/setup.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,11 +1221,16 @@ void __init setup_arch(char **cmdline_p)
12211221
*/
12221222
get_smp_config();
12231223

1224+
/*
1225+
* Systems w/o ACPI and mptables might not have it mapped the local
1226+
* APIC yet, but prefill_possible_map() might need to access it.
1227+
*/
1228+
init_apic_mappings();
1229+
12241230
prefill_possible_map();
12251231

12261232
init_cpu_to_node();
12271233

1228-
init_apic_mappings();
12291234
io_apic_init_mappings();
12301235

12311236
kvm_guest_init();

0 commit comments

Comments
 (0)