Re: [edk2] Undefined types referenced in MdePkg

2018-08-02 Thread Laszlo Ersek
On 08/02/18 15:05, Gao, Liming wrote: > MdePkg provides the basic module type header file, such as PiPei.h, > PiDxe.h, Uefi.h. PiPei.h and PiDxe.h will include the basic PI > definition. They have included PiHob.h and PiFirmwareVolume.h. > Because the module type header file is included into

Re: [edk2] Question about memory map entries

2018-08-02 Thread Laszlo Ersek
On 08/02/18 18:42, Rafael Machado wrote: > Thanks Andrew and Laszlo for the clarification and guidance. > > About Laszlo questions > >> Is the reboot automatic (from the platform firmware), or application / >> user initiated? > Yes. We just do some clean up, finish the events and "return

Re: [edk2] [PATCH 0/6] BaseTools/Source/C: take EXTRA_OPTFLAGS and EXTRA_LDFLAGS from the caller

2018-08-02 Thread Laszlo Ersek
. It's a general policy thing; all native binaries should be built with the system-wide flags. Some of those flags will let the binaries detect some buffer overflows automatically, for example, which is helpful even if the utility is never installed / packaged, just used as a one-off build tool.

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-08-02 Thread Laszlo Ersek
for posting v2. Cheers Laszlo > > Thanks > Liming >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Monday, July 30, 2018 10:14 PM >> To: Ni, Ruiyu ; edk2-devel-01 >> Cc: Zhang, Chao B ; Dong, Eric >> ; Carsey, J

Re: [edk2] Question about memory map entries

2018-08-02 Thread Laszlo Ersek
On 08/02/18 14:39, Rafael Machado wrote: > Hi everyone > > After some other tasks I am back to this case :) > > After some debug, we detected the moment where things start to go wrong, > but I am not sure what may cause this. > > What we noticed is that the following assert is reached: >

Re: [edk2] [PATCH v2] NetworkPkg/HttpDxe: Strip square brackets in IPv6 expressed HostName.

2018-08-02 Thread Laszlo Ersek
s will conflict with the colon before port > number. To alleviate this conflict in URI, the IPv6 expressed HostName > are enclosed in square brackets ([]). To record the real IPv6 HostName, > square brackets should be stripped. > > Cc: Ye Ting > Cc: Fu Siyuan > Cc: Laszlo E

Re: [edk2] Missing boot related measurements at TPM 2.0 PCRs 0-7 with OVMF

2018-08-02 Thread Laszlo Ersek
that's missing for OVMF. Ricardo's answer will tell us if there's another issue. Thanks Laszlo > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, August 2, 2018 5:49 AM > To: Ricardo Araújo ; Zhang, Chao B > ; Marc-André Lureau > Cc: edk2-devel@lists.01.org >

Re: [edk2] Undefined types referenced in MdePkg

2018-08-01 Thread Laszlo Ersek
On 08/01/18 19:49, edk2-li...@mc2research.org wrote: > When including MdePkg/Include/Library/HobLib.h in my project I get errors > indicating that the following types are undefined: > > * EFI_RESOURCE_TYPE, lines 206 and 231 > * EFI_RESOURCE_ATTRIBUTE_TYPE, lines 207 and 232 > > > > A

Re: [edk2] Missing boot related measurements at TPM 2.0 PCRs 0-7 with OVMF

2018-08-01 Thread Laszlo Ersek
On 08/01/18 19:50, Ricardo Araújo wrote: > The commit I was referring to is: > https://github.com/tianocore/edk2/commit/f15cb995bb3880b77e15afe6facd3da05e599a17 > > Regards, > > Ricardo Araujo - > www.lsd.ufcg.edu.br/~ricardo > > - Mensagem original - > De: "Ricardo Araújo" > Para:

Re: [edk2] [Patch] NetworkPkg/HttpDxe: Stripped square brackets in IPv6 expressed HostName.

2018-08-01 Thread Laszlo Ersek
flict in URI, the IPv6 expressed HostName > are enclosed in square brackets ([]). To record the real IPv6 HostName, > square brackets should be stripped. > > Cc: Ye Ting > Cc: Fu Siyuan > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-of

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-30 Thread Laszlo Ersek
On 07/30/18 03:54, Ni, Ruiyu wrote: > On 7/27/2018 8:06 PM, Laszlo Ersek wrote: >> On 07/27/18 11:28, Ni, Ruiyu wrote: >>> On 7/19/2018 4:50 AM, Laszlo Ersek wrote: >>> >>>> +  // >>>> +  // Traverse the device path nodes relative to the fil

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-27 Thread Laszlo Ersek
On 07/27/18 11:28, Ni, Ruiyu wrote: > On 7/19/2018 4:50 AM, Laszlo Ersek wrote: > >> +  // >> +  // Traverse the device path nodes relative to the filesystem. >> +  // >> +  while (!IsDevicePathEnd (*FilePath)) { >> +    // >> +    // Keep local variab

Re: [edk2] [PATCH] MdeModulePkg: Remove redundant library classes and guides in inf files

