diff options
| author | Lu Baolu <[email protected]> | 2024-04-24 07:16:42 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2024-04-26 09:57:47 +0000 |
| commit | deda9a7bf38fb9846ff3fb83179ca07437b1511c (patch) | |
| tree | 91660dec9e3ee8ee8487dcf47121e4a26814fbb4 /drivers/iommu/intel/iommu.c | |
| parent | iommu/vt-d: Use cache helpers in arch_invalidate_secondary_tlbs (diff) | |
| download | kernel-deda9a7bf38fb9846ff3fb83179ca07437b1511c.tar.gz kernel-deda9a7bf38fb9846ff3fb83179ca07437b1511c.zip | |
iommu/vt-d: Remove intel_svm_dev
The intel_svm_dev data structure used in the sva implementation for the
Intel IOMMU driver stores information about a device attached to an SVA
domain. It is a duplicate of dev_pasid_info that serves the same purpose.
Replace intel_svm_dev with dev_pasid_info and clean up the use of
intel_svm_dev.
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/iommu/intel/iommu.c')
| -rw-r--r-- | drivers/iommu/intel/iommu.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index b2bd96e7f03d..7631d00cc882 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -4387,11 +4387,8 @@ static void intel_iommu_remove_dev_pasid(struct device *dev, ioasid_t pasid) * notification. Before consolidating that code into iommu core, let * the intel sva code handle it. */ - if (domain->type == IOMMU_DOMAIN_SVA) { - intel_svm_remove_dev_pasid(dev, pasid); - cache_tag_unassign_domain(dmar_domain, dev, pasid); - goto out_tear_down; - } + if (domain->type == IOMMU_DOMAIN_SVA) + intel_svm_remove_dev_pasid(domain); spin_lock_irqsave(&dmar_domain->lock, flags); list_for_each_entry(curr, &dmar_domain->dev_pasids, link_domain) { |
