CV-Bowen opened a new pull request, #22345:
URL: https://github.com/apache/nuttx/pull/22345
## Summary
Depends on apache/nuttx#22344 (the per-CPU PCI core in BMP mode).
`drivers/virtio/virtio-pci: keep the PCI driver per CPU in BMP mode`:
with the PCI core per CPU in BMP mode, each CPU registers its own copy
of the virtio-pci driver, whose list node must not be shared.
## Impact
Without `CONFIG_BMP` the driver stays a single instance; no change.
## 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
- qemu-armv8a:netnsh with virtio-pci, BMP off: 0 warnings.
qemu-armv8a:netnsh virtio cases (virtio devices on PCI; rng, blk on
mmio and PCI): same result as master 01829d2136b. The `ping` and v9fs
cases fail on master too: virtio-net stops answering after the first
ICMP reply since c177a4107dd removed the TX quota it relied on, fixed
by apache/nuttx#22322. All other virtio cases pass.
- With `CONFIG_BMP=y`, `CONFIG_PERCPU_SECTION=y`, 2 CPUs:
`virtio-pci.c` compiles with 0 warnings and `g_virtio_pci_drv` lands
in `.data..percpu`; the image does not link on master (no linker
script places the per-CPU sections), so BMP is compile-tested only.
No regression in rpmsg: sim:rpserver/rpproxy and
qemu-armv8a:rpserver/rpproxy boot and pass the fixed rpmsg cases (dump, ping,
rpmsgfs; 15/15). qemu-armv8a was built with LIBC_ENVPATH and BINFMT_CHECKEXEC
disabled, which current master needs for nxinit to start nsh there; unrelated
to this 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]