aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/genapic_64.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-07-10 14:16:59 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-12 02:45:07 -0400
commit2d9579a124d746a3e0e0ba45e57d80800ee80807 (patch)
treeb95f34d75309ac8ae91c6ff0331731214ae1c93d /arch/x86/kernel/genapic_64.c
parent6e1cb38a2aef7680975e71f23de187859ee8b158 (diff)
x64, x2apic/intr-remap: support for x2apic physical mode support
x2apic Physical mode support. By default we will use x2apic cluster mode. x2apic physical mode can be selected using "x2apic_phys" boot parameter. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: akpm@linux-foundation.org Cc: arjan@linux.intel.com Cc: andi@firstfloor.org Cc: ebiederm@xmission.com Cc: jbarnes@virtuousgeek.org Cc: steiner@sgi.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genapic_64.c')
-rw-r--r--arch/x86/kernel/genapic_64.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/x86/kernel/genapic_64.c b/arch/x86/kernel/genapic_64.c
index 792e21ba1a81..3940d8161f8b 100644
--- a/arch/x86/kernel/genapic_64.c
+++ b/arch/x86/kernel/genapic_64.c
@@ -30,6 +30,15 @@ DEFINE_PER_CPU(int, x2apic_extra_bits);
30 30
31struct genapic __read_mostly *genapic = &apic_flat; 31struct genapic __read_mostly *genapic = &apic_flat;
32 32
33static int x2apic_phys = 0;
34
35static int set_x2apic_phys_mode(char *arg)
36{
37 x2apic_phys = 1;
38 return 0;
39}
40early_param("x2apic_phys", set_x2apic_phys_mode);
41
33static enum uv_system_type uv_system_type; 42static enum uv_system_type uv_system_type;
34 43
35/* 44/*
@@ -39,9 +48,12 @@ void __init setup_apic_routing(void)
39{ 48{
40 if (uv_system_type == UV_NON_UNIQUE_APIC) 49 if (uv_system_type == UV_NON_UNIQUE_APIC)
41 genapic = &apic_x2apic_uv_x; 50 genapic = &apic_x2apic_uv_x;
42 else if (cpu_has_x2apic && intr_remapping_enabled) 51 else if (cpu_has_x2apic && intr_remapping_enabled) {
43 genapic = &apic_x2apic_cluster; 52 if (x2apic_phys)
44 else 53 genapic = &apic_x2apic_phys;
54 else
55 genapic = &apic_x2apic_cluster;
56 } else
45#ifdef CONFIG_ACPI 57#ifdef CONFIG_ACPI
46 /* 58 /*
47 * Quirk: some x86_64 machines can only use physical APIC mode 59 * Quirk: some x86_64 machines can only use physical APIC mode