[PATCH v2 2/8] iommu/arm-smmu-v3: Move pgsize out of arm_smmu_inv
Jason Gunthorpe
jgg at nvidia.com
Fri Jul 10 07:28:59 PDT 2026
On Thu, Jul 09, 2026 at 09:06:18PM -0700, Daniel Mentz wrote:
> On Mon, Jul 6, 2026 at 9:29 AM Jason Gunthorpe <jgg at nvidia.com> wrote:
> >
> > pgsize is a constant property of the domain, it is the base translation
> > granule of the page table (4k, 16k, 64k) in log2.
>
> > + u8 tgsz_lg2;
>
> In struct pt_iommu_armv8_cfg, this is called granule_lg2sz. Should we
> align on a common name?
Yeah let's use tgsz_lg2 everywhere, it is what the SMMU spec uses for
this value in the RIL at least.
Jason
More information about the linux-arm-kernel
mailing list