提交 2b4e8416 编写于 作者: F Filippo Sironi 提交者: Yang Yingliang

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

[ Upstream commit 0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7 ]

To make sure the domain tlb flush completes before the
function returns, explicitly wait for its completion.
Signed-off-by: NFilippo 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: NJoerg Roedel <jroedel@suse.de>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 86b2c831
...@@ -2137,6 +2137,8 @@ static int attach_device(struct device *dev, ...@@ -2137,6 +2137,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册