yangsong8-a1 opened a new pull request, #22195:
URL: https://github.com/apache/nuttx/pull/22195
## Summary
Set the rpmsg endpoint priority to `RPMSG_PRIO_RT` on two more
rpmsg client drivers so their reply callbacks dispatch inline in the
RX interrupt instead of going through the rpmsg work queue.
The ioe_rpmsg client callback only records a result and posts a
semaphore; the rpmsgblk client callback only performs `memcpy` and
`rpmsg_post`. Neither blocks, so running them at RT priority is safe
and removes one context-switch from every cross-core operation.
This follows the same pattern already used by `clk_rpmsg`,
`rpmsg_rtc`, and `rpmsg_ping`.
## Impact
Reduces latency for cross-core IO expander and block device
operations. No functional change.
## Testing
Ubuntu 22.04, host gcc. sim:rpserver (builds ioe_rpmsg.c and the rpmsgblk
server) and sim:rpproxy (builds the rpmsgblk client), Make, no new
warnings.
With both images running and the proxy reached through
`cu /dev/ttyproxy`, a temporary test program on the proxy (not part of
this PR) writes and reads back sector 0 of /dev/ram1, the rpmsgblk proxy
of the server's ramdisk, so the client endpoint callback now runs at
RPMSG_PRIO_RT:
proxy> hello
open_blockdriver: 0
geometry: 0 nsectors 2048 sectorsize 512
write sector 0: 1
read sector 0: 1 "hello-rpmsgblk" match 1
--
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]