summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/amd_iommu_proto.h
diff options
context:
space:
mode:
authorJoerg Roedel2009-12-10 11:03:39 +0100
committerJoerg Roedel2009-12-10 12:21:31 +0100
commitb7cc9554bc73641c9ed4d7eb74b2d6e78f20abea (patch)
tree42a90d0bcef2932b3aca414bf6620fb13685e9b7 /arch/x86/include/asm/amd_iommu_proto.h
parentx86, Calgary IOMMU quirk: Find nearest matching Calgary while walking up the ... (diff)
downloadkernel-qcow2-linux-b7cc9554bc73641c9ed4d7eb74b2d6e78f20abea.tar.gz
kernel-qcow2-linux-b7cc9554bc73641c9ed4d7eb74b2d6e78f20abea.tar.xz
kernel-qcow2-linux-b7cc9554bc73641c9ed4d7eb74b2d6e78f20abea.zip
x86/amd-iommu: Fix passthrough mode
The data structure changes to use dev->archdata.iommu field broke the iommu=pt mode because in this case the dev->archdata.iommu was left uninitialized. This moves the inititalization of the devices into the main init function and fixes the problem. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include/asm/amd_iommu_proto.h')
-rw-r--r--arch/x86/include/asm/amd_iommu_proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/amd_iommu_proto.h b/arch/x86/include/asm/amd_iommu_proto.h
index 84786fb9a23b..2566e2606224 100644
--- a/arch/x86/include/asm/amd_iommu_proto.h
+++ b/arch/x86/include/asm/amd_iommu_proto.h
@@ -28,7 +28,8 @@ extern void amd_iommu_flush_all_domains(void);
extern void amd_iommu_flush_all_devices(void);
extern void amd_iommu_apply_erratum_63(u16 devid);
extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
-
+extern int amd_iommu_init_devices(void);
+extern void amd_iommu_uninit_devices(void);
#ifndef CONFIG_AMD_IOMMU_STATS
static inline void amd_iommu_stats_init(void) { }