iommu/amd: Indicate whether DMA remap support is enabled
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 25 Apr 2022 12:42:05 +0000 (13:42 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 28 Apr 2022 08:30:25 +0000 (10:30 +0200)
commitf1ca70717bcb4525e29da422f3d280acbddb36fe
treee1e5f973872b7c9acee3ce2f7494fb500b8f26b0
parent86eaf4a5b4312bea8676fb79399d9e08b53d8e71
iommu/amd: Indicate whether DMA remap support is enabled

Bit 1 of the IVFS IVInfo field indicates that IOMMU has been used for
pre-boot DMA protection.

Export this capability to allow other places in the kernel to be able to
check for it on AMD systems.

Link: https://www.amd.com/system/files/TechDocs/48882_IOMMU.pdf
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/ce7627fa1c596878ca6515dd9d4381a45b6ee38c.1650878781.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c