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

2020-02-25 Thread Ni, Ray
Leo, > > BTW, reading the PlatformId MSR was already being done by MicrocodeDetect(), > > but it never affected AMD-based platforms as the flow never gets that far, > > since > > the Detect routine bails out early when it finds the size of the patch is > > zero. You are saying that PlatformId M

Re: [edk2-devel] [PATCH 2/2] UefiCpuPkg: MpInitLib: Exclude code no pertinent to AMD processors.

2020-02-25 Thread Siyuan, Fu
Acked-by: Siyuan Fu > -Original Message- > From: Ni, Ray > Sent: 2020年2月26日 15:46 > To: Leo Duran ; devel@edk2.groups.io; Wu, Hao A > ; Fu, Siyuan > Cc: Dong, Eric ; Laszlo Ersek > Subject: RE: [PATCH 2/2] UefiCpuPkg: MpInitLib: Exclude code no pertinent > to AMD processors. > > + Hao

Re: [edk2-devel] [PATCH 2/2] UefiCpuPkg: MpInitLib: Exclude code no pertinent to AMD processors.

2020-02-25 Thread Ni, Ray
+ Hao Wu and Siyuan Fu for review. > -Original Message- > From: Leo Duran > Sent: Wednesday, February 26, 2020 3:39 AM > To: devel@edk2.groups.io > Cc: Leo Duran ; Dong, Eric ; Ni, Ray > ; Laszlo Ersek > > Subject: [PATCH 2/2] UefiCpuPkg: MpInitLib: Exclude code no pertinent to AMD > p

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Ard Biesheuvel
On Wed, 26 Feb 2020 at 02:34, Pete Batard wrote: > > Hi Ard, > > On 2020.02.25 22:27, Ard Biesheuvel wrote: > > On Tue, 25 Feb 2020 at 19:31, Ard Biesheuvel > > wrote: > >> > >> On Tue, 25 Feb 2020 at 19:28, Ard Biesheuvel > >> wrote: > >>> > >>> Cache maintenance operations by set/way are onl

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

2020-02-25 Thread Dong, Eric
Hi Leo, Yes, I means you also change the cod position in the c file, so in the patch file, it seems like it has other changes. My recommendation is to refine the patch to not change the code postion. -Original Message- From: Duran, Leo Sent: Wednesday, February 26, 2020 10:41 AM To: D

Re: [edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error.

2020-02-25 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Chaganty, Rangasai V > Sent: Wednesday, February 26, 2020 9:39 AM > To: Fu, Siyuan ; devel@edk2.groups.io > Cc: Ni, Ray > Subject: RE: [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid > compiler error. > > Reviewed-by: Sa

[edk2-devel] [PATCH] CryptoPkg: Check the type is data and Support other OID types.

2020-02-25 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2539 Microsoft signtool supports creation of attached P7's with any OID payload via the "/p7co" parameter. It is necessary to check the data before get the string. Signed-off-by: GuoMinJ --- .../BaseCryptLib/Pk/CryptPkcs7VerifyBase.c| 51 +

Re: [edk2-devel] [PATCH v3 1/1] MdeModulePkg/Pci: Fixed Asserts in SCT PCIIO Protocol Test.

2020-02-25 Thread Wu, Hao A
> -Original Message- > From: Gaurav Jain [mailto:gaurav.j...@nxp.com] > Sent: Tuesday, February 25, 2020 8:01 PM > To: devel@edk2.groups.io > Cc: Wang, Jian J; Wu, Hao A; Ni, Ray; Ard Biesheuvel; Pankaj Bansal; Gaurav > Jain > Subject: [PATCH v3 1/1] MdeModulePkg/Pci: Fixed Asserts in SCT P

Re: [edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error.

2020-02-25 Thread Chaganty, Rangasai V
Reviewed-by: Sai Chaganty -Original Message- From: Fu, Siyuan Sent: Tuesday, February 25, 2020 5:08 PM To: devel@edk2.groups.io Cc: Ni, Ray ; Chaganty, Rangasai V Subject: [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error. This patch fixes a potential co

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Pete Batard
Hi Ard, On 2020.02.25 22:27, Ard Biesheuvel wrote: On Tue, 25 Feb 2020 at 19:31, Ard Biesheuvel wrote: On Tue, 25 Feb 2020 at 19:28, Ard Biesheuvel wrote: Cache maintenance operations by set/way are only intended to be used in the context of on/offlining a core, while it has been taken out

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

2020-02-25 Thread Laszlo Ersek
On 02/26/20 00:43, Laszlo Ersek wrote: > On 02/25/20 10:39, Ard Biesheuvel wrote: >> +" 2. The initrd is not unloaded when the shell exits, and will remain >> active\r\n" >> +" until it is unloaded again by a different invocation of the >> shell.\r\n" >> +" Consumers of the LoadFile2 pr

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

2020-02-25 Thread Dong, Eric
Hi Leo, I check the code and find the real change for the C files are add "EFIAPI" in the code. Can you help to refine the change and only keep the real changes? Thanks, Eric -Original Message- From: Leo Duran Sent: Wednesday, February 26, 2020 3:39 AM To: devel@edk2.groups.io Cc: Le

Re: [edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error.

2020-02-25 Thread Liming Gao
Reviewed-by: Liming Gao > -Original Message- > From: devel@edk2.groups.io On Behalf Of Siyuan, Fu > Sent: Wednesday, February 26, 2020 9:08 AM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V > > Subject: [edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitl

[edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error.

2020-02-25 Thread Siyuan, Fu
This patch fixes a potential compiler error introduced by commit b0099a39bd since not all compiler can support empty array member. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449 Cc: Ray Ni Cc: Rangasai V Chaganty Signed-off-by: Siyuan Fu --- .../Intel/IntelSiliconPkg/Include/Guid

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

2020-02-25 Thread Agyeman, Prince
Added missing GUID gEfiMemoryTypeInformationGuid to PeiPolicyUpdateLib.inf to fix VS2017 build issue Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Prince Agyeman --- .../Policy/Library/PeiPolicyUpdateLib/PeiPolicyUpdateLib.inf | 1 + 1 file changed, 1 insertion(+) diff --git a/Platfo

[edk2-devel] [edk2-platforms] [PATCH 0/2] Add VS2017 Support

2020-02-25 Thread Agyeman, Prince
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2408 The patch series add VS2017 build support to the edk2-plaforms/Intel boards Cc: Chasel Chiu Cc: Nate DeSimone Prince Agyeman (2): CoffeelakeSiliconPkg: Add Missing GUID CoffeelakeSiliconPkg: Add missing library .../PeiPolicyUpdateL

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

2020-02-25 Thread Agyeman, Prince
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2408 Added GbeMdiLib implementation and added additional registers definitions needed by GbeMdilib. This fixes the linker errors seen during VS2017 builds Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Prince Agyeman --- .../Pch/Include/L

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

2020-02-25 Thread Laszlo Ersek
Hi Leo, On 02/25/20 20:39, Leo Duran wrote: > This patch set fixes an issue introduced recently in MpInitLib, where we read > a PlatformId MSR that is not implemented on AMD processors. > > The proposed solution is to export the StandardSignatureIsAuthenticAMD > function > from LocalApicLib, so

Re: [edk2-devel] [PATCHv2 1/1] MdeModulePkg/SdMmcPciHcDxe: Send SEND_STATUS at lower frequency

2020-02-25 Thread Wu, Hao A
> -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Albecki, Mateusz > Sent: Tuesday, February 25, 2020 11:06 PM > To: devel@edk2.groups.io > Cc: Albecki, Mateusz; Wu, Hao A; Marcin Wojtas; Gao, Zhichao; Gao, Liming > Subject: [edk2-devel] [PATCHv2

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Laszlo Ersek
On 02/25/20 19:28, Ard Biesheuvel wrote: > Cache maintenance operations by set/way are only intended to be used > in the context of on/offlining a core, while it has been taken out of > the coherency domain. Any use intended to ensure that the contents of > the cache have made it to main memory is

Re: [edk2-devel] [PATCH v2 5/5] ArmVirtPkg/ArmVirtQemu: add optional support for TPM2 measured boot

2020-02-25 Thread Laszlo Ersek
On 02/25/20 11:44, Ard Biesheuvel wrote: > Duplicate the TPM2_ENABLE and TPM2_CONFIG_ENABLE build time flags that > already exist in OvmfPkg, and wire them up in the .DSC and .FDF so > that setting those flags produces a ArmVirtQemu build that implements > measured boot using a TPM provided by QEMU

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

2020-02-25 Thread Laszlo Ersek
On 02/26/20 01:24, Laszlo Ersek wrote: > On 02/25/20 11:44, 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. >> >>

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

2020-02-25 Thread Agyeman, Prince
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2191 This patch series add the initial Up Xtreme board support to the WhiskeylakeOpenBoardPkg V4 Changes: - Removed MTRR configuration function - Rearranged FVs to improve boot time V3 Changes: - Updated copyright year - Added function

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

2020-02-25 Thread Agyeman, Prince
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2191 Co-authored-by: Michael Kubacki Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Prince Agyeman --- .../Intel/WhiskeylakeOpenBoardPkg/Include/PlatformBoardId.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Pla

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

2020-02-25 Thread Agyeman, Prince
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2191 Adds the DSC and build files necessary to build the UpXtreme board instance. Key files = * build_config.cfg - Board-specific build configuration file. * OpenBoardPkg.dsc - The UpXtreme board description file. * OpenBoardPkgPcd.dsc -

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

2020-02-25 Thread Agyeman, Prince
Removes BoardFuncInit related functionality in WhiskeylakeURvp. Co-authored-by: Michael Kubacki Cc: Chasel Chiu Cc: Nate DeSimone Signed-off-by: Prince Agyeman --- .../Library/BoardInitLib/BoardFunc.c | 19 .../Library/BoardInitLib/BoardFunc.h | 20 -

Re: [edk2-devel] [PATCH v2 4/5] ArmVirtPkg: implement ArmVirtPsciResetSystemPeiLib

2020-02-25 Thread Laszlo Ersek
On 02/25/20 11:44, Ard Biesheuvel wrote: > 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 bas

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 11:44, 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] [PATCH v2 0/5] ArmVirtPkg: implement measured boot for ArmVirtQemu

2020-02-25 Thread Laszlo Ersek
On 02/25/20 11:44, Ard Biesheuvel wrote: > 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

Re: [edk2-devel] [PATCH v2 2/5] ArmVirtPkg/PlatformPeiLib: make PcdLib dependency explicit in .INF

2020-02-25 Thread Laszlo Ersek
On 02/25/20 11:44, Ard Biesheuvel wrote: > 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 PC

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

2020-02-25 Thread Laszlo Ersek
On 02/26/20 00:43, Laszlo Ersek wrote: > On 02/25/20 10:39, Ard Biesheuvel wrote: >> +Status = ShellOpenFileByName (Filename, &FileHandle, >> + EFI_FILE_MODE_READ, 0); >> +if (!EFI_ERROR (Status)) { >> + Status = CacheInitrdFile (FileHandle); >> +

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 10:39, 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

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 10:39, Ard Biesheuvel wrote: > 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 > --- > OvmfP

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 10:39, Ard Biesheuvel wrote: > 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 > --- > ArmVi

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 10:39, Ard Biesheuvel wrote: > 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. >

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Ard Biesheuvel
On Tue, 25 Feb 2020 at 19:31, Ard Biesheuvel wrote: > > On Tue, 25 Feb 2020 at 19:28, Ard Biesheuvel > wrote: > > > > Cache maintenance operations by set/way are only intended to be used > > in the context of on/offlining a core, while it has been taken out of > > the coherency domain. Any use i

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 10:39, Ard Biesheuvel wrote: > 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 > --- > OvmfPkg

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

2020-02-25 Thread Laszlo Ersek
On 02/25/20 14:20, Liming Gao wrote: > Laszlo: > Seemly, this is a regression issue. I am ok to catch it into stable tag > edk2-stable202002. Thank you. If Phil is satisfied with my explanation, I'll push the patch tomorrow. Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all me

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

2020-02-25 Thread Laszlo Ersek
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 QEMU commit 765c94290863

Re: [edk2-devel] A problem with live migration of UEFI virtual machines

2020-02-25 Thread Andrew Fish via Groups.Io
> On Feb 25, 2020, at 12:40 PM, Laszlo Ersek wrote: > > Hi Andrew, > > On 02/25/20 19:56, Andrew Fish wrote: >> Laszlo, >> >> If I understand this correctly is it not more complicated than just size. It >> also assumes the memory layout is the same? > > Yes. > >> The legacy BIOS used fixe

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

2020-02-25 Thread Philippe Mathieu-Daudé
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 QEMU commit 765c94290863, the "bochs-display" device was introduced, which would work with

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

2020-02-25 Thread Leo Duran
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2556 The StandardSignatureIsAuthenticAMD function was introduced locally to help divert code paths pertinent (or not) to AMD processors. This patch exports that function so that it may serve the same purpose in other modules that consume LocalApi

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

2020-02-25 Thread Leo Duran
This patch set fixes an issue introduced recently in MpInitLib, where we read a PlatformId MSR that is not implemented on AMD processors. The proposed solution is to export the StandardSignatureIsAuthenticAMD function from LocalApicLib, so that it may be used by MpInitLib or any other module that

[edk2-devel] [PATCH 2/2] UefiCpuPkg: MpInitLib: Exclude code no pertinent to AMD processors.

2020-02-25 Thread Leo Duran
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2556 This patch uses the newly exported StandardSignatureIsAuthenticAMD function from LocalApicLib, to divert code paths not pertinent to AMD processors. Specifically, the PlatformId MSR and embedded Microcode patches are not relevant on AMD-base

Re: [edk2-devel] A problem with live migration of UEFI virtual machines

2020-02-25 Thread Laszlo Ersek
Hi Andrew, On 02/25/20 19:56, Andrew Fish wrote: > Laszlo, > > If I understand this correctly is it not more complicated than just size. It > also assumes the memory layout is the same? Yes. > The legacy BIOS used fixed magic address ranges, but UEFI uses dynamically > allocated memory so add

Re: [edk2-devel] A problem with live migration of UEFI virtual machines

2020-02-25 Thread Andrew Fish via Groups.Io
Laszlo, If I understand this correctly is it not more complicated than just size. It also assumes the memory layout is the same? The legacy BIOS used fixed magic address ranges, but UEFI uses dynamically allocated memory so addresses are not fixed. While the UEFI firmware does try to keep S3 an

Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Ard Biesheuvel
On Tue, 25 Feb 2020 at 19:28, Ard Biesheuvel wrote: > > Cache maintenance operations by set/way are only intended to be used > in the context of on/offlining a core, while it has been taken out of > the coherency domain. Any use intended to ensure that the contents of > the cache have made it to m

[edk2-devel] [PATCH 1/1] ArmPlatformPkg/PrePi: replace set/way cache ops with by-VA ones

2020-02-25 Thread Ard Biesheuvel
Cache maintenance operations by set/way are only intended to be used in the context of on/offlining a core, while it has been taken out of the coherency domain. Any use intended to ensure that the contents of the cache have made it to main memory is unreliable, since cacheline migration and non-arc

Re: [edk2-devel] A problem with live migration of UEFI virtual machines

2020-02-25 Thread Laszlo Ersek
On 02/24/20 16:28, Daniel P. Berrangé wrote: > On Tue, Feb 11, 2020 at 05:39:59PM +, Alex Bennée wrote: >> >> wuchenye1995 writes: >> >>> Hi all, >>>We found a problem with live migration of UEFI virtual machines >>>due to size of OVMF.fd changes. >>>Specifically, the size of OVMF.

Re: [edk2-devel] [PATCH] acpi/iort: check output reference for the real used mapping

2020-02-25 Thread Lorenzo Pieralisi
On Tue, Feb 25, 2020 at 05:01:36PM +0800, Heyi Guo wrote: > The function iort_node_map_id() does the sanity check against the > first mapping in the node, but not the one which we really use. > > Logically we need check the mapping we use, or check every mapping in > the node. Choose the first fix

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

2020-02-25 Thread Gerd Hoffmann
On Mon, Feb 24, 2020 at 06:17:41PM +0100, 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, > wh

[edk2-devel] [PATCHv2 0/1] MdeModulePkg/SdMmcPciHcDxe: Increase driver reliability

2020-02-25 Thread Albecki, Mateusz
This patch series aims to increase the reliability of the eMMC detection by exectuing the SEND_STATUS after SWITCH command on the lower frequency. Currently the driver will first switch the frequency to the new target and then execute SEND_STATUS to see if SWITCH was a success. While this behavi

[edk2-devel] [PATCHv2 1/1] MdeModulePkg/SdMmcPciHcDxe: Send SEND_STATUS at lower frequency

2020-02-25 Thread Albecki, Mateusz
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1140 To avoid stability issues on some designs the driver will now send SEND_STATUS at previous, lower, frequency when upgrading the bus timing. Cc: Hao A Wu Cc: Marcin Wojtas Cc: Zhichao Gao Cc: Liming Gao Signed-off-by: Mateusz Albecki -

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

2020-02-25 Thread Liming Gao
Laszlo: Seemly, this is a regression issue. I am ok to catch it into stable tag edk2-stable202002. Thanks Liming > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ard Biesheuvel > Sent: Tuesday, February 25, 2020 1:21 AM > To: Laszlo Ersek > Cc: edk2-devel-groups-io ; Ge

Re: [edk2-devel] [PATCH 3/3] MdeModulePkg: Use CopyGuid instead of GUID assignment

2020-02-25 Thread Dandan Bi
> -Original Message- > From: Daniel Schaefer [mailto:daniel.schae...@hpe.com] > Sent: Sunday, February 23, 2020 12:59 AM > To: devel@edk2.groups.io > Cc: Abner Chang ; Gilbert Chen > ; Leif Lindholm ; Bi, Dandan > ; Dong, Eric > Subject: [PATCH 3/3] MdeModulePkg: Use CopyGuid instead of GU

Re: [edk2-devel] [PATCH v2 0/5] ArmVirtPkg: implement measured boot for ArmVirtQemu

2020-02-25 Thread Ard Biesheuvel
On Tue, 25 Feb 2020 at 11:45, Ard Biesheuvel wrote: > > 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 dis

[edk2-devel] [PATCH v2 0/5] ArmVirtPkg: implement measured boot for ArmVirtQemu

2020-02-25 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 v2 3/5] ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT

2020-02-25 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 v2 4/5] ArmVirtPkg: implement ArmVirtPsciResetSystemPeiLib

2020-02-25 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 v2 2/5] ArmVirtPkg/PlatformPeiLib: make PcdLib dependency explicit in .INF

2020-02-25 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 v2 1/5] OvmfPkg/Tcg2ConfigPei: introduce a signalling PPI to depex on

2020-02-25 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 5/5] ArmVirtPkg/ArmVirtQemu: add optional support for TPM2 measured boot

2020-02-25 Thread Ard Biesheuvel
Duplicate the TPM2_ENABLE and TPM2_CONFIG_ENABLE build time flags that already exist in OvmfPkg, and wire them up in the .DSC and .FDF so that setting those flags produces a ArmVirtQemu build that implements measured boot using a TPM provided by QEMU and described in the device tree. Note that the

[edk2-devel] [PATCH] EmulatorPkg/WinHost: Debug CpuBreakPoint.

2020-02-25 Thread GuoMinJ
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2319 __debugbreak() in any application will terminate the application on windows 10. add /debug option for debugging windows 10. Signed-off-by: GuoMinJ --- EmulatorPkg/Win/Host/WinHost.c | 30 ++ 1 file changed, 30

Re: [edk2-devel] [edk2-platforms][PATCH 1/1] Platform/RPi4/Acpi: Use "rgmii-rxid" phy-mode for Genet

2020-02-25 Thread Ard Biesheuvel
On Tue, 25 Feb 2020 at 11:27, Pete Batard wrote: > > "rgmii-rxid" is what the Linux folks use in their Device Tree so we follow > suit. This fixes packet losses and unreliable network connections which we > experienced when testing the Linux Genet driver. > > Signed-off-by: Pete Batard Reviewed-

[edk2-devel] [edk2-platforms][PATCH 1/1] Platform/RPi4/Acpi: Use "rgmii-rxid" phy-mode for Genet

2020-02-25 Thread Pete Batard
"rgmii-rxid" is what the Linux folks use in their Device Tree so we follow suit. This fixes packet losses and unreliable network connections which we experienced when testing the Linux Genet driver. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi4/AcpiTables/Dsdt.asl | 2 +- 1 file chang

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

2020-02-25 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 v2 6/6] OvmfPkg IA32: add support for loading X64 images

2020-02-25 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 v2 2/6] OvmfPkg: add 'initrd' shell command to expose Linux initrd via device path

2020-02-25 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 v2 0/6] OvmfPkg: implement initrd shell command and mixed mode loader

