iommu/io-pgtable: Remove tlb_flush_leaf
authorRobin Murphy <robin.murphy@arm.com>
Wed, 25 Nov 2020 17:29:39 +0000 (17:29 +0000)
committerWill Deacon <will@kernel.org>
Tue, 8 Dec 2020 15:23:37 +0000 (15:23 +0000)
commitfefe8527a1e0e0014946c6b5b3b2e40cb32bb5d3
tree15a5bba2e250001761f5521ec45cc4aa12fc938a
parentc74009f5290d6679ecb865b5d795508df7ad599f
iommu/io-pgtable: Remove tlb_flush_leaf

The only user of tlb_flush_leaf is a particularly hairy corner of the
Arm short-descriptor code, which wants a synchronous invalidation to
minimise the races inherent in trying to split a large page mapping.
This is already far enough into "here be dragons" territory that no
sensible caller should ever hit it, and thus it really doesn't need
optimising. Although using tlb_flush_walk there may technically be
more heavyweight than needed, it does the job and saves everyone else
having to carry around useless baggage.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/9844ab0c5cb3da8b2f89c6c2da16941910702b41.1606324115.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/gpu/drm/msm/msm_iommu.c
drivers/gpu/drm/panfrost/panfrost_mmu.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/arm/arm-smmu/qcom_iommu.c
drivers/iommu/io-pgtable-arm-v7s.c
drivers/iommu/io-pgtable-arm.c
drivers/iommu/ipmmu-vmsa.c
drivers/iommu/msm_iommu.c
drivers/iommu/mtk_iommu.c
include/linux/io-pgtable.h