aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2011-08-23 20:05:22 -0400
committerIngo Molnar <mingo@elte.hu>2011-09-21 04:21:57 -0400
commitf5d1b97bcdd8ac195f48c645bffcb88bcea533e4 (patch)
tree4c93c43132bbed990fa6ae2c6f4a5422f8f85f19 /drivers/iommu/dmar.c
parent80990c5ba6de9040d2df7c06e3c222c61004085d (diff)
iommu: Cleanup ifdefs in detect_intel_iommu()
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: yinghai@kernel.org Cc: youquan.song@intel.com Cc: joerg.roedel@amd.com Cc: tony.luck@intel.com Cc: dwmw2@infradead.org Link: http://lkml.kernel.org/r/20110824001456.386003047@sbsiddha-desk.sc.intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 6f0422dcd0f5..587e8f2d38d8 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -551,22 +551,21 @@ int __init detect_intel_iommu(void)
551 if (ret) 551 if (ret)
552 ret = check_zero_address(); 552 ret = check_zero_address();
553 { 553 {
554#ifdef CONFIG_INTR_REMAP
555 struct acpi_table_dmar *dmar; 554 struct acpi_table_dmar *dmar;
556 555
557 dmar = (struct acpi_table_dmar *) dmar_tbl; 556 dmar = (struct acpi_table_dmar *) dmar_tbl;
558 if (ret && cpu_has_x2apic && dmar->flags & 0x1) 557
558 if (ret && intr_remapping_enabled && cpu_has_x2apic &&
559 dmar->flags & 0x1)
559 printk(KERN_INFO 560 printk(KERN_INFO
560 "Queued invalidation will be enabled to support " 561 "Queued invalidation will be enabled to support x2apic and Intr-remapping.\n");
561 "x2apic and Intr-remapping.\n"); 562
562#endif
563#ifdef CONFIG_DMAR
564 if (ret && !no_iommu && !iommu_detected && !dmar_disabled) { 563 if (ret && !no_iommu && !iommu_detected && !dmar_disabled) {
565 iommu_detected = 1; 564 iommu_detected = 1;
566 /* Make sure ACS will be enabled */ 565 /* Make sure ACS will be enabled */
567 pci_request_acs(); 566 pci_request_acs();
568 } 567 }
569#endif 568
570#ifdef CONFIG_X86 569#ifdef CONFIG_X86
571 if (ret) 570 if (ret)
572 x86_init.iommu.iommu_init = intel_iommu_init; 571 x86_init.iommu.iommu_init = intel_iommu_init;