Re: [edk2-devel] [PATCH 1/1] UefiCpuPkg/PiSmmCpuDxeSmm: Add check for pointer Pml5Entry

2019-07-31 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Zhang, Shenglei > Sent: Wednesday, July 31, 2019 1:57 PM > To: de...@edk2.groups.io; edk2-devel@lists.01.org > Cc: Dong, Eric ; Ni, Ray ; Laszlo > Ersek > Subject: [PATCH 1/1] UefiCpuPkg/PiSmmCpuDxeSmm: Add check fo

[edk2] [RFC] Remove Nt32Pkg

2019-04-03 Thread Ni, Ray
All, Now since EmulatorPkg supports to run in Windows environment, I propose to remove Nt32Pkg. Do you have any concern on the Nt32Pkg removal? Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org

Re: [edk2] [PATCH] UefiCpuPkg/Cpuid: Dump leaf 1FH information correctly

2019-04-03 Thread Ni, Ray
> -Original Message- > From: Dong, Eric > Sent: Wednesday, April 3, 2019 2:40 PM > To: Ni, Ray ; edk2-devel@lists.01.org > Subject: RE: [PATCH] UefiCpuPkg/Cpuid: Dump leaf 1FH information correctly > > Hi Ray, > > > -Original Message- > > F

Re: [edk2] [Patch v2] UefiCpuPkg/MpInitLib: Fix MemTest86 failure.

2019-04-02 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Dong, Eric > Sent: Wednesday, April 3, 2019 10:46 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ray > Subject: [Patch v2] UefiCpuPkg/MpInitLib: Fix MemTest86 failure. > > V2 changes: > Update the commit messa

Re: [edk2] [RFC] Plan to delete ShellBinPkg from edk2/master

2019-04-02 Thread Ni, Ray
> -Original Message- > From: edk2-devel On Behalf Of Laszlo > Ersek > Sent: Tuesday, April 2, 2019 4:49 PM > To: Bi, Dandan ; edk2-devel@lists.01.org > Cc: Cetola, Stephano ; Kinney, Michael D > ; Gao, Liming ; Carsey, > Jaben > Subject: Re: [edk2] [RFC] Plan to delete ShellBinPkg

Re: [edk2] [Patch v2 4/4] UefiCpuPkg/RegisterCpuFeaturesLib: Correct comments.

2019-04-02 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Dong, Eric > Sent: Friday, March 1, 2019 1:40 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Laszlo Ersek > Subject: [Patch v2 4/4] UefiCpuPkg/RegisterCpuFeaturesLib: Correct comments. > > Cc: Ray Ni > Cc:

Re: [edk2] [Patch v2 3/4] UefiCpuPkg/RegisterCpuFeaturesLib: Simplify PcdCpuFeaturesSupport.

2019-04-02 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel On Behalf Of Eric Dong > Sent: Friday, March 1, 2019 1:40 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch v2 3/4] UefiCpuPkg/RegisterCpuFeaturesLib: Simplify > PcdCpuFeaturesSupport. > > PcdCpuFeaturesSupport used to

Re: [edk2] [Patch v2 2/4] UefiCpuPkg/RegisterCpuFeaturesLib: Optimize PCD PcdCpuFeaturesUserConfiguration.

2019-04-02 Thread Ni, Ray
Minor comments: 1. Please add "CONST" before AndFeatureBitMask to declare that it won't be changed in the routine. SupportedMaskAnd ( IN UINT8 *SupportedFeatureMask, IN CONST UINT8 *AndFeatureBitMask ) 2. Please update the year in the copyright. With these comments

Re: [edk2] [Patch v2 1/4] UefiCpuPkg/RegisterCpuFeaturesLib: Remove useless functions.

2019-04-02 Thread Ni, Ray
Reviewed-by: Ray Ni Please remember to update the year in copyright when pushing. > -Original Message- > From: edk2-devel On Behalf Of Eric Dong > Sent: Friday, March 1, 2019 1:40 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch v2 1/4] UefiCpuPkg/RegisterCpuFeaturesLib: Remove

Re: [edk2] [Patch] BaseTools:Enable the /MP option of MSVC compiler

2019-03-29 Thread Ni, Ray
https://devblogs.microsoft.com/cppblog/recommendations-to-speed-c-builds-in-visual-studio/#_PCH Bob, Per above article, It seems /Gm needs to be removed when /MP is used. > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Feng, > Bob C > Sent:

Re: [edk2] [PATCH v8] UefiCpuPkg\CpuSmm: Save & restore CR2 on-demand paging in SMM

2019-03-29 Thread Ni, Ray
Reviewed-by: Ray Ni Sent from small device > 在 2019年3月29日,下午11:45,Vanguput, Narendra K 写道: > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1593 > > For every SMI occurrence, save and restore CR2 register only when SMM > on-demand paging support is enabled in 64 bit operation mode. >

Re: [edk2] [PATCH v6] UefiCpuPkg\CpuSmm: Save & restore CR2 on-demand paging in SMM

