diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-11-28 20:34:32 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-01-11 16:27:39 -0400 |
commit | b062007c63eb4452f1122384e86d402531fb1d52 (patch) | |
tree | db46969d11afe94250112f72f178d6dae3bfccaa /drivers/iommu/iommu.c | |
parent | bf210f793937a634bae6eda6a6d699c00b2b53d9 (diff) | |
download | lwn-b062007c63eb4452f1122384e86d402531fb1d52.tar.gz lwn-b062007c63eb4452f1122384e86d402531fb1d52.zip |
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.com
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r-- | drivers/iommu/iommu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 4c2199a493d8..834e6ecf3e51 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1914,10 +1914,8 @@ bool iommu_group_has_isolated_msi(struct iommu_group *group) bool ret = true; mutex_lock(&group->mutex); - list_for_each_entry(group_dev, &group->devices, list) { - ret &= msi_device_has_isolated_msi(group_dev->dev) || - device_iommu_capable(group_dev->dev, IOMMU_CAP_INTR_REMAP); - } + list_for_each_entry(group_dev, &group->devices, list) + ret &= msi_device_has_isolated_msi(group_dev->dev); mutex_unlock(&group->mutex); return ret; } |