mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Tested-by: Baoquan He <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
60b523ecfe
commit
8939ddf6d6
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue