mm: Deprecate pasid field
authorTina Zhang <tina.zhang@intel.com>
Fri, 27 Oct 2023 00:05:25 +0000 (08:05 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:11:32 +0000 (10:11 +0100)
Drop the pasid field, as all the information needed for sva domain
management has been moved to the newly added iommu_mm field.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231027000525.1278806-7-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
include/linux/mm_types.h
mm/init-mm.c

index 0b4314fab4787f4c9c093100641cc76f0ac48625..ec71c91e210ba898b4d8cf0b31376452d7a1ce66 100644 (file)
@@ -940,7 +940,6 @@ struct mm_struct {
                struct work_struct async_put_work;
 
 #ifdef CONFIG_IOMMU_MM_DATA
-               u32 pasid;
                struct iommu_mm_data *iommu_mm;
 #endif
 #ifdef CONFIG_KSM
index c52dc2740a3de2e52a65328484864f04f11da407..24c809379274503ac4f261fe7cfdbab3cb1ed1e7 100644 (file)
@@ -44,9 +44,6 @@ struct mm_struct init_mm = {
 #endif
        .user_ns        = &init_user_ns,
        .cpu_bitmap     = CPU_BITS_NONE,
-#ifdef CONFIG_IOMMU_MM_DATA
-       .pasid          = IOMMU_PASID_INVALID,
-#endif
        INIT_MM_CONTEXT(init_mm)
 };