CV-Bowen opened a new pull request, #22291:
URL: https://github.com/apache/nuttx/pull/22291
## Summary
- `drivers/rpmsg: tune the recursion limit for stack size and sim`: on
sim the stack size is not the real limit (`SIM_STACKSIZE_ADJUSTMENT` is
added to every task stack), yet a small `RPMSG_WQUEUE_STACKSIZE` gave a
recursion 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". The limit now defaults to 8 on
sim; elsewhere it keeps 2 levels at 4KB and adds one per further 1KB
(one level costs 336 to 528 bytes, see the commit that introduced the
scaling), up to 8 above 9KB.
Split out of apache/nuttx#22248.
## Impact
- Default only; a board that sets `CONFIG_RPMSG_RECURSIVE_LIMIT` is not
affected. Resulting defaults (stack sizes unchanged by this PR):
| config | `RPMSG_WQUEUE_STACKSIZE` | recursion limit before → after |
|---|---|---|
| sim:rpserver / sim:rpproxy | 2048 | 2 → 8 |
| qemu-armv8a:rpserver (board sets 8192) | 8192 | 4 → 6 |
| qemu-armv7a:rpserver | 2048 | 2 → 2 |
Together with apache/nuttx#22248 a 64-bit board with the default
2048-byte task stack gets 8192 and 6.
- No API change.
## Testing
Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
The commit builds sim:rpserver, sim:rpproxy, qemu-armv8a:rpserver,
qemu-armv8a:rpproxy and qemu-armv7a:rpserver with 0 warnings.
**Kconfig defaults.** Fresh configs on master and on this PR (the
"64-bit" row is qemu-armv8a:rpserver and sim:rpserver with
`CONFIG_DEFAULT_TASK_STACKSIZE` removed and, for sim, `SIM_M32` off,
then `olddefconfig`); the values are the table above.
No regression in rpmsg: sim:rpserver/rpproxy and
qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping,
rpmsgfs; 15/15). qemu-armv8a was built with LIBC_ENVPATH and BINFMT_CHECKEXEC
disabled, which current master needs for nxinit to start nsh there; unrelated
to this change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]