瀏覽代碼

iommu/vt-d: Enable Translation only if it was previously disabled

Do not touch the TE bit unless we know translation is
disabled.

Tested-by: ZhenHua Li <zhen-hual@hp.com>
Tested-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Joerg Roedel 10 年之前
父節點
當前提交
8939ddf6d6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/iommu/intel-iommu.c

+ 3 - 1
drivers/iommu/intel-iommu.c

@@ -3204,7 +3204,9 @@ domains_done:
 		if (ret)
 			goto free_iommu;
 
-		iommu_enable_translation(iommu);
+		if (!translation_pre_enabled(iommu))
+			iommu_enable_translation(iommu);
+
 		iommu_disable_protect_mem_regions(iommu);
 	}