msm: camera: common: Add camera minidump changes

Based on targets, in case of device crash, in place
of complete memory dump, mini dump can be extracted.
This commit adds changes for basic framework
to interact with base kernel for mini dump.
This commit also adds changes for ISP, CRM, SMMU and
Memory Manager.

CRs-Fixed: 2993116
Change-Id: I02620bd79ee2f84847381509a5eb030ffb1ca9d4
Signed-off-by: Gaurav Jindal <gjindal@codeaurora.org>
This commit is contained in:
Gaurav Jindal
2021-05-31 20:35:59 +05:30
committed by Gerrit - the friendly Code Review server
parent 4baa6ec428
commit d266ac8813
21 changed files with 1358 additions and 47 deletions

View File

@@ -104,6 +104,25 @@ struct cam_mem_table {
};
/**
* struct cam_mem_table_mini_dump
*
* @bufq: array of buffers
* @dbg_buf_idx: debug buffer index to get usecases info
* @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.
*/
struct cam_mem_table_mini_dump {
struct cam_mem_buf_queue bufq[CAM_MEM_BUFQ_MAX];
size_t dbg_buf_idx;
bool alloc_profile_enable;
bool force_cache_allocs;
bool need_shared_buffer_padding;
};
/**
* @brief: Allocates and maps buffer
*