On aarch64 we would like the pcie expander bridge to be enabled. So we need to set the CONFIG_PXB config in default-configs/devices/aarch64-rh-devices.mak.
qemu support was brought upstream by the following series: https://www.mail-archive.com/qemu-devel@nongnu.org/msg761016.html This corresponds to the following downstream commits fe1127da11 unit-test: Add the binary file and clear diff.h (6 months ago) <Yubo Miao> 1da638b165 unit-test: Add testcase for pxb (6 months ago) <Yubo Miao> 128e232281 unit-test: The files changed. (6 months ago) <Yubo Miao> 451b157041 acpi: Align the size to 128k (6 months ago) <Yubo Miao> 6f9765fbad acpi/gpex: Build tables for pxb (6 months ago) <Yubo Miao> 37d5c0a8ff acpi: Extract crs build form acpi_build.c (6 months ago) <Yubo Miao> 09fad16744 hw/arm/virt: Write extra pci roots into fw_cfg (6 months ago) <Jiahui Cen> 0abd38885a fw_cfg: Refactor extra pci roots addition (6 months ago) <Jiahui Cen> a0e2905b41 acpi/gpex: Extract two APIs from acpi_dsdt_add_pci (6 months ago) <Yubo Miao>
I tested at QEMU level with the following command add-on: -device pxb-pcie,bus_nr=4,id=bridge,bus=pcie.0 -device pcie-root-port,bus=bridge,chassis=4,id=pcie.11,io-reserve=0 -device virtio-net-pci,bus=pcie.11,netdev=nic0,mac=6a:f5:10:b1:3d:d2 -netdev tap,id=nic0,script=/home/augere/TEST/SCRIPTS/qemu-ifup,downscript=/home/augere/TEST/SCRIPTS/qemu-ifdown The NIC worked fine (rhel9 guest).
Hi Qunfang, I tested the PCIe expander bridge with qemu-kvm-6.0.0-7.el9 at qemu level and it works for me. Please move the BZ to VERIFIED. Thanks Eric
(In reply to Eric Auger from comment #9) > Hi Qunfang, > > I tested the PCIe expander bridge with qemu-kvm-6.0.0-7.el9 at qemu level > and it works for me. Please move the BZ to VERIFIED. > > Thanks > > Eric Thank you Eric!