2019-03-29 Thread Ni, Ray
> -Original Message- > From: Vanguput, Narendra K > Sent: Friday, March 29, 2019 5:32 PM > To: Ni, Ray ; edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Dong, Eric ; > Laszlo Ersek > Subject: RE: [edk2] [PATCH v6] UefiCpuPkg\CpuSmm: Save & restore CR2 on- > demand paging

Re: [edk2] [PATCH] UefiPayloadPkg: Enhance UEFI payload for coreboot and Slim Bootloader

2019-03-28 Thread Ni, Ray
Guo, Just to double confirm: UefiPayloadPkg will not require Legacy8254 timer support. The old packages Coreboot*Pkgs will be removed. Which means now only QEMU/OVMF needs the Legacy8254 support. Laszlo, Now since QEMU/OVMF is the only consumer of the Legacy8254 driver, do you agree that the

Re: [edk2] [PATCH v6] UefiCpuPkg\CpuSmm: Save & restore CR2 on-demand paging in SMM

2019-03-28 Thread Ni, Ray
> + if ((!mCpuSmmStaticPageTable) && (Cr2 != 0)) { Can the "Cr2 != 0" be removed? > -Original Message- > From: edk2-devel On Behalf Of > nkvangup > Sent: Friday, March 29, 2019 12:58 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Dong, Eric ; > Laszlo Ersek > Subject: [edk2]

Re: [edk2] [PATCH 3/4] ShellPkg/UefiHandleParsingLib: Remove some unused Guids

2019-03-28 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Zhang, Shenglei > Sent: Friday, March 29, 2019 9:41 AM > To: edk2-devel@lists.01.org > Cc: Carsey, Jaben ; Ni, Ray > Subject: [PATCH 3/4] ShellPkg/UefiHandleParsingLib: Remove some unused > Guids > &g

Re: [edk2] [PATCH 2/4] ShellPkg/UefiShellDebug1CommandsLib

2019-03-28 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Zhang, Shenglei > Sent: Friday, March 29, 2019 9:41 AM > To: edk2-devel@lists.01.org > Cc: Carsey, Jaben ; Ni, Ray > Subject: [PATCH 2/4] ShellPkg/UefiShellDebug1CommandsLib > > With Itanium

Re: [edk2] [PATCH V5 14/17] MdeModulePkg: Add definitions for EDKII DEBUG PPI

2019-03-28 Thread Ni, Ray
0 PM > To: edk2-devel@lists.01.org > Cc: Wang, Jian J ; Wu, Hao A ; > Ni, Ray ; Zeng, Star ; Gao, Liming > ; Sean Brogan ; > Michael Turner ; Bret Barkelew > > Subject: [PATCH V5 14/17] MdeModulePkg: Add definitions for EDKII DEBUG > PPI > > REF: https://bugzilla.

Re: [edk2] [PATCH V5 16/17] MdeModulePkg/PeiDebugLibDebugPpi: Add PEI debug lib

2019-03-28 Thread Ni, Ray
just remove the global variable and always locate the PPI? > -Original Message- > From: Gao, Zhichao > Sent: Thursday, March 28, 2019 4:10 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Wang, Jian J > ; Wu, Hao A ; Ni, Ray > ; Zeng, Star ; Sean Brogan > ;

Re: [edk2] [PATCH 0/2] Fix bugs in HiiDatabase driver

2019-03-07 Thread Ni, Ray
Thanks for the comments. Sent out V2 with correct patch subject. > -Original Message- > From: Wu, Hao A > Sent: Friday, March 8, 2019 10:22 AM > To: Ni, Ray ; edk2-devel@lists.01.org > Subject: RE: [edk2] [PATCH 0/2] Fix bugs in HiiDatabase driver > > Quick commen

Re: [edk2] Does ARM platform produce MP protocol?

2019-03-06 Thread Ni, Ray
> -Original Message- > From: edk2-devel On Behalf Of Ard > Biesheuvel > Sent: Wednesday, March 6, 2019 3:38 PM > To: Ni, Ray > Cc: edk2-devel@lists.01.org > Subject: Re: [edk2] Does ARM platform produce MP protocol? > > On Wed, 6 Mar 2019 at 06:44, Ni, Ra

Re: [edk2] [PATCH] UefiCpuPkg/Microcode.c: Add verification before calculate CheckSum32

2019-03-05 Thread Ni, Ray
Pushed @ 219e560c20034843ac9917146c60db99bd01b6f4. > -Original Message- > From: Gao, Liming > Sent: Wednesday, March 6, 2019 1:38 PM > To: Ni, Ray ; edk2-devel@lists.01.org > Cc: Dong, Eric ; Chen, Chen A > > Subject: RE: [edk2] [PATCH] UefiCpuPkg/Microcode.c: Add

[edk2] Does ARM platform produce MP protocol?

2019-03-05 Thread Ni, Ray
Ard, Leif, I am a bit interested in how ARM platform supports the MP? PI Spec defines below protocol but I failed to find a driver in ARM platform producing this protocol. Or did I miss anything? typedef struct _EFI_MP_SERVICES_PROTOCOL { EFI_MP_SERVICES_GET_NUMBER_OF_PROCESSORS

Re: [edk2] [PATCH] UefiCpuPkg/Microcode.c: Add verification before calculate CheckSum32

2019-03-05 Thread Ni, Ray
Liming, Do I need any approval from you side before pushing the commit? Thanks, Ray > -Original Message- > From: edk2-devel On Behalf Of Ni, Ray > Sent: Wednesday, March 6, 2019 10:15 AM > To: Chen, Chen A ; edk2-devel@lists.01.org > Cc: Dong, Eric > Subject:

Re: [edk2] [PATCH] EmulatorPkg/Sec: Don't install TemporaryRamSupport PPI

2019-03-05 Thread Ni, Ray
> -Original Message- > From: edk2-devel On Behalf Of Jordan > Justen > Sent: Wednesday, March 6, 2019 5:48 AM > To: Ni, Ray ; edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Laszlo Ersek > > Subject: Re: [edk2] [PATCH] EmulatorPkg/Sec: Don't install &

Re: [edk2] [PATCH] UefiCpuPkg/Microcode.c: Add verification before calculate CheckSum32

2019-03-05 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel On Behalf Of Chen A > Chen > Sent: Tuesday, March 5, 2019 8:21 AM > To: edk2-devel@lists.01.org > Cc: Dong, Eric > Subject: [edk2] [PATCH] UefiCpuPkg/Microcode.c: Add verification before > calculate CheckSum32 > > REF:

Re: [edk2] [Patch] UefiCpuPkg/MpInitLib: Direct allocate buffer for Wake up Buffer.

2019-03-05 Thread Ni, Ray
nal Message- > From: Dong, Eric > Sent: Tuesday, March 5, 2019 10:07 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ray > Subject: [Patch] UefiCpuPkg/MpInitLib: Direct allocate buffer for Wake up > Buffer. > > https://bugzilla.tianocore.org/show_bug.cgi?id=1538 > > Curre

Re: [edk2] [PATCH] EmulatorPkg/Sec: Don't install TemporaryRamSupport PPI

2019-03-04 Thread Ni, Ray
> -Original Message- > From: edk2-devel On Behalf Of Jordan > Justen > Sent: Sunday, March 3, 2019 5:45 AM > To: Ni, Ray ; edk2-devel@lists.01.org > Subject: Re: [edk2] [PATCH] EmulatorPkg/Sec: Don't install > TemporaryRamSupport PPI > > On 2019-03-02 04:11:1

Re: [edk2] [PATCH 2/2] UefiCpuPkg/Microcode: Add verification logic before parsing payload

2019-02-27 Thread Ni, Ray
> -Original Message- > From: edk2-devel On Behalf Of Chen A > Chen > Sent: Thursday, February 28, 2019 2:03 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric > Subject: [edk2] [PATCH 2/2] UefiCpuPkg/Microcode: Add verification logic > before parsing payload > > REF:

Re: [edk2] [PATCH 1/2] UefiCpuPkg/Microcode: Fix InComplete CheckSum32 issue

2019-02-27 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel On Behalf Of Chen A > Chen > Sent: Thursday, February 28, 2019 2:03 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric > Subject: [edk2] [PATCH 1/2] UefiCpuPkg/Microcode: Fix InComplete > CheckSum32 issue > > REF:

Re: [edk2] [PATCH v3 2/2] MdeModulePkg/RamDiskDxe: Restrict on RAM disk size (CVE-2018-12180)

2019-02-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Hao A > Sent: Tuesday, February 26, 2019 8:57 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Zeng, Star ; Laszlo Ersek > > Subject: [PATCH v3 2/2] MdeModulePkg/RamDiskDxe: Res

Re: [edk2] [PATCH v3 1/2] MdeModulePkg/PartitionDxe: Ensure blocksize holds MBR (CVE-2018-12180)

2019-02-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Hao A > Sent: Tuesday, February 26, 2019 8:57 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Zeng, Star ; Laszlo Ersek > > Subject: [PATCH v3 1/2] MdeModulePkg/PartitionDxe: Ensu

Re: [edk2] [PATCH v3 1/5] MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep.

2019-02-25 Thread Ni, Ray
On 2/23/2019 1:16 AM, Laszlo Ersek wrote: Yes, I was fully aware of that. However: The issue is that, in the BmReportLoadFailure() function, we do some work*before* we call REPORT_STATUS_CODE_EX(). We have an ASSERT(), a ZeroMem(), and a field assignment. If status code reporting is disabled

Re: [edk2] [PATCH v1] MdeModulePkg/UfsBlockIoPei: Correct use of 'DeviceIndex' in BlkIO PPI

2019-02-25 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel On Behalf Of Hao Wu > Sent: Friday, February 15, 2019 10:55 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A > Subject: [edk2] [PATCH v1] MdeModulePkg/UfsBlockIoPei: Correct use of > 'DeviceIndex' in BlkIO PPI > >

Re: [edk2] [PATCH V3 0/4] Add SMM CET support

2019-02-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Yao, Jiewen > Sent: Friday, February 22, 2019 9:31 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Gao, Liming > ; Dong, Eric ; Ni, Ray > ; Laszlo Ersek ; Yao, Jiewen > > Subject: [PATCH V3 0/4] A

Re: [edk2] [PATCH V2 2/3] UefiCpuPkg/ExceptionLib: Add CET support.

2019-02-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Yao, Jiewen > Sent: Friday, February 22, 2019 7:00 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Ni, Ray ; Laszlo Ersek > ; Yao, Jiewen > Subject: [PATCH V2 2/3] UefiCpuPkg/ExceptionLib: Add CET sup

Re: [edk2] [PATCH V2 1/3] MdePkg/BaseLib: Add Shadow Stack Support for X86.

2019-02-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Yao, Jiewen > Sent: Friday, February 22, 2019 7:00 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Ni, Ray ; Laszlo Ersek > ; Yao, Jiewen > Subject: [PATCH V2 1/3] MdePkg/BaseLib: Add Shadow Stack Support for

Re: [edk2] [PATCH v3 1/5] MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep.

2019-02-22 Thread Ni, Ray
> -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, February 21, 2019 6:41 PM > To: edk2-devel@lists.01.org > Cc: Bi, Dandan ; Wu, Hao A ; > Wang, Jian J ; Ni, Ray ; Sean Brogan > ; Zeng, Star > Subject: [PATCH v3 1/5] MdeModu

Re: [edk2] [PATCH] MdeModulePkg: Rename confusion function name

2019-02-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Chen, Chen A > Sent: Friday, February 22, 2019 8:34 AM > To: edk2-devel@lists.01.org > Cc: Chen, Chen A ; Ni, Ray ; Gao, > Liming > Subject: [PATCH] MdeModulePkg: Rename confusion function name > > REF: htt

Re: [edk2] [PATCH] IntelSiliconPkg/MicrocodeUpdate: Fix incorrect checksum issue

2019-02-22 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Chen > A Chen > Sent: Friday, February 22, 2019 8:49 AM > To: edk2-devel@lists.01.org > Subject: [edk2] [PATCH] IntelSiliconPkg/MicrocodeUpdate: Fix incorrect > checksum

Re: [edk2] [PATCH 00/10] Fix PEI Core issue during TemporaryRamMigration

2019-02-20 Thread Ni, Ray
> -Original Message- > From: Justen, Jordan L > Sent: Thursday, February 21, 2019 9:03 AM > To: Gao, Liming ; Ni, Ray ; edk2- > de...@lists.01.org > Cc: Wu, Hao A ; Anthony Perard > ; Laszlo Ersek ; Zeng, > Star ; Andrew Fish > Subject: RE: [PATCH 00/10

Re: [edk2] [PATCH 00/10] Fix PEI Core issue during TemporaryRamMigration

2019-02-20 Thread Ni, Ray
> -Original Message- > From: Justen, Jordan L > Sent: Thursday, February 21, 2019 1:44 AM > To: Gao, Liming ; Ni, Ray ; edk2- > de...@lists.01.org > Cc: Wu, Hao A ; Anthony Perard > ; Laszlo Ersek ; Zeng, > Star > Subject: Re: [PATCH 00/10] Fix PEI Core issue d

Re: [edk2] [PATCH 00/10] Fix PEI Core issue during TemporaryRamMigration

2019-02-20 Thread Ni, Ray
. Thanks Liming -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ni, Ray Sent: Tuesday, February 19, 2019 10:46 AM To: Justen, Jordan L ; edk2-devel@lists.01.org Cc: Wu, Hao A ; Anthony Perard ; Laszlo Ersek ; Zeng, Star Subject: Re: [edk2] [PATCH 00

Re: [edk2] [PATCH v2 1/5] MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep.

2019-02-20 Thread Ni, Ray
On 2/20/2019 4:16 PM, Laszlo Ersek wrote: In the EFI_RETURN_STATUS_EXTENDED_DATA structure from PI-1.7, there may be padding between the DataHeader and ReturnStatus members. The REPORT_STATUS_CODE_EX() macro starts populating the structure immediately after DataHeader, therefore the source data

Re: [edk2] [PATCH v1 1/1] SecurityPkg/HddPassword: Add Security feature set support for ATA dev

2019-02-20 Thread Ni, Ray
+ +/** + Entry point of the notification callback function itself within the PEIM. + It is to unlock HDD password for S3. + + @param PeiServices Indirect reference to the PEI Services Table. + @param NotifyDescriptor Address of the notification descriptor data structure. + @param

Re: [edk2] [PATCH v5 13/13] SecurityPkg/OpalPassword: Remove HW init codes and consume SSC PPI

2019-02-20 Thread Ni, Ray
+OpalPasswordStorageSecurityPpiNotify ( + IN EFI_PEI_SERVICES **PeiServices, + IN EFI_PEI_NOTIFY_DESCRIPTOR*NotifyDesc, + IN VOID *Ppi ) { - EFI_STATUSStatus; - EFI_BOOT_MODE BootMode; +

Re: [edk2] [PATCH v5 08/13] MdeModulePkg/AhciPei: Add AHCI mode ATA device support in PEI

2019-02-20 Thread Ni, Ray
+// +// Check validity of the device path of the ATA AHCI controller. +// +Status = AhciCheckHcDevicePath (DevicePath, DevicePathLength); 1. Please avoid using "Check". +if (EFI_ERROR (Status)) { + DEBUG (( +DEBUG_ERROR, "%a: The device path is invalid for

Re: [edk2] [PATCH v5 07/13] MdeModulePkg/NvmExpressPei: Consume S3StorageDeviceInitList LockBox

2019-02-20 Thread Ni, Ray
Please add some comments above "if" to explain why the it's only skipped in S3 boot. With the updated comments, Reviewed-by: Ray Ni > +if ((BootMode == BOOT_ON_S3_RESUME) && > +(NvmeS3SkipThisController (DevicePath, DevicePathLength))) { > + DEBUG (( > +DEBUG_ERROR,

Re: [edk2] [PATCH v5 06/13] MdeModulePkg/NvmExpressPei: Add logic to produce SSC PPI

2019-02-20 Thread Ni, Ray
How about changing to "NvmeIsHcDevicePathValid"? "Check" in function name cannot tell what the return status means. With the change, Reviewed-by: Ray Ni ___ edk2-devel mailing list edk2-devel@lists.01.org

Re: [edk2] [PATCH] UefiCpuPkg/Microcode: Fix incorrect checksum issue for extended table

2019-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [patch 2/2] MdeModulePkg/BmBoot: Report status when fail to load/start boot option

2019-02-19 Thread Ni, Ray
; From: Laszlo Ersek > Sent: Wednesday, February 20, 2019 9:19 AM > To: Bi, Dandan > Cc: edk2-devel@lists.01.org; Wu, Hao A ; Ni, Ray > > Subject: Re: [edk2] [patch 2/2] MdeModulePkg/BmBoot: Report status when > fail to load/start boot option > > Hi Dandan, > >

Re: [edk2] [PATCH v2 1/2] MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path

2019-02-19 Thread Ni, Ray
> -Original Message- > From: Wang, Jian J > Sent: Tuesday, February 19, 2019 6:12 PM > To: Ni, Ray ; edk2-devel@lists.01.org > Cc: Gao, Liming ; Kinney, Michael D > > Subject: RE: [PATCH v2 1/2] MdePkg/UefiDevicePathLib: Add sanity check for > FilePath

Re: [edk2] [PATCH v2] IntelSiliconPkg/MicrocodeUpdateDxe: Error message enhancement

2019-02-19 Thread Ni, Ray
> -Original Message- > From: Zhang, Shenglei > Sent: Tuesday, February 19, 2019 3:57 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Chaganty, Rangasai V > > Subject: [PATCH v2] IntelSiliconPkg/MicrocodeUpdateDxe: Error message > enhancement > > The error

Re: [edk2] [PATCH v2 1/2] MdePkg/UefiDevicePathLib: Add sanity check for FilePath device path

2019-02-19 Thread Ni, Ray
> -Original Message- > From: Wang, Jian J > Sent: Tuesday, February 19, 2019 5:22 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Ni, Ray ; Kinney, > Michael D > Subject: [PATCH v2 1/2] MdePkg/UefiDevicePathLib: Add sanity check for > FilePath device p

Re: [edk2] [PATCH] UefiCpuPkg/SecCore: Wrong Debug Information for SecCore

2019-02-19 Thread Ni, Ray
vel@lists.01.org > Cc: Dong, Eric ; Ni, Ray ; Laszlo > Ersek ; Chiu, Chasel > Subject: [PATCH] UefiCpuPkg/SecCore: Wrong Debug Information for > SecCore > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1533 > > When SecCore and PeiCore in different FV, current imp

Re: [edk2] [PATCH] MdeModulePkg/PropertiesTableAttributesDxe: Remove this driver

2019-02-18 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Zeng, Star > Sent: Monday, February 18, 2019 10:22 PM > To: Wang, Jian J ; Zhang, Shenglei > ; edk2-devel@lists.01.org > Cc: Wu, Hao A ; Ni, Ray > Subject: RE: [PATCH] MdeModulePkg/PropertiesTableAttributesDxe:

Re: [edk2] [PATCH 00/10] Fix PEI Core issue during TemporaryRamMigration

2019-02-18 Thread Ni, Ray
> ; Andrew Fish ; Anthony > Perard ; Ard Biesheuvel > ; Wu, Hao A ; Wang, Jian > J ; Julien Grall ; Laszlo > Ersek > ; Ni, Ray ; Zeng, Star > > Subject: [PATCH 00/10] Fix PEI Core issue during TemporaryRamMigration > > https://github.com/jljusten/edk2.git temp-ram-suppor

Re: [edk2] [PATCH] UefiCpuPkg/Microcode: Fix incorrect checksum issue for extended table

2019-02-18 Thread Ni, Ray
I agree with Chao's comments. Please add more code comments to: 1. describe the uCode format 2. explain all the 3 code blocks that checks the checksum. > -Original Message- > From: edk2-devel On Behalf Of Zhang, > Chao B > Sent: Tuesday, February 19, 2019 9:06 AM > To: Chen, Chen A ;

Re: [edk2] [PATCH 1/2] MdeModulePkg: Add a new API ResetSystem

2019-02-18 Thread Ni, Ray
Zhichao, Please separate the single patch to multiple patches so that every patch just changes one component. > -Original Message- > From: Gao, Zhichao > Sent: Monday, February 18, 2019 3:33 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Gao, Liming > Subject: [PATCH

Re: [edk2] [PATCH 2/2] MdeModulePkg: Add a runtime library instance of ResetSystemLib

2019-02-18 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Gao, Zhichao > Sent: Monday, February 18, 2019 3:33 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Gao, Liming > Subject: [PATCH 2/2] MdeModulePkg: Add a runtime library instance of > ResetSys

Re: [edk2] EmulatorPkg Unix Host Segmentation fault.

2019-02-17 Thread Ni, Ray
Jordan, > Study the PeiCore migration logic a bit more, I found since PeiCore > knows the exact size of new stack in permanent memory, it migrates > old stack to the top of new stack. > But the migration logic in above C code (since it doesn't know the > size of new stack, CopySize is the size of

Re: [edk2] EmulatorPkg Unix Host Segmentation fault.

2019-02-16 Thread Ni, Ray
On 2/16/2019 3:43 PM, Ni, Ray wrote: (Sent third times to make sure Andrew and Laszlo are in the TO list.) I also met this issue. I found three solutions: 1. Forcing PeiMain CC flag to "-O0" works. 2. Changing EmulatorPkg/Sec to not produce TemporaryRamSupportPpi also works. 3.

Re: [edk2] EmulatorPkg Unix Host Segmentation fault.

2019-02-15 Thread Ni, Ray
(Sent third times to make sure Andrew and Laszlo are in the TO list.) I also met this issue. I found three solutions: 1. Forcing PeiMain CC flag to "-O0" works. 2. Changing EmulatorPkg/Sec to not produce TemporaryRamSupportPpi also works. 3. Implement the temporary migration routine as below in

Re: [edk2] EmulatorPkg Unix Host Segmentation fault.

2019-02-15 Thread Ni, Ray
I also met this issue. I found three solutions: 1. Forcing PeiMain CC flag to "-O0" works. 2. Changing EmulatorPkg/Sec to not produce TemporaryRamSupportPpi also works. 3. Implement the temporary migration routine as below in EmulatorPkg/Sec module. EFI_STATUS EFIAPI SecTemporaryRamSupport (

Re: [edk2] EmulatorPkg Unix Host Segmentation fault.

2019-02-15 Thread Ni, Ray
I also met this issue. I found three solutions: 1. Forcing PeiMain CC flag to "-O0" works. 2. Changing EmulatorPkg/Sec to not produce TemporaryRamSupportPpi also works. 3. Implement the temporary migration routine as below in EmulatorPkg/Sec module. EFI_STATUS EFIAPI SecTemporaryRamSupport (

Re: [edk2] [patch 0/2] Report error status when fail to load/start boot option

2019-02-15 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo > Ersek > Sent: Friday, February 15, 2019 9:40 PM > To: Bi, Dandan ; edk2-devel@lists.01.org > Cc: Ni, Ray ; Wu, Hao A ; Gao, Liming > ; Kinney,

Re: [edk2] [PATCH v3 3/3] UefiCpuPkg/SecCore: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Chasel, Chiu > Sent: Thursday, February 14, 2019 6:59 PM > To: edk2-devel@lists.01.org > Cc: Laszlo Ersek ; Dong, Eric > Subject: [edk2] [PATCH v3 3/3] UefiCpuPkg/SecCore:

Re: [edk2] [PATCH v3 1/3] MdePkg: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Chasel, Chiu > Sent: Thursday, February 14, 2019 6:59 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Gao, Liming > > Subject: [edk2] [PATCH v3 1/3] MdePkg:

Re: [edk2] [PATCH v3 2/3] MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Chiu, Chasel > Sent: Thursday, February 14, 2019 6:59 PM > To: edk2-devel@lists.01.org > Cc: Wang, Jian J ; Wu, Hao A ; > Ni, Ray ; Zeng, Star ; Gao, Liming > ; Chiu, Chasel > Subject: [PATCH v3 2/3] MdeMo

Re: [edk2] [Patch 0/3] Simplify CPU Features solution.

2019-02-14 Thread Ni, Ray
Eric, Please update the copyright year to 2019 for every file you changed. > -Original Message- > From: Dong, Eric > Sent: Wednesday, February 13, 2019 10:04 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Laszlo Ersek > Subject: [Patch 0/3] Simplify CPU Features solu

Re: [edk2] [Patch 3/3] UefiCpuPkg/RegisterCpuFeaturesLib: Simplify PcdCpuFeaturesSupport.

2019-02-14 Thread Ni, Ray
Reviewed-by: Ray Ni On 2/13/2019 10:04 AM, Eric Dong wrote: PcdCpuFeaturesSupport used to specify the platform policy about what CPU features this platform supports. This value is decide by platform owner, not by hardware. After this change, this PCD will be used in IsCpuFeatureSupported

Re: [edk2] [Patch 2/3] UefiCpuPkg/RegisterCpuFeaturesLib: Optimize PCD PcdCpuFeaturesUserConfiguration.

2019-02-14 Thread Ni, Ray
> -Original Message- > From: Dong, Eric > Sent: Wednesday, February 13, 2019 10:04 AM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Laszlo Ersek > Subject: [Patch 2/3] UefiCpuPkg/RegisterCpuFeaturesLib: Optimize PCD > PcdCpuFeaturesUserConfiguration. > >

Re: [edk2] [PATCH v2 3/3] UefiCpuPkg/SecCore: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
> -Original Message- > From: Chiu, Chasel > Sent: Wednesday, February 13, 2019 5:47 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Ni, Ray ; Laszlo > Ersek ; Chiu, Chasel > Subject: [PATCH v2 3/3] UefiCpuPkg/SecCore: Support > EFI_PEI_CORE_FV_LOCA

Re: [edk2] [PATCH 2/3] MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
Sorry, please ignore my other review mail and just check this mail. 3 minor comments below. > -Original Message- > From: Chiu, Chasel > Sent: Tuesday, February 12, 2019 9:20 PM > To: edk2-devel@lists.01.org > Cc: Wang, Jian J ; Wu, Hao A ; > Ni, Ray ; Zeng, Star ; Ga

Re: [edk2] [PATCH 2/3] MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
1. please move the #include adjacent to other #include 2. Can you explain why > -Original Message- > From: Chiu, Chasel > Sent: Tuesday, February 12, 2019 9:20 PM > To: edk2-devel@lists.01.org > Cc: Wang, Jian J ; Wu, Hao A ; > Ni, Ray ; Zeng, Star ; Gao, Limin

Re: [edk2] [PATCH 1/3] MdePkg: Support EFI_PEI_CORE_FV_LOCATION_PPI

2019-02-14 Thread Ni, Ray
Chasel, I don't think the below forward definition is needed. typedef struct _EFI_PEI_CORE_FV_LOCATION_PPI EFI_PEI_CORE_FV_LOCATION_PPI; It is needed when the PPI contains methods and the methods requires This pointer as the first parameter. > -Original Message- > From: edk2-devel On

Re: [edk2] [PATCH v4 12/13] OvmfPkg/LockBoxLib: Update the comments for API UpdateLockBox()

2019-02-12 Thread Ni, Ray
Reviewed-by: Ray Ni -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [PATCH v4 04/13] MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3

2019-02-12 Thread Ni, Ray
Reviewed-by: Ray Ni -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [PATCH v4 02/13] MdeModulePkg: Add definitions for EDKII PEI ATA PassThru PPI

2019-02-12 Thread Ni, Ray
On 2/11/2019 3:57 PM, Hao Wu wrote: REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 This commit will add the definitions for EDKII PEI ATA PassThru PPI. This PPI will provide services that allow ATA commands to be sent to ATA devices attached to an ATA controller in the PEI phase. More

Re: [edk2] [PATCH v1 1/1] MdeModulePkg/NvmExpressDxe: Report StatusCode for device init failure

2019-02-12 Thread Ni, Ray
On 2/11/2019 3:57 PM, Hao Wu wrote: From: Sean Brogan REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1408 According to the information of the above BZ-1408 and other platform owners, NVM Express devices are becoming more likely to be a critical part during the boot process. This commit

Re: [edk2] [PATCH v3 11/12] MdeModulePkg/SmmLockBoxLib: Support LockBox enlarge in UpdateLockBox()

2019-01-31 Thread Ni, Ray
Reviewed-by: Ray Ni -- Thanks, Ray ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [MdePkg/BaseLib v1 1/1] MdePkg BaseLib: Add new API CalculateCrc16()

2019-01-31 Thread Ni, Ray
There is an CRC16 calculation implementation in SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c Does your implementation generate the same CRC16 as above one? > -Original Message- > From: edk2-devel On Behalf Of Ming > Huang > Sent: Friday, February 1, 2019 2:02 PM

Re: [edk2] [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-31 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Solanki, Digant H > Sent: Thursday, January 31, 2019 4:01 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Gao, Liming ; > Chaganty, Rangasai V > Subject: [PATCH 5/5] IntelSiliconPkg\Include\IndustryStandard: Update

Re: [edk2] [RFC] Proposal to split Pkgs

2019-01-31 Thread Ni, Ray
On 1/31/2019 3:51 PM, Ard Biesheuvel wrote: The POC code is inhttps://github.com/jyao1/edk2/tree/ReOrg. It basically split the EDKII common code to three directories: Core/, Device/, and Feature/. I'm not sure I like the 'Device' name, but that's not that important at this stage - I like that

Re: [edk2] [PATCH v5] MdePkg/BaseLib: Add Base64Encode() and Base64Decode()

2019-01-30 Thread Ni, Ray
Even ECC doesn't complain, I still suggest to change Encoding_table/Decoding_table to a proper name, e.g.: EncodingTable/DecodingTable. With the rename applied in V5 patch, Reviewed-by: Ray Ni ___ edk2-devel mailing list edk2-devel@lists.01.org

Re: [edk2] [PATCH 2/2] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-30 Thread Ni, Ray
On 1/31/2019 2:55 PM, Ni, Ray wrote: On 1/31/2019 1:00 PM, Digant H Solanki wrote: BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1454 Based on latest IGD OpRegion Spec, IGD_OPREGION_MBOX3 needs to be updated with two new members : Physical Address of Raw VBT Data (RVDA) and Size of Raw

Re: [edk2] [RFC] Proposal to split Pkgs

2019-01-30 Thread Ni, Ray
On 1/29/2019 10:21 PM, Leif Lindholm wrote: Hi Ray, First of all, thank you for restarting this discussion, and putting the effort in for a POC. On Tue, Jan 29, 2019 at 05:59:35AM +, Ni, Ray wrote: Hello, I'd like to propose to split today's BIG packages in following ways

Re: [edk2] [PATCH 2/2] IntelSiliconPkg\Include\IndustryStandard: Update IGD_OPREGION_MBOX3 Structure

2019-01-30 Thread Ni, Ray
: TianoCore Contribution Agreement 1.1 Signed-off-by: Digant H Solanki Cc: Liming Gao Cc: Chaganty, Rangasai V Cc: Ni, Ray --- IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IntelSiliconPkg/Include/IndustryStandard

Re: [edk2] [PATCH v2 07/12] MdeModulePkg/NvmExpressPei: Consume S3StorageDeviceInitList LockBox

2019-01-30 Thread Ni, Ray
> -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 07/12] MdeModulePkg/NvmExpressPei: Consume > S3StorageDeviceInitLis

Re: [edk2] [PATCH v2 06/12] MdeModulePkg/NvmExpressPei: Add logic to produce SSC PPI

2019-01-30 Thread Ni, Ray
> -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 06/12] MdeModulePkg/NvmExpressPei: Add logic to > produc

Re: [edk2] [PATCH v2 05/12] MdeModulePkg/NvmExpressPei: Avoid updating the module-level variable

2019-01-30 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray > Subject: [PATCH v2 05/12] MdeModulePkg/NvmExpressPei: Avoid updating > t

Re: [edk2] [PATCH v2 03/12] MdeModulePkg: Add definitions for Storage Security Command PPI

2019-01-30 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 03/12] MdeModulePkg: Add definitions for Storage &

Re: [edk2] [PATCH v2 04/12] MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3

2019-01-30 Thread Ni, Ray
> -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 04/12] MdeModulePkg: Add GUID for LockBox to save > storage dev to i

Re: [edk2] [PATCH v2 01/12] MdeModulePkg: Add definitions for ATA AHCI host controller PPI

2019-01-30 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Hao A > Sent: Thursday, January 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 01/12] MdeModulePkg: Add definitions for ATA AHCI

Re: [edk2] [PATCH v2 02/12] MdeModulePkg: Add definitions for EDKII PEI ATA PassThru PPI

2019-01-30 Thread Ni, Ray
anuary 31, 2019 10:49 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Ni, Ray ; Dong, Eric > Subject: [PATCH v2 02/12] MdeModulePkg: Add definitions for EDKII PEI ATA > PassThru PPI > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1409 > >

Re: [edk2] [RFC] Proposal to split Pkgs

2019-01-29 Thread Ni, Ray
> -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo > Ersek > Sent: Tuesday, January 29, 2019 7:12 PM > To: Ni, Ray ; edk2-devel@lists.01.org > Cc: Zimmer, Vincent ; Wolman, Ayellet > ; Cetola, Stephano ; > Kinn

Re: [edk2] [PATCH v3 1/4] MdePkg/UefiSpec.h: Add definition to support Capsule-on-Disk feature

2019-01-29 Thread Ni, Ray
Where does the macro name come from? If it's not defined in Spec, how about to rename it to "EFI_CAPSULE_FILE_DIRECTORY"? > -Original Message- > From: edk2-devel On Behalf Of Chen A Chen > Sent: Tuesday, January 29, 2019 3:44 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ;

[edk2] [RFC] Proposal to split Pkgs

2019-01-28 Thread Ni, Ray
Hello, I'd like to propose to split today's BIG packages in following ways: ==Overview = 1. Separate Industry standard definitions from UEFI and PI interfaces. 2. Separate UEFI and PI interfaces from implementations. a. Separate UEFI and PI interfaces to different

Re: [edk2] [PATCH v2] MdePkg/BaseLib: Add Base64Encode() and Base64Decode()

2019-01-28 Thread Ni, Ray
Minor comments regarding the parameter name. > -Original Message- > From: edk2-devel On Behalf Of Shenglei > Zhang > Sent: Thursday, January 10, 2019 8:44 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Gao, Liming > > Subject: [edk2] [PATCH v2] MdePkg/BaseLib: Add

Re: [edk2] [PATCH v2 2/2] MdePkg/UefiDevicePathLib: Add a checking step

2019-01-28 Thread Ni, Ray
Reviewed-by: Ruiyu Ni > -Original Message- > From: edk2-devel On Behalf Of Shenglei > Zhang > Sent: Wednesday, December 12, 2018 11:10 AM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Gao, Liming > > Subject: [edk2] [PATCH v2 2/2] MdePkg/UefiDevicePathLib: Add a checking >

Re: [edk2] Drop CSM support in OvmfPkg?

2019-01-23 Thread Ni, Ray
only case that prevent removing the two framework packages.) Would you like to do the clone? Or if you are busy, I can do that. Thanks, Ray > -Original Message- > From: David Woodhouse [mailto:dw...@infradead.org] > Sent: Wednesday, January 23, 2019 5:49 PM > To: Laszlo

  1   2   >