diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2017-10-06 23:35:40 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-10-10 19:49:30 +0200 |
commit | aba2d9a6385a5cc4f7a7e8eb5788e1ddbc213fc0 (patch) | |
tree | 6cfb500a8efede70d0f23bfa6de5364547afd41d /drivers/iommu/exynos-iommu.c | |
parent | Linux 4.14-rc4 (diff) | |
download | linux-aba2d9a6385a5cc4f7a7e8eb5788e1ddbc213fc0.tar.xz linux-aba2d9a6385a5cc4f7a7e8eb5788e1ddbc213fc0.zip |
iommu/amd: Do not disable SWIOTLB if SME is active
When SME memory encryption is active it will rely on SWIOTLB to handle
DMA for devices that cannot support the addressing requirements of
having the encryption mask set in the physical address. The IOMMU
currently disables SWIOTLB if it is not running in passthrough mode.
This is not desired as non-PCI devices attempting DMA may fail. Update
the code to check if SME is active and not disable SWIOTLB.
Fixes: 2543a786aa25 ("iommu/amd: Allow the AMD IOMMU to work with memory encryption")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions