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>
This commit is contained in:
Adam Kondraciuk 2025-02-20 16:17:38 +01:00 committed by Dan Kalowsky
commit 31689690c9
2 changed files with 10 additions and 1 deletions

View file

@ -23,6 +23,14 @@ config IPC_SERVICE_BACKEND_ICBMSG_NUM_EP
backend. The number of endpoints are applied to all the instances, backend. The number of endpoints are applied to all the instances,
so this value should be maximum number among 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 = IPC_SERVICE_BACKEND_ICBMSG
module-str = ICMSG backend with separate buffers module-str = ICMSG backend with separate buffers
module-help = Sets log level for ICMsg backend with buffers module-help = Sets log level for ICMsg backend with buffers

View file

@ -118,7 +118,8 @@ LOG_MODULE_REGISTER(ipc_icbmsg,
#define FLAG_EPT_COUNT_MASK 0xFFFF #define FLAG_EPT_COUNT_MASK 0xFFFF
/** Workqueue stack size for bounding processing (this configuration is not optimized). */ /** 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. */ /** Workqueue priority for bounding processing. */
#define EP_BOUND_WORK_Q_PRIORITY (CONFIG_SYSTEM_WORKQUEUE_PRIORITY) #define EP_BOUND_WORK_Q_PRIORITY (CONFIG_SYSTEM_WORKQUEUE_PRIORITY)