PCI: add pci_request_acs
[safe/jmp/linux-2.6] / drivers / pci / dmar.c
index e01ca4d..0e98f6b 100644 (file)
@@ -614,8 +614,11 @@ void __init detect_intel_iommu(void)
 #endif
 #ifdef CONFIG_DMAR
                if (ret && !no_iommu && !iommu_detected && !swiotlb &&
-                   !dmar_disabled)
+                   !dmar_disabled) {
                        iommu_detected = 1;
+                       /* Make sure ACS will be enabled */
+                       pci_request_acs();
+               }
 #endif
        }
        early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);