Commit 0ddfa755 authored by Filippo Sironi's avatar Filippo Sironi Committed by Greg Kroah-Hartman

iommu/amd: Wait for completion of IOTLB flush in attach_device

[ Upstream commit 0b15e02f ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7e5a18b3
...@@ -2153,6 +2153,8 @@ static int attach_device(struct device *dev, ...@@ -2153,6 +2153,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