2020-02-25 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 v2 3/6] ArmVirtPkg: add the 'initrd' dynamic shell command

2020-02-25 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 --- ArmVirtPkg/ArmVirt.dsc.inc | 4 ArmVirtPkg/Ar

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

2020-02-25 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 --- OvmfPkg/OvmfPkgIa32.dsc| 4 OvmfPkg/OvmfPkgIa32.fdf

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

2020-02-25 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 --- OvmfPkg/Include/Guid/LinuxEfiInitrdMedia.h | 17 ++

Re: [edk2-devel] [PATCH] acpi/iort: check output reference for the real used mapping

2020-02-25 Thread Guoheyi
Hi all, Please ignore it. I made a mistake of sending to the wrong mailing list... Sorry for the noise. And have a good day :) Heyi On 2020/2/25 17:01, Guoheyi wrote: The function iort_node_map_id() does the sanity check against the first mapping in the node, but not the one which we really

[edk2-devel] [PATCH] acpi/iort: check output reference for the real used mapping

2020-02-25 Thread Guoheyi
The function iort_node_map_id() does the sanity check against the first mapping in the node, but not the one which we really use. Logically we need check the mapping we use, or check every mapping in the node. Choose the first fix for we are not firmware tester. Signed-off-by: Heyi Guo --- Cc: