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

Commit 421e8ed8 authored by Pavan Kumar Chilamkurthi's avatar Pavan Kumar Chilamkurthi Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: smmu: Use iommu best match algo for camera



Use best fit match algo for smmu map instead of first match
algo to avoid fragmentation in smmu virtual space.

CRs-Fixed: 2580128
Change-Id: I434e6e4396bc713e6e12e3da7ae4b78cc2da6a42
Signed-off-by: default avatarPavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
parent 38692ba9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3293,6 +3293,8 @@ static int cam_smmu_setup_cb(struct cam_context_bank_info *cb,
			goto end;
		}

		iommu_dma_enable_best_fit_algo(dev);

		if (cb->discard_iova_start)
			iommu_dma_reserve_iova(dev, cb->discard_iova_start,
				cb->discard_iova_len);