Repository navigation
增加全志 V861 硬件 MSGBOX / OpenAMP 形通信 - #12079
cms19859230182-lang wants to merge 3 commits into
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
73e4da9 to
a2ebc16
Compare
Rbb666
left a comment
There was a problem hiding this comment.
MSGBOX 的复位时机和回包 ACK 顺序需要调整。 / Please move the MSGBOX reset and publish ACK after the echo.
| } | ||
| oa_read_bytes(OFF_M2S_PAY, (uint8_t *)data, n); | ||
| *len = n; | ||
| oa_w32(OFF_M2S_ACK, seq); |
There was a problem hiding this comment.
E907 的 openamp_send() 看到 OFF_M2S_ACK 就会返回,调用方随即读取回包。这里先写 ACK 再写回包,另一核可能先读到上一包。请在长度、数据和序号都写好后再发布 ACK,下面的 DRAM fallback 也一样。
openamp_send() on E907 can return as soon as it sees OFF_M2S_ACK, and the caller immediately reads the echo. Publishing the ACK here lets it read the previous payload. Publish the ACK after the echo length, payload and sequence in both receive paths.
| rt_kprintf("[C907] magic=0xc907a11c\n"); | ||
|
|
||
| /* Optional Phase1 MAGIC (may arrive after magic). Non-fatal. */ | ||
| rt_hw_msgbox_clk_enable(); |
There was a problem hiding this comment.
C907 在等 doorbell 前会再次复位两侧 MSGBOX。如果 E907 已经发出 token,这次复位会把它清掉,接收端只剩超时。请在启动对端前统一初始化,收发路径不要再复位。
C907 resets both MSGBOX banks before waiting for the doorbell. If E907 has already sent the token, this reset can clear it and leave the receiver waiting until timeout. Initialize the mailbox before starting the peer and keep resets out of the send/receive paths.
新增 bsp/allwinner/avaota-f2(UART/msh 最小 BSP),并在 bsp/README.md 登记。 按 review 删除 ACCEPTANCE.md,编译说明改为推荐 Env 2.x / sdk。 board.dtb 不再假设树里已有:board/SConscript 调用 board/gen_board_dtb.py 在构建时生成, builtin_fdt.o 显式依赖该产物,源变化会重新生成。生成需要 python3 + fdt 模块, README 写明了这一步;board/board.dtb 作为构建产物加入 .gitignore。
新增 avaota-f2-e907,并更新 C907 侧 DRAM ping 应答样例以便异构演示。 按 review 删除 ACCEPTANCE.md,编译说明改为推荐 Env 2.x / sdk。 board.dtb 不再入库:board/SConscript 调用 gen_board_dtb.py 在构建时生成, builtin_fdt.o 显式依赖该产物,设备树源变化会重新生成。生成需要 python3 + fdt 模块,README 已注明;board/board.dtb 加入 .gitignore。
1916bbd to
b4a00b0
Compare
| { | ||
| continue; | ||
| } | ||
| seq = oa_r32(OFF_M2S_SEQ); |
There was a problem hiding this comment.
共享内存路径可能已处理并确认这一帧。门铃晚到时,这里会再次回显同一序号,提前用完三轮接收。请在门铃路径也跳过已确认的序号,并同步修改两端实现。
There was a problem hiding this comment.
奇了怪了,这是为啥
- 新增 C907/E907 的硬件 MSGBOX 门铃与 OpenAMP 形通信(drv_hw_msgbox、drv_openamp), applications/main.c 增加跨核验证命令。 - 同步 C907/E907:board.dts + dtc 生成 board.dtb(删 gen_board_dtb.py)、 uart0 走 PLIC INT_RX、trap 分发 M 外部中断、rtconfig.h 由 Kconfig/.config 生成。 - driver 用 RTT_ROOT 定位 libfdt,scons --dist 项目也能编。 - CI:riscv-none leg 加入 allwinner/avaota-f2 与 avaota-f2-e907,并安装 dtc。 - 未上板验证;本机只做干净构建(含 --dist 项目)。 Co-Authored-By: DeepSeek Flash 1017 Co-Authored-By: Gemini 3.8 Flash
b4a00b0 to
a5d0a11
Compare
📌 Code Review Assignment🏷️ Tag: workflowReviewers: @Rbb666 @kurisaW @supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-11-25 04:42 CST)
📝 Review Instructions
|
拉取/合并请求描述:(PR description)
为什么提交这份PR (why to submit this PR)
在 #12078 异构通路之上,增加全志 V861 硬件 MSGBOX 门铃,以及 OpenAMP 形命名端点互通(板上已过
OPENAMP-EPT-OK)。你的解决方案是什么 (what is your solution)
drv_hw_msgbox/drv_openamp(C907 + E907)0x06020000/0x0800b000avaota-ept,SHM@0x41001000;非 libmetal / virtio-rpmsg 全栈依赖/关联:#12078
请提供验证的bsp和config (provide the config and bsp)
bsp/allwinner/avaota-f2-e907+bsp/allwinner/avaota-f2[E907] OPENAMP-EPT-OK name=avaota-ept tx=3 rx=3ACCEPTANCE.md当前拉取/合并请求的状态 Intent for your PR
代码质量 Code Quality:
.github/ALL_BSP_COMPILE.json