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

   ## Summary
   
   `rptun: place shm regions in the vdev heap`
   
   rptun_alloc_shm_regions() cut regions only from the pool, so a table
   that gives a vdev its own `vdev<N>buffer` but has no pool failed with
   -ENOMEM. Allocate and free the regions from the vdev's heap, the one
   its vrings come from; it falls back to the pool when the vdev has no
   carveout of its own.
   
   Depends on apache/nuttx#22409
   
   ## Impact
   
   - rptun only; affects tables with `vdev<N>buffer<id>` regions at da
     ANY, of which there are none in tree.
   - imx93-qsb:rpmsg ITCM (arm-gnu-toolchain 13.2.rel1, `make`):
     128200 after #P199 -> 128912 with #22328, #P200 and this PR
     (+712, of which 224 are #22328).
   
   ## 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 22e898f716b 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)
   
   qemu-armv8a:netnsh (virtio-mmio/pci rng, blk, net, 9p): rng and blk cases 
pass; the 6 net/9p cases (`ping`, v9fs) fail the same way on origin/master, 
where virtio-net stops after the first frame; apache/nuttx#22322 fixes that.
   
   ```
   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
   - tested: nuttx 22e898f716b-dirty apps f0dc662c0
   - 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)
   ```
   (`-dirty` is the test-only table change.)
   


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

  • [PR] rptun: place shm regions... CV-Bowen (via GitHub) via commits

Reply via email to