No iommu driver implements this any more, get rid of it. Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> --- drivers/iommu/iommufd/device.c | 3 +-- drivers/vfio/vfio_iommu_type1.c | 4 +--- include/linux/iommu.h | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/iommu/iommufd/device.c b/drivers/iommu/iommufd/device.c index 13ad737d50b18c..76a658bf9baa9c 100644 --- a/drivers/iommu/iommufd/device.c +++ b/drivers/iommu/iommufd/device.c @@ -169,8 +169,7 @@ static int iommufd_device_setup_msi(struct iommufd_device *idev, * operation from the device (eg a simple DMA) cannot trigger an * interrupt outside this iommufd context. */ - if (!device_iommu_capable(idev->dev, IOMMU_CAP_INTR_REMAP) && - !msi_device_has_secure_msi(idev->dev)) { + if (!msi_device_has_secure_msi(idev->dev)) { if (!allow_unsafe_interrupts) return -EPERM; diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index a954b58d606766..380297334842cf 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c @@ -2164,9 +2164,7 @@ static int vfio_iommu_device_secure_msi(struct device *dev, void *data) { bool *secure_msi = data; - if (msi_device_has_secure_msi(dev)) - return 0; - *secure_msi &= device_iommu_capable(dev, IOMMU_CAP_INTR_REMAP); + *secure_msi &= msi_device_has_secure_msi(dev); return 0; } diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 1690c334e51631..0075b110d17998 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -120,7 +120,6 @@ static inline bool iommu_is_dma_domain(struct iommu_domain *domain) enum iommu_cap { IOMMU_CAP_CACHE_COHERENCY, /* IOMMU_CACHE is supported */ - IOMMU_CAP_INTR_REMAP, /* IOMMU supports interrupt isolation */ IOMMU_CAP_NOEXEC, /* IOMMU_NOEXEC flag */ IOMMU_CAP_PRE_BOOT_PROTECTION, /* Firmware says it used the IOMMU for DMA protection and we should too */ -- 2.38.1