msm: eva: merged tip from eva-kernel.lnx.1.0
merged tip source code from eva-kernel.lnx.1.0, and verify the promotion flow. Change-Id: I031508fd8a23995a166506f3d190e5e228eb13c2 Signed-off-by: Yu SI <ysi@codeaurora.org>
This commit is contained in:
@@ -8,23 +8,19 @@
|
||||
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <soc/qcom/minidump.h>
|
||||
#include "cvp_comm_def.h"
|
||||
|
||||
enum cvp_dump_type {
|
||||
CVP_QUEUE_DUMP,
|
||||
CVP_DBG_DUMP,
|
||||
CVP_MAX_DUMP,
|
||||
};
|
||||
|
||||
#define MAX_REGION_NAME_LEN 32
|
||||
#define EVAFW_IMAGE_SIZE 7*1024*1024
|
||||
|
||||
extern struct list_head head_node_hfi_queue;
|
||||
extern struct list_head head_node_dbg_struct;
|
||||
extern struct notifier_block eva_hfiq_list_notif_blk;
|
||||
extern struct notifier_block eva_struct_list_notif_blk;
|
||||
|
||||
/* notifier handler function for list of eva hfi queues */
|
||||
int eva_hfiq_list_notif_handler(struct notifier_block *this,
|
||||
unsigned long event, void *ptr);
|
||||
|
||||
/* notifier handler function for list of eva global structures */
|
||||
int eva_struct_list_notif_handler(struct notifier_block *this,
|
||||
unsigned long event, void *ptr);
|
||||
#ifdef CVP_MINIDUMP_ENABLED
|
||||
#include <soc/qcom/minidump.h>
|
||||
|
||||
/*
|
||||
* wrapper for static minidump
|
||||
@@ -39,14 +35,14 @@ int md_eva_dump(const char* name, u64 virt, u64 phys, u64 size);
|
||||
/*
|
||||
* Fucntion to add dump region to queue
|
||||
|
||||
* @list_head_node: Head node of the list which needs to be updated
|
||||
* @type: Type of the list node which needs to be updated
|
||||
* @buff_va: Virtual address of the buffer which needs to be dumped
|
||||
* @buff_size: Size of the buffer which needs to be dumped
|
||||
* @region_name: Dump will be collected with this name
|
||||
* @copy: Flag to indicate if the buffer data needs to be copied
|
||||
* to the intermidiate buffer allocated by kzmalloc.
|
||||
*/
|
||||
void add_va_node_to_list(void *list_head_node, void *buff_va,
|
||||
void add_va_node_to_list(enum cvp_dump_type type, void *buff_va,
|
||||
u32 buff_size, const char *region_name, bool copy);
|
||||
|
||||
/*
|
||||
@@ -93,5 +89,36 @@ struct eva_va_md_queue
|
||||
char region_name[MAX_REGION_NAME_LEN];
|
||||
bool copy;
|
||||
};
|
||||
#else
|
||||
static inline int md_eva_dump(const char* name, u64 virt, u64 phys, u64 size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
static inline void add_va_node_to_list(enum cvp_dump_type type, void *buff_va,
|
||||
u32 buff_size, const char *region_name, bool copy)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void cvp_va_md_register(char *name, void* notf_blk_ptr)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void cvp_register_va_md_region(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void cvp_free_va_md_list(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void add_hfi_queue_to_va_md_list(void *device)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void add_queue_header_to_va_md_list(void *device)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* End of CVP_MINIDUMP_ENABLED */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user