2018-07-26 Thread Laszlo Ersek
On 07/26/18 03:57, shenglei wrote: > Some redundant libraray classes and guides have been removed in inf files. The typos in the commit message should please be corrected when the patch is pushed: - libraray -> library - guides -> GUIDs (this was really confusing for a second) Thanks! Laszlo >

[edk2] [PATCH 2/6] BaseTools/header.makefile: remove "-c" from BUILD_CFLAGS

2018-07-25 Thread Laszlo Ersek
uble "-c" options. This patch doesn't change behavior. Cc: Liming Gao Cc: Yonghong Zhu Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- BaseTools/Source/C/Makefiles/header.makefile | 4 ++-- 1 fi

[edk2] [PATCH 5/6] BaseTools/Source/C: take EXTRA_OPTFLAGS from the caller

2018-07-25 Thread Laszlo Ersek
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- BaseTools/Source/C/Makefiles/header.makefile | 5 - BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile | 5 - BaseTools/Source/C/VfrCompile

[edk2] [PATCH 3/6] BaseTools/Source/C: split "-O2" to BUILD_OPTFLAGS

2018-07-25 Thread Laszlo Ersek
ve to introduce BUILD_OPTFLAGS separately, so that "VfrCompile/GNUmakefile" can continue using just this flag. This patch doesn't change behavior. Cc: Liming Gao Cc: Yonghong Zhu Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under: TianoCore Contribution A

[edk2] [PATCH 0/6] BaseTools/Source/C: take EXTRA_OPTFLAGS and EXTRA_LDFLAGS from the caller

2018-07-25 Thread Laszlo Ersek
A_OPTFLAGS and EXTRA_LDFLAGS macros into the BaseTools build. Cc: Liming Gao Cc: Yonghong Zhu Thanks Laszlo Laszlo Ersek (6): BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too BaseTools/header.makefile: remove "-c" from BUILD_CFLAGS BaseTools/Source/C: split &qu

[edk2] [PATCH 6/6] BaseTools/Source/C: take EXTRA_LDFLAGS from the caller

2018-07-25 Thread Laszlo Ersek
: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- BaseTools/Source/C/Makefiles/header.makefile | 3 +++ BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile | 6 +- BaseTools/Source/C/VfrCompile/Pccts

[edk2] [PATCH 4/6] BaseTools/Pccts: clean up antlr and dlg makefiles

2018-07-25 Thread Laszlo Ersek
DUSER_ZZSYN -DZZLEXBUFSIZE=65536 However these options made no difference for linking in the first place. Cc: Liming Gao Cc: Yonghong Zhu Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek

[edk2] [PATCH 1/6] BaseTools/footer.makefile: expand BUILD_CFLAGS last for C files too

2018-07-25 Thread Laszlo Ersek
: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- BaseTools/Source/C/Makefiles/footer.makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/footer.makefile b/BaseTools/Source/C/Makefiles/footer.makefile index 0926aa964547

Re: [edk2] [Patch V2] UefiCpuPkg/MpInitLib: Remove redundant parameter.

2018-07-25 Thread Laszlo Ersek
On 07/25/18 13:35, Dong, Eric wrote: >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Wednesday, July 25, 2018 6:14 PM >> To: Dong, Eric ; edk2-devel@lists.01.org >> Cc: Ni, Ruiyu >> On 07/25/18 05:50, Dong, Eric wrote: >>> But some AP may wak

Re: [edk2] [Patch V3 0/3] StartAllAPs should not use disabled APs

2018-07-25 Thread Laszlo Ersek
On 07/25/18 14:12, Laszlo Ersek wrote: > On 07/25/18 09:50, Eric Dong wrote: >> This patch series include changes: >> 1. StartAllAPs should not use disabled APs, this is required by UEFI spec. >> 2. Refine the code to remove the redundant definitions. >> >> V

Re: [edk2] [Patch v3 2/3] UefiCpuPkg/MpInitLib: Remove StartCount and volatile definition.

2018-07-25 Thread Laszlo Ersek
On 07/25/18 14:09, Dong, Eric wrote: > Hi Laszlo, > > >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Wednesday, July 25, 2018 7:47 PM >> To: Dong, Eric ; edk2-devel@lists.01.org >> Cc: Ni, Ruiyu >> Subject: R

Re: [edk2] [Patch V3 0/3] StartAllAPs should not use disabled APs

2018-07-25 Thread Laszlo Ersek
rtions(+), 21 deletions(-) > I requested commit message updates for all three patches. With those implemented, please add: Reviewed-by: Laszlo Ersek (No need to repost.) Please give me some more time to regression-test this series as well. Thanks! Laszlo ___

Re: [edk2] [Patch v3 3/3] UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs.

2018-07-25 Thread Laszlo Ersek
p will not wake up > the disabled APs, in other cases also need to include the > disabled APs, such as CpuDxe driver start up and > ChangeApLoopCallback function. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric D

Re: [edk2] [Patch v3 2/3] UefiCpuPkg/MpInitLib: Remove StartCount and volatile definition.

2018-07-25 Thread Laszlo Ersek
(3)? It's OK if you leave out my remarks in brackets []. No need to repost just because of this, of course. Thanks! Laszlo > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong > --- > UefiCpuPkg/Library/M

