From e4a0a28fbcb37d3cda6e9a15768dfec1aa86095b Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 1 Sep 2009 15:53:54 +0200 Subject: [PATCH] --- yaml --- r: 158085 b: refs/heads/master c: 4751a95134e05f1172131d2001c6991d671fa58c h: refs/heads/master i: 158083: 99fdba140d93c653f194077a929c845738b812ea v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/amd_iommu_init.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index dfe79685e08d..00388920bf94 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a1ca331c8aa75cd58fdf685e2e8745e1d3ec5c8f +refs/heads/master: 4751a95134e05f1172131d2001c6991d671fa58c diff --git a/trunk/arch/x86/kernel/amd_iommu_init.c b/trunk/arch/x86/kernel/amd_iommu_init.c index c1b17e97252e..f00f489ab150 100644 --- a/trunk/arch/x86/kernel/amd_iommu_init.c +++ b/trunk/arch/x86/kernel/amd_iommu_init.c @@ -1242,12 +1242,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 IOMMU: device isolation "); if (amd_iommu_isolate) printk("enabled\n");