2023-09-25 10:51:57

by Zhang, Tina

[permalink] [raw]
Subject: [PATCH v5 6/6] 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 <[email protected]>
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Tina Zhang <[email protected]>
---
include/linux/mm_types.h | 1 -
mm/init-mm.c | 3 ---
2 files changed, 4 deletions(-)

diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 9f4efed85f74..37f049c4b059 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -883,7 +883,6 @@ struct mm_struct {
struct work_struct async_put_work;

#ifdef CONFIG_IOMMU_SVA
- u32 pasid;
struct iommu_mm_data *iommu_mm;
#endif
#ifdef CONFIG_KSM
diff --git a/mm/init-mm.c b/mm/init-mm.c
index cfd367822cdd..24c809379274 100644
--- a/mm/init-mm.c
+++ b/mm/init-mm.c
@@ -44,9 +44,6 @@ struct mm_struct init_mm = {
#endif
.user_ns = &init_user_ns,
.cpu_bitmap = CPU_BITS_NONE,
-#ifdef CONFIG_IOMMU_SVA
- .pasid = IOMMU_PASID_INVALID,
-#endif
INIT_MM_CONTEXT(init_mm)
};

--
2.34.1


2023-10-05 18:50:39

by Jason Gunthorpe

[permalink] [raw]
Subject: Re: [PATCH v5 6/6] mm: Deprecate pasid field

On Mon, Sep 25, 2023 at 10:38:13AM +0800, Tina Zhang wrote:
> 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 <[email protected]>
> Reviewed-by: Vasant Hegde <[email protected]>
> Signed-off-by: Tina Zhang <[email protected]>
> ---
> include/linux/mm_types.h | 1 -
> mm/init-mm.c | 3 ---
> 2 files changed, 4 deletions(-)

Reviewed-by: Jason Gunthorpe <[email protected]>

Jason