소스 검색

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 <[email protected]>
Pavan Kumar Chilamkurthi 5 년 전
부모
커밋
5b396d1411
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      drivers/cam_smmu/cam_smmu_api.c

+ 2 - 0
drivers/cam_smmu/cam_smmu_api.c

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