Re: [edk2] [PATCH v2 1/3] IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access

2017-12-07 Thread Wang, Jian J
Thanks for the comment. The {} will be added. Sincerely, Jian > -Original Message- > From: Ni, Ruiyu > Sent: Thursday, December 07, 2017 3:00 PM > To: Wang, Jian J ; edk2-devel@lists.01.org > Cc: Gao, Liming ; Kinney, Michael D > > Subject: Re: [PATCH v2 1/3] IntelFrameworkPkg/LegacyBio

Re: [edk2] [PATCH 0/2] Follow PI spec to update EFI_MM_COMMUNICATE

2017-12-07 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com > -Original Message- > From: Zeng, Star > Sent: Wednesday, December 6, 2017 5:18 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; Gao, > Liming ; Kinney, Michael D > > Subject: [PATCH 0/2] Follow PI spec to update EFI_MM_COMMUNICATE > >

Re: [edk2] [Patch] SignedCapsulePkg: Update EdkiiSystemCapsuleLib to check PCD value

2017-12-07 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com > -Original Message- > From: Gao, Liming > Sent: Tuesday, November 28, 2017 11:27 AM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen > Subject: [Patch] SignedCapsulePkg: Update EdkiiSystemCapsuleLib to check PCD > value > > If PCD value is not set, regis

Re: [edk2] [PATCH v4 00/11] Implement stack guard feature

2017-12-07 Thread Yao, Jiewen
Thanks. I still think we should add version field, just in case we need add more in this CPU_EXCEPTION_INIT_DATA. With version field added, reviewed-by: jiewen@intel.com I suggest CpuModulePkg can double check the patch. Thank you Yao Jiewen > -Original Message- > From: edk2-devel

Re: [edk2] MdeModulePkg/UefiPxeBcDxe: Question about IcmpErrorListenHandler in PxeBcImpl.c

2017-12-07 Thread Heyi Guo
Hi Jiaxin, Thanks for your reply. You say "IcmpErrorRcvToken is only used to get ICMP error from IP layer", does that mean only ICMP error packets will go to IcmpErrorListenHandler? If it is the case, how do we make it? I can only find a simple Ip4->Receive is called to receive IP4 packets;

Re: [edk2] [PATCH v4 00/11] Implement stack guard feature

2017-12-07 Thread Wang, Jian J
I missed that part. I'll add it. Thanks. Regards, Jian > -Original Message- > From: Yao, Jiewen > Sent: Thursday, December 07, 2017 4:17 PM > To: Wang, Jian J ; edk2-devel@lists.01.org > Subject: RE: [edk2] [PATCH v4 00/11] Implement stack guard feature > > Thanks. I still think we shoul

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Liming Gao > Sent: Thursday, December 07, 2017 3:48 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D; Wu, Hao A; Laszlo Ersek; Andrew Fish; Je

[edk2] [RFC] MdePkg/Spi : Modify SPI Protocol strctures to make it more generic

2017-12-07 Thread Pankaj Bansal
Issue_1: Currenty SPI IO and SPI HC protocol strcture is not equipped to handle all type of SPI commands e.g. QuadIo Read Command (0xEBh) in spansion flash S25FS512S will not work. Cause: Currenty SPI protocol describes a SPI transaction as combination of data and address and command, which would

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 07:48, Liming Gao wrote: > From: Michael Kinney > > https://bugzilla.tianocore.org/show_bug.cgi?id=573 > https://bugzilla.tianocore.org/show_bug.cgi?id=796 > > The same issue is reported again by GCC. Resend this patch again. > This patch renames the duplicated function name

[edk2] [PATCH v2 0/3] BaseTools/tools_def: GCC5/CLANG38 toolchain updates

2017-12-07 Thread Ard Biesheuvel
Some toolchain updates for CLANG38 and GCC5: - introduce CLANG38+LTO for ARM and AARCH64 - disable a warning on CLANG38 - enable optimization for GCC5 DEBUG builds Ard Biesheuvel (3): BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM BaseTools/tools_def CLANG38: add -Wno-unused

[edk2] [PATCH v2 3/3] BaseTool/tools_def GCC5: enable optimization for ARM/AARCH64 DEBUG builds

2017-12-07 Thread Ard Biesheuvel
Enable optimization for DEBUG builds, to make it more usable in terms of performance, and to give more coverage to the LTO builds. Also, some diagnostics are only enabled when optimization is enabled. NOOPT builds can now also be created, which will retain the behavior DEBUG builds had previously.

[edk2] [PATCH v2 2/3] BaseTools/tools_def CLANG38: add -Wno-unused-const-variable

2017-12-07 Thread Ard Biesheuvel
Commit 8b6366f87584 ("BaseTools/GCC: set -Wno-unused-const-variable on RELEASE builds") suppresses warnings about unused constant variables in RELEASE builds when building with GCC, given that they break the build under our warnings-as-errors policy. Do the same for CLANG38. Ref: https://bugzilla

[edk2] [PATCH v2 1/3] BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM

2017-12-07 Thread Ard Biesheuvel
Extend the CLANG38 toolchain definition so it can be used for ARM and AARCH64 as well. Note that this requires llvm-ar and the LLVMgold.so linker plugin. In preparation of doing the same for GCC5, this toolchain version also departs from the custom of using -O0 for DEBUG builds, which makes them n

[edk2] [Patch] MdeModulePkg/NetLib: Fix an error when AIP doesn't support network media state detection

2017-12-07 Thread fanwang2
AIP may not support detecting network media state, in this case, should call NetLibDetectMedia to get media state. This patch is to fix this issue. Cc: Fu Siyuan Cc: Ye Ting Cc: Jiaxin Wu Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang Fan --- MdeModulePkg/Library/

[edk2] [PATCH] MdeModulePkg/ScsiDisk: Return EFI_NO_MEDIA when no media presents

2017-12-07 Thread Ruiyu Ni
Current code always return EFI_MEDIA_CHANGED no matter the media is removed from CD/DVD drive or the media is changed. It doesn't strictly follow the UEFI Spec. Update code to return EFI_NO_MEDIA when media is removed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni

Re: [edk2] [Patch 4/4 V3] BaseTools: Update Makefile to support FFS file generation

2017-12-07 Thread Zhu, Yonghong
Hi Leif, Please help to check whether this patch " [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file" can fix it. thanks a lot. Best Regards, Zhu Yonghong -Original Message- From: Zhu, Yonghong Sent: Thursday, December 07, 2017 9:00 AM To: Leif Lindholm Cc: edk2-devel@li

Re: [edk2] MdeModulePkg/UefiPxeBcDxe: Question about IcmpErrorListenHandler in PxeBcImpl.c

2017-12-07 Thread Wu, Jiaxin
> You say "IcmpErrorRcvToken is only used to get ICMP error from IP > layer", does that mean only ICMP error packets will go to > IcmpErrorListenHandler? > If it is the case, how do we make it? I can only find a simple > Ip4->Receive is called to receive IP4 packets; how are other types of > IP4 pa

Re: [edk2] [Patch] MdeModulePkg/NetLib: Fix an error when AIP doesn't support network media state detection

2017-12-07 Thread Wu, Jiaxin
Reviewed-by: Jiaxin Wu > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > fanwang2 > Sent: Thursday, December 7, 2017 5:51 PM > To: edk2-devel@lists.01.org > Cc: Ye, Ting ; Wang, Fan ; Fu, > Siyuan ; Wu, Jiaxin > Subject: [edk2] [Patch] MdeM

[edk2] [PATCH] UefiCpuPkg PiSmmCpuDxeSmm: SMM profile and static paging mutual exclusion

2017-12-07 Thread Star Zeng
SMM profile and static paging could not enabled at the same time, this patch is add check and comments to make sure it. Similar comments are also added for the case of static paging and heap guard for SMM. Cc: Jiewen Yao Cc: Eric Dong Cc: Ruiyu Ni Cc: Jian J Wang Cc: Laszlo Ersek Contributed

Re: [edk2] [PATCH] UefiCpuPkg PiSmmCpuDxeSmm: SMM profile and static paging mutual exclusion

2017-12-07 Thread Dong, Eric
Star, Reviewed-by: Eric Dong Below typo you can change when you push the code. + # It could not be enabled at the same time with SMM profile feature (PcdCpuSmmStaticPageTable). " SMM profile feature " should be "Static page table feature"? Thanks, Eric -Original Message- From: edk

Re: [edk2] [PATCH edk2-platforms] [PATCH v3 2/9] Platform/NXP : Add support for Watchdog driver

2017-12-07 Thread Leif Lindholm
Hi Liming, On Thu, Dec 07, 2017 at 07:11:38AM +, Gao, Liming wrote: > Leif: > I don't see the core driver uses > WatchdogTimer->RegisterHandler(). When it returns unsupported, it > means the additional handler can't be registered. DxeCore uses > WatchdogTimer->SetTimerPeriod(). This se

Re: [edk2] [PATCH] BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM

2017-12-07 Thread Laszlo Ersek
On 12/07/17 03:05, Shi, Steven wrote: > Hi Ard, > I'm OK for the patch. > BTW, would you mind to help add the "-Wno-unused-const-variable" in the > CLANG38_WARNING_OVERRIDES? I happen to need add it in CLANG38 > (https://bugzilla.tianocore.org/show_bug.cgi?id=790) and I see it seems a > shared f

Re: [edk2] [PATCH] UefiCpuPkg PiSmmCpuDxeSmm: Only DumpCpuContext in error case

2017-12-07 Thread Laszlo Ersek
On 12/07/17 02:49, Star Zeng wrote: > Only DumpCpuContext in error case, otherwise there will be too many > debug messages from DumpCpuContext() when SmmProfile feature is enabled > by setting PcdCpuSmmProfileEnable to TRUE. Those debug messages are not > needed for SmmProfile feature as it will re

Re: [edk2] [PATCH edk2-platforms] [PATCH v3 2/9] Platform/NXP : Add support for Watchdog driver

2017-12-07 Thread Udit Kumar
Hi Liming, > DxeCore uses WatchdogTimer->SetTimerPeriod(). This service is implemented in > your driver. Callers of SetTimerPeriod are ignoring error reported. Is they assume this call will be perfect or they are ok in case some error on watchdog service. Regards Udit > -Original Mes

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Laszlo Ersek
On 12/07/17 09:46, Ard Biesheuvel wrote: > On 7 December 2017 at 07:48, Liming Gao wrote: >> From: Michael Kinney >> >> https://bugzilla.tianocore.org/show_bug.cgi?id=573 >> https://bugzilla.tianocore.org/show_bug.cgi?id=796 >> >> The same issue is reported again by GCC. Resend this patch again.

Re: [edk2] [PATCH] BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 11:09, Laszlo Ersek wrote: > On 12/07/17 03:05, Shi, Steven wrote: >> Hi Ard, >> I'm OK for the patch. >> BTW, would you mind to help add the "-Wno-unused-const-variable" in the >> CLANG38_WARNING_OVERRIDES? I happen to need add it in CLANG38 >> (https://bugzilla.tianocore.

Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Leif Lindholm
Hi Yonghong, This patch resolves the issue for the hikey platform, but not for (edk2-platforms/Platform/Hisilicon/)D03/D05. They fail with --- Generating FVMAIN FV ## #Return Value = 2 GenSec: ERROR 0001: Error opening file

[edk2] [PATCH v4 0/2] Enable page table write protection

2017-12-07 Thread Jian J Wang
> v4 changes: >MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 22 ++--- > MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h | 2 +- > UefiCpuPkg/CpuDxe/CpuPageTable.c | 25 +++- > UefiCpuPkg/CpuDxe/CpuPageTable.h | 2 +- > 4 files

Re: [edk2] [PATCH] UefiCpuPkg PiSmmCpuDxeSmm: SMM profile and static paging mutual exclusion

2017-12-07 Thread Laszlo Ersek
Hi Star, On 12/07/17 11:47, Star Zeng wrote: > SMM profile and static paging could not enabled at the same time, > this patch is add check and comments to make sure it. > > Similar comments are also added for the case of static paging and > heap guard for SMM. > > Cc: Jiewen Yao > Cc: Eric Dong

[edk2] [PATCH v4 1/2] MdeModulePkg/DxeIpl: Mark page table as read-only

2017-12-07 Thread Jian J Wang
> v4: > a. Fix a calculation error in pool page number during initialization > b. Change comments to remove constants in description > v3: >Remove the public definition of PAGE_TABLE_POOL_HEADER but keep similar >concept locally. CpuDxe has its own page table pool. > v2: >Introduce pa

[edk2] [PATCH v4 2/2] UefiCpuPkg/CpuDxe: Enable protection for newly added page table

2017-12-07 Thread Jian J Wang
> v4: > a. Fix an error in calculating/passing pool page number during initialization > b. Change comments to remove constants in description > v3: >Create driver's own page table pool instead of inheriting from DxeIpl. > v2: >Use the page table pool to allocate new page tables and save c

Re: [edk2] [PATCH] MdePkg: Arm/AArch64 - filter #pragma pack() when __ASSEMBLER__

2017-12-07 Thread Leif Lindholm
On Thu, Dec 07, 2017 at 03:09:17AM +, Gao, Liming wrote: > Reviewed-by: Liming Gao Thanks! Pushed as 5b8766bb92. > >-Original Message- > >From: Leif Lindholm [mailto:leif.lindh...@linaro.org] > >Sent: Thursday, December 07, 2017 1:08 AM > >To: edk2-devel@lists.01.org > >Cc: Kinney,

Re: [edk2] [PATCH v2 2/3] BaseTools/tools_def CLANG38: add -Wno-unused-const-variable

2017-12-07 Thread Laszlo Ersek
On 12/07/17 10:28, Ard Biesheuvel wrote: > Commit 8b6366f87584 ("BaseTools/GCC: set -Wno-unused-const-variable > on RELEASE builds") suppresses warnings about unused constant > variables in RELEASE builds when building with GCC, given that they > break the build under our warnings-as-errors policy.

Re: [edk2] [PATCH v2 3/3] BaseTool/tools_def GCC5: enable optimization for ARM/AARCH64 DEBUG builds

2017-12-07 Thread Laszlo Ersek
On 12/07/17 10:28, Ard Biesheuvel wrote: > Enable optimization for DEBUG builds, to make it more usable in terms of > performance, and to give more coverage to the LTO builds. Also, some > diagnostics are only enabled when optimization is enabled. > NOOPT builds can now also be created, which will

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 11:18, Laszlo Ersek wrote: > On 12/07/17 09:46, Ard Biesheuvel wrote: >> On 7 December 2017 at 07:48, Liming Gao wrote: >>> From: Michael Kinney >>> >>> https://bugzilla.tianocore.org/show_bug.cgi?id=573 >>> https://bugzilla.tianocore.org/show_bug.cgi?id=796 >>> >>> The sam

Re: [edk2] MdeModulePkg/UefiPxeBcDxe: Question about IcmpErrorListenHandler in PxeBcImpl.c

2017-12-07 Thread Heyi Guo
在 12/7/2017 6:40 PM, Wu, Jiaxin 写道: You say "IcmpErrorRcvToken is only used to get ICMP error from IP layer", does that mean only ICMP error packets will go to IcmpErrorListenHandler? If it is the case, how do we make it? I can only find a simple Ip4->Receive is called to receive IP4 packets; h

