Re: [PATCH v6 2/7] iommu/sva: Move PASID helpers to sva code

From: Jason Gunthorpe
Date: Mon Mar 20 2023 - 11:10:50 EST


On Mon, Mar 13, 2023 at 01:41:53PM -0700, Jacob Pan wrote:
> Preparing to remove IOASID infrastructure, PASID management will be
> under SVA code. Decouple mm code from IOASID.
>
> Signed-off-by: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
> ---
> v6:
> - put helpers under iommu.h instead of iommu-helper.h
> v5:
> - move definition of helpers to iommu code to be consistent with
> declarations. (Kevin)
> - fix patch partitioning bug (Baolu)
> v4:
> - delete and open code mm_set_pasid
> - keep mm_init_pasid() as inline for fork performance
> ---
> drivers/iommu/iommu-sva.c | 10 +++++++++-
> include/linux/ioasid.h | 6 +-----
> include/linux/iommu.h | 14 +++++++++++++-
> include/linux/sched/mm.h | 26 --------------------------
> kernel/fork.c | 3 +++
> 5 files changed, 26 insertions(+), 33 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason