Skip to content

Commit 1fa05c9

Browse files
TinaZhangZWjoergroedel
authored andcommitted
mm: Deprecate pasid field
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>
1 parent 092edad commit 1fa05c9

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

include/linux/mm_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,6 @@ struct mm_struct {
940940
struct work_struct async_put_work;
941941

942942
#ifdef CONFIG_IOMMU_MM_DATA
943-
u32 pasid;
944943
struct iommu_mm_data *iommu_mm;
945944
#endif
946945
#ifdef CONFIG_KSM

mm/init-mm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ struct mm_struct init_mm = {
4444
#endif
4545
.user_ns = &init_user_ns,
4646
.cpu_bitmap = CPU_BITS_NONE,
47-
#ifdef CONFIG_IOMMU_MM_DATA
48-
.pasid = IOMMU_PASID_INVALID,
49-
#endif
5047
INIT_MM_CONTEXT(init_mm)
5148
};
5249

0 commit comments

Comments
 (0)