]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/arm-smmu: Remove iommu_ops pgsize_bitmap
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 9 Jun 2025 20:41:26 +0000 (17:41 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Jun 2025 06:55:55 +0000 (08:55 +0200)
commit35145e069e82bd89282318465e3ed521c2c3e5fb
treea24f361e987d7784cc0532737489ed5d180ec3d0
parentb5dac93cb61df67750a5f0667e675877306d7ff3
iommu/arm-smmu: Remove iommu_ops pgsize_bitmap

The driver never reads this value, arm_smmu_init_domain_context() always
sets domain.pgsize_bitmap to smmu->pgsize_bitmap, the per-instance value.

Remove the ops version entirely, the related dead code and make
arm_smmu_ops const.

Since this driver does not yet finalize the domain under
arm_smmu_domain_alloc_paging() add a page size initialization to alloc so
the page size is still setup prior to attach.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/2-v2-68a2e1ba507c+1fb-iommu_rm_ops_pgsize_jgg@nvidia.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/arm/arm-smmu/arm-smmu.c