Skip to content

zephyr arch64 support and buffer stack size tuning for frdm_imx91 - #117280

Open
LiLongNXP wants to merge 2 commits into
zephyrproject-rtos:mainfrom
nxp-upstream:main_lldbg_test10
Open

zephyr arch64 support and buffer stack size tuning for frdm_imx91#117280
LiLongNXP wants to merge 2 commits into
zephyrproject-rtos:mainfrom
nxp-upstream:main_lldbg_test10

Conversation

@LiLongNXP

Copy link
Copy Markdown
Contributor

No description provided.

Replace %d with %zu for size_t argument in LOG_ERR to fix
build warning on AArch64 where size_t is 64-bit.

Signed-off-by: Li Long <li.long@nxp.com>
Increase network buffer size and stack sizes for frdm_imx91/mimx9131
to stabilize TCP/UDP traffic (zperf) on 5GHz Wi-Fi:

- Set NET_BUF_DATA_SIZE=1600 to fix TCP RX crash caused by net_buf
  being too small to hold a TCP segment (default is 128 bytes).
  Note: NET_PKT/BUF RX/TX counts are already set to sufficient values
  in overlay_iw610.conf and do not need to be overridden here.
- Add ZPERF_WORK_Q_STACK_SIZE=8192 to fix zperf_work_q stack overflow
  during TCP TX.
- Increase NXP Wi-Fi task stack sizes (TX/CORE/SCAN/MON/POWERSAVE/
  DRIVER/WLCMGR) to prevent stack sentinel triggers.
- Increase NET_TX_STACK_SIZE and NET_RX_STACK_SIZE to 16384 to fix
  intermittent TCP TX crash (work->queue == NULL assert).
- Increase NET_MGMT_EVENT_STACK_SIZE to 16384 and SHELL_STACK_SIZE
  to 16384 for stability.

Signed-off-by: Li Long <li.long@nxp.com>
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_NET_SOCKETS_SERVICE_STACK_SIZE=4096
CONFIG_NXP_WIFI_TX_TASK_STACK_SIZE=4096
CONFIG_NET_TX_STACK_SIZE=16384

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please try if it can work with smaller stack size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants