Skip to content

Commit

Permalink
IPC: Increase SOF_IPC_MSG_MAX_SIZE for testbench and unit test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu committed Aug 23, 2024
1 parent 1009ba7 commit 0860072
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/ipc/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0860072

Please sign in to comment.