diff options
author | Natalie Protasevich <Natalie.Protasevich@unisys.com> | 2005-06-23 03:08:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:09 -0400 |
commit | ca05fea6db5259c6d62e517c41d448a4249175f4 (patch) | |
tree | fae2369b5a38a7b01be366129b5dc3105acfacf6 /arch | |
parent | 7c1def1652c6c1a95eafca2991baace34afaed0f (diff) |
[PATCH] Do not enforce unique IO_APIC_ID check for xAPIC systems (i386)
This patch is per Andi's request to remove NO_IOAPIC_CHECK from genapic and
use heuristics to prevent unique I/O APIC ID check for systems that don't
need it. The patch disables unique I/O APIC ID check for Xeon-based and
other platforms that don't use serial APIC bus for interrupt delivery.
Andi stated that AMD systems don't need unique IO_APIC_IDs either.
Signed-off-by: Natalie Protasevich <Natalie.Protasevich@unisys.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/io_apic.c | 10 | ||||
-rw-r--r-- | arch/i386/kernel/mpparse.c | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index 7a324e8b86f9..51f7a5d8721f 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c | |||
@@ -1659,6 +1659,12 @@ static void __init setup_ioapic_ids_from_mpc(void) | |||
1659 | unsigned long flags; | 1659 | unsigned long flags; |
1660 | 1660 | ||
1661 | /* | 1661 | /* |
1662 | * Don't check I/O APIC IDs for xAPIC systems. They have | ||
1663 | * no meaning without the serial APIC bus. | ||
1664 | */ | ||
1665 | if (!(boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && boot_cpu_data.x86 < 15)) | ||
1666 | return; | ||
1667 | /* | ||
1662 | * This is broken; anything with a real cpu count has to | 1668 | * This is broken; anything with a real cpu count has to |
1663 | * circumvent this idiocy regardless. | 1669 | * circumvent this idiocy regardless. |
1664 | */ | 1670 | */ |
@@ -1684,10 +1690,6 @@ static void __init setup_ioapic_ids_from_mpc(void) | |||
1684 | mp_ioapics[apic].mpc_apicid = reg_00.bits.ID; | 1690 | mp_ioapics[apic].mpc_apicid = reg_00.bits.ID; |
1685 | } | 1691 | } |
1686 | 1692 | ||
1687 | /* Don't check I/O APIC IDs for some xAPIC systems. They have | ||
1688 | * no meaning without the serial APIC bus. */ | ||
1689 | if (NO_IOAPIC_CHECK) | ||
1690 | continue; | ||
1691 | /* | 1693 | /* |
1692 | * Sanity check, is the ID really free? Every APIC in a | 1694 | * Sanity check, is the ID really free? Every APIC in a |
1693 | * system must have a unique ID or we get lots of nice | 1695 | * system must have a unique ID or we get lots of nice |
diff --git a/arch/i386/kernel/mpparse.c b/arch/i386/kernel/mpparse.c index 1347ab4939e7..0a061056b828 100644 --- a/arch/i386/kernel/mpparse.c +++ b/arch/i386/kernel/mpparse.c | |||
@@ -914,7 +914,10 @@ void __init mp_register_ioapic ( | |||
914 | mp_ioapics[idx].mpc_apicaddr = address; | 914 | mp_ioapics[idx].mpc_apicaddr = address; |
915 | 915 | ||
916 | set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); | 916 | set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); |
917 | mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx, id); | 917 | if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 < 15)) |
918 | mp_ioapics[idx].mpc_apicid = io_apic_get_unique_id(idx, id); | ||
919 | else | ||
920 | mp_ioapics[idx].mpc_apicid = id; | ||
918 | mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); | 921 | mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); |
919 | 922 | ||
920 | /* | 923 | /* |