Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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: 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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2153,6 +2153,8 @@ static int attach_device(struct device *dev,
	 */
	domain_flush_tlb_pde(domain);

	domain_flush_complete(domain);

	return ret;
}