mirror of https://gitee.com/openkylin/linux.git
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
|
@ -2212,6 +2212,8 @@ static int attach_device(struct device *dev,
|
|||
*/
|
||||
domain_flush_tlb_pde(domain);
|
||||
|
||||
domain_flush_complete(domain);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue