Skip to content

Commit

Permalink
[nrf fromlist] ipc: ipc_service: Parametrize workqueue stack size
Browse files Browse the repository at this point in the history
Add `IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE` config
and parametrize its value depending on the optimization level.

Upstream PR #: 86103

Signed-off-by: Adam Kondraciuk <[email protected]>
  • Loading branch information
adamkondraciuk committed Feb 21, 2025
1 parent 47cad3b commit 6feb5c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions subsys/ipc/ipc_service/backends/Kconfig.icbmsg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ config IPC_SERVICE_BACKEND_ICBMSG_NUM_EP
backend. The number of endpoints are applied to all the instances,
so this value should be maximum number among all the instances.

config IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE
int "Workqueue stack size"
default 1024 if NO_OPTIMIZATIONS
default 512
help
Workqueue stack size for bounding processing
(this configuration is not optimized).

module = IPC_SERVICE_BACKEND_ICBMSG
module-str = ICMSG backend with separate buffers
module-help = Sets log level for ICMsg backend with buffers
Expand Down
3 changes: 2 additions & 1 deletion subsys/ipc/ipc_service/backends/ipc_icbmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ LOG_MODULE_REGISTER(ipc_icbmsg,
#define FLAG_EPT_COUNT_MASK 0xFFFF

/** Workqueue stack size for bounding processing (this configuration is not optimized). */
#define EP_BOUND_WORK_Q_STACK_SIZE (512U)
#define EP_BOUND_WORK_Q_STACK_SIZE \
(CONFIG_IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE)

/** Workqueue priority for bounding processing. */
#define EP_BOUND_WORK_Q_PRIORITY (CONFIG_SYSTEM_WORKQUEUE_PRIORITY)
Expand Down

0 comments on commit 6feb5c1

Please sign in to comment.