Re: x2apic boot failure on recent sandy bridge system

From: Yinghai Lu
Date: Mon Dec 12 2011 - 20:30:05 EST


On Mon, Dec 12, 2011 at 4:25 PM, Suresh Siddha
<suresh.b.siddha@xxxxxxxxx> wrote:
> On Mon, 2011-12-12 at 15:21 -0800, Berck E. Nash wrote:
>> On 12/11/2011 08:40 PM, Yinghai Lu wrote:
>> > x2apic pre-enabled skip the mapping for lapic address. so need map it
>> > after fall back.
>> >
>> > please check attached -v5..
>>
>> It appears to work correctly as far as I can tell.
>
> Ok. In this case, it looks like bios didn't enable interrupt-remapping
> (part of vt-d) and just enabled x2apic with out touching or exporting
> vt-d HW.
>
> Yinghai, In other scenarios where OS can't recover, mostly likely we
> will fail in check_timer() when we fall back to xapic. Can we add a
> printk in this case to convey the potential reason (that I mentioned in
> the previous e-mail), so that the user can get more accurate information
> for the check timer failure.

agree. in that case, will have problem.

but i don't think bios buy can go that far to enable intr-remapping
without providing DMAR.

will check if can add print out in check_timer() when
x2apic_preenabled == 1 and x2apic == 0...

Thanks

Yinghai Lu
--
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/