Skip to content

Commit d56c26a

Browse files
lyakhbardliao
authored andcommitted
ASoC: SOF: ipc4: add a command to start GDB
Add an IPC4 message type to start a firmware GDB debugging session. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 33e8c45 commit d56c26a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/sound/sof/ipc4/header.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ enum sof_ipc4_global_msg {
123123
/* Notification (FW to SW driver) */
124124
SOF_IPC4_GLB_NOTIFICATION,
125125

126-
/* 28 .. 31: RESERVED - do not use */
126+
/* 28 .. 30: RESERVED - do not use */
127127

128+
SOF_IPC4_GLB_ENTER_GDB = 31,
128129
SOF_IPC4_GLB_TYPE_LAST,
129130
};
130131

sound/soc/sof/ipc4.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ static const char * const ipc4_dbg_glb_msg_type[] = {
164164
DBG_IPC4_MSG_TYPE_ENTRY(GLB_LOAD_LIBRARY_PREPARE),
165165
DBG_IPC4_MSG_TYPE_ENTRY(GLB_INTERNAL_MESSAGE),
166166
DBG_IPC4_MSG_TYPE_ENTRY(GLB_NOTIFICATION),
167+
DBG_IPC4_MSG_TYPE_ENTRY(GLB_ENTER_GDB),
167168
};
168169

169170
#define DBG_IPC4_NOTIFICATION_TYPE_ENTRY(type) [SOF_IPC4_NOTIFY_##type] = #type

0 commit comments

Comments
 (0)