You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/23 17:00:25 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6902: risc-v/mpfs: ihc: update vq ids

xiaoxiang781216 commented on code in PR #6902:
URL: https://github.com/apache/incubator-nuttx/pull/6902#discussion_r952893762


##########
arch/risc-v/src/mpfs/mpfs_ihc.c:
##########
@@ -965,11 +965,11 @@ mpfs_rptun_get_resource(struct rptun_dev_s *dev)
       rsc->rpmsg_vring0.align       = VRING_ALIGN;
       rsc->rpmsg_vring0.num         = VRING_NR;
       rsc->rpmsg_vring0.da          = VRING0_DESCRIPTORS;
-      rsc->rpmsg_vring0.notifyid    = 0;
+      rsc->rpmsg_vring0.notifyid    = 1;
       rsc->rpmsg_vring1.align       = VRING_ALIGN;
       rsc->rpmsg_vring1.num         = VRING_NR;
       rsc->rpmsg_vring1.da          = VRING1_DESCRIPTORS;
-      rsc->rpmsg_vring0.notifyid    = 1;
+      rsc->rpmsg_vring0.notifyid    = 0;

Review Comment:
   > Looks like it might create ids 1 & 2,
   
   Because the first id is allocated to fw_rsc_vdev:
   https://github.com/OpenAMP/open-amp/blob/main/lib/include/openamp/remoteproc.h#L296
   and next two to fw_rsc_vdev_vring:
   https://github.com/OpenAMP/open-amp/blob/main/lib/include/openamp/remoteproc.h#L253
   
   > but the Linux side expects fixed 0 and 1. And only id 0 is sent to Linux kernel.
   
   I have long time not watch the Linux change, but I never hit this limitation before when I am working with remoteproc/rpmsg several years ago.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org