Skip to content

Commit 050c4bb

Browse files
joergroedelgregkh
authored andcommitted
iommu/amd: Finish TLB flush in amd_iommu_unmap()
commit ce76353f169a6471542d999baf3d29b121dce9c0 upstream. 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') Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent eb7f316 commit 050c4bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/iommu/amd_iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,7 @@ static size_t amd_iommu_unmap(struct iommu_domain *dom, unsigned long iova,
30963096
mutex_unlock(&domain->api_lock);
30973097

30983098
domain_flush_tlb_pde(domain);
3099+
domain_flush_complete(domain);
30993100

31003101
return unmap_size;
31013102
}

0 commit comments

Comments
 (0)