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: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
Этот коммит содержится в:
@@ -3353,6 +3353,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);
|
||||
|
Ссылка в новой задаче
Block a user