diff options
Diffstat (limited to 'arch/x86_64/kernel/pci-dma.c')
-rw-r--r-- | arch/x86_64/kernel/pci-dma.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-dma.c b/arch/x86_64/kernel/pci-dma.c index a45844c7e3a3..9c44f4f2433d 100644 --- a/arch/x86_64/kernel/pci-dma.c +++ b/arch/x86_64/kernel/pci-dma.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <asm/io.h> | 10 | #include <asm/io.h> |
11 | #include <asm/proto.h> | 11 | #include <asm/proto.h> |
12 | #include <asm/calgary.h> | ||
12 | 13 | ||
13 | int iommu_merge __read_mostly = 0; | 14 | int iommu_merge __read_mostly = 0; |
14 | EXPORT_SYMBOL(iommu_merge); | 15 | EXPORT_SYMBOL(iommu_merge); |
@@ -291,6 +292,10 @@ void __init pci_iommu_alloc(void) | |||
291 | iommu_hole_init(); | 292 | iommu_hole_init(); |
292 | #endif | 293 | #endif |
293 | 294 | ||
295 | #ifdef CONFIG_CALGARY_IOMMU | ||
296 | detect_calgary(); | ||
297 | #endif | ||
298 | |||
294 | #ifdef CONFIG_SWIOTLB | 299 | #ifdef CONFIG_SWIOTLB |
295 | pci_swiotlb_init(); | 300 | pci_swiotlb_init(); |
296 | #endif | 301 | #endif |
@@ -298,6 +303,10 @@ void __init pci_iommu_alloc(void) | |||
298 | 303 | ||
299 | static int __init pci_iommu_init(void) | 304 | static int __init pci_iommu_init(void) |
300 | { | 305 | { |
306 | #ifdef CONFIG_CALGARY_IOMMU | ||
307 | calgary_iommu_init(); | ||
308 | #endif | ||
309 | |||
301 | #ifdef CONFIG_IOMMU | 310 | #ifdef CONFIG_IOMMU |
302 | gart_iommu_init(); | 311 | gart_iommu_init(); |
303 | #endif | 312 | #endif |