Re: x2apic boot failure on recent sandy bridge system

From: Ingo Molnar
Date: Sun Dec 11 2011 - 02:59:03 EST



* Yinghai Lu <yinghai@xxxxxxxxxx> wrote:

> so kernel can not enable interrput remapping, then it will panic..
>
> [ 0.085717] Kernel panic - not syncing: x2apic: enabled by BIOS but
> kernel init failed.
> [ 0.093697] Pid: 1, comm: swapper/0 Not tainted 3.2.0-rc5 #2
> [ 0.099337] Call Trace:
> [ 0.101788] [<ffffffff8137b7ce>] ? panic+0x95/0x18e
> [ 0.106755] [<ffffffff81016259>] ? __ioapic_write_entry+0x16/0x32
> [ 0.112925] [<ffffffff8152d5bf>] ? enable_IR_x2apic+0x19a/0x1d7
> [ 0.118913] [<ffffffff8152f281>] ? default_setup_apic_routing+0xd/0x71
> [ 0.125506] [<ffffffff8152c536>] ? native_smp_prepare_cpus+0x2f1/0x325
> [ 0.132102] [<ffffffff81522abf>] ? kernel_init+0x46/0x10f
> [ 0.137571] [<ffffffff813841f4>] ? kernel_thread_helper+0x4/0x10
> [ 0.143650] [<ffffffff81522a79>] ? start_kernel+0x341/0x341
> [ 0.149297] [<ffffffff813841f0>] ? gs_change+0xb/0xb
>
> your bios should not enable x2apic in this case.
>
> please get one bios update.
>
> also I have one old patch that could disable apic. but it is
> not get merged and it may not be applied to current tree.

What we want is not a nox2apic option but a good fall-back
mechanism that is able to boot the system automatically and
safely, without the user having to tweak *anything* ...

Tanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/