Re: [edk2-devel] [PATCH v4 5/8] OvmfPkg/PciHostBridgeUtilityLib: Initialize RootBridges apertures with spec

2022-02-03 Thread Gerd Hoffmann
On Thu, Feb 03, 2022 at 09:56:25PM +0100, Nicolas Ojeda Leon wrote: > Consume the host-provided specification of PCI host bridges if > available. Using the DxeHardwareInfoLib, populate a list of > hardware descriptors based on the content of the "hardware-info" > fw-cfg file, if provided. In the af

Re: [edk2-devel][edk2-platforms][PATCH V2 0/2] WhitleyOpenBoardPkg board porting template

2022-02-03 Thread Bu, Daocheng
Hi Isaac, This change looks good to me. Reviewed-by: Daocheng Bu Thanks, Amos Silicon IP Firmware Engineering UEFI FW, IAFW, System Firmware or Host Firmware is more generic & accurate It's not BIOS anymore! -Original Message- From: Oram, Isaac W Sent: Friday, February 4, 2022

[edk2-devel] [PATCH v4 8/8] MdeModulePkg/PciBusDxe: Handling of pre-populated PCI BARs

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Extend the PCI BAR placement logic in order to consider pre-populated resources first, if indicated by the Pcd token for such purpose. The PCI_BAR type is augmented by one field for mapping the absolute address of prepopulated BARs into a root bridge relative offset. As part of the CreateResourceM

[edk2-devel] [PATCH v4 7/8] PciHostBridgeDxe: Extend service to get base addresses before allocation

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Enhance the PCI Resource Allocation services to include a new state in which only the base address of each root bridge is set. This new, partial state is used in conjunction with GetProposedResources to retrieve the Base Addresses of the resources before the allocation takes place, and is reached o

[edk2-devel] [PATCH v4 6/8] MdeModulePkg, OvmfPkg: Add Pcd token for PCI pre-populated BARs

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Create a new PCD boolean token in MdeModulePkg for global use. We use this token to indicate if the configuration, parsed from fw-cfg, requires pre-populated BARs to be preserved. During creation of root bridges configurations, the flag is set according to the "pre-populated-bars" item in fw-cfg.

[edk2-devel] [PATCH v4 5/8] OvmfPkg/PciHostBridgeUtilityLib: Initialize RootBridges apertures with spec

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Consume the host-provided specification of PCI host bridges if available. Using the DxeHardwareInfoLib, populate a list of hardware descriptors based on the content of the "hardware-info" fw-cfg file, if provided. In the affirmative case, use the resources and attributes specified by the hypervisor

[edk2-devel] [PATCH v4 4/8] Ovmf/PlatformPei: Use host-provided GPA end if available

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Read the "hardware-info" item from fw-cfg to extract specifications of PCI host bridges and analyze the 64-bit apertures of them to find out the highest 64-bit MMIO address required which determines the address space required by the guest, and, consequently, the FirstNonAddress used to calculate si

[edk2-devel] [PATCH v4 2/8] Ovmf/HardwareInfoLib: Create Pei lib to parse directly from fw-cfg

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Define the HardwareInfoLib API and create the PeiHardwareInfoLib which implements it, specifically for Pei usage, supporting only static accesses to parse data directly from a fw-cfg file. All list-like APIs are implemented as unsupported and only a fw-cfg wrapper to read hardware info elements is

[edk2-devel] [PATCH v4 0/8] Handling of multiple PCI host bridges specified

2022-02-03 Thread Ojeda Leon, Nicolas via groups.io
Increased control is provided in Ovmf platforms to define and configure the specifications of multiple PCI host bridges in the hypervisor. The host propagates this information to the guest, initially through fw-cfg interface. In some AWS EC2 platforms, we expose a PCI topology including several ro

[edk2-devel] [PATCH v3 2/2] MdePkg: MmCommunication: Add new Host Software class Error Code to MdePkg

2022-02-03 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3794 This change introduces a new error code definitions under Host Software class. The new error code definition will cover system reboot events under the conditions of fragmented memory map from one boot to another. These error codes could pr

[edk2-devel] [PATCH v3 0/2] EDK2 Code First: PI Specification: Expand PI Status Codes

2022-02-03 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3794 This patch series is a rebase of previous submission: https://edk2.groups.io/g/devel/message/85335 In current Status Codes definitions of PI spec v1.7 errata, there are a few instances where the software could trigger system reboots while t

