Re: [edk2-devel] [PATCH] Edk2\NetworkPkg\UefiPxeBcDxe : Open a method to Enabled/Disabled IPV6/IPV6 PXE Support.

2019-04-15 Thread Xue, ShengfengX
Hi Siyuan, Please help to review this? Thanks -Original Message- From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Xue, ShengfengX Sent: Monday, April 15, 2019 4:14 PM To: devel@edk2.groups.io Cc: Xue; Xue, ShengfengX Subject: [edk2-devel] [PATCH]

Re: [edk2-devel] [PATCH] Edk2\NetworkPkg\UefiPxeBcDxe : Open a method to Enabled/Disabled IPV6/IPV6 PXE Support.

2019-04-15 Thread Siyuan, Fu
Hi, Shengfeng > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Xue, > ShengfengX > Sent: Monday, April 15, 2019 4:14 PM > To: devel@edk2.groups.io > Cc: Xue; Xue, ShengfengX > Subject: [edk2-devel] [PATCH] Edk2\NetworkPkg\UefiPxeBcDxe : Open a

[edk2-devel] [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name.

2019-04-15 Thread Fan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1718 BaseTools\Scripts\ConvertFceToStructurePcd.py This script is for sorting the PCD order them base on PcdName, then base on Pcd field name. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan ---

Re: [edk2-devel] [PATCH v6 1/7] MdeModulePkg: introduce PE/COFF image emulator protocol

2019-04-15 Thread Leif Lindholm
On Mon, Apr 15, 2019 at 01:23:11AM +, Wu, Hao A wrote: > > + This program and the accompanying materials are licensed and made > > available > > + under the terms and conditions of the BSD License which accompanies this > > + distribution. The full text of the license may be found at > > +

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 1/5] KabylakeSiliconPkg/BaseResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Chiu, Chasel
Please see below comments inline. > -Original Message- > From: Gao, Zhichao > Sent: Monday, April 15, 2019 11:08 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Kubacki, Michael A > > Subject: [edk2-platforms/devel-MinPlatform][PATCH 1/5] > KabylakeSiliconPkg/BaseResetSystemLib: Add

Re: [edk2-devel] [RFC PATCH edk2-non-osi] Emulator: add binary AARCH64 build of X86 PE/COFF emulator

2019-04-15 Thread Leif Lindholm
Some bikeshedding below: On Sun, Apr 14, 2019 at 07:41:56PM -0700, Ard Biesheuvel wrote: > Repo: http://github.com/ardbiesheuvel/X86EmulatorPkg.git > Commit: 5f4deb30eb935f9004b93d97712cc3ac3ae1ca97 Does this permit execution of both IA32 and X64 code? If so, the name makes sense (but the

Re: [edk2-devel] [PATCH v2] IntelFsp2WrapperPkg: Perform post FSP-S process.

2019-04-15 Thread Zeng, Star
Small comments are added inline. With them handled, Reviewed-by: Star Zeng . You do not need to send an extra patch for them specifically if no other comment will be received from other. > -Original Message- > From: Chiu, Chasel > Sent: Monday, April 15, 2019 2:09 PM > To:

[edk2-devel] [PATCH] Edk2\NetworkPkg\UefiPxeBcDxe : Open a method to Enabled/Disabled IPV6/IPV6 PXE Support.

2019-04-15 Thread Xue, ShengfengX
Please refer this link for defail. https://bugzilla.tianocore.org/show_bug.cgi?id=1695 Some Platform setup need provide a item for user to Enabled/Disabled IPV4/IPV6 PXE boot, but Origin UefiPxeBcDxe driver doesn't have such interface. So attached code review added two PCD to control IPV4/IPV6

Re: [edk2-devel] [PATCH 15/25] BeagleBoardPkg/ResetSystemLib: Add new API ResetSystem

2019-04-15 Thread Leif Lindholm
Hi Zhichao, Thanks for this. On Mon, Apr 15, 2019 at 11:06:01AM +0800, Gao, Zhichao wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1460 > > Add a new API ResetSystem to this ResetSystemLib instance. > It only adds the basic functions from ResetSystemRuntimeDxe. > Lacking of this

Re: [edk2-devel] [PATCH 22/25] ArmPkg/ArmSmcPsciResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Leif Lindholm
Same as previous patch - if you drop the space before ;, Reviewed-by: Leif Lindholm On Mon, Apr 15, 2019 at 11:06:08AM +0800, Zhichao Gao wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1460 > > Add a new API ResetSystem to this ResetSystemLib instance. > It only adds the basic

Re: [edk2-devel] [edk2-platforms: PATCH 3/6] Marvell/Armada7k8k: Implement custom DtLoaderLib

2019-04-15 Thread Marcin Wojtas
Hi Ard, pt., 12 kwi 2019 o 23:15 Ard Biesheuvel napisał(a): > > On Fri, 12 Apr 2019 at 03:20, Marcin Wojtas wrote: > > > > In order to provide special handling for DT environment, > > implement custom version of DtLoaderLib, which registers > > ExitBootServices event upon generic 'DtAcpiPref'

[edk2-devel] [PATCH edk2-platforms] Silicon/AMD: drop unused/orphaned Styx ResetSystemLib

2019-04-15 Thread Leif Lindholm
All Styx platforms in the tree (and the world) use ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf these days, but somehow this orphaned .inf was left around - drop it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm ---

Re: [edk2-devel] [edk2-platforms PATCH] Platform/ResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Leif Lindholm
+Thomas for info Zhichao - please update subject line to Platform/ARM: Add a new API ResetSystem to VExpress ResetSystemLib and drop the spaces before ;. With that: Reviewed-by: Leif Lindholm On Mon, Apr 15, 2019 at 11:07:35AM +0800, Zhichao Gao wrote: > REF:

Re: [edk2-devel] [PATCH] Edk2\NetworkPkg\UefiPxeBcDxe : Open a method to Enabled/Disabled IPV6/IPV6 PXE Support.

2019-04-15 Thread Siyuan, Fu
Hi, Shengfeng I gave 4 review comments to your V1 patch, but you only fixed the patch description. Also, an updated patch should be prefixed with [PATCH v2] BestRegards Fu Siyuan > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Xue, >

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 3/5] LewisburgPkg/DxeRuntimeResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Bu, Daocheng
Hi Maciej, Please help review this code from PCH perspective. If you approve this change , please also help cherry pick this change to ServerSiliconPkg\Pch\SouthClusterLbg pkg @10nm trunk. Thanks, Amos UEFI FW, IAFW or System Firmware is more generic & accurate it's not BIOS anymore!

Re: [edk2-devel] [staging/UEFI_CapsuleOnDisk][PATCH] Announce to create "UEFI_CapsuleOnDisk" branch in edk2-staging.

2019-04-15 Thread Xu, Wei6
Due to the tight schedule, we plan to upstream code to staging earlier if there is no more comments. The due date will change to Apr 16th. You can continue to evaluate the feature and provide feedback when this feature stays in staging. BR, Wei Xu From: Xu, Wei6 Sent: Friday, April 12, 2019

[edk2-devel] [edk2-platforms: PATCH] Marvell/Armada7k8k: Set SPCR RegisterBitWidth back to 32

2019-04-15 Thread Marcin Wojtas
Recent modification of the Armada7k8k SPCR to ARM_GAS8 broke the OpenBSD booting with ACPI, as the initial console could mistakenly interpret (with the reg-shift=0), that the registers are 8-bits apart. Fix that by restoring 32-bit register width, however leaving the AccessSize field

Re: [edk2-devel] [PATCH v6 1/7] MdeModulePkg: introduce PE/COFF image emulator protocol

2019-04-15 Thread Michael D Kinney
Hi Leif, This is not a macro that is to be used by C code. It is a technique to prevent recursive includes on a .h file. As a result, we do not want to use the C Coding Standard macro style. Are there other techniques to prevent recursive includes? I agree that macros/symbols that start with

Re: [edk2-devel] [PATCH 0/2] MdeModulePkg: Make the screen seamless

2019-04-15 Thread Laszlo Ersek
Hi Zhichao, On 04/13/19 09:52, Gao, Zhichao wrote: > > >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Friday, April 12, 2019 4:06 PM >> To: devel@edk2.groups.io; Gao, Zhichao >> Cc: Wang, Jian J ; Wu, Hao A ; >> Ni, Ray ; Zeng, Star ; Gao, Liming >> ;

Re: [edk2-devel] [staging/UEFI_CapsuleOnDisk][PATCH] Announce to create "UEFI_CapsuleOnDisk" branch in edk2-staging.

2019-04-15 Thread Michael D Kinney
Wei Xu, Thanks for providing this request for a new edk2-staging branch. Please add the branch maintainers to the Readme along with the criteria that must be met for the feature to be considered a candidate for edk2/master. With those updates, Reviewed-by: Michael D Kinney

Re: [edk2-devel] [PATCH 02/10] MdePkg/PiFirmwareFile: fix undefined behavior in SECTION_SIZE

2019-04-15 Thread Laszlo Ersek
On 04/14/19 09:19, Jordan Justen wrote: > On 2019-04-12 16:31:20, Laszlo Ersek wrote: >> RH covscan justifiedly reports that accessing >> "EFI_COMMON_SECTION_HEADER.Size", which is of type UINT8[3], through a >> (UINT32*), is undefined behavior: >> >>> Error: OVERRUN (CWE-119): >>>

Re: [edk2-devel] [PATCH 18/25] OvmfPkg/ResetSystemLib: Add new API ResetSystem

2019-04-15 Thread Laszlo Ersek
On 04/15/19 05:06, Zhichao Gao wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1460 > > Add a new API ResetSystem to this ResetSystemLib instance. > It only adds the basic functions from ResetSystemRuntimeDxe. > Lacking of this interface may cause link error, if some drivers > use

Re: [edk2-devel] [PATCH 07/10] OvmfPkg/AcpiPlatformDxe: suppress invalid "deref of undef pointer" warning

2019-04-15 Thread Philippe Mathieu-Daudé
On 4/13/19 1:31 AM, Laszlo Ersek wrote: > RH covscan emits the following false positive: > >> Error: CLANG_WARNING: >> edk2-89910a39dcfd/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c:182:14: >> warning: Dereference of undefined pointer value >> #Status = FwVol->ReadSection ( >> #

Re: [edk2-devel] [PATCH 09/10] OvmfPkg/AcpiPlatformDxe: catch theoretical nullptr deref in Xen code

2019-04-15 Thread Philippe Mathieu-Daudé
On 4/13/19 1:31 AM, Laszlo Ersek wrote: > RH covscan justifiedly reports a path through InstallXenTables() where > DsdtTable can technically remain NULL. > > If this occurs in practice, then the guest and the VMM are out of sync on > the interface contract. Catch the situation with a code snippet

Re: [edk2-devel] [RFC PATCH edk2-non-osi] Emulator: add binary AARCH64 build of X86 PE/COFF emulator

2019-04-15 Thread Ard Biesheuvel
On Mon, 15 Apr 2019 at 02:17, Leif Lindholm wrote: > > Some bikeshedding below: > > On Sun, Apr 14, 2019 at 07:41:56PM -0700, Ard Biesheuvel wrote: > > Repo: http://github.com/ardbiesheuvel/X86EmulatorPkg.git > > Commit: 5f4deb30eb935f9004b93d97712cc3ac3ae1ca97 > > Does this permit execution of

Re: [edk2-devel] [RFC PATCH edk2-non-osi] Emulator: add binary AARCH64 build of X86 PE/COFF emulator

2019-04-15 Thread Leif Lindholm
On Mon, Apr 15, 2019 at 10:57:53AM -0700, Ard Biesheuvel wrote: > On Mon, 15 Apr 2019 at 02:17, Leif Lindholm wrote: > > > > Some bikeshedding below: > > > > On Sun, Apr 14, 2019 at 07:41:56PM -0700, Ard Biesheuvel wrote: > > > Repo: http://github.com/ardbiesheuvel/X86EmulatorPkg.git > > >

[edk2-devel] [PATCH v2 edk2-non-osi] Emulator: add binary AARCH64 build of X64 PE/COFF emulator

2019-04-15 Thread Ard Biesheuvel
Add a binary RELEASE build targeting AARCH64 systems, created with Ubuntu's gcc 7.3.0 using the GCC5 profile. This permits such systems to dispatch and execute option ROMs and other drivers built for the X64 architecture. Repo: http://github.com/ardbiesheuvel/X86EmulatorPkg.git Commit:

Re: [edk2-devel] [PATCH edk2-platforms] Silicon/AMD: drop unused/orphaned Styx ResetSystemLib

2019-04-15 Thread Ard Biesheuvel
On Mon, 15 Apr 2019 at 03:15, Leif Lindholm wrote: > > All Styx platforms in the tree (and the world) use > ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf > these days, but somehow this orphaned .inf was left around - drop it. > > Contributed-under: TianoCore Contribution

Re: [edk2-devel] [edk2-platforms: PATCH 3/6] Marvell/Armada7k8k: Implement custom DtLoaderLib

2019-04-15 Thread Ard Biesheuvel
On Mon, 15 Apr 2019 at 02:52, Marcin Wojtas wrote: > > Hi Ard, > > > pt., 12 kwi 2019 o 23:15 Ard Biesheuvel > napisał(a): > > > > On Fri, 12 Apr 2019 at 03:20, Marcin Wojtas wrote: > > > > > > In order to provide special handling for DT environment, > > > implement custom version of

Re: [edk2-devel] [PATCH v2 edk2-non-osi] Emulator: add binary AARCH64 build of X64 PE/COFF emulator

2019-04-15 Thread Leif Lindholm
On Mon, Apr 15, 2019 at 11:22:59AM -0700, Ard Biesheuvel wrote: > Add a binary RELEASE build targeting AARCH64 systems, created with > Ubuntu's gcc 7.3.0 using the GCC5 profile. This permits such systems > to dispatch and execute option ROMs and other drivers built for the > X64 architecture. > >

Re: [edk2-devel] [PATCH v2 edk2-non-osi] Emulator: add binary AARCH64 build of X64 PE/COFF emulator

2019-04-15 Thread Ard Biesheuvel
On Mon, 15 Apr 2019 at 12:06, Leif Lindholm wrote: > > On Mon, Apr 15, 2019 at 11:22:59AM -0700, Ard Biesheuvel wrote: > > Add a binary RELEASE build targeting AARCH64 systems, created with > > Ubuntu's gcc 7.3.0 using the GCC5 profile. This permits such systems > > to dispatch and execute option

Re: [edk2-devel] [PATCH v6 4/7] MdeModulePkg/UefiBootManagerLib: allow foreign Driver#### images

2019-04-15 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Ard Biesheuvel > Sent: Sunday, April 14, 2019 12:53 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Kinney, Michael D > ; Andrew Fish ; Leif > Lindholm ; Zeng, Star ; >

Commit Partitioning - Re: [edk2-devel] [edk2] [PATCH V2] UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader

2019-04-15 Thread Jordan Justen
On 2019-04-11 08:51:22, Guo Dong wrote: > CorebootModulePkg and CorebootPayloadPkg originally supports coreboot only. > In order to support other bootloaders, such as Slim Bootloader, they need > be updated to be more generic. > UEFI Payload (UefiPayloadPkg) a converged package from

[edk2-devel] [PATCH edk2-platforms 0/3] add X64 PE/COFF emulator to PCI systems

2019-04-15 Thread Ard Biesheuvel
Add a conditional build time include of the prebuild X64 PE/COFF emulator binary to some platforms that will be able to make use of it (i.e., have usable PCI slots) Ard Biesheuvel (3): Platform/DeveloperBox: conditionally include the X64 PE/COFF emulator Platform/Overdrive: conditionally

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 1/5] KabylakeSiliconPkg/BaseResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Gao, Zhichao
For now, no driver consumes ResetSystem. But some drivers in edk repo, such as CapsuleRuntimeDxe would use it in the further. If the platform support this driver and do not use the ResetSystemLib instance in MdeModulePkg, a link error would be caused. Thanks, Zhichao > -Original

Re: Commit Partitioning - Re: [edk2-devel] [edk2] [PATCH V2] UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader

2019-04-15 Thread Ma, Maurice
Hi, Jordan That is a good point. Smaller patch will always help the review easier. Thank you for pointing it out. Thanks Maurice > -Original Message- > From: Justen, Jordan L > Sent: Monday, April 15, 2019 15:28 > To: Dong, Guo ; Ma, Maurice > ; devel@edk2.groups.io > Cc: Agyeman,

Re: Commit Partitioning - Re: [edk2-devel] [edk2] [PATCH V2] UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader

2019-04-15 Thread Guo Dong
Thanks Jordan for the comments. This patch adds a new package instead of updating existing code. I thought it was difficult to separate this patch into multiple sub-patches while keeping each chunk to be able to compile and function. Will consider this in the future. Thanks, Guo >

