drivers/rpmsg_virtio: add VIRTIO_RPMSG_F_BUFADDR to support specifying buffer address#18491
Merged
xiaoxiang781216 merged 2 commits intoapache:masterfrom Mar 5, 2026
Merged
Conversation
…he address support specify the address by h2r_buf_addr and r2h_buf_addr so is can split shared memory pool Signed-off-by: yintao <yintao@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Add open-amp patch 0019 to extend fw_rsc_config with h2r_buf_addr and r2h_buf_addr fields, allowing the host and remote sides to specify buffer physical addresses through the resource table. This enables splitting the shared memory pool into separate regions. Also update open-amp.defs and open-amp.cmake to apply the new patch during the open-amp build process. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Contributor
Author
xiaoxiang781216
approved these changes
Mar 4, 2026
acassis
approved these changes
Mar 4, 2026
Contributor
|
@CV-Bowen Thanks. Even with this commit, the legacy rptun driver still requires extensive modifications to adapt to the VIRTIO_RPMSG_F_BUFADDR mechanism. Could we provide a sim demo to help other users get familiar with this configuration? |
anchao
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support for
VIRTIO_RPMSG_F_BUFADDRfeature bit in rpmsg virtio, allowing the host and remote sides to specify buffer physical addresses through the resource table config space.In some multi-core systems, the shared memory pool needs to be split into separate regions for host-to-remote and remote-to-host buffers. This is useful when the TX and RX buffers must reside at specific physical addresses (e.g., different memory banks or regions with different cache/access attributes). The
VIRTIO_RPMSG_F_BUFADDRfeature allows this configuration to be communicated through the standard resource table mechanism.Impact
VIRTIO_RPMSG_F_BUFADDRTesting
Build test with
qemu-armv8a:v8a_serverandqemu-armv8a:v8a_proxyconfigurations: