Bug 1967502

Summary: [aarch64] [qemu] Compile the PCIe expander bridge
Product: Red Hat Enterprise Linux 9 Reporter: Eric Auger <eric.auger>
Component: qemu-kvmAssignee: Eric Auger <eric.auger>
qemu-kvm sub component: PCI QA Contact: Virtualization Bugs <virt-bugs>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: drjones, gshan, jinzhao, juzhang, lcapitulino, mrezanin, qzhang, virt-maint, yihyu, zhenyzha
Version: 9.0Keywords: OtherQA, Triaged
Target Milestone: beta   
Target Release: 9.0 Beta   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-6.0.0-7.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:20:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1924294, 1967187    

Description Eric Auger 2021-06-03 09:17:51 UTC
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.

Comment 1 Eric Auger 2021-06-15 12:29:41 UTC
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>

Comment 2 Eric Auger 2021-06-24 11:45:23 UTC
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).

Comment 9 Eric Auger 2021-07-11 05:28:24 UTC
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

Comment 10 Qunfang Zhang 2021-07-12 00:52:37 UTC
(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!