Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8939ddf6 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarZhenHua Li <zhen-hual@hp.com>
Tested-by: default avatarBaoquan He <bhe@redhat.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 60b523ec
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3204,7 +3204,9 @@ static int __init init_dmars(void)
		if (ret)
			goto free_iommu;

		if (!translation_pre_enabled(iommu))
			iommu_enable_translation(iommu);

		iommu_disable_protect_mem_regions(iommu);
	}