diff options
author | Konrad Rzeszutek Wilk <[email protected]> | 2010-08-26 13:58:04 -0400 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-08-26 15:14:40 -0700 |
commit | 4db77ff3237a88ea74f691dd776e92b2f86a8f3f (patch) | |
tree | eeafdd3213e4a54674c241ea57bb0a4431755ea5 | |
parent | 22e6daf41ba28ddc06295e42859b266f737b3e99 (diff) |
x86, VT-d: Make Intel VT-d IOMMU use IOMMU_INIT_* macros.
We utilize the IOMMU_INIT macros to create this dependency:
[null]
|
[pci_xen_swiotlb_detect]
|
[pci_swiotlb_detect_override]
|
[pci_swiotlb_detect_4gb]
|
+-------+--------+---------------------+
/ \ \
[detect_calgary] [gart_iommu_hole_init] [detect_intel_iommu]
|
[amd_iommu_detect]
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
LKML-Reference: <[email protected]>
CC: Fujita Tomonori <[email protected]>
CC: Jesse Barnes <[email protected]>
CC: David Woodhouse <[email protected]>
CC: Len Brown <[email protected]>
CC: Chris Wright <[email protected]>
CC: Yinghai Lu <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
-rw-r--r-- | drivers/pci/dmar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c index 5fa64ea5416f..4ef56a0920a7 100644 --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c @@ -36,6 +36,7 @@ #include <linux/tboot.h> #include <linux/dmi.h> #include <linux/slab.h> +#include <asm/iommu_table.h> #define PREFIX "DMAR: " @@ -724,7 +725,7 @@ int __init detect_intel_iommu(void) early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size); dmar_tbl = NULL; - return (ret ? 1 : -ENODEV); + return ret ? 1 : -ENODEV; } @@ -1457,3 +1458,4 @@ int __init dmar_ir_support(void) return 0; return dmar->flags & 0x1; } +IOMMU_INIT_POST(detect_intel_iommu); |