CV-Bowen opened a new pull request, #22484:
URL: https://github.com/apache/nuttx/pull/22484

   ## Summary
   
   Depends on apache/nuttx#22483
   
   `drivers/rpmsg/rpmsg_port_spi: implement the dump ops`: the SPI master and
   slave ports had no `dump` callback, so `RPMSGIOC_DUMP` and the
   buffer-timeout dump showed nothing about the transport. Print the FSM state,
   the flow-control counters (`txavail`/`rxavail`/`rxthres`), the request pin
   levels, the retransmission state when `RPMSG_PORT_RETX` is enabled, and the
   backtrace of the worker thread.
   
   ## Impact
   
   Diagnostics only. The retransmission state dump is in `rpmsg_port.c`, so the
   UART port prints it too.
   
   ## 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)
   
   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]

Reply via email to