On Thu, Jul 20, 2023 at 06:39:23PM +1000, Alistair Popple wrote: > The ARM SMMU has a specific command for invalidating the TLB for an > entire ASID. Currently this is used for the IO_PGTABLE API but not for > ATS when called from the MMU notifier. > > The current implementation of notifiers does not attempt to invalidate > such a large address range, instead walking each VMA and invalidating > each range individually during mmap removal. However in future SMMU > TLB invalidations are going to be sent as part of the normal > flush_tlb_*() kernel calls. To better deal with that add handling to > use TLBI ASID when invalidating the entire address space. > > Signed-off-by: Alistair Popple <apopple@xxxxxxxxxx> > --- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason