提交 dd936ba1 编写于 作者: F Filippo Sironi 提交者: Caspar Zhang

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

commit 0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7 upstream.

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: NWANG Siyuan <Siyuan.Wang@amd.com>
Acked-by: NCaspar Zhang <caspar@linux.alibaba.com>
上级 f88618c3
......@@ -2151,6 +2151,8 @@ static int attach_device(struct device *dev,
*/
domain_flush_tlb_pde(domain);
domain_flush_complete(domain);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册