mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
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: 42a49f965a
("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>
This commit is contained in:
parent
cc449541f2
commit
0b15e02f0c
1 changed files with 2 additions and 0 deletions
|
@ -2212,6 +2212,8 @@ skip_ats_check:
|
|||
*/
|
||||
domain_flush_tlb_pde(domain);
|
||||
|
||||
domain_flush_complete(domain);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue