]> www.infradead.org Git - users/willy/linux.git/commit
iommu/amd: Do not force direct mapping when SME is active
authorJoerg Roedel <jroedel@suse.de>
Mon, 24 Aug 2020 10:54:14 +0000 (12:54 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Sep 2020 10:07:08 +0000 (12:07 +0200)
commit7cad554887f1c5fd77e57e6bf4be38370c2160cb
treeeef200f519adf1659fd7e52775a84cdb4ab9fe94
parente52d58d54a321d4fe9d0ecdabe4f8774449f0d6e
iommu/amd: Do not force direct mapping when SME is active

Do not force devices supporting IOMMUv2 to be direct mapped when memory
encryption is active. This might cause them to be unusable because their
DMA mask does not include the encryption bit.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20200824105415.21000-2-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c