]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iommu: Remove ops->pgsize_bitmap
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 9 Jun 2025 20:41:31 +0000 (17:41 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Jun 2025 15:34:11 +0000 (17:34 +0200)
No driver uses it now, remove the core code.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/7-v2-68a2e1ba507c+1fb-iommu_rm_ops_pgsize_jgg@nvidia.com
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c
include/linux/iommu.h

index a4b606c591da66a7525a3879ff699364a152946a..060ebe330ee163918da95dfdbb2d006efa819571 100644 (file)
@@ -2002,13 +2002,6 @@ static void iommu_domain_init(struct iommu_domain *domain, unsigned int type,
        domain->owner = ops;
        if (!domain->ops)
                domain->ops = ops->default_domain_ops;
-
-       /*
-        * If not already set, assume all sizes by default; the driver
-        * may override this later
-        */
-       if (!domain->pgsize_bitmap)
-               domain->pgsize_bitmap = ops->pgsize_bitmap;
 }
 
 static struct iommu_domain *
index 1567328079945f04a9cb0d319d0c3e324f545636..7073be1d88415b3f658d846c2a0891f71c07a85d 100644 (file)
@@ -604,7 +604,6 @@ iommu_copy_struct_from_full_user_array(void *kdst, size_t kdst_entry_size,
  *                It is required to call iommufd_viommu_alloc() helper for
  *                a bundled allocation of the core and the driver structures,
  *                using the given @ictx pointer.
- * @pgsize_bitmap: bitmap of all possible supported page sizes
  * @owner: Driver module providing these ops
  * @identity_domain: An always available, always attachable identity
  *                   translation.
@@ -659,7 +658,6 @@ struct iommu_ops {
                struct iommufd_ctx *ictx, unsigned int viommu_type);
 
        const struct iommu_domain_ops *default_domain_ops;
-       unsigned long pgsize_bitmap;
        struct module *owner;
        struct iommu_domain *identity_domain;
        struct iommu_domain *blocked_domain;