Skip to content

Commit 3168969

Browse files
adamkondraciukdkalowsk
authored andcommitted
ipc: ipc_service: Parametrize workqueue stack size
Add `IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE` config and parametrize its value depending on the optimization level. Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
1 parent c2fd84f commit 3168969

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

subsys/ipc/ipc_service/backends/Kconfig.icbmsg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ config IPC_SERVICE_BACKEND_ICBMSG_NUM_EP
2323
backend. The number of endpoints are applied to all the instances,
2424
so this value should be maximum number among all the instances.
2525

26+
config IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE
27+
int "Workqueue stack size"
28+
default 1024 if NO_OPTIMIZATIONS
29+
default 512
30+
help
31+
Workqueue stack size for bounding processing
32+
(this configuration is not optimized).
33+
2634
module = IPC_SERVICE_BACKEND_ICBMSG
2735
module-str = ICMSG backend with separate buffers
2836
module-help = Sets log level for ICMsg backend with buffers

subsys/ipc/ipc_service/backends/ipc_icbmsg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ LOG_MODULE_REGISTER(ipc_icbmsg,
118118
#define FLAG_EPT_COUNT_MASK 0xFFFF
119119

120120
/** Workqueue stack size for bounding processing (this configuration is not optimized). */
121-
#define EP_BOUND_WORK_Q_STACK_SIZE (512U)
121+
#define EP_BOUND_WORK_Q_STACK_SIZE \
122+
(CONFIG_IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE)
122123

123124
/** Workqueue priority for bounding processing. */
124125
#define EP_BOUND_WORK_Q_PRIORITY (CONFIG_SYSTEM_WORKQUEUE_PRIORITY)

0 commit comments

Comments
 (0)