From: Joerg Roedel Date: Mon, 4 May 2020 12:54:11 +0000 (+0200) Subject: iommu/amd: Call domain_flush_complete() in update_domain() X-Git-Tag: v5.10.7~2651^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f44a4d7e4f1cdef73c90b1dc749c4d8a7372a8eb;p=platform%2Fkernel%2Flinux-rpi.git iommu/amd: Call domain_flush_complete() in update_domain() 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 Tested-by: Qian Cai Link: https://lore.kernel.org/r/20200504125413.16798-4-joro@8bytes.org Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 68da484..d2499c8 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -2321,6 +2321,7 @@ static void update_domain(struct protection_domain *domain) domain_flush_devices(domain); domain_flush_tlb_pde(domain); + domain_flush_complete(domain); } int __init amd_iommu_init_api(void)