[edk2-devel] [PATCH v3 1/2] EDK2 Code First: PI Specification: New error codes of Host Software class

2022-02-03 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3794 This change includes specification update markdown file that describes the proposed PI Specification v1.7 Errata A in detail and potential impact to the existing codebase. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming

[edk2-devel][edk2-platforms][PATCH V2 2/2] WhitleyOpenBoardPkg/PlatformInfo: Add board ID vendor range

2022-02-03 Thread Oram, Isaac W
Add a vendor reserved range to avoid collisions with Intel reference board ID future use, if any. Cc: Nate DeSimone Cc: Chasel Chiu Signed-off-by: Isaac Oram --- Platform/Intel/WhitleyOpenBoardPkg/Platform/Pei/PlatformInfo/PlatformInfo.c | 3 +- Platform/Intel/WhitleyOpenBoardPkg/Readme.md

[edk2-devel][edk2-platforms][PATCH V2 0/2] WhitleyOpenBoardPkg board porting template

2022-02-03 Thread Oram, Isaac W
This series adds a template for board porting and the infrastruture to support. V2: 1/2: No change 2/2: Updated Readme.md per feedback, elaborating on naming and fixing formatting issues. V1: The WhitleyOpenBoardPkg/Readme.md documents the step by step instructions to create a new board tip t

[edk2-devel] [edk2-platforms] [PATCH] Platform/Sgi: Allow builds for AArch64 only

2022-02-03 Thread Nishant Sharma
The Neoverse reference design platforms support AArch32 execution state only at the EL0 exception level. So allow only the AArch64 builds for these platforms. Signed-off-by: Nishant Sharma Reported-by: Rebecca Cran --- Platform/ARM/SgiPkg/RdE1Edge/RdE1Edge.dsc | 4 ++-- Platform/ARM/SgiPkg/

Re: [edk2-devel] I think we need a Panic API...

2022-02-03 Thread Michael D Kinney
Hi Andrew, I think it would be useful to define a few macros for PANIC() conditions that would make it easy to convert an existing ASSERT() condition that is really a PANIC() condition by simply using a different macro name. One attribute of this macro (unlike DEBUG() and ASSERT() macros) is that

[edk2-devel] [PATCH] UefiPayloadPkg: Make Boot Manager Key configurable

2022-02-03 Thread Sean Rhodes
Provide a build option to use [Esc] instead of [F2] for devices such as Chromebooks that don't have F-keys. Signed-off-by: Sean Rhodes --- .../PlatformBootManager.c | 44 +-- .../PlatformBootManagerLib.inf| 1 + UefiPayloadPkg/UefiPayloadPkg.d

Re: [edk2-devel] [PATCH v3 0/8] IORT Rev E.b specification updates

2022-02-03 Thread Sami Mujawar
Hi All, We are going to skip the IORT Rev E.b and E.c. I will be submitting a new patch series, so please ignore this series. Regards, Sami Mujawar -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86367): https://edk2.groups.io/g/devel/

Re: [edk2-devel] [PATCH v3 1/8] MdePkg: IORT header update for IORT Rev E.b spec

2022-02-03 Thread Sami Mujawar
Hi All, We are going to skip the IORT Rev E.b and E.c. I will be submitting a new patch series, so please ignore this series. Regards, Sami Mujawar On 03/02/2022, 15:24, "devel@edk2.groups.io on behalf of Rebecca Cran via groups.io" wrote: Reviewed-by: Rebecca Cran On 11/10/21

Re: [edk2-devel] [PATCH v3 1/8] MdePkg: IORT header update for IORT Rev E.b spec

2022-02-03 Thread Rebecca Cran
Reviewed-by: Rebecca Cran On 11/10/21 03:55, Sami Mujawar wrote: Bugzilla: 3458 - Add support IORT Rev E.b specification updates (https://bugzilla.tianocore.org/show_bug.cgi?id=3458) The IO Remapping Table, Platform Design Document, Revision E.b, Feb 2021 (https://developer.arm.com

Re: [edk2-devel] [edk2-platforms] [PATCH] Platform/Sgi: Allow builds for AArch64 only

2022-02-03 Thread Ard Biesheuvel
On Thu, 3 Feb 2022 at 11:25, Nishant Sharma wrote: > > The Neoverse reference design platforms support AArch32 execution > state only at the EL0 exception level. So allow only the AArch64 > builds for these platforms. > > Signed-off-by: Nishant Sharma > Reported-by: Rebecca Cran Reviewed-by