Re: [edk2] [Patch v3 1/3] UefiCpuPkg/MpInitLib: Remove redundant CpuStateFinished State.

2018-07-25 Thread Laszlo Ersek
Hi Eric, On 07/25/18 09:50, Eric Dong wrote: > Current CPU state definition include CpuStateIdle and CpuStateFinished. > After investigation, current code can use CpuStateIdle to replace the > CpuStateFinished. It will reduce the state number and easy for maintenance. > > Cc: Las

Re: [edk2] [Patch V2] UefiCpuPkg/MpInitLib: Remove redundant parameter.

2018-07-25 Thread Laszlo Ersek
On 07/25/18 05:50, Dong, Eric wrote: > Hi Laszlo, > > I have root cause this issue, the AP hangs in the procedure when > PiSmmCpuDxeSmm driver start up trigged this issue. > > When PiSmmCpuDxeSmm driver start up, it will call StartAllAps to set > memory attribute. In StartAllAps function, after

Re: [edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Laszlo Ersek
On 07/24/18 15:22, Ard Biesheuvel wrote: > On 24 July 2018 at 15:21, Laszlo Ersek wrote: >> The class name for the "PeiResourcePublicationLib" instance is just >> "ResourcePublicationLib", not "PeiResourcePublicationLib". However, no >>

Re: [edk2] [PATCH 3/6] NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with UefiLib API

2018-07-24 Thread Laszlo Ersek
On 07/18/18 22:50, Laszlo Ersek wrote: > Replace the OpenFileByDevicePath() function with EfiOpenFileByDevicePath() > from UefiLib, correcting the following issues: > > - imprecise comments on OpenFileByDevicePath(), > - code duplication between this module and other modules, >

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-24 Thread Laszlo Ersek
On 07/18/18 22:50, Laszlo Ersek wrote: > The EfiOpenFileByDevicePath() function centralizes functionality from > > - MdeModulePkg/Universal/Disk/RamDiskDxe > - NetworkPkg/TlsAuthConfigDxe > - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe > - ShellPkg/Library/UefiShel

[edk2] [PATCH] ArmVirtPkg: remove wrong and superfluous ResourcePublicationLib resolution

2018-07-24 Thread Laszlo Ersek
ulien Grall Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- Notes: built on all six platforms: ArmVirtQemu-AARCH64 ArmVirtQemu-ARM ArmVirtQemuKernel-AARCH64 ArmVirtQemuKernel-ARM ArmVirtXen-AARCH64 ArmVirtXen-ARM ArmVirtPkg/ArmVirt

Re: [edk2] [PATCH v2] OvmfPkg: Correct ResourcePublicationLib class name in DSC/INF files

2018-07-24 Thread Laszlo Ersek
PciLib > - PeiResourcePublicationLib > + ResourcePublicationLib >PeiServicesLib >PeiServicesTablePointerLib >PeimEntryPoint > [ler...@redhat.com: insert empty line between commit msg body and tags] Reviewed-by: Laszlo Ersek Pushed as commit 0ed73bcdcd80. I notice t

Re: [edk2] reg: HTTP Request Failure over Internet

2018-07-24 Thread Laszlo Ersek
On 07/24/18 14:05, Sivaraman Nainar wrote: > Hello all, > > When an application tried to download the remote file over internet with the > HTTP Get Request it getting failed. If we try via the Intranet then > application downloads the target file. > > The remote file is available in the Apache

Re: [edk2] [PATCH 7/8] OvmfPkg/SmmAccessPei: Update MM PPI usages.

2018-07-24 Thread Laszlo Ersek
On 07/24/18 14:16, Marvin Häuser wrote: > Hey Laszlo, > >> -Original Message- >> (1) Please post patch sets using a cover letter message: >> >> git config format.coverletter true >> git config format.numberedtrue >> git config sendemail.chainreplyto false >> git config

Re: [edk2] [PATCH 8/8] MdeModulePkg: Deprecate Smm* PPIs.

2018-07-24 Thread Laszlo Ersek
On 07/24/18 08:38, Gao, Liming wrote: > To keep compatibility, I suggest to update MdeModulePkg PPI definition to > include MdePkg one, then typedef structure name and define macro name for SMM > one. MdePkg SMM protocol uses this way to refer to MM protocol. I agree this is a better approach

Re: [edk2] [PATCH 7/8] OvmfPkg/SmmAccessPei: Update MM PPI usages.

2018-07-24 Thread Laszlo Ersek
Hi Marvin, On 07/24/18 03:40, Marvin Häuser wrote: > Update all references to the SMM PPIs from MdeModulePkg to rather use > MdePkg's MM PPI declarations. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Marvin Haeuser > --- > OvmfPkg/SmmAccess/SmmAccessPei.c | 90

Re: [edk2] [Patch] OvmfPkg: Correct library class name in INF and DSC

2018-07-23 Thread Laszlo Ersek
Hi, On 07/23/18 06:34, Liming Gao wrote: > From: Dongao Guo > > ResourcePublicationLib class name is ResourcePublicationLib. > INF and DSC files are updated to use the correct one. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > Signed-off-by: Dongao

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: Correct BIST PPI logic.

2018-07-23 Thread Laszlo Ersek
BIST information > +// Install SecPlatformInformation2 PPI > // > Status = PeiServicesInstallPpi (); > ASSERT_EFI_ERROR(Status); > Looks good to me: Reviewed-by: Laszlo Ersek but Eric should decide. Thanks Laszlo ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [PATCH] OvmfPkg/XenPvBlkDxe: remove gEfiDevicePathProtocolGuid from [Protocols]

2018-07-20 Thread Laszlo Ersek
On 07/19/18 20:42, Jordan Justen wrote: > Reviewed-by: Jordan Justen Thank you, Jordan :) Pushed as commit 2aa4fb10a574. Laszlo > On 2018-07-19 11:01:43, Laszlo Ersek wrote: >> XenPvBlkDxe doesn't reference gEfiDevicePathProtocolGuid; remove it from >> the INF file. >&g

