Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ca0be7a authored by Prakash Gupta's avatar Prakash Gupta
Browse files

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: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 0afd6cbe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}