remoteproc_virtio: add shm_io for remoteproc virtio#542
remoteproc_virtio: add shm_io for remoteproc virtio#542CV-Bowen wants to merge 1 commit intoOpenAMP:mainfrom
Conversation
Now the rpmsg device need pass a share memory io region to rpmsg_init_vdev(). I think every virtio device need a share memory io to access the share memory and this region should be provided by the transport layer. Like the MMIO transport layer did in OpenAMP. So I add shm_io in the remoteproc virtio device and also provide a API to set it. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
|
Any usage of this API anywhere ? Either in demos or OpenAMP ? @arnopo, @edmooring any thoughts? |
|
Quite agree with @tnmysh. This PR introduces an unused field. If possible I would prefer it to be integrated in a PR that provides the full picture of the need. @tnmysh : I remember we discussed the possibility of using dmabuf-based memory allocation in a meeting, but I don't see any associated PR or issue. Could you please provide a reference if you have it? |
edmooring
left a comment
There was a problem hiding this comment.
Are there any consumers for this new API? I can't find any in either open-amp or openamp-system-reference.
|
@arnopo @tnmysh @edmooring Thanks, I use this API in NuttX (but code not up streamed). We want make the remoteproc transport layer supports more virtio devices. |
|
This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity. |
@tnmysh I want to continue this PR and I'm interested in the dma method. That will be very thankfully if you can proviud a reference if you have it. |
|
This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity. |
|
don't need anymore? @CV-Bowen |
|
This pull request has been marked as a stale pull request because it has been open (more than) 45 days with no activity. |
Now the rpmsg device need pass a share memory io region to rpmsg_init_vdev().
I think every virtio device need a share memory io to access the share memory and this region should be provided by the transport layer. Like the MMIO transport layer did in OpenAMP.
So I add shm_io in the remoteproc virtio device and also provide an API to set it.