You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "CV-Bowen (via GitHub)" <gi...@apache.org> on 2024/09/13 14:09:33 UTC

[PR] Rpmsg VirtIO Transport support and releated patched [nuttx]

CV-Bowen opened a new pull request, #13432:
URL: https://github.com/apache/nuttx/pull/13432

   ## Summary
   Rpmsg VirtIO is a new Rpmsg Transport Layer Implementation.
   Different to the Rptun, rpmsg virtio do not use the remoteproc implementation in OpenAMP to save the code size, so it can be used in chips with low resources.
   
   commit de847fbed47f9930c35d14a408cadcf6c4747299
   Author: Xiang Xiao <xi...@xiaomi.com>
   Date:   Sun May 26 02:30:21 2024 +0800
   
       rpmsg_virtio_ivshmem: Replace work with wdog
       
       Just rename, since it's a wdog, not a work.
       
       Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
   
   commit dc30acba5660e155e864444c42aeee5e6269638a
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Thu May 16 15:32:01 2024 +0800
   
       rptun/rpmsg_virtio: fix addrenv/raddrenv num error
       
       Buf fix, simple_addrenv assume the last addrenv in addrenv array
       be zero value
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
   
   commit 51deb3c1c9241962a556f927333215d5a3a765ba
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Mon May 13 10:54:29 2024 +0800
   
       sim_rptun/rpmsg_virtio: Replace work queue with wdog
       
       Wdog has better performance than work queue
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
   
   commit 168bfd07c10f41d58bb2ea0eb1cd12410c1f8455
   Author: yintao <yi...@xiaomi.com>
   Date:   Thu Feb 22 12:21:15 2024 +0800
   
       sim/sim_rptun.c: Fixed data type for sim_rptun_shmem_s
       
       Use fixed length data type for the struct shared in cross-core
       communication
       
       Signed-off-by: yintao <yi...@xiaomi.com>
   
   commit a7e0e0889774dd9f47dc83699dda9629cf828579
   Author: yintao <yi...@xiaomi.com>
   Date:   Mon Dec 4 11:36:30 2023 +0800
   
       sim/sim_rptun: Check if the shared memory has been allocated
       
       Bug fix
       
       Signed-off-by: yintao <yi...@xiaomi.com>
   
   commit bd73a111c67c68637a7d6c6605215fcdedf66251
   Author: yintao <yi...@xiaomi.com>
   Date:   Wed Nov 29 00:18:47 2023 +0800
   
       sim/sim_rptun: Support master/slave notifies opposite side when recovery
       
       When in a multi-core structure, as the intermediate core,
       remote is both the master and slave;When the remote exception or
       restart occurs, it needs to notify the slave and reestablish the connection
       
       Signed-off-by: yintao <yi...@xiaomi.com>
   
   commit b1c1de367417a0670b6cfff392eb10f7708c30f5
   Author: Yongrong Wang <wa...@xiaomi.com>
   Date:   Tue Feb 6 11:35:03 2024 +0800
   
       sim rpmsg virtio: add sim rpmsg virtio support
       
       add sim_rpmsg_virtio.c to verify the new rpmsg virtio wrapper layer,
       new the rpmsg virtio can be used in sim platfrom
       
       Signed-off-by: Yongrong Wang <wa...@xiaomi.com>
   
   commit b99c6a7b1f05eff5e0b850105492029fcc7d1e62
   Author: liaoao <li...@xiaomi.com>
   Date:   Fri May 10 15:11:16 2024 +0800
   
       rpmsg_ping:only sleep when ping->sleep is larger than 0
       
       To avoid call sleep when sleep <= 0
       
       Signed-off-by: liaoao <li...@xiaomi.com>
   
   commit 1d8b9c88118a8479ad6360ec1bcb78db84ef730f
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Tue May 7 15:33:57 2024 +0800
   
       rpmsg_virtio_ivshmem.c: Replace work queue with wdog
       
       rpmsg_virtio_ivshmem polling mode use wdog to loop instead work
       queue, beacause wdog has better performance
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
   
   commit 1687e0cff55660dc6c0d9a18bf14dbaeba2ad311
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Thu Apr 25 19:56:05 2024 +0800
   
       rpmsg_virtio_ivshmem.c: rpmsg virtio ivshmem msix interrupt support
       
       Change the rpmsg_virtio_ivshmem from pci bus based to
       pci-ivshmem bus based, so rpmsg_virtio_ivshmem can support interrupt
       mode and also support the multi instance.
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
       Signed-off-by: Bowen Wang <wa...@xiaomi.com>
   
   commit 1480ee1f7b9b7251825a01ca6e8d6905eaf18109
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Wed Apr 24 16:27:50 2024 +0800
   
       rpmsg_virtio_ivshmem.c: fix VIRTIO_RPMSG_F_BUFSZ not used caused restart err
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
   
   commit 59dfeb7061591cb9b4dc5dfca779e9f6f498a86e
   Author: wangyongrong <wa...@xiaomi.com>
   Date:   Wed Apr 24 10:20:52 2024 +0800
   
       nuttx/rpmsg_virtio.c: fix invalid use of undefined type ‘struct rpmsg_hdr’ err
       
       rpmsg/rpmsg_virtio.c:320:49: error: invalid use of undefined type ‘struct rpmsg_hdr’
         320 |                                         rx ? hdr->dst : hdr->src);
       
       Signed-off-by: wangyongrong <wa...@xiaomi.com>
   
   commit b2b2c05c3797d8bab14c7cb0ffea423a1267bb98
   Author: Bowen Wang <wa...@xiaomi.com>
   Date:   Thu Mar 21 16:05:33 2024 +0800
   
       drivers/rpmsg: fix recursive assert when call rpmsg_dump_all() in irq
       
       Because call mutex lock is forbidden in interrupt.
       
       Signed-off-by: Bowen Wang <wa...@xiaomi.com>
   
   commit 5ca2a37d3fb7fe24794f6cc7a74ebd22e27014f1
   Author: Yongrong Wang <wa...@xiaomi.com>
   Date:   Fri Feb 23 14:57:40 2024 +0800
   
       rpmsg/rpmsg_virtio_ivshmem: add rpmsg virtio ivshmem support
       
       rpmsg_virtio_ivshmem is a ivshmem based rpmsg virtio driver,
       with this driver, we can use the rpmsg virtio in qemu platfrom
       
       Signed-off-by: Yongrong Wang <wa...@xiaomi.com>
       Signed-off-by: Bowen Wang <wa...@xiaomi.com>
   
   commit 34a970f829717f03f4e8c8f5a3dc6d9b5acae7d4
   Author: Yongrong Wang <wa...@xiaomi.com>
   Date:   Tue Feb 6 11:12:15 2024 +0800
   
       rpmsg virtio: add rpmsg virtio wrapper support
       
       Rpmsg VirtIO is a virtio transport implementation for Rpmsg, and
       it's different to the rptun framework.
       
       rpmsg_virtio.c implements the rpmsg virtio transport layer by itself
       to avoid use the remoteproc implementation in OpenAMP to save code
       size, so it can be treated as a lightweight version of rptun.
       Therefore, rpmsg_virtio.c only support the communication feature and
       do not support contoll the life cycle of the remote core.
       But benefit by it's small footprint, it can be used in the chips with
       small flash.
       
       Signed-off-by: Yongrong Wang <wa...@xiaomi.com>
       Signed-off-by: Bowen Wang <wa...@xiaomi.com>
   
   commit 30adc223e3303c1a938a1338a3aa53b389579d58
   Author: Yongrong Wang <wa...@xiaomi.com>
   Date:   Mon Feb 26 15:07:22 2024 +0800
   
       rpmsg ping: fix rpmsg_ping_ept_cb rpmsg send length
       
       The rpmsg ping response length should not include the data length.
       
       Signed-off-by: Yongrong Wang <wa...@xiaomi.com>
   
   ## Impact
   new feature rpmsg_virtio and some related patches
   
   ## Testing
   armv7a with rpmsg_virtio_ivshmem enable and sim with rpserver/rpproxy
   


-- 
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


Re: [PR] Rpmsg VirtIO Transport support and releated patches [nuttx]

Posted by "CV-Bowen (via GitHub)" <gi...@apache.org>.
CV-Bowen commented on code in PR #13432:
URL: https://github.com/apache/nuttx/pull/13432#discussion_r1759126697


##########
drivers/rpmsg/CMakeLists.txt:
##########
@@ -27,5 +27,9 @@ if(CONFIG_RPMSG)
     list(APPEND SRCS rpmsg_ping.c)
   endif()
 
+  if(CONFIG_RPMSG_VIRTIO)

Review Comment:
   Thanks, I will update this PR later today.



-- 
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


Re: [PR] Rpmsg VirtIO Transport support and releated patches [nuttx]

Posted by "CV-Bowen (via GitHub)" <gi...@apache.org>.
CV-Bowen commented on code in PR #13432:
URL: https://github.com/apache/nuttx/pull/13432#discussion_r1759648438


##########
drivers/rpmsg/CMakeLists.txt:
##########
@@ -27,5 +27,9 @@ if(CONFIG_RPMSG)
     list(APPEND SRCS rpmsg_ping.c)
   endif()
 
+  if(CONFIG_RPMSG_VIRTIO)

Review Comment:
   Done



-- 
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


Re: [PR] Rpmsg VirtIO Transport support and releated patches [nuttx]

Posted by "Jasinsky (via GitHub)" <gi...@apache.org>.
Jasinsky commented on code in PR #13432:
URL: https://github.com/apache/nuttx/pull/13432#discussion_r1759064888


##########
drivers/rpmsg/CMakeLists.txt:
##########
@@ -27,5 +27,9 @@ if(CONFIG_RPMSG)
     list(APPEND SRCS rpmsg_ping.c)
   endif()
 
+  if(CONFIG_RPMSG_VIRTIO)

Review Comment:
   Should it also have:
   ```
   if(CONFIG_RPMSG_VIRTIO_IVSHMEM)
      list(APPEND SRCS rpmsg_virtio_ivshmem.c)
   endif()
   ```
   ?



-- 
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


Re: [PR] Rpmsg VirtIO Transport support and releated patches [nuttx]

Posted by "anchao (via GitHub)" <gi...@apache.org>.
anchao merged PR #13432:
URL: https://github.com/apache/nuttx/pull/13432


-- 
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