aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-09-03 10:34:23 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2009-09-03 10:34:23 -0400
commit03362a05c55122baff3556109c922285299dfec4 (patch)
tree85f83fbf4e1e8027eca05fbd8285041053a713c4 /arch/x86/kernel/amd_iommu_init.c
parent85da07c409daba3d067824f0051d58f70cb571a0 (diff)
parent4751a95134e05f1172131d2001c6991d671fa58c (diff)
Merge branch 'amd-iommu/passthrough' into amd-iommu/2.6.32
Conflicts: arch/x86/kernel/amd_iommu.c arch/x86/kernel/amd_iommu_init.c
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index 779ace292475..b4b61d462dcc 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -1252,12 +1252,18 @@ int __init amd_iommu_init(void)
1252 if (ret) 1252 if (ret)
1253 goto free; 1253 goto free;
1254 1254
1255 ret = amd_iommu_init_dma_ops(); 1255 if (iommu_pass_through)
1256 ret = amd_iommu_init_passthrough();
1257 else
1258 ret = amd_iommu_init_dma_ops();
1256 if (ret) 1259 if (ret)
1257 goto free; 1260 goto free;
1258 1261
1259 enable_iommus(); 1262 enable_iommus();
1260 1263
1264 if (iommu_pass_through)
1265 goto out;
1266
1261 printk(KERN_INFO "AMD-Vi: device isolation "); 1267 printk(KERN_INFO "AMD-Vi: device isolation ");
1262 if (amd_iommu_isolate) 1268 if (amd_iommu_isolate)
1263 printk("enabled\n"); 1269 printk("enabled\n");