summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorFilippo Sironi <sironi@amazon.de>2019-09-10 19:49:21 +0200
committerJoerg Roedel <jroedel@suse.de>2019-09-24 11:40:04 +0200
commit0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7 (patch)
tree75e0b14311b001521de787fdfa88b07f7f771b6e /drivers/iommu
parentcc449541f2a8a646ad5ac45cb1c7b59c3ed6b310 (diff)
downloadblackbird-op-linux-0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7.tar.gz
blackbird-op-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/iommu')
-rw-r--r--drivers/iommu/amd_iommu.c2
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;
}
OpenPOWER on IntegriCloud