提交 8939ddf6 编写于 作者: J Joerg Roedel

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: NZhenHua Li <zhen-hual@hp.com>
Tested-by: NBaoquan He <bhe@redhat.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 60b523ec
......@@ -3204,7 +3204,9 @@ static int __init init_dmars(void)
if (ret)
goto free_iommu;
iommu_enable_translation(iommu);
if (!translation_pre_enabled(iommu))
iommu_enable_translation(iommu);
iommu_disable_protect_mem_regions(iommu);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册