summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-05-04 14:54:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-27 17:46:35 +0200
commite0bb3075f91b0e47b0019ad64e86241e3abcd4f0 (patch)
treeaa281375bf35f93ff89bac0ffcb6f5cce6c74a89 /drivers
parente1efb9893bdd007f5791c59ee906df0dfb6c39e3 (diff)
downloadlinux-e0bb3075f91b0e47b0019ad64e86241e3abcd4f0.tar.gz
linux-e0bb3075f91b0e47b0019ad64e86241e3abcd4f0.tar.bz2
linux-e0bb3075f91b0e47b0019ad64e86241e3abcd4f0.zip
iommu/amd: Call domain_flush_complete() in update_domain()
[ Upstream commit f44a4d7e4f1cdef73c90b1dc749c4d8a7372a8eb ] 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/amd_iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index bc7771498342..32de8e7bb8b4 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -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)