diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-06-26 15:28:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-27 04:12:22 -0400 |
commit | a69ca3401821b7312cb7ec939a8814240fd7b9b3 (patch) | |
tree | bdafe3cc24cbd898b2d613d194d93b7d026bb0dd /arch/x86/kernel | |
parent | 8736197ba8e40d030eec0ab7a9e9f2be41810c4e (diff) |
AMD_IOMMU: call detect and initialization functions from dma code
This patch adds the function calls to initialize the AMD IOMMU hardware and
dma_ops to the generic DMA code for the x86 architecture.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: iommu@lists.linux-foundation.org
Cc: bhavna.sarathy@amd.com
Cc: Sebastian.Biemueller@amd.com
Cc: robert.richter@amd.com
Cc: joro@8bytes.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index dc00a1331ace..dea01672f1f4 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <asm/dma.h> | 7 | #include <asm/dma.h> |
8 | #include <asm/gart.h> | 8 | #include <asm/gart.h> |
9 | #include <asm/calgary.h> | 9 | #include <asm/calgary.h> |
10 | #include <asm/amd_iommu.h> | ||
10 | 11 | ||
11 | int forbid_dac __read_mostly; | 12 | int forbid_dac __read_mostly; |
12 | EXPORT_SYMBOL(forbid_dac); | 13 | EXPORT_SYMBOL(forbid_dac); |
@@ -122,6 +123,8 @@ void __init pci_iommu_alloc(void) | |||
122 | 123 | ||
123 | detect_intel_iommu(); | 124 | detect_intel_iommu(); |
124 | 125 | ||
126 | amd_iommu_detect(); | ||
127 | |||
125 | #ifdef CONFIG_SWIOTLB | 128 | #ifdef CONFIG_SWIOTLB |
126 | pci_swiotlb_init(); | 129 | pci_swiotlb_init(); |
127 | #endif | 130 | #endif |
@@ -502,6 +505,8 @@ static int __init pci_iommu_init(void) | |||
502 | 505 | ||
503 | intel_iommu_init(); | 506 | intel_iommu_init(); |
504 | 507 | ||
508 | amd_iommu_init(); | ||
509 | |||
505 | #ifdef CONFIG_GART_IOMMU | 510 | #ifdef CONFIG_GART_IOMMU |
506 | gart_iommu_init(); | 511 | gart_iommu_init(); |
507 | #endif | 512 | #endif |