CV-Bowen opened a new pull request, #22483: URL: https://github.com/apache/nuttx/pull/22483
## Summary Depends on apache/nuttx#22482 `!drivers/rpmsg/rpmsg_port: move the timestamps into the port header`: `tx_nsec`/`rx_nsec` move from the last 16 bytes of each buffer into `struct rpmsg_port_header_s`. `rpmsg_port_get_timestamp()` no longer needs the buffer length check, and the SPI ports stamp the tx frame before its CRC is computed (so the CRC covers it) and the rx frame only after its CRC has been checked. ## Impact BREAKING CHANGE: the rpmsg_port frame header grows by 16 bytes, so both sides of an rpmsg_port link (SPI or UART) must run this change. The usable payload per buffer is unchanged (the 16 tail bytes are no longer reserved). apache/nuttx#P217 moves the timestamps back to the tail when `RPMSG_PORT_RETX` is disabled, so in the end the layout only changes for the retransmission configuration (the default). ## Testing Host: Ubuntu 22.04.5 LTS x86_64. No in-tree configuration enables the SPI port drivers, so the commit was built with a test-only overlay on top of the rpserver configurations: `CONFIG_SPI=y CONFIG_SPI_SLAVE=y CONFIG_IOEXPANDER=y CONFIG_IOEXPANDER_RPMSG=y CONFIG_RPMSG_PORT_SPI=y CONFIG_RPMSG_PORT_SPI_SLAVE=y`, plus the 64-bit cast fix of apache/nuttx#P221 for the qemu-armv8a builds (master does not build the SPI ports on 64-bit targets without it). 0 warnings for the commit in all of: - `qemu-armv8a:rpserver` + overlay (aarch64-none-elf-gcc 13.4), RETX on - the same with `RPMSG_PORT_RETX=n` and `RPMSG_PORT_SPI_CRC=n` - `qemu-armv7a:rpserver` + overlay (arm-none-eabi-gcc 10.3), RETX on - `sim:rpserver_uart` (rpmsg_port_uart) The header change is exercised at runtime by the qemu-armv8a pair below: both cores are built from this branch and exchange `rpmsg ping` over rpmsg_port_uart. No SPI hardware is available, so the SPI changes are build-only. No regression in rpmsg: sim:rpserver/rpproxy and qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping, rpmsgfs). The qemu-armv8a pair talks over rpmsg_port_uart as well as ivshmem (`rpmsg ping all` covers both), with `RPMSG_PORT_RETX=y`. checkpatch passes on the commit. -- 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]
