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

From: Cyrill Gorcunov
Date: Sat May 02 2009 - 03:03:17 EST


[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@xxxxxxxxxxxxxxxxxx>
| Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>
| Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
|

Thanks Yinghai! My Ack if needed.

-- Cyrill
--
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/