Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iommu/vt-d: Add IOMMU_HWPT_ALLOC_PASID support

Intel iommu driver just treats it as a nop since Intel VT-d does not have
special requirement on domains attached to either the PASID or RID of a
PASID-capable device.

Link: https://patch.msgid.link/r/20250321171940.7213-14-yi.l.liu@intel.com
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.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>

authored by

Yi Liu and committed by
Jason Gunthorpe
ce15c13e 4c3f4f43

+3 -2
+2 -1
drivers/iommu/intel/iommu.c
··· 3338 3338 bool first_stage; 3339 3339 3340 3340 if (flags & 3341 - (~(IOMMU_HWPT_ALLOC_NEST_PARENT | IOMMU_HWPT_ALLOC_DIRTY_TRACKING))) 3341 + (~(IOMMU_HWPT_ALLOC_NEST_PARENT | IOMMU_HWPT_ALLOC_DIRTY_TRACKING | 3342 + IOMMU_HWPT_ALLOC_PASID))) 3342 3343 return ERR_PTR(-EOPNOTSUPP); 3343 3344 if (nested_parent && !nested_supported(iommu)) 3344 3345 return ERR_PTR(-EOPNOTSUPP);
+1 -1
drivers/iommu/intel/nested.c
··· 198 198 struct dmar_domain *domain; 199 199 int ret; 200 200 201 - if (!nested_supported(iommu) || flags) 201 + if (!nested_supported(iommu) || flags & ~IOMMU_HWPT_ALLOC_PASID) 202 202 return ERR_PTR(-EOPNOTSUPP); 203 203 204 204 /* Must be nested domain */