Re: [edk2-devel] [RFC] Propose update of security bug handling process

2019-04-15 Thread Vincent Zimmer
I agree w/ your comments Jian. Great input from Lazlo, too. I also want to let the community know that this specific process posting has 2 parts. This first was to post the process used by infosec bz team today, which Jian did well with

[edk2-devel] [RFC] Remove unused tool chain configuration in BaseTools/Conf/tools_def.template

2019-04-15 Thread Zhang, Shenglei
Hi All, There is no Intel compiler test. I suggest to remove ICC tool chain from tools_def.template. After this update, INTEL tool family is not used. So, MdePkg library can be updated to remove it. And also MS ASL is not verified now. I suggest to remove tool chain with ASL tool. They are:

Re: [edk2-devel] [PATCH 0/2] MdeModulePkg: Make the screen seamless

2019-04-15 Thread Gao, Zhichao
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Monday, April 15, 2019 11:56 PM > To: Gao, Zhichao ; devel@edk2.groups.io > Cc: Wang, Jian J ; Wu, Hao A ; > Ni, Ray ; Zeng, Star ; Gao, Liming > ; Sean Brogan ; > Michael Turner ; Bret Barkelew > > Subject:

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 2/5] KabylakeSiliconPkg/DxeResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: Gao, Zhichao > Sent: Monday, April 15, 2019 11:08 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Kubacki, Michael A > ; Gao, Liming > Subject: [edk2-platforms/devel-MinPlatform][PATCH 2/5] >

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 4/5] KabylakeSiliconPkg/PeiResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: Gao, Zhichao > Sent: Monday, April 15, 2019 11:08 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Kubacki, Michael A > ; Gao, Liming > Subject: [edk2-platforms/devel-MinPlatform][PATCH 4/5] >

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 1/5] KabylakeSiliconPkg/BaseResetSystemLib: Add a new API ResetSystem

2019-04-15 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu > -Original Message- > From: Gao, Zhichao > Sent: Monday, April 15, 2019 11:08 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Kubacki, Michael A > > Subject: [edk2-platforms/devel-MinPlatform][PATCH 1/5] > KabylakeSiliconPkg/BaseResetSystemLib: Add a new

Re: [edk2-devel] [edk2-platforms/devel-MinPlatform][PATCH 0/5] Add a new API ResetSystem for ResetSystemLib instances

2019-04-15 Thread Kubacki, Michael A
Reviewed-by: Michael Kubacki > -Original Message- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Gao, > Zhichao > Sent: Sunday, April 14, 2019 8:08 PM > To: devel@edk2.groups.io > Cc: Piwko; Piwko, Maciej ; Bu; Bu, Daocheng > ; Oram; Oram, Isaac W ; > Chiu,

[edk2-devel] [PATCH V3] BaseTools:Enable the /MP option of MSVC compiler

2019-04-15 Thread Fan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1672 The /MP option of MSVC compiler can reduce the total time to compile the source files on the command line. This patch is going to enable this MSVC option in BaseTools. Cc: Bob Feng Cc: Liming Gao Contributed-under: TianoCore Contribution

Re: [edk2-devel] [PATCH edk2-platforms 3/3] Platform/MacchiatoBin: conditionally include the X64 PE/COFF emulator

2019-04-15 Thread Marcin Wojtas
Hi Ard, wt., 16 kwi 2019 o 00:43 Ard Biesheuvel napisał(a): > > Add the X64 emulator to the build if '-D X64EMU_ENABLE=TRUE' is passed > on the build command line. Note that this only works on AARCH64 builds. > Also note that the edk2-non-osi repository needs to be listed in the > PACKAGES_PATH

[edk2-devel] [Staging/Bug_1525_FmpDevicePkg_MultipleControllers][PATCH] MdeModulePkg/EsrtFmpDxe: Correct the LastAttemptVersion algorithm in ESRT entry

2019-04-15 Thread Eric Jin
Fix the 1nd issue mentioned in https://bugzilla.tianocore.org/show_bug.cgi?id=1525 Update the ESRT entry with the last attempt status and last attempt version from the first FMP instance whose last attempt status is not SUCCESS. If all FMP instances are SUCCESS, then set last attempt version to