disp: msm: sde: add sde data to va minidumps
VA minidumps supports to add any allocated variable or data to minidumps. Add panic notifier and wrapper function to add sde data to minidump va. Add event log, register log, register dumps, debug bus and different sde variables and states info to minidump. Change-Id: If54da0b7067df17877e4da645d82f1705baa3f6d Signed-off-by: Andhavarapu Karthik <kartkart@codeaurora.org>
这个提交包含在:
@@ -9,6 +9,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/list.h>
|
||||
#include <soc/qcom/minidump.h>
|
||||
|
||||
/* select an uncommon hex value for the limiter */
|
||||
#define SDE_EVTLOG_DATA_LIMITER (0xC0DEBEEF)
|
||||
@@ -270,6 +271,15 @@ extern struct sde_dbg_reglog *sde_dbg_base_reglog;
|
||||
#define SDE_DBG_CTRL(...) sde_dbg_ctrl(__func__, ##__VA_ARGS__, \
|
||||
SDE_DBG_DUMP_DATA_LIMITER)
|
||||
|
||||
/**
|
||||
* sde_mini_dump_add_va_region - add required va memory region to minidump.
|
||||
* @size: size of the memory region to be added
|
||||
* @name: minidump partition name
|
||||
* @virt_addr: pointer to memory region
|
||||
* Returns: none
|
||||
*/
|
||||
void sde_mini_dump_add_va_region(const char *name, u32 size, void *virt_addr);
|
||||
|
||||
/**
|
||||
* sde_evtlog_init - allocate a new event log object
|
||||
* Returns: evtlog or -ERROR
|
||||
|
在新工单中引用
屏蔽一个用户