ipc4: setdx: skip sending ipc response

When SetDx message shut down primary core, response to this IPC will be
send during power down procedure. It's done to minimize the chances of
the host shutting down power before the core is ready.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
Tomasz Leman 2022-04-07 11:59:59 +02:00 committed by Liam Girdwood
parent 475e09f17d
commit 9b3715fc16
1 changed files with 6 additions and 0 deletions

View File

@ -1002,6 +1002,12 @@ void ipc_cmd(ipc_cmd_hdr *_hdr)
/* FW sends a ipc message to host if request bit is set*/
if (in->r.rsp == SOF_IPC4_MESSAGE_DIR_MSG_REQUEST) {
/**
* If FW is on the path to D3 on primary core,
* IPC response will be send during power down procedure.
*/
if (ipc_get()->pm_prepare_D3 && in->r.type == SOF_IPC4_MOD_SET_DX)
return;
char *data = ipc_get()->comp_data;
struct ipc4_message_reply reply;