Thread (13 messages) 13 messages, 3 authors, 2023-07-21

Re: [PATCH v3 1/5] arm64/smmu: Use TLBI ASID when invalidating entire range

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2023-07-21 19:25:56
Also in: kvm, linux-arm-kernel, linux-iommu, linux-mm, lkml

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@nvidia.com>
---
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help