msm: camera: memmgr: Add 4K padding for shared buffers
Due LX7 cache requirement, buffers need 4K padding at the end. Allocate accordingly, this is hidden from user mode driver and umd never uses this extra 4K memory. CRs-Fixed: 2722486 Change-Id: I3b327ab3615eee30d17c95e23703024ff7446648 Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org> Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:

committed by
Karthik Anantha Ram

父節點
131c340861
當前提交
6f4df6ad50
@@ -74,6 +74,13 @@ struct cam_mem_buf_queue {
|
||||
* @alloc_profile_enable: Whether to enable alloc profiling
|
||||
* @dbg_buf_idx: debug buffer index to get usecases info
|
||||
* @force_cache_allocs: Force all internal buffer allocations with cache
|
||||
* @need_shared_buffer_padding: Whether padding is needed for shared buffer
|
||||
* allocations.
|
||||
* @system_heap: Handle to system heap
|
||||
* @system_uncached_heap: Handle to system uncached heap
|
||||
* @camera_heap: Handle to camera heap
|
||||
* @camera_uncached_heap: Handle to camera uncached heap
|
||||
* @secure_display_heap: Handle to secure display heap
|
||||
*/
|
||||
struct cam_mem_table {
|
||||
struct mutex m_lock;
|
||||
@@ -84,6 +91,7 @@ struct cam_mem_table {
|
||||
bool alloc_profile_enable;
|
||||
size_t dbg_buf_idx;
|
||||
bool force_cache_allocs;
|
||||
bool need_shared_buffer_padding;
|
||||
#if IS_REACHABLE(CONFIG_DMABUF_HEAPS)
|
||||
struct dma_heap *system_heap;
|
||||
struct dma_heap *system_uncached_heap;
|
||||
|
Reference in New Issue
Block a user