Re: [edk2] [RFC] MdeModulePkg/Ip4Dxe: fix ICMP echo reply memory leak

2017-12-07 Thread Heyi Guo
Hi Siyuan and Jiaxin, Thanks for your review; shall I generate a formal patch and post it again, as well as making some commit message refinement? Regards, Gary (Heyi Guo) 在 12/7/2017 3:01 PM, Wu, Jiaxin 写道: It's is good to me. Reviewed-by: Jiaxin Wu Thanks, Jiaxin -Original Mes

Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Zhu, Yonghong
Hi Leif, May I know how this binary driver is described in DSC file and FDF file, and the [Rule.Common.DXE_DRIVER.BINARY] section ? I tried to add this driver into OvmfPkg, but failed to reproduce this failure. Thanks. Best Regards, Zhu Yonghong -Original Message- From: Leif Lindholm

[edk2] [PATCH v2 1/3] [edk2 EmbeddedPkg]:Implementation of secure boot and HTTP Image download

2017-12-07 Thread kalyan-nagabhirava
Linaro and RDK are working on standardizing the boot process for RDK STB boxes using Uefi, as part of that implemented secure boot and HTTP image download functionality. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: kalyan-nagabhirava --- EmbeddedPkg/Library/RdkBootManag

[edk2] [PATCH v2 0/3] Adding secure boot and HTTP image download features for Linux based platform

2017-12-07 Thread kalyan-nagabhirava
Linaro and RDK are working on standardizing the boot process for RDK STB boxes using Uefi. Added applications are reference implementation of RDK STB boot process on Arm platforms kalyan-nagabhirava (3): [edk2 EmbeddedPkg]:Implementation of secure boot and HTTP Image download EmbeddedP

[edk2] [PATCH v2 2/3] EmbeddedPkg: secureboot application using RdkBootManagerLib

2017-12-07 Thread kalyan-nagabhirava
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: kalyan-nagabhirava --- EmbeddedPkg/Application/SecureBoot/SecureBoot.inf | 57 EmbeddedPkg/Application/SecureBoot/SecureBoot.c | 30 +++ 2 files changed, 87 insertions(+) diff --git a/EmbeddedPk

[edk2] [PATCH v2 3/3] EmbeddedPkg: Httpimage downlaod application

2017-12-07 Thread kalyan-nagabhirava
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: kalyan-nagabhirava --- EmbeddedPkg/Application/Dri/Dri.inf | 56 EmbeddedPkg/Application/Dri/Dri.c | 26 + 2 files changed, 82 insertions(+) diff --git a/EmbeddedPkg/Application/Dri/Dri.inf b/E

Re: [edk2] [PATCH edk2-platforms v2] Silicon/SynQuacer: enable coherent DMA for NETSEC and eMMC

2017-12-07 Thread Ard Biesheuvel
On 1 December 2017 at 17:53, Ard Biesheuvel wrote: > On 1 December 2017 at 12:57, Leif Lindholm wrote: >> On Thu, Nov 30, 2017 at 06:53:55PM +, Ard Biesheuvel wrote: >>> As it turns out, it is surprisingly easy to configure both the NETSEC >>> and eMMC devices as cache coherent for DMA, given

Re: [edk2] [PATCH v2 0/3] Adding secure boot and HTTP image download features for Linux based platform

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 13:34, kalyan-nagabhirava wrote: > Linaro and RDK are working on standardizing the boot process for RDK STB > boxes using Uefi. > Added applications are reference implementation of RDK STB boot process on > Arm platforms > Please don't add this to EmbeddedPkg. I thought

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Gao, Liming
Ard and Ersek: On VS, static may make debug become hard. And, STATIC + GLOBAL_REMOVE_IF_UNREFERENCED may failure on old VS before VS supports /Gw option. So, I don't add static here. I would like to separate static usage topic. We could discuss more and summary the rule on how to use static

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 14:19, Gao, Liming wrote: > Ard and Ersek: > On VS, static may make debug become hard. And, STATIC + > GLOBAL_REMOVE_IF_UNREFERENCED may failure on old VS before VS supports /Gw > option. So, I don't add static here. > I would like to separate static usage topic. We cou

Re: [edk2] [PATCH v2 0/3] Adding secure boot and HTTP image download features for Linux based platform

2017-12-07 Thread Kalyan Nagabhirava
yes Ard, but this is not platform sepecfic only application code, leif has given comments on this application , addressed his comments and send the patch. On 7 December 2017 at 19:36, Ard Biesheuvel wrote: > On 7 December 2017 at 13:34, kalyan-nagabhirava > wrote: > > Linaro and RDK are workin

Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Leif Lindholm
Hi Yonghong, I do not have the DSC that was used to build it. The FDF is https://github.com/tianocore/edk2-platforms/blob/master/Platform/Hisilicon/D05/D05.fdf#L250 Jason (cc) may be able to provide more information on the binary. Best Regards, Leif On Thu, Dec 07, 2017 at 12:55:48PM +, Zh

Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Zhu, Yonghong
Hi Leif, I reproduced this issue. Thanks. I will try to fix it ASAP. Best Regards, Zhu Yonghong -Original Message- From: Leif Lindholm [mailto:leif.lindh...@linaro.org] Sent: Thursday, December 07, 2017 10:36 PM To: Zhu, Yonghong Cc: edk2-devel@lists.01.org; Feng, YunhuaX ; Gao, Limi

Re: [edk2] [RFC] MdePkg/Spi : Modify SPI Protocol strctures to make it more generic

2017-12-07 Thread Leif Lindholm
Adding MdePkg maintainers: Mike and Liming. Please always cc package maintainers (listed in Maintainers.txt). / Leif On Thu, Dec 07, 2017 at 02:05:19PM +0530, Pankaj Bansal wrote: > Issue_1: Currenty SPI IO and SPI HC protocol strcture is not equipped > to handle all type of SPI commands > e

Re: [edk2] [PATCH edk2-platforms] [PATCH v3 2/9] Platform/NXP : Add support for Watchdog driver

2017-12-07 Thread Gao, Liming
CoreSetWatchdogTimer() allows the error status for watchdog service. > -Original Message- > From: Udit Kumar [mailto:udit.ku...@nxp.com] > Sent: Thursday, December 7, 2017 7:15 PM > To: Gao, Liming ; Leif Lindholm > > Cc: Kinney, Michael D ; Meenakshi Aggarwal > ; > ard.biesheu...@linar

Re: [edk2] [PATCH edk2-platforms] [PATCH v3 2/9] Platform/NXP : Add support for Watchdog driver

2017-12-07 Thread Gao, Liming
Leif: I don't review the whole patch serial. Could you point your usage case on watch dog timer protocol? Thanks Liming > -Original Message- > From: Leif Lindholm [mailto:leif.lindh...@linaro.org] > Sent: Thursday, December 7, 2017 7:04 PM > To: Gao, Liming > Cc: Udit Kumar ; Kinney, M

Re: [edk2] [PATCH 04/19] ArmPlatformPkg: LcdGraphicsOurputDxe: Add debug asserts

2017-12-07 Thread Alexei Fedorov
Hi, I've compiled current HdLcd.c code with different optimisation levels for DEBUG build using GCC 7.2.1, and the assembler code below was generated for: ASSERT_EFI_ERROR (Status); if (EFI_ERROR( Status )) { return EFI_DEVICE_ERROR; } 1. -O0 (default DEBUG option for AARCH64 befo

Re: [edk2] [PATCH 1/2] MdePkg MmCommunication.h: Follow PI spec to update EFI_MM_COMMUNICATE

2017-12-07 Thread Gao, Liming
Reviewed-by: Liming Gao > -Original Message- > From: Zeng, Star > Sent: Wednesday, December 6, 2017 5:18 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; > Gao, Liming ; Kinney, Michael D > > Subject: [PATCH 1/2] MdePkg MmCommunication.h: Follow PI spec to update > EFI

Re: [edk2] [PATCH 04/19] ArmPlatformPkg: LcdGraphicsOurputDxe: Add debug asserts

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 14:55, Alexei Fedorov wrote: > Hi, > > I've compiled current HdLcd.c code with different optimisation levels for > DEBUG build using GCC 7.2.1, and the assembler code below was generated for: > > ASSERT_EFI_ERROR (Status); > if (EFI_ERROR( Status )) { > return EFI_DEV

[edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
ASSERT_EFI_ERROR () is currently defined as #if !defined(MDEPKG_NDEBUG) #define ASSERT_EFI_ERROR(StatusParameter) \ do { \ if (DebugAssertEnabled ()) {

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 15:12, Ard Biesheuvel wrote: > ASSERT_EFI_ERROR () is currently defined as > > #if !defined(MDEPKG_NDEBUG) > #define ASSERT_EFI_ERROR(StatusParameter) > \ > do {

[edk2] [RFC] Update EDKII Performance infrastructure based on ACPI FPDT table

2017-12-07 Thread Liming Gao
From: "Gao, Liming" Current EDKII performance implementation bases on performance protocol to log and dump performance entry. There is no way to get the performance data in OS. ACPI FPDT table allows to insert the firmware extension record. If so, the detail boot performance data can be stored as

Re: [edk2] [PATCH edk2-platforms] [PATCH v3 2/9] Platform/NXP : Add support for Watchdog driver

2017-12-07 Thread Leif Lindholm
Liming, https://www.mail-archive.com/edk2-devel@lists.01.org/msg32761.html Search for WdogRegisterHandler. This topic is entirely unrelated to any _usage_ of watchdog timer protocol. The topic is only whether it is reasonable to _implement_ EFI_WATCHDOG_TIMER_ARCH_PROTOCOL for a hardware watchdo

Re: [edk2] [PATCH v2 0/6] Add ARM support for VS2017

2017-12-07 Thread Pete Batard
Hi Liming, On 2017.12.07 03:02, Gao, Liming wrote: This is the base step to enable VS2017 ARM tool chain. Then, user could use it and build ARM application first. Yes. Here, I have one question. VS2017 ARM requires 4096 alignment. So, why not add /FILEALIGN:4096 into tools_def.txt as

[edk2] [Patch V2] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Yonghong Zhu
From: Yunhua Feng Filter the FileList when multiple genfds thread options is not enabled. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng Signed-off-by: Yonghong Zhu --- BaseTools/Source/Python/GenFds/EfiSection.py | 5 +++-- BaseTools/Source

Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Zhu, Yonghong
Hi Leif, I just sent out V2 patch. thanks. Best Regards, Zhu Yonghong -Original Message- From: Zhu, Yonghong Sent: Thursday, December 07, 2017 10:42 PM To: 'Leif Lindholm' Cc: edk2-devel@lists.01.org; Feng, YunhuaX ; Gao, Liming ; jason.zh...@linaro.org; Zhu, Yonghong Subject: RE:

[edk2] [platforms: PATCH 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Marcin Wojtas
Hi, I submit a long awaited file reorganization of Marvell Armada 7k/8k SoC family support. Armada 70x0 DB files remained in 'Platform/Marvell', SoC files, drivers, libraries, etc. were shifted to 'Silicon/Marvell'. Although there are no functional changes, other most significant modifications ar

[edk2] [platforms: PATCH 3/5] Marvell/Armada70x0Db: Rename fd file

2017-12-07 Thread Marcin Wojtas
Hitherto fd file name was pretty generic, so use one, which reflects actual board model. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada70x0Db/Armada70x0Db.fdf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pla

[edk2] [platforms: PATCH 4/5] Marvell/Drivers: Rename SPI master driver

2017-12-07 Thread Marcin Wojtas
Hitherto driver name was very generic. In order to be ready for adding new SPI master drivers, use the controller's traditional name (it's called SPI Orion in linux and U-Boot) for files and the entry point. Additionally, move the files to new 'Controllers' directory, which is paralel to existing

[edk2] [platforms: PATCH 2/5] Marvell/Armada7k8k: Use '7k8k' prefix in the SoC drivers/libraries

2017-12-07 Thread Marcin Wojtas
As a part of files reorganization, switch to using '7k8k' in all SoC-specific driver/library code instead of '70x0'/'7040', so that to ensure consistent naming for entire SoC family. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada7

[edk2] [platforms: PATCH 5/5] Marvell/Drivers: Drop 'PciEmulation' naming

2017-12-07 Thread Marcin Wojtas
'PciEmulation' is not a proper naming for a driver, which uses NonDiscoverableDeviceRegistrationLib for handling the devices attached via internal bus of the SoC. Rename it to MvNonDiscoverableDxe and move under Silicon/Marvell/Drivers directory. Contributed-under: TianoCore Contribution Agreement

Re: [edk2] [platforms: PATCH 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 16:31, Marcin Wojtas wrote: > Hi, > > I submit a long awaited file reorganization of Marvell Armada 7k/8k > SoC family support. Armada 70x0 DB files remained in > 'Platform/Marvell', SoC files, drivers, libraries, etc. were > shifted to 'Silicon/Marvell'. > > Although there a

Re: [edk2] [Patch V2] BaseTools: Fix GenSec can't found the depex file

2017-12-07 Thread Leif Lindholm
Thanks - with this patch all of my platforms build again. On Thu, Dec 07, 2017 at 11:59:44PM +0800, Yonghong Zhu wrote: > From: Yunhua Feng > > Filter the FileList when multiple genfds thread options is not enabled. > > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.1 >

Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Fix duplicate symbol

2017-12-07 Thread Kinney, Michael D
Ard, If the variable was not prepended with GLOBAL_REMOVE_IF_UNREFERENCED, I would agree. GLOBAL_REMOVE_IF_UNREFERENCED for some compilers is not compatible with static. Mike > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] > On Behalf Of Ard Biesheuvel

Re: [edk2] [PATCH 04/19] ArmPlatformPkg: LcdGraphicsOurputDxe: Add debug asserts

2017-12-07 Thread Alexei Fedorov
As expected with new ASSERT_EFI_ERROR () definition compiler generates 1 conditional branch at the start: // r:\edk2\ArmPlatformPkg\Drivers\LcdGraphicsOutputDxe\HdLcd.c:79: ASSERT_EFI_ERROR (Status); .loc 1 79 0 tbzx0, #63, .L4// Status, Fro

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Kinney, Michael D
Ard, The reason for the current ordering is for size optimization. The most common implementation of DebugAssertEnabled() uses a FixedAtBuild PCD to determine if these are enabled. The check of status can be optimized away if they are disabled. If you reverse them, then the status check is alwa

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 17:01, Kinney, Michael D wrote: > Ard, > > The reason for the current ordering is for size optimization. > > The most common implementation of DebugAssertEnabled() uses > a FixedAtBuild PCD to determine if these are enabled. The > check of status can be optimized away if the

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 17:09, Ard Biesheuvel wrote: > On 7 December 2017 at 17:01, Kinney, Michael D > wrote: >> Ard, >> >> The reason for the current ordering is for size optimization. >> >> The most common implementation of DebugAssertEnabled() uses >> a FixedAtBuild PCD to determine if these ar

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Kinney, Michael D
Ard, With link time optimization, the current order produces smaller code. Without link time optimization, your patch will produce smaller code, but not as small as link time optimized code. Mike > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] > On Beh