Re: [edk2] [Patch V2] UefiCpuPkg/MpInitLib: Remove redundant parameter.

2018-07-20 Thread Laszlo Ersek
On 07/20/18 08:53, Dong, Eric wrote: >> -Original Message- From: Laszlo Ersek >> [mailto:ler...@redhat.com] >> Therefore, please upgrade the host to Fedora 26. In Fedora 26, QEMU >> 2.9 is shipped: >> >> https://koji.fedoraproject.org/koji/buildinfo

Re: [edk2] [PATCH v2] UefiCpuPkg/MpInitLib: Fix build of Microcode

2018-07-19 Thread Laszlo Ersek
Hi Anthony, (I'm seeing your v1 and v2 postings at the same time now:) On 07/19/18 17:52, Anthony PERARD wrote: > On Debian Jessie, this fail to build with: > > /build/UefiCpuPkg/Library/MpInitLib/Microcode.c: In function > 'MicrocodeDetect': >

[edk2] [PATCH] OvmfPkg/XenPvBlkDxe: remove gEfiDevicePathProtocolGuid from [Protocols]

2018-07-19 Thread Laszlo Ersek
Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- Notes: Repo: https://github.com/lersek/edk2.git Branch: xenpvblk_redundant_proto_tcbz1034 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf | 1 - 1 file changed, 1 deletion(-) diff --git a/OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf b/OvmfPkg

Re: [edk2] [Patch V2] UefiCpuPkg/MpInitLib: Remove redundant parameter.

2018-07-19 Thread Laszlo Ersek
Hi Eric, apologies about the delay. On 07/18/18 14:59, Dong, Eric wrote: > Hi Laszlo, > > I finally succeed to setup the OVMF platform which can verify the boot > failure issue. But on my platform, if I use image build with below > command (I assume it is used to enable SMM), the system can't

Re: [edk2] [PATCH] OvmfPkg/AcpiPlatformDxe: clean up libs and protos in "AcpiPlatformDxe.inf"

2018-07-19 Thread Laszlo Ersek
On 07/18/18 16:02, Ard Biesheuvel wrote: > On 18 July 2018 at 21:52, Laszlo Ersek wrote: >> None of the source files referenced by "AcpiPlatformDxe.inf" #include >> "MdePkg/Include/Library/DxeServicesLib.h" or use interfaces declared >> therein, so

Re: [edk2] [Patch v2] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-19 Thread Laszlo Ersek
to get AP index because > this solution may return error AP index if stack buffer overflow. > > Cc: Ruiyu Ni > Cc: Jeff Fan > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong > --- > UefiCpuPkg/Library/MpInitLib/MpLi

Re: [edk2] [PATCH] UefiCpuPkg/CpuDxe: fix incorrect check of SMM mode

2018-07-19 Thread Laszlo Ersek
On 07/18/18 04:35, Wang, Jian J wrote: > Hi Laszlo, > > > Regards, > Jian > > >> -Original Message- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Tuesday, July 17, 2018 10:37 PM >> To: Wang, Jian J ; edk2-devel@lists.01.org &g

Re: [edk2] [PATCH 2/6] MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API

2018-07-19 Thread Laszlo Ersek
Thanks, Laszlo > > Thanks, > Star > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, July 19, 2018 4:51 AM > To: edk2-devel-01 > Cc: Dong, Eric ; Wu, Jiaxin ; Ni, > Ruiyu ; Fu, Siyuan ; Zeng, Star > > Subjec

Re: [edk2] [Patch] UefiCpuPkg/MpInitLib: Remove useless code.

2018-07-19 Thread Laszlo Ersek
On 07/19/18 14:12, Eric Dong wrote: > Remove the useless code error added by change > 58942277bcbf41abda5f6e3a1c89d571105d5983. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong > --- > U

Re: [edk2] [PATCH] UefiCpuPkg/CpuDxe: fix incorrect check of SMM mode

2018-07-19 Thread Laszlo Ersek
2018 10:36 AM >> To: Laszlo Ersek ; edk2-devel@lists.01.org >> Cc: Dong, Eric ; Yao, Jiewen ; >> Zeng, Star >> Subject: RE: [PATCH] UefiCpuPkg/CpuDxe: fix incorrect check of SMM mode >> >> Hi Laszlo, >> >> >> Regards, >> Jian >>

Re: [edk2] [patch] UefiCpuPkg/MpInitLib: Fix VS2012 build failure

2018-07-19 Thread Laszlo Ersek
Hi Dandan, On 07/19/18 06:50, Dandan Bi wrote: > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi > --- > UefiCpuPkg/Library/MpInitLib/Microcode.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [edk2] UefiCpuPkg/MpInitLib: Fix S3 resume hang issue.

2018-07-19 Thread Laszlo Ersek
unction, > it check whether Cpu Loop mode is not HLT mode. If yes, > CpuMpPei driver will set a flag to force BSP use INIT-SIPI > -SIPI command to wake up the APs. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-

Re: [edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-19 Thread Laszlo Ersek
> The question I have is: Where should the sanity check be? At the moment: in the caller. Thanks! Laszlo > > thank you! > Yao, Jiewen > > >> 在 2018年7月19日,上午4:50,Laszlo Ersek 写道: >> >> The EfiOpenFileByDevicePath() function centralizes functionality from >

Re: [edk2] [PATCH 0/6] UefiLib: centralize OpenFileByDevicePath() and fix its bugs

2018-07-19 Thread Laszlo Ersek
On 07/19/18 02:07, Ard Biesheuvel wrote: > On 19 July 2018 at 06:15, Carsey, Jaben wrote: >> Reviewed-by: Jaben Carsey >> >> One question (do hold up push). Is there a reason to use the former over the >> latter? I use latter and I see you use the former. >> >> ASSERT(EFI_ERROR (Status)); >>

[edk2] [PATCH 4/6] SecurityPkg/SecureBootConfigDxe: replace OpenFileByDevicePath() with UefiLib API

2018-07-18 Thread Laszlo Ersek
Jiewen Yao Cc: Roman Bacik Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1008 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf | 1 - SecurityPkg/V

[edk2] [PATCH 5/6] ShellPkg/UefiShellLib: drop DeviceHandle param of ShellOpenFileByDevicePath()

2018-07-18 Thread Laszlo Ersek
gi?id=1008 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- ShellPkg/Library/UefiShellLib/UefiShellLib.inf | 2 +- ShellPkg/Include/Library/ShellLib.h| 2 -- ShellPkg/Library/UefiShellLib/UefiShellLib.c | 11 --- 3 files changed, 5 inserti

[edk2] [PATCH 1/6] MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()

2018-07-18 Thread Laszlo Ersek
Zhang Cc: Eric Dong Cc: Jaben Carsey Cc: Jiaxin Wu Cc: Jiewen Yao Cc: Liming Gao Cc: Michael D Kinney Cc: Roman Bacik Cc: Ruiyu Ni Cc: Siyuan Fu Cc: Star Zeng Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1008 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo

[edk2] [PATCH 0/6] UefiLib: centralize OpenFileByDevicePath() and fix its bugs

2018-07-18 Thread Laszlo Ersek
ik Cc: Ruiyu Ni Cc: Siyuan Fu Cc: Star Zeng Thanks, Laszlo Laszlo Ersek (6): MdePkg/UefiLib: introduce EfiOpenFileByDevicePath() MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib API NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with UefiLib

[edk2] [PATCH] OvmfPkg/AcpiPlatformDxe: clean up libs and protos in "AcpiPlatformDxe.inf"

2018-07-18 Thread Laszlo Ersek
sten Cc: Steven Shi Reported-by: Steven Shi Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1014 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- Notes: Repo: https://github.com/lersek/edk2.git Branch: acpiplatform_redundant_tiano_1014 Ovm

Re: [edk2] [Patch v3 0/3] Optimize load uCode performance

2018-07-17 Thread Laszlo Ersek
On 07/17/18 18:38, Laszlo Ersek wrote: > Hi Eric, > > On 07/16/18 05:08, Eric Dong wrote: >> Use below three rules to optimize load uCode performance: >> 1. Let BSP relocate uCode from flash to memory for better performance. >> 2. BSP caches the CPU ID and address

Re: [edk2] [Patch v3 0/3] Optimize load uCode performance

2018-07-17 Thread Laszlo Ersek
Hi Eric, On 07/16/18 05:08, Eric Dong wrote: > Use below three rules to optimize load uCode performance: > 1. Let BSP relocate uCode from flash to memory for better performance. > 2. BSP caches the CPU ID and address of uCode so AP doesn’t need to look >for the uCode again if the CPU ID is

Re: [edk2] [PATCH] UefiCpuPkg/CpuDxe: fix incorrect check of SMM mode

2018-07-17 Thread Laszlo Ersek
mode", 2018-06-19). How did you encounter / find this issue? > > Cc: Eric Dong > Cc: Laszlo Ersek > Cc: Jiewen Yao > Cc: Star Zeng > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Jian J Wang > --- > UefiCpuPkg/CpuDxe/CpuPageTable.

Re: [edk2] [Patch v3 3/3] UefiCpuPkg/MpInitLib: Load uCode once for each core.

2018-07-17 Thread Laszlo Ersek
On 07/17/18 12:02, Ni, Ruiyu wrote: > On 7/16/2018 11:08 AM, Eric Dong wrote: >> GetProcessorLocationByApicId (GetInitialApicId (), NULL, NULL, >> ); >> +  if (ThreadId != 0) { >> +    // >> +    // Skip loading microcode if it is not the first thread in one core. >> +    // >> +    return; >> + 

Re: [edk2] [PATCH 0/2] ArmVirtPkg/ArmVirtQemu: enable the IPv6 stack

2018-07-17 Thread Laszlo Ersek
On 07/13/18 08:45, Ard Biesheuvel wrote: > On 13 July 2018 at 01:41, Laszlo Ersek wrote: >> Repo: https://github.com/lersek/edk2.git >> Branch: armvirt_ipv6_bz1007 >> >> Tested the "-D NETWORK_IP6_ENABLE" ArmVirtQemu build with PXEv4, PXEv6, >>

[edk2] [PATCH 2/2] ArmVirtPkg/ArmVirtQemu: enable the IPv6 stack

2018-07-12 Thread Laszlo Ersek
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1007 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek --- ArmVirtPkg/ArmVirt.dsc.inc | 18 +++--- ArmVirtPkg/ArmVirtQemu.dsc | 13 - ArmVirtPkg/

[edk2] [PATCH 1/2] ArmVirtPkg: unify HttpLib resolutions in "ArmVirt.dsc.inc"

2018-07-12 Thread Laszlo Ersek
We already resolve a number of networking-related library classes in ArmVirt.dsc.inc; follow suit with HttpLib. Cc: Ard Biesheuvel Cc: Julien Grall Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1007 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek

[edk2] [PATCH 0/2] ArmVirtPkg/ArmVirtQemu: enable the IPv6 stack

2018-07-12 Thread Laszlo Ersek
K, can you please push it for me as well? Thank you. Cc: Ard Biesheuvel Cc: Julien Grall Thanks Laszlo Laszlo Ersek (2): ArmVirtPkg: unify HttpLib resolutions in "ArmVirt.dsc.inc" ArmVirtPkg/ArmVirtQemu: enable the IPv6 stack ArmVirtPkg/ArmVirt.dsc.inc | 21

Re: [edk2] [Patch v2 1/3] UefiCpuPkg/MpInitLib: Relocate uCode to memory to save time.

2018-07-12 Thread Laszlo Ersek
On 07/12/18 23:59, Laszlo Ersek wrote: > On 07/12/18 12:49, Eric Dong wrote: >> Read uCode from memory has better performance than from flash. >> But it needs extra effort to let BSP copy uCode from flash to >> memory. Also BSP already enable cache in SEC phase, so it use >

Re: [edk2] [Patch v2 3/3] UefiCpuPkg/MpInitLib: Load uCode once for each core.

2018-07-12 Thread Laszlo Ersek
On 07/12/18 12:49, Eric Dong wrote: > The SDM requires only one thread per core to load the > microcode. > > This change enables this solution. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong

Re: [edk2] [Patch v2 2/3] UefiCpuPkg/MpInitLib: Use BSP uCode for APs if possible.

2018-07-12 Thread Laszlo Ersek
On 07/12/18 12:49, Eric Dong wrote: > Search uCode costs much time, if AP has same processor type > with BSP, AP can use BSP saved uCode info to get better performance. > > This change enables this solution. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under

Re: [edk2] [Patch v2 1/3] UefiCpuPkg/MpInitLib: Relocate uCode to memory to save time.

2018-07-12 Thread Laszlo Ersek
emory. After > verification, if system has more than one processor, it will > reduce some time if load uCode from memory. > > This change enable this optimization. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by:

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-12 Thread Laszlo Ersek
On 07/12/18 14:07, Yao, Jiewen wrote: > thanks laszlo > I like your idea to eliminate the code duplication and fix all the problem by > adding a new api in uefi lib. > > If there is urgency to fix this specific issue, I have no problem on the > enhancement. > > Reviewed by :

Re: [edk2] [Patch 0/3] Optimize load uCode performance

2018-07-12 Thread Laszlo Ersek
On 07/11/18 13:07, Eric Dong wrote: > Use below three rules to optimize load uCode performance: > 1. Let BSP relocate uCode from flash to memory for better performance. > 2. BSP caches the CPU ID and address of uCode so AP doesn’t need to look >for the uCode again if the CPU ID is same as

Re: [edk2] [Patch 3/3] UefiCpuPkg/MpInitLib: Load uCode once for one core.

2018-07-12 Thread Laszlo Ersek
ear.) > Also load uCode once can save some time. > > This change enables this solution. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong > --- > UefiCpuPkg/Library/MpInitLib/Microcode.c | 9 +

Re: [edk2] [Patch 2/3] UefiCpuPkg/MpInitLib: Use BSP uCode for APs if possible.

2018-07-12 Thread Laszlo Ersek
On 07/11/18 13:07, Eric Dong wrote: > Search uCode costs much time, if AP has same processor type > with BSP, AP can use BSP saved uCode info to get better performance. > > This change enables this solution. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under

Re: [edk2] [Patch 1/3] UefiCpuPkg/MpInitLib: Relocate uCode to memory to save time.

2018-07-12 Thread Laszlo Ersek
emory. After > verification, if system has more than one processor, it will > reduce some time if load uCode from memory. > > This change enable this optimization. > > Cc: Laszlo Ersek > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-11 Thread Laszlo Ersek
On 07/11/18 18:06, Laszlo Ersek wrote: > On 07/11/18 17:44, Roman Bacik wrote: >> Hi Laszlo, >> >> Thank you very much for your review and help. I would prefer the option 2b. > > Great, thanks! Let's wait for the SecurityPkg maintainers then, to give > their R-

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-11 Thread Laszlo Ersek
On 07/11/18 19:10, Carsey, Jaben wrote: > >> -Original Message- >> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> Laszlo Ersek >> Sent: Wednesday, July 11, 2018 5:16 AM >> To: rba...@gmail.com; edk2-devel@lists.01.org >>

Re: [edk2] [Patch 0/3] Optimize load uCode performance

2018-07-11 Thread Laszlo Ersek
Hi Eric, On 07/11/18 13:07, Eric Dong wrote: > Use below three rules to optimize load uCode performance: > 1. Let BSP relocate uCode from flash to memory for better performance. > 2. BSP caches the CPU ID and address of uCode so AP doesn’t need to look >for the uCode again if the CPU ID is

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-11 Thread Laszlo Ersek
From my side, dependent on the pending commit message and patch whitespace corrections (which I'm willing to implement myself, at push): Reviewed-by: Laszlo Ersek Thanks! Laszlo > Thanks, > > Roman > > On Wed, Jul 11, 2018 at 5:05 AM, Laszlo Ersek wrote: > >> Hi

Re: [edk2] OVMF dynamic NVRAM size discovering

2018-07-11 Thread Laszlo Ersek
On 07/11/18 15:01, Denis Plotnikov wrote: > Hello! > > I'd like to ask whether it's a good idea or not to make the omfv > discover the variable image size in the runtime. Not a good idea. > We have a setting in our product to use separate pflash images for OVMF > code and variables parts in

Re: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-11 Thread Laszlo Ersek
en >> Sent: Wednesday, July 11, 2018 3:45 PM >> To: Dong, Eric ; Dong, Eric ; >> Laszlo Ersek ; Fan Jeff ; >> edk2-devel@lists.01.org >> Cc: Ni, Ruiyu >> Subject: RE: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get >> processor number per

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-11 Thread Laszlo Ersek
On 07/11/18 14:05, Laszlo Ersek wrote: > - The OpenFileByDevicePath() function is duplicated in the following > modules: "NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c", and > "MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskFileExplorer.c". With the > implicat

Re: [edk2] [PATCH v2] SecurityPkg: Fix assert when setting key from eMMC/SD/USB

2018-07-11 Thread Laszlo Ersek
name starts on odd address, which is not a uint16 > aligned boundary: https://bugzilla.tianocore.org/show_bug.cgi?id=1003 > > Cc: Chao Zhang > Cc: Jiewen Yao > Cc: Laszlo Ersek > Cc: Vladimir Olovyannikov > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-of

Re: [edk2] question about armclang support

2018-07-10 Thread Laszlo Ersek
Hello Sau Kae, On 07/10/18 11:14, Tan, Sau Kae wrote: > Hi All, > > May I know is armclang already supported in EDK2? > Or only armcc is supported currently? > Thanks. Looking at "BaseTools/Conf/tools_def.template", the following toolchains appear supported for both ARM and AARCH64: - CLANG35

Re: [edk2] [PATCH v1] SecurityPkg: Fix assert when setting key from FAT formatted eMMC/SD/USB

2018-07-09 Thread Laszlo Ersek
On 07/10/18 02:02, Laszlo Ersek wrote: > On 07/10/18 00:11, Roman Bacik wrote: >> +PathName = AllocateZeroPool (PathLength); >> +CopyMem (PathName, ((FILEPATH_DEVICE_PATH*)*FilePath)->PathName, >> PathLength); > > (3) I think it's not necessary to zer

Re: [edk2] [PATCH v1] SecurityPkg: Fix assert when setting key from FAT formatted eMMC/SD/USB

2018-07-09 Thread Laszlo Ersek
> boundary: https://bugzilla.tianocore.org/show_bug.cgi?id=1003 > > Cc: Chao Zhang > Cc: Jiewen Yao > Cc: Laszlo Ersek > Cc: Vladimir Olovyannikov > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Roman Bacik > --- > .../SecureBootConfigFileExplorer

Re: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-09 Thread Laszlo Ersek
On 07/09/18 08:13, Dong, Eric wrote: > Hi Laszlo, > > I have created https://bugzilla.tianocore.org/show_bug.cgi?id=1002 to request > to add AsmReadEsp() / AsmReadRsp(). Much appreciated! Laszlo ___ edk2-devel mailing list edk2-devel@lists.01.org

Re: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-09 Thread Laszlo Ersek
On 07/09/18 05:04, Dong, Eric wrote: > Hi Laszlo, > >> -Original Message----- >> From: Laszlo Ersek [mailto:ler...@redhat.com] >> Sent: Thursday, July 5, 2018 9:04 PM >> To: Fan Jeff ; Dong, Eric ; >> edk2-devel@lists.01.org >> Cc: Ni, Ruiyu >

Re: [edk2] [PATCH v4 0/3] OvmfPkg: mark flash memory range as MMIO

2018-07-06 Thread Laszlo Ersek
ark memory as MMIO for non SEV case > b) do not adding EFI runtime mapping for SMM build > c) clear C-bit when SEV is active for non SMM builds only > > Cc: Ard Biesheuvel > Cc: Anthony Perard > Cc: Julien Grall > Cc: Justen Jordan L > Cc: Laszlo Ersek > Contribu

Re: [edk2] [PATCH v3 0/3] OvmfPkg: mark flash memory range as MMIO

2018-07-06 Thread Laszlo Ersek
r SMM build > c) clear C-bit when SEV is active for non SMM builds only > > Cc: Ard Biesheuvel > Cc: Anthony Perard > Cc: Julien Grall > Cc: Justen Jordan L > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Brijesh Singh &g

