summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBhalchandra Gajare <gajare@codeaurora.org>2016-09-21 14:36:20 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-04 11:06:42 -0700
commitaaa95b0cb5fe4609ac98b1bfc9ae398946f2d40c (patch)
tree59637c0367403afa527b2c57ddaa56d2193748c1 /include
parent1e2d8b213276d3f4bfd05cbf2b97b53160474561 (diff)
ASoC: wcd-dsp-mgr: add support for collecting memory dumps
The codec driver is notified through interrupt whenever the DSP in codec is unresponsive/crashed. In such cases, collecting dumps of the codec memory is useful in debugging the issues. Change adds support in the wcd dsp manager driver to collect the memory dumps upon notification of error interrupt. Change-Id: Ib91cd4fc1476ee1a9ec448cde1a083070443f726 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/wcd-dsp-mgr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sound/wcd-dsp-mgr.h b/include/sound/wcd-dsp-mgr.h
index 39a763be26cf..f341f2f87a7a 100644
--- a/include/sound/wcd-dsp-mgr.h
+++ b/include/sound/wcd-dsp-mgr.h
@@ -44,6 +44,8 @@ enum wdsp_event_type {
WDSP_EVENT_POST_DLOAD_DATA,
WDSP_EVENT_DLOAD_FAILED,
+ WDSP_EVENT_READ_SECTION,
+
/* DSP boot related */
WDSP_EVENT_PRE_BOOTUP,
WDSP_EVENT_DO_BOOT,
@@ -62,6 +64,7 @@ enum wdsp_event_type {
enum wdsp_intr {
WDSP_IPC1_INTR,
+ WDSP_ERR_INTR,
};
/*
@@ -86,6 +89,12 @@ struct wdsp_img_section {
u8 *data;
};
+struct wdsp_err_intr_arg {
+ bool mem_dumps_enabled;
+ u32 remote_start_addr;
+ size_t dump_size;
+};
+
/*
* wdsp_ops: ops/function callbacks for manager driver
* @register_cmpnt_ops: components will use this to register