[PATCH v2 5/8] iommu/arm-smmu-v3: Precompute the invalidation commands

Jason Gunthorpe jgg at nvidia.com
Tue Jul 7 07:58:12 PDT 2026


On Tue, Jul 07, 2026 at 11:52:25AM +0000, Mostafa Saleh wrote:
> On Mon, Jul 06, 2026 at 01:26:42PM -0300, Jason Gunthorpe wrote:
> > Store the required cmd data in the tlbi and just copy it out when
> > processing each item in the invs list. The cmd form only depends on
> > if the instance supports RIL or not, otherwise it is always the same.
> > 
> > This avoids redundant calculations for each invs entry.
> 
> I do not understand how does this avoids redundant calculation?
> This would be the case if the domain shares multiple SMMUs,
> otherwise, a range TLB invalidation should be unique and can not be
> reused.

Right, if there are multiple SMMUs for the domain then currently it
recomputes the range for every one.

At the moment I think we can't have multiple SMMUs per domain but
Nioclin has a patch series changing that

Jason



More information about the linux-arm-kernel mailing list