diff options
author | Mike Travis <travis@sgi.com> | 2008-05-12 15:21:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:31:26 -0400 |
commit | 5deb0b2a25b7b568ab81f7c38052572ecf4ccc96 (patch) | |
tree | 5718d2880139f39f124f4c8014d0d871fcef99d5 /arch/x86 | |
parent | 3461b0af025251bbc6b3d56c821c6ac2de6f7209 (diff) |
x86: leave initial __cpu_pda array in place until cpus are booted
Ingo Molnar wrote:
...
> they crashed after about 3 randconfig iterations with:
>
> early res: 4 [8000-afff] PGTABLE
> early res: 5 [b000-b87f] MEMNODEMAP
> PANIC: early exception 0e rip 10:ffffffff8077a150 error 2 cr2 37
> Pid: 0, comm: swapper Not tainted 2.6.25-sched-devel.git-x86-latest.git #14
>
> Call Trace:
> [<ffffffff81466196>] early_idt_handler+0x56/0x6a
> [<ffffffff8077a150>] ? numa_set_node+0x30/0x60
> [<ffffffff8077a129>] ? numa_set_node+0x9/0x60
> [<ffffffff8147a543>] numa_init_array+0x93/0xf0
> [<ffffffff8147b039>] acpi_scan_nodes+0x3b9/0x3f0
> [<ffffffff8147a496>] numa_initmem_init+0x136/0x150
> [<ffffffff8146da5f>] setup_arch+0x48f/0x700
> [<ffffffff802566ea>] ? clockevents_register_notifier+0x3a/0x50
> [<ffffffff81466a87>] start_kernel+0xd7/0x440
> [<ffffffff81466422>] x86_64_start_kernel+0x222/0x280
...
Here's the fixup... This one should follow the previous patches.
Thanks,
Mike
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/head64.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 0ab59edd7067..4bcb61cd9fcd 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -29,17 +29,13 @@ | |||
29 | static struct x8664_pda _boot_cpu_pda __read_mostly; | 29 | static struct x8664_pda _boot_cpu_pda __read_mostly; |
30 | 30 | ||
31 | #ifdef CONFIG_SMP | 31 | #ifdef CONFIG_SMP |
32 | #ifdef CONFIG_DEBUG_PER_CPU_MAPS | ||
33 | /* | 32 | /* |
34 | * We install an empty cpu_pda pointer table to trap references before | 33 | * We install an empty cpu_pda pointer table to indicate to early users |
35 | * the actual cpu_pda pointer table is created in setup_cpu_pda_map(). | 34 | * (numa_set_node) that the cpu_pda pointer table for cpus other than |
35 | * the boot cpu is not yet setup. | ||
36 | */ | 36 | */ |
37 | static struct x8664_pda *__cpu_pda[NR_CPUS] __initdata; | 37 | static struct x8664_pda *__cpu_pda[NR_CPUS] __initdata; |
38 | #else | 38 | #else |
39 | static struct x8664_pda *__cpu_pda[1] __read_mostly; | ||
40 | #endif | ||
41 | |||
42 | #else /* !CONFIG_SMP (NR_CPUS will be 1) */ | ||
43 | static struct x8664_pda *__cpu_pda[NR_CPUS] __read_mostly; | 39 | static struct x8664_pda *__cpu_pda[NR_CPUS] __read_mostly; |
44 | #endif | 40 | #endif |
45 | 41 | ||