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

   ## Summary
   
   `rptun: give each side a pool carveout of its own`
   
   Only the master could publish a pool (#P198), so a slave that drives a
   vdev of its own needed a placed carveout for every such vdev. Name the
   pool after its owner instead: the master builds its heap over
   `vdevbuffer`, the slave over `hdevbuffer`. One name cannot serve both,
   because two heaps over one region hand out the same memory twice.
   
   The pool does not depend on the vdev, so it is built once in
   rptun_start_thread() before the vdevs are created, and freed in
   rptun_dev_stop() after them.
   
   Depends on apache/nuttx#22380
   
   ## Impact
   
   - rptun only; no API or Kconfig change.
   - `vdevbuffer` keeps its meaning for the master. A slave that used to
     see `vdevbuffer` and ignore it still ignores it; no in-tree table has
     `hdevbuffer`, so in-tree behaviour is unchanged.
   - imx93-qsb:rpmsg ITCM: +16 bytes on top of #P198.
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   
   Every commit builds sim:rpserver, sim:rpproxy, qemu-armv8a:rpserver,
   qemu-armv8a:rpproxy and qemu-armv8a:netnsh with 0 warnings.
   
   Baseline (`test.sh`, cases: baseline.yaml):
   
   - host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205
   - tested: nuttx f05f5a4247d apps f0dc662c0
   - qemu-armv8a:rpserver qemu-armv8a:rpproxy built with test-only overlay: 
disabled LIBC_ENVPATH BINFMT_CHECKEXEC
   - sim:rpserver + sim:rpproxy: PASS
     - [x] `uname -a` (server)
     - [x] `rpmsg dump all` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (server)
     - [x] `uname -a` (proxy)
     - [x] `rpmsg ping all 10 1024 3 0` (proxy)
     - [x] `mount -t rpmsgfs -o cpu=server,fs=/proc /sp` (proxy)
     - [x] `cat /sp/version` (proxy)
     - [x] `rpmsg dump all` (proxy)
   - qemu-armv8a:rpserver + qemu-armv8a:rpproxy: PASS
     - [x] `uname -a` (server)
     - [x] `uname -a` (proxy)
     - [x] `rpmsg dump all` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (server)
     - [x] `rpmsg ping all 10 1024 3 0` (proxy)
     - [x] `mount -t rpmsgfs -o cpu=server,fs=/proc /sp` (proxy)
     - [x] `cat /sp/version` (proxy)
   
   Not run: a slave-driven vdev on `hdevbuffer`; no in-tree board has a
   slave-side driver vdev.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to