diff options
author | Will Deacon <will@kernel.org> | 2020-12-08 18:07:49 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-12-08 18:07:49 +0300 |
commit | a5f12de3ece88cddac27edf6618450f6c22906f1 (patch) | |
tree | 2778d7d5619377cbb8fe9e96ddcfc7ac51c3930f /drivers/iommu/intel/iommu.c | |
parent | 854623fdea9dc3ae8543a4d5d8448ebbaee61acc (diff) | |
parent | 2f7e8c553e98d6fcddeaf18aa90ea908e3f1418e (diff) | |
download | linux-a5f12de3ece88cddac27edf6618450f6c22906f1.tar.xz |
Merge branch 'for-next/iommu/svm' into for-next/iommu/core
More steps along the way to Shared Virtual {Addressing, Memory} support
for Arm's SMMUv3, including the addition of a helper library that can be
shared amongst other IOMMU implementations wishing to support this
feature.
* for-next/iommu/svm:
iommu/arm-smmu-v3: Hook up ATC invalidation to mm ops
iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind()
iommu/sva: Add PASID helpers
iommu/ioasid: Add ioasid references
Diffstat (limited to 'drivers/iommu/intel/iommu.c')
-rw-r--r-- | drivers/iommu/intel/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 83674e32e58b..1ceebe2cfa35 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -5191,7 +5191,7 @@ static void auxiliary_unlink_device(struct dmar_domain *domain, domain->auxd_refcnt--; if (!domain->auxd_refcnt && domain->default_pasid > 0) - ioasid_free(domain->default_pasid); + ioasid_put(domain->default_pasid); } static int aux_domain_add_dev(struct dmar_domain *domain, @@ -5252,7 +5252,7 @@ attach_failed: spin_unlock(&iommu->lock); spin_unlock_irqrestore(&device_domain_lock, flags); if (!domain->auxd_refcnt && domain->default_pasid > 0) - ioasid_free(domain->default_pasid); + ioasid_put(domain->default_pasid); return ret; } |