[PATCH v2 2/8] iommu/arm-smmu-v3: Move pgsize out of arm_smmu_inv

Jason Gunthorpe jgg at nvidia.com
Tue Jul 14 11:41:36 PDT 2026


On Sat, Jul 11, 2026 at 10:38:15AM -0700, Daniel Mentz wrote:
> On Tue, Jul 7, 2026 at 11:08 AM Jason Gunthorpe <jgg at nvidia.com> wrote:
> >
> > On Tue, Jul 07, 2026 at 11:24:38AM +0000, Mostafa Saleh wrote:
> >
> > > The smmu_domain is only used for the tgsz_lg2, can’t we add that
> > > directly instead? Decoupling the invalidation form the domain would
> > > make it easier for KVM to re-use the code.
> >
> > Sure, done
> 
> I downloaded a newer version from your jgunthorpe repository, and
> found that arm_smmu_tlbi and arm_smmu_domain are using the data types
> unsigned int and u8 for tgsz_lg2, respectively. Can we align on a
> single data type?

Yeah I updated it to use u8 in the structs, but at least iommupt has
the general style to use unsigned int for lg2 type locals that I will
still follow there.

Thanks,
Jason



More information about the linux-arm-kernel mailing list