1
0
Fork 0

iommu/amd: Call domain_flush_complete() in update_domain()

[ Upstream commit f44a4d7e4f ]

The update_domain() function is expected to also inform the hardware
about domain changes. This needs a COMPLETION_WAIT command to be sent
to all IOMMUs which use the domain.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Qian Cai <cai@lca.pw>
Link: https://lore.kernel.org/r/20200504125413.16798-4-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
Joerg Roedel 2020-05-04 14:54:11 +02:00 committed by Greg Kroah-Hartman
parent e1efb9893b
commit e0bb3075f9
1 changed files with 1 additions and 0 deletions

View File

@ -2386,6 +2386,7 @@ static void update_domain(struct protection_domain *domain)
domain_flush_devices(domain);
domain_flush_tlb_pde(domain);
domain_flush_complete(domain);
}
static int dir2prot(enum dma_data_direction direction)