[dm][rpmsg] support Remote Processor Messaging (RPMSG)#11303
[dm][rpmsg] support Remote Processor Messaging (RPMSG)#11303GuEe-GUI wants to merge 1 commit intoRT-Thread:masterfrom
Conversation
📌 Code Review Assignment🏷️ Tag: componentsReviewers: Maihuanyi Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-05-09 14:01 CST)
📝 Review Instructions
|
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
There was a problem hiding this comment.
Pull request overview
This PR introduces an RPMsg (Remote Processor Messaging) subsystem under RT-Thread’s driver model, aiming to provide endpoint management, name-service handling, and a character-device interface, with an intended VirtIO-based transport for QEMU.
Changes:
- Add RPMsg core bus/device/endpoint APIs (
rpmsg.c) and public header (drivers/rpmsg.h). - Add RPMsg name-service driver (
rpmsg_ns.c) and RPMsg char/control device (rpmsg_char.c). - Add build integration via
components/drivers/rpmsg/{Kconfig,SConscript}and hook intocomponents/drivers/Kconfig+rtdevice.h.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| components/drivers/rpmsg/rpmsg.c | RPMsg bus registration and endpoint lifecycle + send APIs |
| components/drivers/rpmsg/rpmsg_char.c | RPMsg char/control device implementation with endpoint create/destroy |
| components/drivers/rpmsg/rpmsg_ns.c | RPMsg name-service message handling and driver registration |
| components/drivers/rpmsg/rpmsg-rt-thread-virtio.c | Intended VirtIO transport glue for RPMsg over mailbox/shared-memory |
| components/drivers/rpmsg/SConscript | Build group and source selection for RPMsg module |
| components/drivers/rpmsg/Kconfig | Kconfig options for enabling RPMsg + char limits + virtio option |
| components/drivers/include/drivers/rpmsg.h | Public RPMsg API/types exported to the system |
| components/drivers/include/rtdevice.h | Expose RPMsg header via rtdevice.h when enabled |
| components/drivers/Kconfig | Adds rpmsg Kconfig entry to drivers menu |
Signed-off-by: GuEe-GUI <[email protected]>
|
审核相关问题已经修复 @Rbb666 |
拉取/合并请求描述:(PR description)
[
support Remote Processor Messaging, The virtio driver will support in QEMU
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up