projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc44954
)
iommu/amd: Wait for completion of IOTLB flush in attach_device
author
Filippo Sironi
<sironi@amazon.de>
Tue, 10 Sep 2019 17:49:21 +0000
(19:49 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Tue, 24 Sep 2019 09:40:04 +0000
(11:40 +0200)
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>
drivers/iommu/amd_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index fda9923542c90e1377b738ef3209ac33e67509c6..7bdce3b10f3d4003a68a08478c2f25a20301a103 100644
(file)
--- 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;
}