Commit 0b15e02f authored by Filippo Sironi's avatar Filippo Sironi Committed by Joerg Roedel

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: default avatarFilippo Sironi <sironi@amazon.de>
Fixes: 42a49f96 ("amd-iommu: flush domain tlb when attaching a new device")
[joro: Added commit message and fixes tag]
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent cc449541
...@@ -2212,6 +2212,8 @@ static int attach_device(struct device *dev, ...@@ -2212,6 +2212,8 @@ static int attach_device(struct device *dev,
*/ */
domain_flush_tlb_pde(domain); domain_flush_tlb_pde(domain);
domain_flush_complete(domain);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment