Re: [PATCH] x86: read apic id if it is not acpi_lapic

Cyrill Gorcunov
2009-05-02T07:03:16Z

[Yinghai Lu - Fri, May 01, 2009 at 09:48:34PM -0700]
|
| Ed found that on 32bit, boot_cpu_physical_apicid is not read right,
| when mptable is broken.
|
| interesting, actually three path
| 1. acpi: at that time, at that time that is already read from reg.
| 2. mptable: that only read from mptable.
| 3. no madt, and no mptable, that use default apic id 0 for 64bit, -1 for 32bit
|
| so could read that apic id for 2/3 path.
|
| also could avoid set fixmap that lapic two times when acpi_lapic is used.
| and need to move cpu_has_apic earlier and call apic_disable()
|
| Reported-by: Ed Swierk <eswierk@aristanetworks.com>
| Signed-off-by: Yinghai Lu <yinghai@kernel.org>
| Cc: Cyrill Gorcunov <gorcunov@openvz.org>
|

Thanks Yinghai! My Ack if needed.

-- Cyrill