[edk2] [PATCH v2] BaseTools: align ERROR/WARNING/RETURN macros with MdePkg versions

2017-12-07 Thread Leif Lindholm
BaseTools' BaseTypes.h defined the ENCODE_ERROR macro as #define ENCODE_ERROR(a) ((RETURN_STATUS)(MAX_BIT | (a))) whereas MdePkg defines it as #define ENCODE_ERROR(StatusCode) ((RETURN_STATUS)(MAX_BIT | (StatusCode))) When building with GCC 6.3 (at least) the former triggers "er

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 17:36, Kinney, Michael D wrote: > Ard, > > With link time optimization, the current order produces > smaller code. > I don't think it does. You are essentially saying that DebugAssertEnabled() may resolve to a link time constant FALSE under LTO. In that case, why would the

Re: [edk2] [platforms: PATCH 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Marcin Wojtas
Hi Ard, 2017-12-07 17:48 GMT+01:00 Ard Biesheuvel : > On 7 December 2017 at 16:31, Marcin Wojtas wrote: >> Hi, >> >> I submit a long awaited file reorganization of Marvell Armada 7k/8k >> SoC family support. Armada 70x0 DB files remained in >> 'Platform/Marvell', SoC files, drivers, libraries, et

Re: [edk2] [platforms: PATCH 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 19:06, Marcin Wojtas wrote: > Hi Ard, > > 2017-12-07 17:48 GMT+01:00 Ard Biesheuvel : >> On 7 December 2017 at 16:31, Marcin Wojtas wrote: >>> Hi, >>> >>> I submit a long awaited file reorganization of Marvell Armada 7k/8k >>> SoC family support. Armada 70x0 DB files remaine

Re: [edk2] [platforms: PATCH 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Marcin Wojtas
2017-12-07 20:07 GMT+01:00 Ard Biesheuvel : > On 7 December 2017 at 19:06, Marcin Wojtas wrote: >> Hi Ard, >> >> 2017-12-07 17:48 GMT+01:00 Ard Biesheuvel : >>> On 7 December 2017 at 16:31, Marcin Wojtas wrote: Hi, I submit a long awaited file reorganization of Marvell Armada 7k/8k

[edk2] [platforms: PATCH v2 3/5] Marvell/Armada70x0Db: Rename fd file

2017-12-07 Thread Marcin Wojtas
Hitherto fd file name was pretty generic, so use one, which reflects actual board model. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada70x0Db/Armada70x0Db.fdf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pla

[edk2] [platforms: PATCH v2 0/5] Armada 7k/8k files reorganization

2017-12-07 Thread Marcin Wojtas
Hi, This is v2 of the reorganization - same commits with rename-aware patch generation. I submit a long awaited file reorganization of Marvell Armada 7k/8k SoC family support. Armada 70x0 DB files remained in 'Platform/Marvell', SoC files, drivers, libraries, etc. were shifted to 'Silicon/Marvell

[edk2] [platforms: PATCH v2 4/5] Marvell/Drivers: Rename SPI master driver

2017-12-07 Thread Marcin Wojtas
Hitherto driver name was very generic. In order to be ready for adding new SPI master drivers, use the controller's traditional name (it's called SPI Orion in Linux and U-Boot) for files and the entry point. Additionally, move the files to new 'Controllers' directory, which is paralel to existing

[edk2] [platforms: PATCH v2 5/5] Marvell/Drivers: Drop 'PciEmulation' naming

2017-12-07 Thread Marcin Wojtas
'PciEmulation' is not a proper naming for a driver, which uses NonDiscoverableDeviceRegistrationLib for handling the devices attached via internal bus of the SoC. Rename it to MvNonDiscoverableDxe and move under Silicon/Marvell/Drivers directory. Contributed-under: TianoCore Contribution Agreement

[edk2] [platforms: PATCH v2 1/5] Marvell: Reorganize file structure

2017-12-07 Thread Marcin Wojtas
In edk2-platforms it is expected to provide a separation between SoC and boards files in 'Silicon' and 'Platform' directories accordingly. This patch aligns Marvell code to this requirement with no functional changes in the actual source files, unless required due to modified paths. Change the sup

[edk2] [platforms: PATCH v2 2/5] Marvell/Armada7k8k: Use '7k8k' prefix in the SoC drivers/libraries

2017-12-07 Thread Marcin Wojtas
As a part of files reorganization, switch to using '7k8k' in all SoC-specific driver/library code instead of '70x0'/'7040', so that to ensure consistent naming for entire SoC family. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada7

Re: [edk2] [platforms: PATCH v2 4/5] Marvell/Drivers: Rename SPI master driver

2017-12-07 Thread Ard Biesheuvel
Hi Marcin, On 7 December 2017 at 19:20, Marcin Wojtas wrote: > Hitherto driver name was very generic. In order to be ready > for adding new SPI master drivers, use the controller's > traditional name (it's called SPI Orion in Linux and > U-Boot) for files and the entry point. > > Additionally, mo

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Kinney, Michael D
Ard, I do not disagree with your logic. The current algorithm is based on data from a long time ago using what are now very old tool chains. I will do some experiments on the currently supported toolchains to see if the optimization is the same either way. I think the change you are suggesting

Re: [edk2] [platforms: PATCH v2 5/5] Marvell/Drivers: Drop 'PciEmulation' naming

2017-12-07 Thread Ard Biesheuvel
Hi Marcin, On 7 December 2017 at 19:20, Marcin Wojtas wrote: > 'PciEmulation' is not a proper naming for a driver, which > uses NonDiscoverableDeviceRegistrationLib for handling > the devices attached via internal bus of the SoC. > Rename it to MvNonDiscoverableDxe and move under > Silicon/Marvel

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 19:49, Kinney, Michael D wrote: > Ard, > > I do not disagree with your logic. > > The current algorithm is based on data from a long > time ago using what are now very old tool chains. > With LTO? > I will do some experiments on the currently supported > toolchains to see i

Re: [edk2] [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 GOP driver.

2017-12-07 Thread Evan Lloyd
Hi Ard. > -Original Message- > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > Sent: 05 December 2017 21:28 > To: Evan Lloyd > Cc: edk2-devel@lists.01.org; Matteo Carlini ; > Leif Lindholm ; Girish Pathak > > Subject: Re: [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 > GO

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Kinney, Michael D
> -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] > On Behalf Of Ard Biesheuvel > Sent: Thursday, December 7, 2017 11:53 AM > To: Kinney, Michael D > Cc: Alexei Fedorov ; edk2- > de...@lists.01.org; Leif Lindholm > ; Gao, Liming > > Subject: Re: [edk2] [PATC

Re: [edk2] [PATCH] MdePkg/DebugLib; swap if conditions in ASSERT_[EFI|RETURN]_ERROR

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 20:33, Kinney, Michael D wrote: >> -Original Message- >> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] >> On Behalf Of Ard Biesheuvel >> Sent: Thursday, December 7, 2017 11:53 AM >> To: Kinney, Michael D >> Cc: Alexei Fedorov ; edk2- >> de...@lists.01.org

[edk2] [PATCH v3 3/3] BaseTool/tools_def GCC5: enable optimization for ARM/AARCH64 DEBUG builds

2017-12-07 Thread Ard Biesheuvel
Enable optimization for DEBUG builds, to make it more usable in terms of performance, and to give more coverage to the LTO builds. Also, some diagnostics are only enabled when optimization is enabled. NOOPT builds can now also be created, which will retain the behavior DEBUG builds had previously.

[edk2] [PATCH v3 2/3] BaseTools/tools_def CLANG38: add -Wno-unused-const-variable

2017-12-07 Thread Ard Biesheuvel
Commit 8b6366f87584 ("BaseTools/GCC: set -Wno-unused-const-variable on RELEASE builds") suppresses warnings about unused constant variables in RELEASE builds when building with GCC, given that they break the build under our warnings-as-errors policy. Do the same for CLANG38. Ref: https://bugzilla

[edk2] [PATCH v3 0/3] BaseTools/tools_def: GCC5/CLANG38 toolchain updates

2017-12-07 Thread Ard Biesheuvel
Some toolchain updates for CLANG38 and GCC5: - introduce CLANG38+LTO for ARM and AARCH64 - disable a warning on CLANG38 - enable optimization for GCC5 DEBUG builds Ard Biesheuvel (3): BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM BaseTools/tools_def CLANG38: add -Wno-unused

[edk2] [PATCH v3 1/3] BaseTools/tools_def: add CLANG38 LTO versions for AARCH64 and ARM

2017-12-07 Thread Ard Biesheuvel
Extend the CLANG38 toolchain definition so it can be used for ARM and AARCH64 as well. Note that this requires llvm-ar and the LLVMgold.so linker plugin. In preparation of doing the same for GCC5, this toolchain version also departs from the custom of using -O0 for DEBUG builds, which makes them n

Re: [edk2] [PATCH 19/19] ArmPlatformPkg: New DP500/DP550/DP650 GOP driver.

2017-12-07 Thread Ard Biesheuvel
On 7 December 2017 at 20:21, Evan Lloyd wrote: > Hi Ard. > >> -Original Message- >> From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] >> Sent: 05 December 2017 21:28 >> To: Evan Lloyd >> Cc: edk2-devel@lists.01.org; Matteo Carlini ; >> Leif Lindholm ; Girish Pathak >> >> Subject: R

[edk2] [PATCH v4 2/2] MdeModulePkg/SdMmcPciHcDxe: allow HC capabilities to be overridden

2017-12-07 Thread Ard Biesheuvel
Invoke the newly introduced SD/MMC override protocol to override the capabilities register after reading it from the device registers, and to call the pre/post host init and reset hooks at the appropriate times. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel

[edk2] [PATCH v4 1/2] MdeModulePkg: introduce SD/MMC override protocol

2017-12-07 Thread Ard Biesheuvel
Many ARM based SoCs have integrated SDHCI controllers, and often, these implementations deviate in subtle ways from the pertinent specifications. On the one hand, these deviations are quite easy to work around, but on the other hand, having a collection of SoC specific workarounds in the generic dr

  1   2   >