[PATCH v2 2/8] iommu/arm-smmu-v3: Move pgsize out of arm_smmu_inv
Nicolin Chen
nicolinc at nvidia.com
Mon Jul 6 20:57:22 PDT 2026
On Mon, Jul 06, 2026 at 01:26:39PM -0300, Jason Gunthorpe wrote:
> pgsize is a constant property of the domain, it is the base translation
> granule of the page table (4k, 16k, 64k) in log2.
>
> Store it to the struct arm_smmu_domain based on how the page table was created.
Checkpatch warns this for "> 75 chars".
> Add smmu_domain to the tlbi and just get tg from the domain.
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc at nvidia.com>
> diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
> index a364d847c22a92..2fc695817671fe 100644
> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
> @@ -734,7 +734,6 @@ struct arm_smmu_inv {
> u8 nsize_opcode;
> u32 id; /* ASID or VMID or SID */
> union {
> - size_t pgsize; /* ARM_SMMU_FEAT_RANGE_INV */
> u32 ssid; /* INV_TYPE_ATS */
> };
So, union has only "ssid" now. Should we unwrap it?
Nicolin
More information about the linux-arm-kernel
mailing list