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 <guptap@codeaurora.org>
This commit is contained in:
Prakash Gupta 2020-08-18 15:56:24 +05:30
parent 0afd6cbeae
commit 4ca0be7a2c

View File

@ -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;
}