diff options
author | Filippo Sironi <sironi@amazon.de> | 2019-09-10 19:49:21 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-09-24 11:40:04 +0200 |
commit | 0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7 (patch) | |
tree | 75e0b14311b001521de787fdfa88b07f7f771b6e /drivers | |
parent | iommu/amd: Unmap all L7 PTEs when downgrading page-sizes (diff) | |
download | linux-0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7.tar.xz linux-0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7.zip |
iommu/amd: Wait for completion of IOTLB flush in attach_device
To make sure the domain tlb flush completes before the
function returns, explicitly wait for its completion.
Signed-off-by: Filippo Sironi <sironi@amazon.de>
Fixes: 42a49f965a8d ("amd-iommu: flush domain tlb when attaching a new device")
[joro: Added commit message and fixes tag]
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index fda9923542c9..7bdce3b10f3d 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -2212,6 +2212,8 @@ skip_ats_check: */ domain_flush_tlb_pde(domain); + domain_flush_complete(domain); + return ret; } |