From 0860072297154e55c0d684665e5198c6d40bb12d Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 23 Aug 2024 17:17:07 +0300 Subject: [PATCH] IPC: Increase SOF_IPC_MSG_MAX_SIZE for testbench and unit test The testbench and unit tests use a simplified simulated IPC that currently doesn't support messages split to multiple parts. As workaround to unblock other SOF development the size is increased from 384 bytes to 8192 bytes. This allows run of current test set with scripts/host-testbench.sh that is also used in SOF CI. The change can be reverted after the capability is added to testbench. Signed-off-by: Seppo Ingalsuo --- src/include/ipc/header.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/ipc/header.h b/src/include/ipc/header.h index 978e1d2080fc..d8d030f17216 100644 --- a/src/include/ipc/header.h +++ b/src/include/ipc/header.h @@ -331,6 +331,8 @@ struct ipc_cmd_hdr; /** Maximum message size for mailbox Tx/Rx */ #if CONFIG_IPC_MAJOR_4 #define SOF_IPC_MSG_MAX_SIZE 0x1000 +#elif CONFIG_LIBRARY_STATIC || UNIT_TEST +#define SOF_IPC_MSG_MAX_SIZE 0x2000 #else #define SOF_IPC_MSG_MAX_SIZE 384 #endif