Re: [PATCH] x86: enable x2apic early at the first point
From: Suresh Siddha
Date: Sat Feb 21 2009 - 18:33:18 EST
On Sat, Feb 21, 2009 at 02:43:46PM -0800, Yinghai Lu wrote:
> for x2apic preenabled system,
> when nox2apic is used, cpu_has_x2apic will be cleared, apic will be xapic phys_flat or flat.
> is that expected?
>
> should
> 1. ignore nox2apic
> 2. or try to disable x2apic?
This scenario might be useful for debug purposes? But it might
not be simple/straight fwd in OS to implement this, as we need to do two things.
1. Go back to xapic mode using the state transition diagram in SDM.
2. And also, we need to disable the interrupt-remapping setup by the bios,
so that chipset and cpu's are in same mode.
If BIOS has enabled x2apic, it is for a reason (mostly platform
has more logical cpus and hence need x2apic to brinup all the AP's etc).
And typically other than very high end platforms, I don't expect bios
to turn on x2apic.
thanks,
suresh
--
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/