This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 06df2d94d5d3b5225c2869a434ca78363054c207 Author: Bowen Wang <[email protected]> AuthorDate: Fri Aug 7 15:26:17 2026 +0800 drivers/rpmsg/rpmsg_virtio: keep an unbound RT endpoint on the ns queue The name service message of an RT endpoint is queued at ns_ept's priority, while a data message to an RT endpoint that is not bound yet is queued at RPMSG_PRIO_RT. With CONFIG_RPMSG_WQUEUE_NUMBER > 1 the two priorities map to different work queues, so the data message can be handled first. It sets dest_addr, and the name service message then finds the endpoint bound and skips ns_bound_cb(). Queue the data message of an unbound RT endpoint at ns_ept's priority, so both go through the same work queue in order. Signed-off-by: Bowen Wang <[email protected]> --- drivers/rpmsg/rpmsg_virtio.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/rpmsg/rpmsg_virtio.c b/drivers/rpmsg/rpmsg_virtio.c index b4d0d85dca0..c571aa9589b 100644 --- a/drivers/rpmsg/rpmsg_virtio.c +++ b/drivers/rpmsg/rpmsg_virtio.c @@ -624,6 +624,16 @@ static void rpmsg_virtio_rx_dispatch(FAR struct rpmsg_virtio_priv_s *priv) } else { + /* Unbound RT endpoint: its NS message was queued with + * ns_ept's priority, use the same one to keep order. + */ + + if (priority == RPMSG_PRIO_RT && + ept->dest_addr == RPMSG_ADDR_ANY) + { + priority = rdev->ns_ept.priority; + } + rpmsg_queue_rx_work(&priv->rpmsg, priority, rpmsg_virtio_rx_worker, hdr); status = RPMSG_SUCCESS_BUFFER_RELEASED;
