aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHan, Weidong <weidong.han@intel.com>2009-04-03 05:15:50 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-04-04 05:42:28 -0400
commitd0b03bd1c6725a3463290d7f9626e4b583518a5a (patch)
treece4ef17315c5435a8a77cd8fdb47e17193093349 /drivers
parent34aaaa948e3c9dd65b27fa499c5c9e8d8f1227cf (diff)
x2apic/intr-remap: decouple interrupt remapping from x2apic
interrupt remapping must be enabled before enabling x2apic, but interrupt remapping doesn't depend on x2apic, it can be used separately. Enable interrupt remapping in init_dmars even x2apic is not supported. [dwmw2: Update Kconfig accordingly, fix build with INTR_REMAP && !X2APIC] Signed-off-by: Weidong Han <weidong.han@intel.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/intel-iommu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index ef5795d0396b..f3eebd2b2d72 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -1947,6 +1947,15 @@ static int __init init_dmars(void)
1947 } 1947 }
1948 } 1948 }
1949 1949
1950#ifdef CONFIG_INTR_REMAP
1951 if (!intr_remapping_enabled) {
1952 ret = enable_intr_remapping(0);
1953 if (ret)
1954 printk(KERN_ERR
1955 "IOMMU: enable interrupt remapping failed\n");
1956 }
1957#endif
1958
1950 /* 1959 /*
1951 * For each rmrr 1960 * For each rmrr
1952 * for each dev attached to rmrr 1961 * for each dev attached to rmrr