iommu/arm-smmu-v3: Split arm_smmu_tlb_inv_range()
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Fri, 22 Jan 2021 15:10:54 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Fri, 22 Jan 2021 15:44:32 +0000 (15:44 +0000)
commiteba8d2f8f80315094b61eaf2bc6cd481741d6d93
tree9a4054b7854b84a6adc0bc909f842e251ec2e032
parent932bc8c7d742c30ce61f2add6cd1340795b0051c
iommu/arm-smmu-v3: Split arm_smmu_tlb_inv_range()

Extract some of the cmd initialization and the ATC invalidation from
arm_smmu_tlb_inv_range(), to allow an MMU notifier to invalidate a VA
range by ASID.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210122151054.2833521-2-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c