x86: remove the IOMMU table infrastructure
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Feb 2022 13:11:44 +0000 (14:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 05:21:10 +0000 (07:21 +0200)
commit78013eaadf696d2105982abb4018fbae394ca08f
tree018da6dc9f81f26fc4d5ce8df7e1a9e9903593ed
parentf39f8d0eb081407e470396fd4cc376c526d13066
x86: remove the IOMMU table infrastructure

The IOMMU table tries to separate the different IOMMUs into different
backends, but actually requires various cross calls.

Rewrite the code to do the generic swiotlb/swiotlb-xen setup directly
in pci-dma.c and then just call into the IOMMU drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
21 files changed:
arch/ia64/include/asm/iommu_table.h [deleted file]
arch/x86/include/asm/dma-mapping.h
arch/x86/include/asm/gart.h
arch/x86/include/asm/iommu.h
arch/x86/include/asm/iommu_table.h [deleted file]
arch/x86/include/asm/swiotlb.h [deleted file]
arch/x86/include/asm/xen/swiotlb-xen.h
arch/x86/kernel/Makefile
arch/x86/kernel/amd_gart_64.c
arch/x86/kernel/aperture_64.c
arch/x86/kernel/pci-dma.c
arch/x86/kernel/pci-iommu_table.c [deleted file]
arch/x86/kernel/pci-swiotlb.c [deleted file]
arch/x86/kernel/tboot.c
arch/x86/kernel/vmlinux.lds.S
arch/x86/xen/Makefile
arch/x86/xen/pci-swiotlb-xen.c [deleted file]
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c
drivers/iommu/intel/dmar.c
include/linux/dmar.h