msm: camera: smmu: Add support for Camera Security Framework 2.5

Query the CSF version in use from SMMU proxy driver and
use noncontiguous system heap in case of  CSF 2.5
instead of the contiguous secure display heap.
In addition, do not lend the buffer in CSF 2.5.

CRs-Fixed: 3424427
Change-Id: I3d5f2402034dd455c304d5726eb9aa8ee2080dcc
Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
Esse commit está contido em:
Vijay Kumar Tumati
2023-01-06 13:51:39 -08:00
commit de Camera Software Integration
commit 6dc4887fd9
8 arquivos alterados com 139 adições e 10 exclusões

Ver arquivo

@@ -89,6 +89,7 @@ struct cam_mem_buf_queue {
* @force_cache_allocs: Force all internal buffer allocations with cache
* @need_shared_buffer_padding: Whether padding is needed for shared buffer
* allocations.
* @csf_version: Camera security framework version
* @system_heap: Handle to system heap
* @system_uncached_heap: Handle to system uncached heap
* @camera_heap: Handle to camera heap
@@ -104,6 +105,7 @@ struct cam_mem_table {
size_t dbg_buf_idx;
bool force_cache_allocs;
bool need_shared_buffer_padding;
struct cam_csf_version csf_version;
#if IS_REACHABLE(CONFIG_DMABUF_HEAPS)
struct dma_heap *system_heap;
struct dma_heap *system_uncached_heap;