diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-09-03 16:34:23 +0200 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-09-03 16:34:23 +0200 |
commit | 03362a05c55122baff3556109c922285299dfec4 (patch) | |
tree | 85f83fbf4e1e8027eca05fbd8285041053a713c4 /arch/x86/kernel/amd_iommu_init.c | |
parent | 85da07c409daba3d067824f0051d58f70cb571a0 (diff) | |
parent | 4751a95134e05f1172131d2001c6991d671fa58c (diff) | |
download | op-kernel-dev-03362a05c55122baff3556109c922285299dfec4.zip op-kernel-dev-03362a05c55122baff3556109c922285299dfec4.tar.gz |
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.c | 8 |
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 779ace2..b4b61d4 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) if (ret) goto free; - ret = amd_iommu_init_dma_ops(); + if (iommu_pass_through) + ret = amd_iommu_init_passthrough(); + else + ret = amd_iommu_init_dma_ops(); if (ret) goto free; enable_iommus(); + if (iommu_pass_through) + goto out; + printk(KERN_INFO "AMD-Vi: device isolation "); if (amd_iommu_isolate) printk("enabled\n"); |