msm: camera: memmgr: Add provision for heap selection
Currently, userland can only choose whether to allocate memory as cached/uncached if it's a protected buffer, ubwc_p buffer, etc. This change provides some more granularity in terms of heap selection. One could now force an allocation from the system heap or try a dedicated heap. The change also provides heap capability info to userland as part of the query caps call. CRs-Fixed: 3584481 Change-Id: Id4c92fd64d975f761e7dd4cecca8453dd09b039f Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Este commit está contenido en:

cometido por
Camera Software Integration

padre
1dd093a770
commit
594b59a2df
@@ -224,11 +224,13 @@ int cam_mem_mgr_cache_ops(struct cam_mem_cache_ops_cmd *cmd);
|
||||
int cam_mem_mgr_cpu_access_op(struct cam_mem_cpu_access_op *cmd);
|
||||
|
||||
/**
|
||||
* @brief: Check whether ubwc-p heap is supported
|
||||
* @brief: Provide all supported heap capabilities
|
||||
*
|
||||
* @return true if supported, false otherwise
|
||||
* @heap_mask: Update mask for all supported heaps
|
||||
*
|
||||
* @return Status of operation. Negative in case of error. Zero otherwise.
|
||||
*/
|
||||
bool cam_mem_mgr_ubwc_p_heap_supported(void);
|
||||
int cam_mem_mgr_check_for_supported_heaps(uint64_t *heap_mask);
|
||||
|
||||
/**
|
||||
* @brief: Initializes the memory manager
|
||||
|
Referencia en una nueva incidencia
Block a user