Skip to content
Commit e2be2a83 authored by Lu Baolu's avatar Lu Baolu Committed by Will Deacon
Browse files

x86/tboot: Don't disable swiotlb when iommu is forced on

After commit 327d5b2f ("iommu/vt-d: Allow 32bit devices to uses DMA
domain"), swiotlb could also be used for direct memory access if IOMMU
is enabled but a device is configured to pass through the DMA translation.
Keep swiotlb when IOMMU is forced on, otherwise, some devices won't work
if "iommu=pt" kernel parameter is used.

Fixes: 327d5b2f

 ("iommu/vt-d: Allow 32bit devices to uses DMA domain")
Reported-and-tested-by: default avatarAdrian Huang <ahuang12@lenovo.com>
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20201125014124.4070776-1-baolu.lu@linux.intel.com
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=210237


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 77c38c8c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment