msm: camera: icp: Optimize FW uncached region for ICP
Allocate memory based on what is configured to FW. Avoid hardcoded allocations, thereby reducing the memory footprint. The change also updates size check for a SMMU mapping, if the size of the buffer is beyond the assigned va range fail the mapping. CRs-Fixed: 3477543 Change-Id: I3c2e262f57cdfdbd51255679b2405d855d7d5353 Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
这个提交包含在:

提交者
Camera Software Integration

父节点
d56214d30d
当前提交
6d25986b9f
@@ -928,7 +928,7 @@ int cam_hfi_init(int client_handle, struct hfi_mem_info *hfi_mem,
|
||||
qtbl_hdr = &qtbl->q_tbl_hdr;
|
||||
qtbl_hdr->qtbl_version = 0xFFFFFFFF;
|
||||
qtbl_hdr->qtbl_size = sizeof(struct hfi_qtbl);
|
||||
qtbl_hdr->qtbl_qhdr0_offset = sizeof(struct hfi_qtbl_hdr);
|
||||
qtbl_hdr->qtbl_qhdr0_offset = offsetof(struct hfi_qtbl, q_hdr);
|
||||
qtbl_hdr->qtbl_qhdr_size = sizeof(struct hfi_q_hdr);
|
||||
qtbl_hdr->qtbl_num_q = ICP_HFI_NUMBER_OF_QS;
|
||||
qtbl_hdr->qtbl_num_active_q = ICP_HFI_NUMBER_OF_QS;
|
||||
|
在新工单中引用
屏蔽一个用户