iommu: Pass struct iommu_iotlb_gather to ->unmap() and ->iotlb_sync()
authorWill Deacon <will@kernel.org>
Tue, 2 Jul 2019 15:44:06 +0000 (16:44 +0100)
committerWill Deacon <will@kernel.org>
Mon, 29 Jul 2019 16:22:52 +0000 (17:22 +0100)
commit56f8af5e9d38f120cba2c2adb0786fa2dbc901a4
treeb46a5f01874bd1543e610949be6171296cd6300e
parent4fcf8544fc677fc8af135f1d86b3ba69c4ad429d
iommu: Pass struct iommu_iotlb_gather to ->unmap() and ->iotlb_sync()

To allow IOMMU drivers to batch up TLB flushing operations and postpone
them until ->iotlb_sync() is called, extend the prototypes for the
->unmap() and ->iotlb_sync() IOMMU ops callbacks to take a pointer to
the current iommu_iotlb_gather structure.

All affected IOMMU drivers are updated, but there should be no
functional change since the extra parameter is ignored for now.

Signed-off-by: Will Deacon <will@kernel.org>
18 files changed:
drivers/iommu/amd_iommu.c
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c
drivers/iommu/exynos-iommu.c
drivers/iommu/intel-iommu.c
drivers/iommu/iommu.c
drivers/iommu/ipmmu-vmsa.c
drivers/iommu/msm_iommu.c
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu_v1.c
drivers/iommu/omap-iommu.c
drivers/iommu/qcom_iommu.c
drivers/iommu/rockchip-iommu.c
drivers/iommu/s390-iommu.c
drivers/iommu/tegra-gart.c
drivers/iommu/tegra-smmu.c
drivers/iommu/virtio-iommu.c
include/linux/iommu.h