Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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: betaFlags: pm-rhel: mirror+
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!