[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1509571600-4858-4-git-send-email-w@1wt.eu>
Date: Wed, 1 Nov 2017 22:25:54 +0100
From: Willy Tarreau <w@....eu>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
linux@...ck-us.net
Cc: Joerg Roedel <jroedel@...e.de>, Willy Tarreau <w@....eu>
Subject: [PATCH 3.10 053/139] iommu/amd: Finish TLB flush in amd_iommu_unmap()
From: Joerg Roedel <jroedel@...e.de>
commit ce76353f169a6471542d999baf3d29b121dce9c0 upstream.
The function only sends the flush command to the IOMMU(s),
but does not wait for its completion when it returns. Fix
that.
Fixes: 601367d76bd1 ('x86/amd-iommu: Remove iommu_flush_domain function')
Cc: stable@...r.kernel.org
Signed-off-by: Joerg Roedel <jroedel@...e.de>
Signed-off-by: Willy Tarreau <w@....eu>
---
drivers/iommu/amd_iommu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 0e7cd14..88ba964 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3402,6 +3402,7 @@ static size_t amd_iommu_unmap(struct iommu_domain *dom, unsigned long iova,
mutex_unlock(&domain->api_lock);
domain_flush_tlb_pde(domain);
+ domain_flush_complete(domain);
return unmap_size;
}
--
2.8.0.rc2.1.gbe9624a
Powered by blists - more mailing lists