Repository navigation
Commit 2ae6856
drivers/rpmsg: tune the recursion limit for stack size and sim
RPMSG_RECURSIVE_LIMIT grows by one level per 2KB of
RPMSG_WQUEUE_STACKSIZE. On sim the stack size is not the real limit:
sim adds CONFIG_SIM_STACKSIZE_ADJUSTMENT to every task stack, yet a
small RPMSG_WQUEUE_STACKSIZE still gives a limit of 2. With the rx work
queue stopped at that depth while its queued rx work held every buffer
from the remote, both cores asserted with "Get tx buffer timeout".
Default the limit to 8 on sim, where the stack is not a constraint.
On other targets one nesting level costs 336 to 528 bytes of framework
frames on ARM32, AArch64 and TriCore (see "drivers/rpmsg: scale
recursion limit with work queue stack size"). Keep 4KB at 2 levels and
add one level for every further 1KB, up to 8 levels above 9KB.
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>1 parent 34d8c37 commit 2ae6856
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments