From 8f78c7ecd67502246064b081f6a37b016d1e9bbd Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Tue, 1 Mar 2022 13:42:28 +0800 Subject: [PATCH] ipc4: invalidate dcache for host mailbox Fix a regression issue on windows. Need to invalidate dcache for host message or FW will get garbage data. Signed-off-by: Rander Wang --- src/ipc/ipc4/handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipc/ipc4/handler.c b/src/ipc/ipc4/handler.c index dcca0e7e0..e68e1fcbe 100644 --- a/src/ipc/ipc4/handler.c +++ b/src/ipc/ipc4/handler.c @@ -774,6 +774,7 @@ static int ipc4_module_process_dx(union ipc4_message_header *ipc4) return IPC4_INVALID_RESOURCE_ID; } + dcache_invalidate_region((void *)(MAILBOX_HOSTBOX_BASE), sizeof(dx_info)); memcpy_s(&dx_info, sizeof(dx_info), (const void *)MAILBOX_HOSTBOX_BASE, sizeof(dx_info)); /* check if core enable mask is valid */