Skip to content

Commit

Permalink
iommu/amd: Finish TLB flush in amd_iommu_unmap()
Browse files Browse the repository at this point in the history
The function only sends the flush command to the IOMMU(s),
but does not wait for its completion when it returns. Fix
that.

Fixes: 601367d ('x86/amd-iommu: Remove iommu_flush_domain function')
Cc: stable@vger.kernel.org # >= 2.6.33
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Oct 13, 2017
1 parent 9d25e3c commit ce76353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
@@ -3048,6 +3048,7 @@ static size_t amd_iommu_unmap(struct iommu_domain *dom, unsigned long iova,
mutex_unlock(&domain->api_lock);

domain_flush_tlb_pde(domain);
domain_flush_complete(domain);

return unmap_size;
}

0 comments on commit ce76353

Please sign in to comment.