Commit b062007c authored by Jason Gunthorpe's avatar Jason Gunthorpe

iommu: Remove IOMMU_CAP_INTR_REMAP

No iommu driver implements this any more, get rid of it.

Link: https://lore.kernel.org/r/9-v3-3313bb5dd3a3+10f11-secure_msi_jgg@nvidia.comTested-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent bf210f79
...@@ -1914,10 +1914,8 @@ bool iommu_group_has_isolated_msi(struct iommu_group *group) ...@@ -1914,10 +1914,8 @@ bool iommu_group_has_isolated_msi(struct iommu_group *group)
bool ret = true; bool ret = true;
mutex_lock(&group->mutex); mutex_lock(&group->mutex);
list_for_each_entry(group_dev, &group->devices, list) { list_for_each_entry(group_dev, &group->devices, list)
ret &= msi_device_has_isolated_msi(group_dev->dev) || ret &= msi_device_has_isolated_msi(group_dev->dev);
device_iommu_capable(group_dev->dev, IOMMU_CAP_INTR_REMAP);
}
mutex_unlock(&group->mutex); mutex_unlock(&group->mutex);
return ret; return ret;
} }
......
...@@ -120,7 +120,6 @@ static inline bool iommu_is_dma_domain(struct iommu_domain *domain) ...@@ -120,7 +120,6 @@ static inline bool iommu_is_dma_domain(struct iommu_domain *domain)
enum iommu_cap { enum iommu_cap {
IOMMU_CAP_CACHE_COHERENCY, /* IOMMU_CACHE is supported */ IOMMU_CAP_CACHE_COHERENCY, /* IOMMU_CACHE is supported */
IOMMU_CAP_INTR_REMAP, /* IOMMU supports interrupt isolation */
IOMMU_CAP_NOEXEC, /* IOMMU_NOEXEC flag */ IOMMU_CAP_NOEXEC, /* IOMMU_NOEXEC flag */
IOMMU_CAP_PRE_BOOT_PROTECTION, /* Firmware says it used the IOMMU for IOMMU_CAP_PRE_BOOT_PROTECTION, /* Firmware says it used the IOMMU for
DMA protection and we should too */ DMA protection and we should too */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment