[edk2-devel] [PATCH v2 0/4] Add extra pci roots support for Arm

Jiahui Cen via groups.io posted 4 patches 3 years, 5 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
ArmVirtPkg/ArmVirt.dsc.inc                    |   1 +
.../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 223 +++++++-------
.../FdtPciHostBridgeLib.inf                   |   5 +
.../Include/Library/PciHostBridgeUtilityLib.h |  98 ++++++
.../PciHostBridgeLib/PciHostBridgeLib.c       | 230 +-------------
.../PciHostBridgeLib/PciHostBridgeLib.inf     |   1 +
.../PciHostBridgeUtilityLib.c                 | 280 ++++++++++++++++++
.../PciHostBridgeUtilityLib.inf               |  51 ++++
OvmfPkg/OvmfPkgIa32.dsc                       |   1 +
OvmfPkg/OvmfPkgIa32X64.dsc                    |   1 +
OvmfPkg/OvmfPkgX64.dsc                        |   1 +
OvmfPkg/OvmfXen.dsc                           |   1 +
12 files changed, 560 insertions(+), 333 deletions(-)
create mode 100644 OvmfPkg/Include/Library/PciHostBridgeUtilityLib.h
create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.c
create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
[edk2-devel] [PATCH v2 0/4] Add extra pci roots support for Arm
Posted by Jiahui Cen via groups.io 3 years, 5 months ago
Changes with v1
v1->v2:
Separated into four patches.
Factor the same logic parts into a new library.

v1: https://edk2.groups.io/g/devel/topic/72723351#56901
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3059
QEMU: https://lore.kernel.org/qemu-devel/20201103120157.2286-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.

Signed-off-by: Yubo Miao <miaoyubo@huawei.com>
Signed-off-by: Jiahui Cen <cenjiahui@huawei.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Leif Lindholm <leif@nuviainc.com>

Yubo Miao (4):
  OvmfPkg: Extract functions form PciHostBridgeLib
  ArmVirtPkg: Use extracted PciHostBridgeUtilityLib
  OvmfPkg: Extract functions of extra pci roots
  ArmVirtPkg: Support extra pci roots

 ArmVirtPkg/ArmVirt.dsc.inc                    |   1 +
 .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 223 +++++++-------
 .../FdtPciHostBridgeLib.inf                   |   5 +
 .../Include/Library/PciHostBridgeUtilityLib.h |  98 ++++++
 .../PciHostBridgeLib/PciHostBridgeLib.c       | 230 +-------------
 .../PciHostBridgeLib/PciHostBridgeLib.inf     |   1 +
 .../PciHostBridgeUtilityLib.c                 | 280 ++++++++++++++++++
 .../PciHostBridgeUtilityLib.inf               |  51 ++++
 OvmfPkg/OvmfPkgIa32.dsc                       |   1 +
 OvmfPkg/OvmfPkgIa32X64.dsc                    |   1 +
 OvmfPkg/OvmfPkgX64.dsc                        |   1 +
 OvmfPkg/OvmfXen.dsc                           |   1 +
 12 files changed, 560 insertions(+), 333 deletions(-)
 create mode 100644 OvmfPkg/Include/Library/PciHostBridgeUtilityLib.h
 create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.c
 create mode 100644 OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf

-- 
2.19.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67173): https://edk2.groups.io/g/devel/message/67173
Mute This Topic: https://groups.io/mt/78135572/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-