This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 41eb286a464 drivers/rpmsg: default the work queue stack to 8192 on 
64-bit
41eb286a464 is described below

commit 41eb286a464c10b93ed46d6604f5c8231a0a67e3
Author: anpeiyun <[email protected]>
AuthorDate: Thu Nov 19 11:15:33 2026 +0800

    drivers/rpmsg: default the work queue stack to 8192 on 64-bit
    
    The rpmsg rx work queue ran out of stack on a 64-bit target, with 3488
    of the 3632 usable bytes of a 4096-byte stack in use: a 64-bit frame is
    wider for the same call chain. The default is DEFAULT_TASK_STACKSIZE,
    2048 unless the board raises it, which leaves even less.
    
    Default RPMSG_WQUEUE_STACKSIZE to 8192 on ARCH_64BIT when
    DEFAULT_TASK_STACKSIZE is smaller; a board that already gives tasks
    more keeps that. RPMSG_RECURSIVE_LIMIT follows the stack size.
    
    Signed-off-by: anpeiyun <[email protected]>
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rpmsg/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rpmsg/Kconfig b/drivers/rpmsg/Kconfig
index a85f5b52b50..9739eef3573 100644
--- a/drivers/rpmsg/Kconfig
+++ b/drivers/rpmsg/Kconfig
@@ -57,6 +57,7 @@ config RPMSG_WQUEUE_PRIORITY
 
 config RPMSG_WQUEUE_STACKSIZE
        int "rpmsg work queue stack size"
+       default 8192 if ARCH_64BIT && DEFAULT_TASK_STACKSIZE < 8192
        default DEFAULT_TASK_STACKSIZE
 
 config RPMSG_WQUEUE_NUMBER

Reply via email to