aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-12-10 05:12:25 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2009-12-10 06:23:47 -0500
commit8638c4914f34fedc1c13b1cc13f6d1e5a78c46b4 (patch)
tree55cc1616c02f140a92f467ef493137d5085537ff /arch/x86/kernel/amd_iommu_init.c
parentb7cc9554bc73641c9ed4d7eb74b2d6e78f20abea (diff)
x86/amd-iommu: Fix PCI hotplug with passthrough mode
The device change notifier is initialized in the dma_ops initialization path. But this path is never executed for iommu=pt. Move the notifier initialization to IOMMU hardware init code to fix this. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index df01c691d130..309a52f96e0b 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -1285,6 +1285,8 @@ static int __init amd_iommu_init(void)
1285 if (ret) 1285 if (ret)
1286 goto free; 1286 goto free;
1287 1287
1288 amd_iommu_init_notifier();
1289
1288 enable_iommus(); 1290 enable_iommus();
1289 1291
1290 if (iommu_pass_through) 1292 if (iommu_pass_through)