]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd/device: Add pasid_attach array to track per-PASID attach
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Mar 2025 17:19:31 +0000 (10:19 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Mar 2025 13:18:31 +0000 (10:18 -0300)
commitc0e301b2978d319d78ed332290989f3499ef9e63
tree3cdc60b2a95751561402486626edf58f04eb3145
parent831b40f8416cf393faf41b3ae2e877a73aa6baa3
iommufd/device: Add pasid_attach array to track per-PASID attach

PASIDs of PASID-capable device can be attached to hwpt separately, hence
a pasid array to track per-PASID attachment is necessary. The index
IOMMU_NO_PASID is used by the RID path. Hence drop the igroup->attach.

Link: https://patch.msgid.link/r/20250321171940.7213-10-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c
drivers/iommu/iommufd/iommufd_private.h