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

   ## Summary
   
   Depends on apache/nuttx#22488
   
   - `drivers/rpmsg/rpmsg_port_spi: gate retransmission on peer credit`: the
     Go-Back-N retransmit branch ignored `txavail`, so a frame was resent after
     the peer advertised no free rx buffer; the peer then had no buffer for the
     next exchange and hit `DEBUGASSERT(rpspi->rxhdr != NULL)`. Retransmit only
     while the peer has credit; otherwise send an AVAIL frame and keep the frame
     queued.
   - `drivers/rpmsg/rpmsg_port_spi: dump exchange counters on buffer timeout`:
     count request interrupts, started exchanges and completions on both sides,
     keep the slave enqueue result, and print them with the time since the last
     completion, so a stalled link shows which side stopped.
   
   ## Impact
   
   With `RPMSG_PORT_RETX`, a retransmission waits for peer credit. The second
   commit is diagnostics only.
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64.
   
   No in-tree configuration enables the SPI port drivers, so each 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 each 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 all commits.
   


-- 
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