Re: [edk2] [PATCH v3 3/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Restore C-bit when SEV is active

2018-07-06 Thread Laszlo Ersek
c: Justen Jordan L > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Brijesh Singh > --- > .../FvbServicesRuntimeDxe.inf | 1 + > .../QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c | 17 > ++

Re: [edk2] [PATCH v3 2/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Do not expose MMIO in SMM build

2018-07-06 Thread Laszlo Ersek
On 07/06/18 13:35, Laszlo Ersek wrote: > On 07/05/18 21:12, Brijesh Singh wrote: >> In the SMM build, only an SMM driver is using the address range hence we >> do not need to expose the flash MMIO range in EFI runtime mapping. >> >> Cc: Ard Biesheuvel >> Cc: An

Re: [edk2] [PATCH v3 2/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Do not expose MMIO in SMM build

2018-07-06 Thread Laszlo Ersek
On 07/05/18 21:12, Brijesh Singh wrote: > In the SMM build, only an SMM driver is using the address range hence we > do not need to expose the flash MMIO range in EFI runtime mapping. > > Cc: Ard Biesheuvel > Cc: Anthony Perard > Cc: Julien Grall > Cc: Justen Jordan

Re: [edk2] [PATCH v3 1/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: mark Flash memory range as MMIO

2018-07-06 Thread Laszlo Ersek
ch IO addresses should > be mapped as unencrypted. If memory region is not marked as MMIO then OS > maps the range as encrypted. > > Cc: Ard Biesheuvel > Cc: Anthony Perard > Cc: Julien Grall > Cc: Justen Jordan L > Cc: Laszlo Ersek > Contributed-under: TianoCo

Re: [edk2] [PATCH v2 1/3] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: mark Flash memory range as MMIO

2018-07-05 Thread Laszlo Ersek
Hi Brijesh, On 07/05/18 16:05, Brijesh Singh wrote: > [...] I'll need some time before I can look at this -- meanwhile, can you please repost the series with a dedicated cover letter email? If you wish you can include a short summary description and v2/v3 etc updates there; however, the main

Re: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-05 Thread Laszlo Ersek
On 07/05/18 15:04, Laszlo Ersek wrote: > Hi Jeff, > > On 07/04/18 11:39, Fan Jeff wrote: >> Eric, >> >> Current implementation does not call GetApicid() many times, Please correct >> you commit message. Your fix is to improve the performance against the >&g

Re: [edk2] 答复: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance.

2018-07-05 Thread Laszlo Ersek
esday, July 4, 2018 4:37:36 PM > 收件人: edk2-devel@lists.01.org > 抄送: Ruiyu Ni; Jeff Fan; Laszlo Ersek > 主题: [Patch] UefiCpuPkg/MpInitLib: Optimize get processor number performance. > > Current function has low performance because it calls GetApicId > many times. > > New lo

Re: [edk2] [PATCH v4 0/9] Add platform hook for ultimate boot failure.

2018-07-05 Thread Laszlo Ersek
On 07/04/18 03:55, Ni, Ruiyu wrote: > On 7/4/2018 9:50 AM, Ruiyu Ni wrote: >> v4: >>    1. adds missing PlatformBootManagerLib instances modification for >>   platform ArmPkg and ArmVirtPkg. >>    2. Remove single quote in #1/9 >>    3. Wrap the long comments in #3/9 >> >> Ruiyu Ni (9): >>   

Re: [edk2] [PATCH v4 7/9] ArmVirtPkg/PlatformBDS: Implement PlatformBootManagerUnableToBoot

2018-07-05 Thread Laszlo Ersek
On 07/04/18 03:50, Ruiyu Ni wrote: > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ruiyu Ni > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Cc: Julien Grall > --- > .../Library/PlatformBootManagerLib/PlatformBm.c| 62 >

<    6   7   8   9   10   11   12   13   14   15   >