]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Disable passthrough mode when SME is active
authorJoerg Roedel <jroedel@suse.de>
Mon, 19 Aug 2019 13:22:55 +0000 (15:22 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 23 Aug 2019 08:11:29 +0000 (10:11 +0200)
commit8ce3ef12fee9c563bd46c9aa660ff8022756b38f
tree723ab02de268c93332c89ad7b3160c410dcb202e
parent3690e590ea658676ee85789370284dea7ac7b86d
iommu: Disable passthrough mode when SME is active

Using Passthrough mode when SME is active causes certain
devices to use the SWIOTLB bounce buffer. The bounce buffer
code has an upper limit of 256kb for the size of DMA
allocations, which is too small for certain devices and
causes them to fail.

With this patch we enable IOMMU by default when SME is
active in the system, making the default configuration work
for more systems than it does now.

Users that don't want IOMMUs to be enabled still can disable
them with kernel parameters.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c