From 4ca0be7a2c9265b00ecc205cec786a0f507d1ff5 Mon Sep 17 00:00:00 2001 From: Prakash Gupta Date: Tue, 18 Aug 2020 15:56:24 +0530 Subject: [PATCH] iommu: skip iommu_tlb_sync in iommu_unmap() Downstream arm-smmu impl, perform SYNC as part of unmap(). This is done under arm_smmu_tlb_inv_context_s1. This double the sync operation. This impacts the unmap time, remove this duplicate sync operation. Change-Id: Ic98fc04a8102fe3a0b79e52b33daabf94732fcbf Signed-off-by: Prakash Gupta --- drivers/iommu/iommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 2193417f39d9..470a364cd452 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -2030,7 +2030,6 @@ size_t iommu_unmap(struct iommu_domain *domain, iommu_iotlb_gather_init(&iotlb_gather); ret = __iommu_unmap(domain, iova, size, &iotlb_gather); - iommu_tlb_sync(domain, &iotlb_gather); return ret; }