]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Mar 2025 18:01:42 +0000 (11:01 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Mar 2025 13:07:23 +0000 (10:07 -0300)
commit803f97298e7de9242eb677a1351dcafbbcc9117e
tree1a86d162a187ded29fb6f84916990e884fb760d8
parentad744ed5dd8b70e9256fc1ff18aaaffeedf5f21e
iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability

PASID usage requires PASID support in both device and IOMMU. Since the
iommu drivers always enable the PASID capability for the device if it
is supported, this extends the IOMMU_GET_HW_INFO to report the PASID
capability to userspace. Also, enhances the selftest accordingly.

Link: https://patch.msgid.link/r/20250321180143.8468-5-yi.l.liu@intel.com
Cc: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org> #aarch64 platform
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c
drivers/pci/ats.c
include/linux/pci-ats.h
include/uapi/linux/iommufd.h