From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mx.groups.io with SMTP id smtpd.web12.9686.1608631237381094785 for ; Tue, 22 Dec 2020 02:00:38 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: huawei.com, ip: 45.249.212.190, mailfrom: cenjiahui@huawei.com) Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4D0Wz506Xzz15hVf; Tue, 22 Dec 2020 17:59:45 +0800 (CST) Received: from localhost (10.174.184.155) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Tue, 22 Dec 2020 18:00:21 +0800 From: "Jiahui Cen" To: CC: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Rebecca Cran , Peter Grehan , Anthony Perard , Julien Grall , Leif Lindholm , Sami Mujawar , , , Jiahui Cen , Yubo Miao Subject: [PATCH v3 0/5] Add extra pci roots support for Arm Date: Tue, 22 Dec 2020 17:59:39 +0800 Message-ID: <20201222095944.8686-1-cenjiahui@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.174.184.155] X-CFilter-Loop: Reflected Content-Type: text/plain Content-Transfer-Encoding: quoted-printable v2->v3: * Rename utility functions under the PciHostBridgeUtilityLib namespace. * Remove some unused Library dependencies. * Sort the Include headers. v1->v2: * Separated into four patches. * Factor the same logic parts into a new library. v2: https://edk2.groups.io/g/devel/topic/78135572#67173 BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3059 QEMU: https://lore.kernel.org/qemu-devel/20201119014841.7298-1-cenjiahui@= huawei.com/ This patch series adds support for extra pci roots for ARM. In order to avoid duplicated codes, we introduce a new library PciHostBridgeUtilityLib which extracts common interfaces from OvmfPkg/PciHostBridgeLib. It provides conflicts informing and extra pci roots scanning. Using the utility lib, the uefi could scan for extra root buses and recognize multiple roots for ARM. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Rebecca Cran Cc: Peter Grehan Cc: Anthony Perard Cc: Julien Grall Cc: Leif Lindholm Cc: Sami Mujawar Signed-off-by: Jiahui Cen Signed-off-by: Yubo Miao Jiahui Cen (5): OvmfPkg: Introduce PciHostBridgeUtilityLib class ArmVirtPkg: Refactor with PciHostBridgeUtilityLib OvmfPkg: Extract functions for extra pci roots ArmVirtPkg: Add support for extra pci roots ArmVirtPkg/ArmVirtQemu: Add support for HotPlug OvmfPkg/OvmfPkg.dec | = 4 + ArmVirtPkg/ArmVirt.dsc.inc | = 1 + ArmVirtPkg/ArmVirtKvmTool.dsc | = 1 + ArmVirtPkg/ArmVirtQemu.dsc | = 2 + ArmVirtPkg/ArmVirtQemuKernel.dsc | = 1 + OvmfPkg/Bhyve/BhyveX64.dsc | = 1 + OvmfPkg/OvmfPkgIa32.dsc | = 1 + OvmfPkg/OvmfPkgIa32X64.dsc | = 1 + OvmfPkg/OvmfPkgX64.dsc | = 1 + OvmfPkg/OvmfXen.dsc | = 1 + ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf | = 2 + OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf | = 3 +- OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf | 4= 1 +++ OvmfPkg/Include/Library/PciHostBridgeUtilityLib.h | 9= 5 +++++++ ArmVirtPkg/Library/FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 18= 2 ++++++------ OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c | 19= 9 +------------- OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.c | 28= 9 ++++++++++++++++++++ ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | = 1 + 18 files changed, 560 insertions(+), 266 deletions(-) create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridge= UtilityLib.inf create mode 100644 OvmfPkg/Include/Library/PciHostBridgeUtilityLib.h create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridge= UtilityLib.c --=20 2.28.0