Re: [edk2-devel] [PATCH v3 3/9] ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT

2020-02-26 Thread Laszlo Ersek
On 02/26/20 20:05, Ard Biesheuvel wrote: > Introduce a boolean PCD that tells us whether TPM support is enabled > in the build, and if it is, record the TPM base address in the existing > routine that traverses the device tree in the platform PEIM. > > If a TPM is found, install the gOvmfTpmDiscov

Re: [edk2-devel] [edk2-platforms] [PATCH v4 0/4] Add Initial Support for UP Xtreme

2020-02-26 Thread Nate DeSimone
The series has been pushed as 9227724a..c6ed9b2d -Original Message- From: devel@edk2.groups.io On Behalf Of Agyeman, Prince Sent: Tuesday, February 25, 2020 4:28 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L Subject: [edk2-devel] [edk2-platforms] [PATCH v4 0/4] Ad

Re: [edk2-devel] [edk2-platforms: PATCH] MinPlatformPkg/PeiReportFvLib: Install FvFspT in PeiReportFvLib

2020-02-26 Thread Nate DeSimone
Pushed: https://github.com/tianocore/edk2-platforms/commit/974ddebcf191e32c5eb2f52e5ef85423f4de9819 -Original Message- From: Shindo, Miki Sent: Friday, February 21, 2020 5:38 PM To: devel@edk2.groups.io Cc: Chaganty, Rangasai V ; Chiu, Chasel ; Desimone, Nathaniel L ; Agyeman, Prince

Re: [edk2-devel] [edk2-platforms: PATCH] MinPlatformPkg/PeiReportFvLib: Install FvFspT in PeiReportFvLib

2020-02-26 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: Shindo, Miki Sent: Friday, February 21, 2020 5:38 PM To: devel@edk2.groups.io Cc: Chaganty, Rangasai V ; Chiu, Chasel ; Desimone, Nathaniel L ; Agyeman, Prince Subject: [edk2-platforms: PATCH] MinPlatformPkg/PeiReportFvLib: Install

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Liming Gao
Mike: Current solution is to define the flexible structure array with zero. This style is supported by VS/GCC/CLANG compiler. StructurePcd also uses this solution (here is my example https://github.com/lgao4/edk2/blob/StructurePcd/TestPkg/Include/Guid/Test2.h#L32). Edk2 also have the similar

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Michael D Kinney
Liming, This does not make sense. Those compilers should support C99 flexible array members. Structured PCDs also require use of flexible array members. We need to make sure the compiler flags for those tool chain are correct to support flexible array members. Mike > -Original Message

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Liming Gao
Mike: I find this issue on GCC5 tool chain tag with GCC 5.5 and CLANGPDB tool chain tag with CLANG 9.0.0 Thanks Liming > -Original Message- > From: devel@edk2.groups.io On Behalf Of Michael D > Kinney > Sent: Thursday, February 27, 2020 1:54 PM > To: Gao, Liming ; devel@edk2.groups.io

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Ni, Ray
Leo and all, I replied in https://bugzilla.tianocore.org/show_bug.cgi?id=2556 for a more general question about how uCode is used in AMD processors. Because this package recently exposed a new interface ShadowMicrocodePpi, I try to involve Leo in the review from AMD uCode's needs. Thanks, Ray

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Michael D Kinney
Which GCC and CLANG tool chain tags? Flexible array member is a standard C feature documented in C99. Mike > -Original Message- > From: Gao, Liming > Sent: Wednesday, February 26, 2020 9:38 PM > To: Kinney, Michael D ; > devel@edk2.groups.io; Fu, Siyuan > Cc: Ni, Ray ; Chaganty, Rangas

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Liming Gao
Mike: I find GCC and CLANG will report the error for the empty struct. d:\allpkg\edk2-platforms\Silicon\Intel\IntelSiliconPkg\Include\Guid/MicrocodeShadowInfoHob.h:61:11: error: flexible array member 'MicrocodeAddressInFlash' not allowed in otherwise empty struct UINT64 MicrocodeAddressInF

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Michael D Kinney
What compiler does not like the flexible array member syntax []. Mike > -Original Message- > From: devel@edk2.groups.io On > Behalf Of Siyuan, Fu > Sent: Wednesday, February 26, 2020 5:58 PM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V > ; Gao, Liming > > Subject: [ed

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Fu, Siyuan > Sent: Thursday, February 27, 2020 9:58 AM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V > ; Gao, Liming > > Subject: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. > > This patch fixes co

Re: [edk2-devel] [edk2-platforms] [PATCH v4 0/4] Add Initial Support for UP Xtreme

2020-02-26 Thread Nate DeSimone
For the patch series... Reviewed-by: Nate DeSimone -Original Message- From: devel@edk2.groups.io On Behalf Of Agyeman, Prince Sent: Tuesday, February 25, 2020 4:28 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L Subject: [edk2-devel] [edk2-platforms] [PATCH v4 0/4

Re: [edk2-devel] [PATCH edk2-platforms v2 1/1] Platform: Add SerialUartClockLib for all platforms

2020-02-26 Thread Nate DeSimone
Hi Pankaj, Assuming that your other patch (https://edk2.groups.io/g/devel/message/54629) is approved and merged to edk2, this patch looks good at least for the Intel platforms. Once https://edk2.groups.io/g/devel/message/54629 is merged... Reviewed-by: Nate DeSimone -Original Message

Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 0/2] Fix MdeModulePkg and MdePkg

2020-02-26 Thread Abner Chang
> -Original Message- > From: Leif Lindholm [mailto:l...@nuviainc.com] > Sent: Wednesday, February 26, 2020 8:01 PM > To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v1 0/2] Fix > MdeModulePkg and MdePkg > > On

Re: [edk2-devel] [edk2-platforms] [PATCH v4 4/4] WhiskeylakeOpenBoardPkg/UpXtreme: Add DSC and build files

2020-02-26 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: Agyeman, Prince > Sent: Wednesday, February 26, 2020 8:28 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > > Subject: [edk2-platforms] [PATCH v4 4/4] > WhiskeylakeOpenBoardPkg/UpXtreme: Add DSC and build f

Re: [edk2-devel] [edk2-platforms] [PATCH v4 1/4] WhiskeylakeOpenBoardPkg/WhiskeylakeURvp: Remove BoardFuncInit

2020-02-26 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: Agyeman, Prince > Sent: Wednesday, February 26, 2020 8:28 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > > Subject: [edk2-platforms] [PATCH v4 1/4] > WhiskeylakeOpenBoardPkg/WhiskeylakeURvp: Remove Boar

Re: [edk2-devel] [edk2-platforms] [PATCH v4 2/4] WhiskeylakeOpenBoardPkg: Add UpXtreme board ID

2020-02-26 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: devel@edk2.groups.io On Behalf Of Agyeman, > Prince > Sent: Wednesday, February 26, 2020 8:28 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > > Subject: [edk2-devel] [edk2-platforms] [PATCH v4 2/4] > Whis

Re: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Liming Gao
Reviewed-by: Liming Gao > -Original Message- > From: Fu, Siyuan > Sent: Thursday, February 27, 2020 9:58 AM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V > ; Gao, Liming > Subject: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. > > This patch fixes

[edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.

2020-02-26 Thread Siyuan, Fu
This patch fixes compiler error introduced by commit b0099a39bd. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449 Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Liming Gao Signed-off-by: Siyuan Fu --- .../Feature/ShadowMicrocode/ShadowMicrocodePei.c| 2 +- .../Intel/IntelS

Re: [edk2-devel] [edk2-platforms] [PATCH 1/2] CoffeelakeSiliconPkg: Add Missing GUID

2020-02-26 Thread Chiu, Chasel
Hi Prince, This is fixing VS2017 build issues, so should be able to refer to the same BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2408 You may update BZ to mention about additional missing GUID build failure that will be addressed too. Thanks, Chasel > -Original Message- > Fr

Re: [edk2-devel] [edk2-platforms] [PATCH 2/2] CoffeelakeSiliconPkg: Add Missing Library

2020-02-26 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: Agyeman, Prince Sent: Tuesday, February 25, 2020 4:59 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L Subject: [edk2-platforms] [PATCH 2/2] CoffeelakeSiliconPkg: Add Missing Library REF: https://bugzilla.tianoco

Re: [edk2-devel] [edk2-platforms] [PATCH 1/2] CoffeelakeSiliconPkg: Add Missing GUID

2020-02-26 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: Agyeman, Prince Sent: Tuesday, February 25, 2020 4:59 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L Subject: [edk2-platforms] [PATCH 1/2] CoffeelakeSiliconPkg: Add Missing GUID Added missing GUID gEfiMemoryTyp

Re: [edk2-devel] [edk2-platforms] [PATCH 2/2] CoffeelakeSiliconPkg: Add Missing Library

2020-02-26 Thread Nate DeSimone
Hi Chasel, Since this is the SiliconPkg, not a PlatformPkg I don't think the advanced feature requirements apply as broadly. Since this same code is also in KabylakeSiliconPkg I think Prince's fix is fine. Thanks, Nate -Original Message- From: Chiu, Chasel Sent: Wednesday, February 2

[edk2-devel] [PATCH v2 11/16] OvmfPkg/CpuHotplugSmm: introduce Post-SMM Pen for hot-added CPUs

2020-02-26 Thread Laszlo Ersek
Once a hot-added CPU finishes the SMBASE relocation, we need to pen it in a HLT loop. Add the NASM implementation (with just a handful of instructions, but much documentation), and some C language helper functions. Cc: Ard Biesheuvel Cc: Igor Mammedov Cc: Jiewen Yao Cc: Jordan Justen Cc: Micha

[edk2-devel] [PATCH v2 05/16] OvmfPkg: enable CPU hotplug support in PiSmmCpuDxeSmm

2020-02-26 Thread Laszlo Ersek
Set "PcdCpuHotPlugSupport" to TRUE, when OVMF is built with SMM_REQUIRE. Consequences: (1) In PiCpuSmmEntry() [UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c], resources are allocated and populated in advance for all possible (i.e., potentially hot-added) processors, rather than only the p

[edk2-devel] [PATCH v2 16/16] OvmfPkg/CpuS3DataDxe: enable S3 resume after CPU hotplug

2020-02-26 Thread Laszlo Ersek
During normal boot, CpuS3DataDxe allocates - an empty CPU_REGISTER_TABLE entry in the "ACPI_CPU_DATA.PreSmmInitRegisterTable" array, and - an empty CPU_REGISTER_TABLE entry in the "ACPI_CPU_DATA.RegisterTable" array, for every CPU whose APIC ID CpuS3DataDxe can learn. Currently EFI_MP_SERVI

[edk2-devel] [PATCH v2 13/16] OvmfPkg/CpuHotplugSmm: complete root MMI handler for CPU hotplug

2020-02-26 Thread Laszlo Ersek
With the help of the Post-SMM Pen and the SMBASE relocation functions added in the previous patches, we can now complete the root MMI handler for CPU hotplug. In the driver's entry point function: - allocate the pen (in a reserved page in normal RAM), - install the default ("first") SMI handler

[edk2-devel] [PATCH v2 04/16] OvmfPkg: enable SMM Monarch Election in PiSmmCpuDxeSmm

2020-02-26 Thread Laszlo Ersek
With "PcdCpuSmmEnableBspElection" set to FALSE, PiSmmCpuDxeSmm always considers the processor with index 0 to be the SMM Monarch (a.k.a. the SMM BSP). The SMM Monarch handles the SMI for real, while the other CPUs wait in their SMM loops. In a subsequent patch, we want to set "PcdCpuHotPlugSupport

[edk2-devel] [PATCH v2 15/16] OvmfPkg/CpuS3DataDxe: superficial cleanups

2020-02-26 Thread Laszlo Ersek
Sort the [Packages], [LibraryClasses], and [Pcd] sections in the INF file. Pad the usage notes (CONSUMES, PRODUCES) in the [Pcd] section. Sort the Library #includes in the C file. This patch is functionally a no-op. Cc: Ard Biesheuvel Cc: Igor Mammedov Cc: Jiewen Yao Cc: Jordan Justen Cc: Mi

[edk2-devel] [PATCH v2 10/16] OvmfPkg/CpuHotplugSmm: collect CPUs with events

2020-02-26 Thread Laszlo Ersek
Call QemuCpuhpCollectApicIds() in the root MMI handler. The APIC IDs of the hotplugged CPUs will be used for several purposes in subsequent patches. For calling QemuCpuhpCollectApicIds(), pre-allocate both of its output arrays "PluggedApicIds" and "ToUnplugApicIds" in the driver's entry point func

[edk2-devel] [PATCH v2 12/16] OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs

2020-02-26 Thread Laszlo Ersek
Implement the First SMI Handler for hot-added CPUs, in NASM. Add the interfacing C-language function that the SMM Monarch calls. This function launches and coordinates SMBASE relocation for a hot-added CPU. Cc: Ard Biesheuvel Cc: Igor Mammedov Cc: Jiewen Yao Cc: Jordan Justen Cc: Michael Kinn

[edk2-devel] [PATCH v2 07/16] OvmfPkg/CpuHotplugSmm: add hotplug register block helper functions

2020-02-26 Thread Laszlo Ersek
Add a handful of simple functions for accessing QEMU's hotplug registers more conveniently. These functions thinly wrap some of the registers described in "docs/specs/acpi_cpu_hotplug.txt" in the QEMU tree. The functions hang (by design) if they encounter an internal failure. Cc: Ard Biesheuvel C

[edk2-devel] [PATCH v2 14/16] OvmfPkg: clone CpuS3DataDxe from UefiCpuPkg

2020-02-26 Thread Laszlo Ersek
The @file comments in UefiCpuPkg/CpuS3DataDxe say, [...] It also only supports the number of CPUs reported by the MP Services Protocol, so this module does not support hot plug CPUs. This module can be copied into a CPU specific package and customized if these additional features are requ

[edk2-devel] [PATCH v2 08/16] OvmfPkg/CpuHotplugSmm: define the QEMU_CPUHP_CMD_GET_ARCH_ID macro

2020-02-26 Thread Laszlo Ersek
QEMU commit 3a61c8db9d25 ("acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command", 2020-01-22) introduced a new command in the modern CPU hotplug register block that lets the firmware query the arch-specific IDs (on IA32/X64: the APIC IDs) of CPUs. Add a macro for this command value, because we'll need it l

[edk2-devel] [PATCH v2 06/16] OvmfPkg/CpuHotplugSmm: introduce skeleton for CPU Hotplug SMM driver

2020-02-26 Thread Laszlo Ersek
Add a new SMM driver skeleton that registers a root SMI handler, and checks if the SMI control value (written to 0xB2) indicates a CPU hotplug SMI. QEMU's ACPI payload will cause the OS to raise a broadcast SMI when a CPU hotplug event occurs, namely by writing value 4 to IO Port 0xB2. In other wo

[edk2-devel] [PATCH v2 02/16] UefiCpuPkg/PiSmmCpuDxeSmm: fix S3 Resume for CPU hotplug

2020-02-26 Thread Laszlo Ersek
The "ACPI_CPU_DATA.NumberOfCpus" field is specified as follows, in "UefiCpuPkg/Include/AcpiCpuData.h" (rewrapped for this commit message): // // The number of CPUs. If a platform does not support hot plug CPUs, // then this is the number of CPUs detected when the platform is booted, // re

[edk2-devel] [PATCH v2 03/16] OvmfPkg: clone SmmCpuPlatformHookLib from UefiCpuPkg

2020-02-26 Thread Laszlo Ersek
Clone the Null instance of SmmCpuPlatformHookLib from UefiCpuPkg to OvmfPkg. In this patch, customize the lib instance only with the following no-op steps: - Replace Null/NULL references in filenames and comments with Qemu/QEMU references. - Update copyright notices. - Clean up and rewrap commen

[edk2-devel] [PATCH v2 01/16] MdeModulePkg/PiSmmCore: log SMM image start failure

2020-02-26 Thread Laszlo Ersek
In the CoreStartImage() function [MdeModulePkg/Core/Dxe/Image/Image.c], if the image entry point returns a failure code, then the DXE Core logs a helpful DEBUG_ERROR message, with the following format string: "Error: Image at %11p start failed: %r\n" Do similarly in the SMM Core (update the mes

[edk2-devel] [PATCH v2 09/16] OvmfPkg/CpuHotplugSmm: add function for collecting CPUs with events

2020-02-26 Thread Laszlo Ersek
Add a function that collects the APIC IDs of CPUs that have just been hot-plugged, or are about to be hot-unplugged. Pending events are only located and never cleared; QEMU's AML needs the firmware to leave the status bits intact in the hotplug register block. Cc: Ard Biesheuvel Cc: Igor Mammedo

[edk2-devel] [PATCH v2 00/16] OvmfPkg: support VCPU hotplug with -D SMM_REQUIRE

2020-02-26 Thread Laszlo Ersek
Supersedes: <20200223172537.28464-1-ler...@redhat.com> Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1512 Repo: https://github.com/lersek/edk2.git Branch: vcpu_hotplug_smm_bz_1512_v2 V1 was posted at: * [edk2-devel] [PATCH 00/16] OvmfPkg: support VCPU hotplug with -D SMM_

Re: [edk2-devel] [PATCH v3 6/6] OvmfPkg IA32: add support for loading X64 images

2020-02-26 Thread Ard Biesheuvel
On Wed, 26 Feb 2020 at 21:32, Brian J. Johnson wrote: > > On 2/26/20 1:43 PM, Ard Biesheuvel wrote: > > This is the UEFI counterpart to my Linux series which generalizes > > mixed mode support into a feature that requires very little internal > > knowledge about the architecture specifics of booti

Re: [edk2-devel] [PATCH 12/16] OvmfPkg/CpuHotplugSmm: introduce First SMI Handler for hot-added CPUs

2020-02-26 Thread Laszlo Ersek
On 02/24/20 10:10, Laszlo Ersek wrote: > Overnight I managed to think up an attack, from the OS, against the > "SmmVacated" byte (the last byte of the reserved page, i.e. the last > byte of the Post-SMM Pen). > > Here's how: > > There are three CPUs being hotplugged in one SMI, CPU#1..CPU#3. The

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, February 26, 2020 12:45 PM > To: Duran, Leo ; Ni, Ray ; > devel@edk2.groups.io; Wu, Hao A ; Fu, Siyuan > > Cc: Dong, Eric > Subject: Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in > MpI

Re: [edk2-devel] [PATCH v3 6/6] OvmfPkg IA32: add support for loading X64 images

2020-02-26 Thread Brian J. Johnson
On 2/26/20 1:43 PM, Ard Biesheuvel wrote: This is the UEFI counterpart to my Linux series which generalizes mixed mode support into a feature that requires very little internal knowledge about the architecture specifics of booting Linux on the part of the bootloader or firmware. Instead, we add

[edk2-devel] [PATCH v3 2/6] OvmfPkg: add 'initrd' shell command to expose Linux initrd via device path

2020-02-26 Thread Ard Biesheuvel
Add a new 'initrd' command to the UEFI Shell that allows any file that is accessible to the shell to be registered as the initrd that is returned when Linux's EFI stub loader invokes the LoadFile2 protocol on its special vendor media device path. Signed-off-by: Ard Biesheuvel --- OvmfPkg/LinuxIn

[edk2-devel] [PATCH v3 1/6] OvmfPkg: add definition of LINUX_EFI_INITRD_MEDIA_GUID

2020-02-26 Thread Ard Biesheuvel
Add LINUX_EFI_INITRD_MEDIA_GUID to our collection of GUID definitions, it can be used in a media device path to specify a Linux style initrd that can be loaded by the OS using the LoadFile2 protocol. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- OvmfPkg/Include/Guid/LinuxEfiInitrd

[edk2-devel] [PATCH v3 4/6] OvmfPkg: add the 'initrd' dynamic shell command

2020-02-26 Thread Ard Biesheuvel
Add the 'initrd' dynamic shell command to the build so we can load Linux initrds straight from the shell using the new generic protocol, which does not rely on initrd= being passed on the command line. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc| 4 ++

[edk2-devel] [PATCH v3 3/6] ArmVirtPkg: add the 'initrd' dynamic shell command

2020-02-26 Thread Ard Biesheuvel
Add the 'initrd' dynamic shell command to the build so we can load Linux initrds straight from the shell using the new generic protocol, which does not rely on initrd= being passed on the command line. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/ArmVirt.dsc.inc

[edk2-devel] [PATCH v3 6/6] OvmfPkg IA32: add support for loading X64 images

2020-02-26 Thread Ard Biesheuvel
This is the UEFI counterpart to my Linux series which generalizes mixed mode support into a feature that requires very little internal knowledge about the architecture specifics of booting Linux on the part of the bootloader or firmware. Instead, we add a .compat PE/COFF header containing an array

[edk2-devel] [PATCH v3 0/6] OvmfPkg: implement initrd shell command and mixed mode loader

2020-02-26 Thread Ard Biesheuvel
This is tagged as a v2 since it is a followup to a couple of patches [0][1] that have already been sent to the list. This series is part of my effort to define a generic EFI boot protocol for Linux, i.e,. one that is the same across all different architectures that are able to boot Linux from EFI,

[edk2-devel] [PATCH v3 5/6] MdeModulePkg/DxeCore: defer PE/COFF emulator registration to StartImage

2020-02-26 Thread Ard Biesheuvel
EDK2's implementation of the LoadImage() boot service permits non-native binaries to be loaded (i.e., X64 images on IA32 firmware), but any attempts to start such an image using StartImage() will return EFI_UNSUPPORTED. The integration of the PE/COFF emulator protocol into the DXE core deviates sl

[edk2-devel] [PATCH v3 7/9] ArmVirtPkg/ArmVirtQemu: enable the DXE phase TPM2 support module

2020-02-26 Thread Ard Biesheuvel
Enable the TPM2 support module in the DXE phase, and the associated libraries and PCDs that it requires. This will be wired into the measured boot support code in a subsequent patch. Note that Tcg2Dxe.inf is added to ArmVirtQemuFvMain.fdf.inc, which is shared with other platforms in ArmVirtPkg, bu

[edk2-devel] [PATCH v3 4/9] ArmVirtPkg: implement ArmVirtPsciResetSystemPeiLib

2020-02-26 Thread Ard Biesheuvel
Implement a ArmVirtPkg specific version of the PSCI ResetSystemLib that is usable in the PEI phase, as the existing one relies on the FDT client protocol, making it unsuitable. Note that accessing the device tree passed by QEMU via its initial base address is guaranteed to be safe at any time duri

[edk2-devel] [PATCH v3 0/9] ArmVirtPkg: implement measured boot for ArmVirtQemu

2020-02-26 Thread Ard Biesheuvel
Wire up the various existing pieces so that we can implement measured boot on ArmVirtQemu based on the TPM support in QEMU, just like it has been implemented for x86 in OvmfPkg. The main difference is that on ARM, we first need to discover the TPM base address from the device tree provided by QEMU

[edk2-devel] [PATCH v3 6/9] ArmVirtPkg/ArmVirtQemu: enable TPM2 support in the PEI phase

2020-02-26 Thread Ard Biesheuvel
Incorporate the PEI components and the associated library class resolutions and PCD declarations to enable TPM2 support in the PEI phase. Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 20 ArmVirtPkg/ArmVirtQemu.fdf | 2 ++ 2 files changed, 22 insertions(+)

[edk2-devel] [PATCH v3 5/9] ArmVirtPkg/ArmVirtQemu: add ResetSystem PEIM for upcoming TPM2 support

2020-02-26 Thread Ard Biesheuvel
As a first step in gradually adding TPM2 support to ArmVirtQemu, add the TPM2_ENABLE configurable to the [Defines] section, and if it is set, add the ResetSystem PEIM to the build, along with the library class references that we will need to support it: - wire ArmVirtPsciResetSystemPeiLib into the

[edk2-devel] [PATCH v3 2/9] ArmVirtPkg/PlatformPeiLib: make PcdLib dependency explicit in .INF

2020-02-26 Thread Ard Biesheuvel
We currently include PcdLib.h in PlatformPeiLib, without declaring this dependency in its .INF description. Since all the PCDs we use resolve to fixed type in practice, this does not really matter at the moment, but since we will be adding dynamic PCD references in a subsequent patch, let's make th

[edk2-devel] [PATCH v3 9/9] ArmVirtPkg/ArmVirtQemu: enable TPM2 based measured boot

2020-02-26 Thread Ard Biesheuvel
Now that all the TPM2 related plumbing is in place, we can add the final piece that performs the measurements of loaded images into the appropriate PCRs. Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArmVirtPkg/ArmVirtQemu.dsc

[edk2-devel] [PATCH v3 8/9] ArmVirtPkg/ArmVirtQemu: enable the TPM2 configuration module

2020-02-26 Thread Ard Biesheuvel
Enable the DXE phase component that publishes the HII pages and associated logic to enable TPM2 parameters to be configured by the user via the setup menu. Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 9 + ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 3 +++ 2 files

[edk2-devel] [PATCH v3 3/9] ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT

2020-02-26 Thread Ard Biesheuvel
Introduce a boolean PCD that tells us whether TPM support is enabled in the build, and if it is, record the TPM base address in the existing routine that traverses the device tree in the platform PEIM. If a TPM is found, install the gOvmfTpmDiscoveredPpiGuid signalling PPI that will unlock the dis

[edk2-devel] [PATCH v3 1/9] OvmfPkg/Tcg2ConfigPei: introduce a signalling PPI to depex on

2020-02-26 Thread Ard Biesheuvel
On ARM systems, the TPM does not live at a fixed address, and so we need the platform to discover it first. So introduce a PPI that signals that the TPM address has been discovered and recorded in the appropriate PCD, and make Tcg2ConfigPei depex on it when built for ARM or AARCH64. Reviewed-by: L

[edk2-devel] [PATCH v2 00/13] OvmfPkg: Support booting from Fusion-MPT SCSI controllers

2020-02-26 Thread Nikita Leshenko
This series adds driver support for: - LSI53C1030 - SAS1068 - SAS1068E These controllers are widely supported by QEMU, VirtualBox and VMWare. This work is part of the more general agenda of enhancing OVMF boot device support to have feature parity with SeaBIOS. We have also developed support for

[edk2-devel] [PATCH v2 13/13] OvmfPkg/MptScsiDxe: Report multiple targets

2020-02-26 Thread Nikita Leshenko
The controller supports up to 8 targets (Not reported by the controller, but based on the implementation of the virtual device), report them in GetNextTarget and GetNextTargetLun. The firmware will then try to communicate with them and create a block device for each one that responds. Support for

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
Laszlo, et al, I suppose the same can be said about the actual "PlatformId"... it should be a single/global read, correct? But I'd prefer not tackling that in this patch-set (I'll defer to someone that may want to take that on as an optimization/clean-up.). Leo. > -Original Message- >

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, February 26, 2020 11:25 AM > To: Duran, Leo ; Gao, Liming ; > devel@edk2.groups.io; Ni, Ray ; Wu, Hao A > ; Fu, Siyuan > Cc: Dong, Eric ; l...@nuviainc.com; Kinney, Michael D > ; af...@apple.com > Su

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, February 26, 2020 11:21 AM > To: Duran, Leo ; Ni, Ray ; > devel@edk2.groups.io; Wu, Hao A ; Fu, Siyuan > > Cc: Dong, Eric > Subject: Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in > MpI

[edk2-devel] [PATCH v2 12/13] OvmfPkg/MptScsiDxe: Implement the PassThru method

2020-02-26 Thread Nikita Leshenko
Machines should be able to boot after this commit. Tested with different Linux distributions (Ubuntu, CentOS) and different Windows versions (Windows 7, Windows 10, Server 2016). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed

[edk2-devel] [PATCH v2 08/13] OvmfPkg/MptScsiDxe: Implement GetTargetLun

2020-02-26 Thread Nikita Leshenko
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg/MptScsiDxe/MptScsi.c | 13 - 1 file change

[edk2-devel] [PATCH v2 10/13] OvmfPkg/MptScsiDxe: Set and restore PCI attributes

2020-02-26 Thread Nikita Leshenko
Enable the IO Space and Bus Mastering and restore the original values when the device is stopped. This is a standard procedure in PCI drivers. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-b

[edk2-devel] [PATCH v2 02/13] OvmfPkg/MptScsiDxe: Install DriverBinding Protocol

2020-02-26 Thread Nikita Leshenko
In order to probe and connect to the MptScsi device we need this protocol. Currently it does nothing. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aa

[edk2-devel] [PATCH v2 07/13] OvmfPkg/MptScsiDxe: Build DevicePath for discovered devices

2020-02-26 Thread Nikita Leshenko
Used to identify the individual disks in the hardware tree Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- Ov

[edk2-devel] [PATCH v2 04/13] OvmfPkg/MptScsiDxe: Probe PCI devices and look for MptScsi

2020-02-26 Thread Nikita Leshenko
The MptScsiControllerSupported function is called on handles passed in by the ConnectController() boot service and if the handle is the lsi53c1030 controller the function would return success. A successful return value will attach our driver to the device. Ref: https://bugzilla.tianocore.org/show_

[edk2-devel] [PATCH v2 03/13] OvmfPkg/MptScsiDxe: Report name of driver

2020-02-26 Thread Nikita Leshenko
Install Component Name protocols to have a nice display name for the driver in places such as UEFI shell. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by

[edk2-devel] [PATCH v2 09/13] OvmfPkg/MptScsiDxe: Open PciIo protocol for later use

2020-02-26 Thread Nikita Leshenko
This will give us an exclusive access to the PciIo of this device after it was started and until is will be stopped. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk

[edk2-devel] [PATCH v2 01/13] OvmfPkg/MptScsiDxe: Create empty driver

2020-02-26 Thread Nikita Leshenko
In preparation for implementing LSI Fusion MPT SCSI devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aa

[edk2-devel] [PATCH v2 11/13] OvmfPkg/MptScsiDxe: Initialize hardware

2020-02-26 Thread Nikita Leshenko
Reset and send the IO controller initialization request. The reply is read back to complete the doorbell function but it isn't useful to us because it doesn't contain relevant data or status codes. See "LSI53C1030 PCI-X to Dual Channel Ultra320 SCSI Multifunction Controller" technical manual for m

[edk2-devel] [PATCH v2 05/13] OvmfPkg/MptScsiDxe: Install stubbed EXT_SCSI_PASS_THRU

2020-02-26 Thread Nikita Leshenko
Support dynamic insertion and removal of the protocol Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed-by: Liran Alon --- OvmfPkg

[edk2-devel] [PATCH v2 06/13] OvmfPkg/MptScsiDxe: Report one Target and one LUN

2020-02-26 Thread Nikita Leshenko
Support for multiple targets will be implemented in a later commit in this series. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2390 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Nikita Leshenko Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Aaron Young Reviewed

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Laszlo Ersek
On 02/26/20 17:39, Duran, Leo wrote: > > >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Wednesday, February 26, 2020 11:21 AM >> To: Duran, Leo ; Ni, Ray ; >> devel@edk2.groups.io; Wu, Hao A ; Fu, Siyuan >> >> Cc: Dong, Eric >> Subject: Re: [edk2-devel]

Re: [edk2-devel] [PATCH edk2-stable202002] OvmfPkg/QemuVideoDxe: unbreak "secondary-vga" and "bochs-display" support

2020-02-26 Thread Laszlo Ersek
On 02/24/20 18:17, Laszlo Ersek wrote: > In edk2 commit 333f32ec23dd, QemuVideoDxe gained support for QEMU's > "secondary-vga" device model (originally introduced in QEMU commit > 63e3e24db2e9). > > In QEMU commit 765c94290863, the "bochs-display" device was introduced, > which would work with Qem

Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg: LocalApicLib: Export StandardSignatureIsAuthenticAMD function

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Dong, Eric [mailto:eric.d...@intel.com] > Sent: Wednesday, February 26, 2020 12:06 AM > To: Duran, Leo ; devel@edk2.groups.io > Cc: Ni, Ray ; Laszlo Ersek > Subject: RE: [PATCH 1/2] UefiCpuPkg: LocalApicLib: Export > StandardSignatureIsAuthenticAMD function

[edk2-devel] [PATCH v4 3/5] OvmfPkg: include TcgPei module

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau Mirrors TPM 2.0 commit 4672a4892867 ("OvmfPkg: include Tcg2Pei module", 2018-03-09). Signed-off-by: Marc-André Lureau Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc| 1 + OvmfPkg/OvmfPkgIa32.fdf| 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 1 + OvmfPkg/OvmfPkgIa32

[edk2-devel] [PATCH v4 2/5] OvmfPkg: detect TPM 1.2 in Tcg2ConfigPei

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau Complement commit 6cf1880fb5b ("OvmfPkg: add customized Tcg2ConfigPei clone", 2018-03-09) by detecting TPM 1.2 devices. Since Tpm12RequestUseTpm() returns success on any TPM interface, (including FIFO & CRB which are TPM 2.0), try to send a GetTicks TPM 1.2 command to pro

[edk2-devel] [PATCH v4 0/5] Ovmf: enable TPM 1.2

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau Hi, The following patches add basic TPM 1.2 support for Ovmf/QEMU. Tested successfully Win10 with TIS/TPM 1.2 & CRB/TPM 2.0 passthrough, and emulated CRB/TPM 2.0. Git branch: https://github.com/elmarco/edk2.git tpm1 v4: - misc style changes - drop "OvmfPkg: add TCG C

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Gao, Liming [mailto:liming@intel.com] > Sent: Wednesday, February 26, 2020 3:56 AM > To: devel@edk2.groups.io; Ni, Ray ; Laszlo Ersek > ; Duran, Leo ; Wu, Hao A > ; Fu, Siyuan > Cc: Dong, Eric ; l...@nuviainc.com; Kinney, Michael D > ; af...@apple.com; G

[edk2-devel] [PATCH v4 4/5] OvmfPkg: include TcgDxe module

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau Mirrors TPM 2.0 commit 0c0a50d6b3ff ("OvmfPkg: include Tcg2Dxe module", 2018-03-09). Signed-off-by: Marc-André Lureau Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc| 5 + OvmfPkg/OvmfPkgIa32.fdf| 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 5 + OvmfPkg/Ovm

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
BTW, I also considered adding a flag to CPU_MP_DATA to make the usage of PlatformId a bit more explicit. E.g., something like CpuMpData->CpuData[ProcessorNumber].IsValidPlatformId... So the init code would look like this: // // NOTE: PlatformId is not relevant on AMD platforms. // if (S

[edk2-devel] [PATCH v4 1/5] OvmfPkg: rename TPM2 config prefix to TPM

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau A following patch is going to use the same configuration for TPM1.2 and TPM2.0, and it's simpler to support both than variable configurations. Signed-off-by: Marc-André Lureau Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc| 24 OvmfP

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Ni, Ray [mailto:ray...@intel.com] > Sent: Wednesday, February 26, 2020 2:57 AM > To: Laszlo Ersek ; devel@edk2.groups.io; Duran, Leo > ; Wu, Hao A ; Fu, Siyuan > > Cc: Dong, Eric > Subject: RE: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in > MpIni

Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg: LocalApicLib: Export StandardSignatureIsAuthenticAMD function

2020-02-26 Thread Duran, Leo
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, February 26, 2020 5:13 AM > To: devel@edk2.groups.io; eric.d...@intel.com; Duran, Leo > > Cc: Ni, Ray > Subject: Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg: LocalApicLib: Export > StandardSignatureIsAu

[edk2-devel] [PATCH v4 5/5] OvmfPkg: plug DxeTpmMeasureBootLib into SecurityStubDxe

2020-02-26 Thread marcandre . lureau
From: Marc-André Lureau Mirrors TPM 2.0 commit d5a002aba0aa ("OvmfPkg: plug DxeTpm2MeasureBootLib into SecurityStubDxe", 2018-03-09) Signed-off-by: Marc-André Lureau Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc| 1 + OvmfPkg/OvmfPkgIa32X64.dsc | 1 + OvmfPkg/OvmfPkgX64.dsc |

Re: [edk2-devel] [edk2-platforms] [PATCH 1/2] CoffeelakeSiliconPkg: Add Missing GUID

2020-02-26 Thread Agyeman, Prince
Hi Chasel, No specific BZ was filed for the missing GUID issue, though reported on this mailing list. Thanks Prince -Original Message- From: devel@edk2.groups.io On Behalf Of Chiu, Chasel Sent: Wednesday, February 26, 2020 1:16 AM To: Agyeman, Prince ; devel@edk2.groups.io Cc: Desimon

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Laszlo Ersek
Hi Leo, On 02/26/20 16:11, Duran, Leo wrote: > > >> -Original Message- >> From: Gao, Liming [mailto:liming@intel.com] >> Sent: Wednesday, February 26, 2020 3:56 AM >> To: devel@edk2.groups.io; Ni, Ray ; Laszlo Ersek >> ; Duran, Leo ; Wu, Hao A >> ; Fu, Siyuan >> Cc: Dong, Eric ; l..

Re: [edk2-devel] [PATCH 0/2] UefiCpuPkg/Library: Fix bug in MpInitLib

2020-02-26 Thread Laszlo Ersek
On 02/26/20 16:46, Duran, Leo wrote: > BTW, > > I also considered adding a flag to CPU_MP_DATA to make the usage of > PlatformId a bit more explicit. > E.g., something like CpuMpData->CpuData[ProcessorNumber].IsValidPlatformId... > So the init code would look like this: > > // > // NOTE: Pl

Re: [edk2-devel] [PATCH 1/2] UefiCpuPkg: LocalApicLib: Export StandardSignatureIsAuthenticAMD function

2020-02-26 Thread Laszlo Ersek
On 02/26/20 16:03, Duran, Leo wrote: > > >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Wednesday, February 26, 2020 5:13 AM >> To: devel@edk2.groups.io; eric.d...@intel.com; Duran, Leo >> >> Cc: Ni, Ray >> Subject: Re: [edk2-devel] [PATCH 1/2] UefiCpuPk

Re: [edk2-devel] [PATCH v3 6/6] OvmfPkg: add TCG Configuration menu to the Device Manager menu

2020-02-26 Thread Marc-André Lureau
Hi On Wed, Feb 26, 2020 at 11:46 AM Laszlo Ersek wrote: > > Hi, > > On 02/26/20 10:34, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Matches TPM 2.0 commit 3103389043bd ("OvmfPkg: Add TCG2 Configuration > > menu to the Device Manager menu", 2019-02-11). > > > > Signed-of

Re: [edk2-devel] [PATCH edk2-stable202002] OvmfPkg/QemuVideoDxe: unbreak "secondary-vga" and "bochs-display" support

2020-02-26 Thread Philippe Mathieu-Daudé
On 2/25/20 11:02 PM, Laszlo Ersek wrote: On 02/25/20 21:51, Philippe Mathieu-Daudé wrote: Hi Laszlo, On 2/24/20 6:17 PM, Laszlo Ersek wrote: In edk2 commit 333f32ec23dd, QemuVideoDxe gained support for QEMU's "secondary-vga" device model (originally introduced in QEMU commit 63e3e24db2e9). In

Re: [edk2-devel] [PATCH v3 2/6] OvmfPkg: detect TPM 1.2 in Tcg2ConfigPei

2020-02-26 Thread Stefan Berger
On 2/26/20 4:34 AM, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Complement commit 6cf1880fb5b ("OvmfPkg: add customized Tcg2ConfigPei clone", 2018-03-09) by detecting TPM 1.2 devices. Since Tpm12RequestUseTpm() returns success on any TPM interface, (including FIFO & CRB which ar

[edk2-devel] [PATCH 1/3] ArmPkg/ArmLib: clean up library includes

2020-02-26 Thread Ard Biesheuvel
Suspiciously, ArmLib's INF does not contain a [LibraryClasses] section at all, but it turns out that all the library includes it contains (except for ArmLib.h itself) are actually bogus so let's just drop all of them. While at it, replace with the more accurate for a BASE type module, and put the

  1   2   >