[edk2] [Patch v3 4/5] UefiCpuPkg/CpuS3DataDxe: Remove below 4G limitation.

2018-08-09 Thread Eric Dong
Because PrepareApStartupVector() stores StackAddress to "mExchangeInfo->StackStart" (which has type (VOID*)), and because "UefiCpuPkg/PiSmmCpuDxeSmm/X64/MpFuncs.nasm" reads the latter with: add edi, StackStartAddressLocation add rax, qword [edi] mov rsp, rax

[edk2] [Patch v3 0/5] Change CpuS3Data memory type and address limitation

2018-08-09 Thread Eric Dong
Because CpuS3Data memory will be copy to smram at SmmReadToLock point by PiSmmCpuDxeSmm driver, the memory type no need to be ACPI NVS type, also the address not limit to below 4G. This change remove the limit of ACPI NVS memory type and below 4G. Cc: Marvin H user Cc: Fan Jeff Cc: Laszlo

[edk2] [Patch v3 3/5] UefiCpuPkg/CpuS3DataDxe: Change Memory Type and address limitation.

2018-08-09 Thread Eric Dong
Because CpuS3Data memory will be copy to smram at SmmReadyToLock point, the memory type no need to be ACPI NVS type, also the address not limit to below 4G. This change remove the limit of ACPI NVS memory type and below 4G. Pass OS boot and resume from S3 test. Cc: Marvin Häuser Cc: Fan Jeff

[edk2] [Patch v3 1/5] UefiCpuPkg/PiSmmCpuDxeSmm: Use GDT/IDT saved in Smram.

2018-08-09 Thread Eric Dong
Current implementation copies GDT/IDT at SmmReadyToLock point from ACPI NVS memory to Smram. Later at S3 resume phase, it restores memory saved in Smram to ACPI NVS. Driver can directly use GDT/IDT saved in Smram instead of restore the original ACPI NVS memory. This patch do this change. Test

[edk2] [Patch v3 5/5] UefiCpuPkg/RegisterCpuFeaturesLib: Combine implementation.

2018-08-09 Thread Eric Dong
V1 changes: > Current code logic can't confirm CpuS3DataDxe driver start before > CpuFeaturesDxe driver. So the assumption in CpuFeaturesDxe not valid. > Add implementation for AllocateAcpiCpuData function to remove this > assumption. V2 changes: > Because CpuS3Data memory will be copy to smram

[edk2] [Patch v3 2/5] UefiCpuPkg/AcpiCpuData.h: Remove AcpiNVS and Below 4G limitation.

2018-08-09 Thread Eric Dong
ACPI_CPU_DATA structure first introduced to save data in normal boot phase. Also this data will be used in S3 phase by one PEI driver. So in first phase, this data is been defined to use ACPI NVS memory type and must below 4G. Later in order to fix potential security issue, PiSmmCpuDxeSmm driver

[edk2] 答复: 答复: [Patch v2 2/2] UefiCpuPkg/CpuS3DataDxe: Change Memory Type and address limitation.

2018-08-09 Thread Fan Jeff
Sorry. Correct some critical wording. “ACPI NVS and 4G limitation are history reason and are NOT necessary currently.” Jeff 发件人: edk2-devel 代表 Fan Jeff 发送时间: Friday, August 10, 2018 12:00:08 PM 收件人: Dong, Eric; 'Laszlo Ersek' 抄送: Ni, Ruiyu; Kinney,

[edk2] 答复: [Patch v2 2/2] UefiCpuPkg/CpuS3DataDxe: Change Memory Type and address limitation.

2018-08-09 Thread Fan Jeff
Hi, ACPI NVS and 4G limitation are history reason and are necessary currently. I agree to do such cleanup from header file and implementation. Long term, could we think of combine CpuFeaturesDxe and CpuS3DataDxe? Jeff 发送自 Windows 10

Re: [edk2] [Patch v2 2/2] UefiCpuPkg/CpuS3DataDxe: Change Memory Type and address limitation.

2018-08-09 Thread Dong, Eric
Hi Laszlo, > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Laszlo Ersek > Sent: Thursday, August 9, 2018 12:55 AM > To: Dong, Eric > Cc: Ni, Ruiyu ; Kinney, Michael D > ; edk2-devel@lists.01.org > Subject: Re: [edk2] [Patch v2 2/2]

Re: [edk2] [Patch v2 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: Combine implementation.

2018-08-09 Thread Dong, Eric
Hi Laszlo, > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Thursday, August 9, 2018 7:21 PM > To: Ni, Ruiyu ; Dong, Eric ; edk2- > de...@lists.01.org > Subject: Re: [edk2] [Patch v2 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: > Combine implementation. > > On

Re: [edk2] [PATCH 11/26] MdeModulePkg UfsBlockIoPei: Remove redundant functions

2018-08-09 Thread Wu, Hao A
One minor comment: Please help to remove the comment that mentioned 'UfsPeimUnlinkMemBlock' within function UfsPeimFreeMemPool(). For me, // // Unlink all the memory blocks from the pool, then free them. // will be fine. With that change, Reviewed-by: Hao Wu Best Regards, Hao Wu >

Re: [edk2] [PATCH 20/26] MdeModulePkg SdBlockIoPei: Remove a redundant function

2018-08-09 Thread Wu, Hao A
One minor comment: Please help to remove the comment that mentioned 'SdPeimUnlinkMemBlock' within function SdPeimFreeMemPool(). For me, // // Unlink all the memory blocks from the pool, then free them. // will be fine. With that change, Reviewed-by: Hao Wu Best Regards, Hao Wu >

Re: [edk2] [PATCH 19/26] MdeModulePkg EmmcBlockIoPei: Remove a redundant function

2018-08-09 Thread Wu, Hao A
One minor comment: Please help to remove the comment that mentioned 'EmmcPeimUnlinkMemBlock' within function EmmcPeimFreeMemPool(). For me, // // Unlink all the memory blocks from the pool, then free them. // will be fine. With that change, Reviewed-by: Hao Wu Best Regards, Hao Wu >

Re: [edk2] [PATCH edk2-platforms v1 30/38] Hisilicon/D06: add apei driver

2018-08-09 Thread Ming
在 8/4/2018 10:47 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:14PM +0800, Ming Huang wrote: >> From: Luqi Jiang >> >> This driver provide a means for the platform to >> convey error information to OSPM. >> >> Contributed-under: TianoCore Contribution Agreement 1.1 >> Signed-off-by:

Re: [edk2] [PATCH 05/26] MdeModulePkg NvmExpressDxe: Remove redundant functions

2018-08-09 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 > shenglei > Sent: Wednesday, August 08, 2018 4:47 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric; Zeng, Star > Subject: [edk2] [PATCH 05/26]

Re: [edk2] [PATCH 12/26] MdeModulePkg UfsPassThruDxe: Remove redundant functions

2018-08-09 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 > shenglei > Sent: Wednesday, August 08, 2018 4:47 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric; Zeng, Star > Subject: [edk2] [PATCH 12/26]

Re: [edk2] [PATCH edk2-platforms v1 34/38] Silicon/Hisilicon/D06: Add I2C Bus Exception deal function

2018-08-09 Thread Ming
在 8/4/2018 11:18 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:18PM +0800, Ming Huang wrote: >> From: shaochangliang >> >> During the period of I2c accessing, if the board is reset >> unexpectedly, and because the I2c client can not reset, >> the SDA will be always pull down, then it

Re: [edk2] [PATCH edk2-platforms v1 33/38] Silicon/Hisilicon/D06: Modify for close slave core clock.

2018-08-09 Thread Ming
在 8/9/2018 8:27 PM, Leif Lindholm 写道: > On Thu, Aug 09, 2018 at 08:15:27PM +0800, Ming wrote: >> 在 8/4/2018 11:14 PM, Leif Lindholm 写道: >>> On Tue, Jul 24, 2018 at 03:09:17PM +0800, Ming Huang wrote: From: ZhenYao When BIOS booting, the power consumption is too high, so need

[edk2] [PATCH 0/2] UefiCpuPkg: Add RSB stuffing before rsm instruction

2018-08-09 Thread Hao Wu
The series will add RSB stuffing logics to avoid RSB underflow on return from SMM (rsm instruction). Cc: Jiewen Yao Cc: Eric Dong Cc: Laszlo Ersek Hao Wu (2): UefiCpuPkg/SmmCpuFeaturesLib: Add RSB stuffing before rsm instruction UefiCpuPkg/PiSmmCpuDxeSmm: Add RSB stuffing before rsm

[edk2] [PATCH 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Add RSB stuffing before rsm instruction

2018-08-09 Thread Hao Wu
System Management Interrupt (SMI) handlers can leave the Return Stack Buffer (RSB) in a state that application program or operating-system does not expect. In order to avoid RSB underflow on return from SMI, this commit will add RSB stuffing logic before instruction 'rsm'. After the stuffing,

Re: [edk2] [PATCH edk2-platforms v1 07/38] Silicon/Hisilicon/D06: Wait for all disk ready

2018-08-09 Thread Ming
在 8/8/2018 8:53 PM, Leif Lindholm 写道: > On Wed, Aug 08, 2018 at 07:44:36PM +0800, Ming wrote: >> >> >> 在 8/8/2018 5:59 PM, Leif Lindholm 写道: >>> On Wed, Aug 08, 2018 at 05:02:15PM +0800, Ming wrote: 在 8/3/2018 1:36 AM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:08:51PM +0800, Ming

[edk2] [PATCH 1/2] UefiCpuPkg/SmmCpuFeaturesLib: Add RSB stuffing before rsm instruction

2018-08-09 Thread Hao Wu
System Management Interrupt (SMI) handlers can leave the Return Stack Buffer (RSB) in a state that application program or operating-system does not expect. In order to avoid RSB underflow on return from SMI, this commit will add RSB stuffing logic before instruction 'rsm'. After the stuffing,

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

2018-08-09 Thread Wu, Jiaxin
Hi Siva, Since the gateway and Remote IP is accessible from shell, it means the platform already has the valid gateway, then according the IP policy, it should be ready for the upper layer to access the Internet, UEFI HttpBootDxe driver has verified that by registering one valid gateway. So,

[edk2] [Patch 1/4] Vlv2TbltDevicePkg/Override/Bds: Add test key notification

2018-08-09 Thread Michael D Kinney
From: "Kinney, Michael D" Cc: David Wei Cc: Mang Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- .../Library/GenericBdsLib/BdsConsole.c| 11 +++ .../Library/GenericBdsLib/GenericBdsLib.inf | 1

[edk2] [Patch 2/4] Vlv2TbltDevicePkg/Feature/Capsule: Add FmpDeviceLib instances

2018-08-09 Thread Michael D Kinney
Cc: David Wei Cc: Mang Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- .../Capsule/Library/FmpDeviceLib/FmpDeviceLib.c| 607 + .../Capsule/Library/FmpDeviceLib/FmpDeviceLib.inf | 63 +++

[edk2] [Patch 4/4] Vlv2TbltDevicePkg: Update DSC/FDF to use FmpDevicePkg

2018-08-09 Thread Michael D Kinney
Cc: David Wei Cc: Mang Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- Vlv2TbltDevicePkg/FmpBlueSampleDevice.dsc | 61 +++ Vlv2TbltDevicePkg/FmpCertificate.dsc | 28 +

[edk2] [Patch 3/4] Vlv2TbltDevicePkg/Capsule: Add scripts to generate capsules

2018-08-09 Thread Michael D Kinney
Use GenerateCapsule to generate capsules for MinnowMax debug and release builds and sample devices. Cc: David Wei Cc: Mang Guo Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- .../Capsule/GenerateCapsule/GenCapsuleAll.bat | 35 +

[edk2] [Patch 0/4] Vlv2TbltDevicePkg: Add FmpDevicePkg support

2018-08-09 Thread Michael D Kinney
Update Vlv2TbltDevicePkg to build UEFI capsules for system firmare and device firmware using the GenerateCapsule tool and use the FmpDevicePkg to implement drivers that produce the Firmware Management Protocol to process UEFI capsules. * Update Vlv2TbltDevicePkg specific BDS to notify when test

Re: [edk2] [Patch] Maintainers.txt: Add FmpDevicePkg maintainers

2018-08-09 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Michael D Kinney Sent: Friday, August 10, 2018 5:20 AM To: edk2-devel@lists.01.org Subject: [edk2] [Patch] Maintainers.txt: Add FmpDevicePkg maintainers This patch adds

Re: [edk2] [Patch] SecurityPkg/TcgStorageCoreLib.h: Use ascii instead of unicode.

2018-08-09 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 Eric > Dong > Sent: Thursday, August 09, 2018 1:14 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A > Subject: [edk2] [Patch]

[edk2] [Patch] Maintainers.txt: Add FmpDevicePkg maintainers

2018-08-09 Thread Michael D Kinney
This patch adds maintainers for the FmpDevicePkg. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- Maintainers.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Maintainers.txt b/Maintainers.txt index 7295cd6b83..df7dc48f75 100644 ---

[edk2] [staging/MicroPythonTestFramework]: MicroPython Test Framework for UEFI

2018-08-09 Thread Richardson, Brian
The "MicroPython Test Framework for UEFI" project has been added to edk2-staging for community feedback. https://github.com/tianocore/edk2-staging/tree/MicroPythonTestFramework This includes a port of MicroPython to UEFI and a test execution environment that can run from the UEFI Shell.

Re: [edk2] [PATCH 1/1] SecurityPkg/Library/Tpm2DeviceLibDTpm: fix s/Constructor/CONSTRUCTOR

2018-08-09 Thread Laszlo Ersek
On 08/09/18 16:33, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The library constructor is not being called because of the typo, > causing TPM2 detection/initialization to fail. > > This fixes OVMF TPM2 regression since commit f15cb995bb38. >

Re: [edk2] DxeIpl module cannot find DXE entry point

2018-08-09 Thread Laszlo Ersek
On 08/09/18 14:14, Hristo Mihaylov wrote: > Hello, > > This is my first time posting to a mailing list. I am building a custom > platform that fails when handing off control from PEIM to DXE. > > Here's the error: > > ``` > ASSERT_EFI_ERROR (Status = Not Found) > ASSERT >

Re: [edk2] [PATCH] ShellPkg Shell: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/09/18 17:41, jim.dai...@dell.com wrote: > The InvalidChars[] array is only used in function IsValidCommandName(). > The array should be deleted also, I think. I've pointed out a similar continuation for another patch:

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

2018-08-09 Thread Laszlo Ersek
On 08/09/18 17:46, Zhang, Chao B wrote: > Hi Laszlo: >We seriously considered such dependency change in design. The library is > shared between DXE & PEI. So PCD is the generic way to share the data and > reduce real register touch. > Therefore, the problem is that Library can’t be used by

Re: [edk2] [PATCH edk2-platforms v1 35/38] Silicon/Hisilicon/Setup: Support SPCR table switch

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 11:40:12PM +0800, Ming wrote: > > > 在 8/9/2018 10:44 PM, Leif Lindholm 写道: > > On Thu, Aug 09, 2018 at 10:17:43PM +0800, Ming wrote: > >> > >> > >> 在 8/4/2018 11:20 PM, Leif Lindholm 写道: > >>> On Tue, Jul 24, 2018 at 03:09:19PM +0800, Ming Huang wrote: > If install

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

2018-08-09 Thread Zhang, Chao B
Hi Laszlo: We seriously considered such dependency change in design. The library is shared between DXE & PEI. So PCD is the generic way to share the data and reduce real register touch. Therefore, the problem is that Library can’t be used by SEC anymore. The decision is, since there is no

Re: [edk2] [PATCH] ShellPkg Shell: Remove redundant functions

2018-08-09 Thread Jim.Dailey
The InvalidChars[] array is only used in function IsValidCommandName(). The array should be deleted also, I think. Regards, Jim -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of shenglei Sent: Thursday, August 9, 2018 12:42 AM To:

Re: [edk2] [PATCH edk2-platforms v1 35/38] Silicon/Hisilicon/Setup: Support SPCR table switch

2018-08-09 Thread Ming
在 8/9/2018 10:44 PM, Leif Lindholm 写道: > On Thu, Aug 09, 2018 at 10:17:43PM +0800, Ming wrote: >> >> >> 在 8/4/2018 11:20 PM, Leif Lindholm 写道: >>> On Tue, Jul 24, 2018 at 03:09:19PM +0800, Ming Huang wrote: If install SPCR table, KVM will not output while install or boot some OS, like

Re: [edk2] [PATCH 1/1] SecurityPkg/Library/Tpm2DeviceLibDTpm: fix s/Constructor/CONSTRUCTOR

2018-08-09 Thread Zhang, Chao B
HI Lureau: Thanks for you investigation. It is my typo! The reason why we didn’t have this issue is that we only use TPM2InstanceLib. That lib use the correct definition. -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of

Re: [edk2] [PATCH 1/1] SecurityPkg/Library/Tpm2DeviceLibDTpm: fix s/Constructor/CONSTRUCTOR

2018-08-09 Thread Zhang, Chao B
Reviewed-by : Chao Zhang -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of marcandre.lur...@redhat.com Sent: Thursday, August 9, 2018 10:33 PM To: edk2-devel@lists.01.org Cc: Laszlo Ersek ; Zhang, Chao B ; Long, Qin Subject: [edk2] [PATCH 1/1]

Re: [edk2] [PATCH 0/2] Fix two bugs regarding shell redirection

2018-08-09 Thread Carsey, Jaben
Both look good. Reviewed-by: Jaben Carsey > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Ruiyu Ni > Sent: Wednesday, August 08, 2018 8:45 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [PATCH 0/2] Fix two bugs regarding shell

Re: [edk2] [PATCH] ShellPkg Shell: Remove redundant functions

2018-08-09 Thread Carsey, Jaben
Reviewed-by: Jaben Carsey > -Original Message- > From: Zhang, Shenglei > Sent: Wednesday, August 08, 2018 10:42 PM > To: edk2-devel@lists.01.org > Cc: Carsey, Jaben ; Ni, Ruiyu > Subject: [PATCH] ShellPkg Shell: Remove redundant functions > Importance: High > > The redundant functions

Re: [edk2] [PATCH 1/1] SecurityPkg/Library/Tpm2DeviceLibDTpm: fix s/Constructor/CONSTRUCTOR

2018-08-09 Thread Laszlo Ersek
On 08/09/18 16:33, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The library constructor is not being called because of the typo, > causing TPM2 detection/initialization to fail. > > This fixes OVMF TPM2 regression since commit f15cb995bb38. >

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

2018-08-09 Thread Laszlo Ersek
On 08/09/18 16:09, Marc-André Lureau wrote: > Hi > > On Mon, Aug 6, 2018 at 5:26 PM, Zhang, Chao B wrote: >> Hi Ricardo >>I double checked OVMF Debug Build. All the 2 PCDs are already built as >> Dynamic PCD. There should be no problem >> Setting & Getting these PCD as Dynamic. We also

Re: [edk2] [PATCH edk2-platforms v1 35/38] Silicon/Hisilicon/Setup: Support SPCR table switch

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 10:17:43PM +0800, Ming wrote: > > > 在 8/4/2018 11:20 PM, Leif Lindholm 写道: > > On Tue, Jul 24, 2018 at 03:09:19PM +0800, Ming Huang wrote: > >> If install SPCR table, KVM will not output while install or boot > >> some OS, like ubuntu, > > > > Will not output? > > Do you

Re: [edk2] [PATCH edk2-platforms v1 22/38] Platform/Hisilicon/D06: Add OemNicLib

2018-08-09 Thread Ming
在 8/9/2018 6:19 PM, Leif Lindholm 写道: > On Thu, Aug 09, 2018 at 02:16:49PM +0800, Ming wrote: +UINT16 crc_tab[256] = { >>> >>> CrcTable. >> >> Modify it in v2. >> >>> Hmm. >>> This might be useful to add to a core library/driver/protocol. We >>> don't appear to have it yet. This is another

[edk2] [PATCH 1/1] SecurityPkg/Library/Tpm2DeviceLibDTpm: fix s/Constructor/CONSTRUCTOR

2018-08-09 Thread marcandre . lureau
From: Marc-André Lureau The library constructor is not being called because of the typo, causing TPM2 detection/initialization to fail. This fixes OVMF TPM2 regression since commit f15cb995bb38. https://bugzilla.tianocore.org/show_bug.cgi?id=1075 Cc: Laszlo Ersek Cc: Zhang Chao B Cc: Long

Re: [edk2] [PATCH edk2-platforms v1 38/38] Platform/Hisilicon/D0x: Update version string to 18.08

2018-08-09 Thread Ming
在 8/6/2018 6:03 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:22PM +0800, Ming Huang wrote: >> Contributed-under: TianoCore Contribution Agreement 1.1 >> Signed-off-by: Ming Huang >> --- >> Platform/Hisilicon/D03/D03.dsc | 2 +- >> Platform/Hisilicon/D05/D05.dsc | 2 +- >>

Re: [edk2] [PATCH edk2-platforms v1 37/38] Hisilicon/D06: Add PciPlatformLib

2018-08-09 Thread Ming
在 8/6/2018 6:01 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:21PM +0800, Ming Huang wrote: >> Add a Null PciPlatformLib for build D06. > > Why? (Add some more detail to commit message, please.) This patch set is base the switch generic PciHostBridge patch set which add two api for

Re: [edk2] [PATCH 26/26] MdeModulePkg SetupBrowserDxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function IsDevicePathExist that is never called > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

Re: [edk2] [PATCH 25/26] MdeModulePkg Tcp4Dxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The functions that are never called have been removed. > They are SockRcvdErr,SockGroup and TcpPawsOK. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 >

Re: [edk2] [PATCH edk2-platforms v1 36/38] Silicon/Hisilicon/setup: Support SMMU switch

2018-08-09 Thread Ming
在 8/6/2018 5:59 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:20PM +0800, Ming Huang wrote: >> Select without SMMU iort while SMMU item is disable, >> Select with SMMU iort while SMMU item is enable. >> >> Contributed-under: TianoCore Contribution Agreement 1.1 >> Signed-off-by: Ming

Re: [edk2] [PATCH 24/26] MdeModulePkg IScsiDxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function IScsiFindTcbByITT that is never calld > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

Re: [edk2] [PATCH edk2-platforms v1 35/38] Silicon/Hisilicon/Setup: Support SPCR table switch

2018-08-09 Thread Ming
在 8/4/2018 11:20 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:19PM +0800, Ming Huang wrote: >> If install SPCR table, KVM will not output while install or boot >> some OS, like ubuntu, > > Will not output? > Do you mean it disables the graphical output of the OS? Yes, the behaviour of

Re: [edk2] [PATCH 23/26] MdeModulePkg Ip4Dxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function Ip4Config2OnDhcp4Event that is never calld > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

Re: [edk2] [PATCH 22/26] MdeModulePkg HiiDatabaseDxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function GetStorageWidth that is never calld > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

Re: [edk2] [PATCH 21/26] MdeModulePkg TerminalDxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function UnicodeFiFoGetKeyCount that is never calld > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

Re: [edk2] [PATCH 18/26] MdeModulePkg Ps2KeyboardDxe: Remove a redundant function

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The function DisableKeyboard that is never calld > has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- >

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

2018-08-09 Thread Marc-André Lureau
Hi On Mon, Aug 6, 2018 at 5:26 PM, Zhang, Chao B wrote: > Hi Ricardo >I double checked OVMF Debug Build. All the 2 PCDs are already built as > Dynamic PCD. There should be no problem > Setting & Getting these PCD as Dynamic. We also verified this feature on > several real hardware

Re: [edk2] [PATCH 17/26] MdeModulePkg PiSmmCore: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The functions that are never called have been removed. > They are IsImageInsideSmram,FindImageRecord,SmmRemoveImageRecord, > SmmMemoryAttributesTableConsistencyCheck,DumpSmmMemoryMapEntry, > SmmMemoryMapConsistencyCheckRange,SmmMemoryMapConsistencyCheck, >

Re: [edk2] [PATCH 16/26] MdeModulePkg Core/Dxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The functions that are never called have been removed. > They are ClearGuardMapBit,SetGuardMapBit,IsHeadGuard, > IsTailGuard and CoreEfiNotAvailableYetArg0. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong >

Re: [edk2] [PATCH 14/26] MdeModulePkg UsbBusDxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:47, shenglei wrote: > The functions that are never called have been removed. > They are UsbHubCtrlSetHubFeature,UsbHubCtrlResetTT,UsbHcReset, > UsbHcAsyncIsochronousTransfer,UsbHcGetState,UsbHcSetState and > UsbHcIsochronousTransfer. >

Re: [edk2] [PATCH 09/26] MdeModulePkg XhciDxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:46, shenglei wrote: > The functions that are never called have been removed. > They are XhcReadDoorBellReg and XhcWriteOpReg16. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore Contribution Agreement 1.1 >

Re: [edk2] [PATCH 06/26] MdeModulePkg PciBusDxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:46, shenglei wrote: > The functions that are never called have been removed. > They are UpStreamBridgesAttributes and GetHpcPciAddressFromRootBridge. > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc: Eric Dong > Contributed-under: TianoCore

Re: [edk2] [PATCH 05/26] MdeModulePkg NvmExpressDxe: Remove redundant functions

2018-08-09 Thread Laszlo Ersek
On 08/08/18 10:46, shenglei wrote: > The functions that are never called have been removed. > They are ReadNvmeAdminSubmissionQueueBaseAddress, > ReadNvmeAdminCompletionQueueBaseAddress and ReadNvmeAdminQueueAttributes > https://bugzilla.tianocore.org/show_bug.cgi?id=1062 > > Cc: Star Zeng > Cc:

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

2018-08-09 Thread Laszlo Ersek
On 08/03/18 14:15, Laszlo Ersek wrote: > Repo: https://github.com/lersek/edk2.git > Branch: open_file_by_devpath_tiano_1008_v2 > > This is version 2 of the patch set that was originally posted at: > > https://lists.01.org/pipermail/edk2-devel/2018-July/027253.html > > for

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

2018-08-09 Thread Laszlo Ersek
BUILD_CPPFLAGS should be expanded before BUILD_CFLAGS. (The rule for C++ source files already does this, with BUILD_CPPFLAGS and BUILD_CXXFLAGS.) This patch doesn't change behavior. Cc: Liming Gao Cc: Yonghong Zhu Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244 Contributed-under:

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

2018-08-09 Thread Laszlo Ersek
Allow the caller of the top-level makefile either to set EXTRA_LDFLAGS in the environment or to pass EXTRA_LDFLAGS as a macro definition on the command line. EXTRA_LDFLAGS extends (and potentially overrides) default link-editing flags set in the makefiles. Cc: Liming Gao Cc: Yonghong Zhu Ref:

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

2018-08-09 Thread Laszlo Ersek
Allow the caller of the top-level makefile either to set EXTRA_OPTFLAGS in the environment or to pass EXTRA_OPTFLAGS as a macro definition on the command line. EXTRA_OPTFLAGS extends (and potentially overrides) default C compilation flags set in the makefiles. Cc: Liming Gao Cc: Yonghong Zhu

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

2018-08-09 Thread Laszlo Ersek
The option "-O2" is not a preprocessor flag, but a code generation (compilation) flag. Move it from BUILD_CPPFLAGS to BUILD_CFLAGS and BUILD_CXXFLAGS. Because "VfrCompile/GNUmakefile" uses "-O2" through BUILD_CPPFLAGS, and because it doesn't use BUILD_CXXFLAGS, we have to introduce BUILD_OPTFLAGS

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

2018-08-09 Thread Laszlo Ersek
Option "-c" is a mode selection flag (choosing between compiling and linking); it should not be in BUILD_CFLAGS, which applies only to compiling anyway. The compilation rule for C source files, in "footer.makefile", already includes "-c" -- currently we have double "-c" options. This patch

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

2018-08-09 Thread Laszlo Ersek
Repo: https://github.com/lersek/edk2.git Branch: extra_flags_rhbz1540244_v2 Version 1 of this set was posted at 20180726004415.13381-1-lersek@redhat.com">http://mid.mail-archive.com/20180726004415.13381-1-lersek@redhat.com https://lists.01.org/pipermail/edk2-devel/2018-July/027606.html In

Re: [edk2] [PATCH edk2-platforms v1 33/38] Silicon/Hisilicon/D06: Modify for close slave core clock.

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 08:15:27PM +0800, Ming wrote: > 在 8/4/2018 11:14 PM, Leif Lindholm 写道: > > On Tue, Jul 24, 2018 at 03:09:17PM +0800, Ming Huang wrote: > >> From: ZhenYao > >> > >> When BIOS booting, the power consumption is too high, so need close > >> some clusters clock that don't work

Re: [edk2] [PATCH edk2-platforms v1 33/38] Silicon/Hisilicon/D06: Modify for close slave core clock.

2018-08-09 Thread Ming
在 8/4/2018 11:14 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:17PM +0800, Ming Huang wrote: >> From: ZhenYao >> >> When BIOS booting, the power consumption is too high, so need close >> some clusters clock that don't work to reduce power consumption. > > On the one hand: should this

[edk2] DxeIpl module cannot find DXE entry point

2018-08-09 Thread Hristo Mihaylov
Hello, This is my first time posting to a mailing list. I am building a custom platform that fails when handing off control from PEIM to DXE. Here's the error: ``` ASSERT_EFI_ERROR (Status = Not Found) ASSERT

Re: [edk2] [PATCH edk2-platforms v1 31/38] Silicon/Hisilicon/D06: Add some Lpc macro to LpcLib.h

2018-08-09 Thread Ming
在 8/4/2018 10:58 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:15PM +0800, Ming Huang wrote: >> Add soem Lpc macro to LpcLib.h for D06. > > soem -> some > > I have no issue with this patch, but can you explain when these macros > are intended to be used? And if in this set, move this

Re: [edk2] [PATCH edk2-platforms v1 27/38] Platform/Hisilicon/D06: Add EarlyConfigPeim peim

2018-08-09 Thread Ming
在 8/9/2018 6:27 PM, Leif Lindholm 写道: > On Thu, Aug 09, 2018 at 03:07:07PM +0800, Ming wrote: >> 在 8/4/2018 5:59 PM, Leif Lindholm 写道: >>> On Tue, Jul 24, 2018 at 03:09:11PM +0800, Ming Huang wrote: This peim configuare SMMU,AP,MN. >>> >>> configuare -> configure >>> >>> I know SMMU and AP,

Re: [edk2] [PATCH edk2-platforms v1 12/38] Silicon/Hisilicon/D06: Stop watchdog

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 07:40:27PM +0800, Ming wrote: > > > 在 8/3/2018 6:31 PM, Ard Biesheuvel 写道: > > On 24 July 2018 at 09:08, Ming Huang wrote: > >> From: Sun Yuanchen > >> > >> according as watchdog design on D06, watchdog should be > >> stoped befor boot a option. > >> > > > > Why? The

Re: [edk2] [PATCH edk2-platforms v1 12/38] Silicon/Hisilicon/D06: Stop watchdog

2018-08-09 Thread Ming
在 8/3/2018 6:31 PM, Ard Biesheuvel 写道: > On 24 July 2018 at 09:08, Ming Huang wrote: >> From: Sun Yuanchen >> >> according as watchdog design on D06, watchdog should be >> stoped befor boot a option. >> > > Why? The DXE core already handles the watchdog, why do you need > something special

Re: [edk2] [Patch v2 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: Combine implementation.

2018-08-09 Thread Laszlo Ersek
On 08/09/18 05:18, Ni, Ruiyu wrote: > We've reviewed the whole producer/consumer code and came to the conclusion > that 4GB/NVS restriction is unnecessary. I'd like to comment on this from a workflow POV as well. If you perform a detailed review of the code, that's great. However, in that case,

Re: [edk2] [Patch v2 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: Combine implementation.

2018-08-09 Thread Laszlo Ersek
On 08/09/18 05:18, Ni, Ruiyu wrote: >> -Original Message- >> From: Laszlo Ersek >> Sent: Thursday, August 9, 2018 5:29 AM >> To: Dong, Eric ; edk2-devel@lists.01.org >> Cc: Ni, Ruiyu >> Subject: Re: [edk2] [Patch v2 1/2] UefiCpuPkg/RegisterCpuFeaturesLib: >> Combine implementation. >> >>

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

2018-08-09 Thread Sivaraman Nainar
Hello Jiaxin, There is no firewall blocking this. The gateway and Remote IP is accessible from shell. Thanks Siva -Original Message- From: Wu, Jiaxin [mailto:jiaxin...@intel.com] Sent: Monday, August 6, 2018 1:35 PM To: Sivaraman Nainar; Ye, Ting; Laszlo Ersek; edk2-devel@lists.01.org

Re: [edk2] [PATCH edk2-platforms v1 27/38] Platform/Hisilicon/D06: Add EarlyConfigPeim peim

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 03:07:07PM +0800, Ming wrote: > 在 8/4/2018 5:59 PM, Leif Lindholm 写道: > > On Tue, Jul 24, 2018 at 03:09:11PM +0800, Ming Huang wrote: > >> This peim configuare SMMU,AP,MN. > > > > configuare -> configure > > > > I know SMMU and AP, but I don't know MN. > > MN:

Re: [edk2] [PATCH 21/26] MdeModulePkg TerminalDxe: Remove a redundant function

2018-08-09 Thread Zeng, Star
There is a typo in commit log. 'calld' should be 'callled'. With the typo fixed, Reviewed-by: Star Zeng Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 21/26]

Re: [edk2] [PATCH 22/26] MdeModulePkg HiiDatabaseDxe: Remove a redundant function

2018-08-09 Thread Zeng, Star
There is a typo in commit log. 'calld' should be 'callled'. With the typo fixed, Reviewed-by: Star Zeng Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 22/26]

Re: [edk2] [PATCH 26/26] MdeModulePkg SetupBrowserDxe: Remove a redundant function

2018-08-09 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 26/26] MdeModulePkg SetupBrowserDxe: Remove a redundant function The function IsDevicePathExist that is never

Re: [edk2] [PATCH 25/26] MdeModulePkg Tcp4Dxe: Remove redundant functions

2018-08-09 Thread Zeng, Star
Cc Siyuan and Jiaxin. Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 25/26] MdeModulePkg Tcp4Dxe: Remove redundant functions The functions that are never called have

Re: [edk2] [PATCH 24/26] MdeModulePkg IScsiDxe: Remove a redundant function

2018-08-09 Thread Zeng, Star
Cc Siyuan and Jiaxin. Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 24/26] MdeModulePkg IScsiDxe: Remove a redundant function The function IScsiFindTcbByITT that is

Re: [edk2] [PATCH 23/26] MdeModulePkg Ip4Dxe: Remove a redundant function

2018-08-09 Thread Zeng, Star
Cc Siyuan and Jiaxin. Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 23/26] MdeModulePkg Ip4Dxe: Remove a redundant function The function Ip4Config2OnDhcp4Event that

Re: [edk2] [PATCH 05/26] MdeModulePkg NvmExpressDxe: Remove redundant functions

2018-08-09 Thread Zeng, Star
Reviewed-by: Star Zeng Cc Hao. Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 05/26] MdeModulePkg NvmExpressDxe: Remove redundant functions The functions that are

Re: [edk2] [PATCH edk2-platforms v1 22/38] Platform/Hisilicon/D06: Add OemNicLib

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 02:16:49PM +0800, Ming wrote: > >> +UINT16 crc_tab[256] = { > > > > CrcTable. > > Modify it in v2. > > > Hmm. > > This might be useful to add to a core library/driver/protocol. We > > don't appear to have it yet. This is another note to the universe. > > Do you suggest

Re: [edk2] [PATCH 04/26] MdeModulePkg EhciDxe: Remove redundant functions

2018-08-09 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 04/26] MdeModulePkg EhciDxe: Remove redundant functions The functions that are never called have been

Re: [edk2] [PATCH 03/26] MdeModulePkg AtaAtapiPassThru: Remove redundant functions

2018-08-09 Thread Zeng, Star
I agree with Laszlo. Reviewed-by: Star Zeng . The commit log only mentions the changes in AhciMode.c, but not IdeMode.c. Thanks, Star -Original Message- From: Laszlo Ersek [mailto:ler...@redhat.com] Sent: Thursday, August 9, 2018 2:12 AM To: Zhang, Shenglei ; edk2-devel@lists.01.org Cc:

Re: [edk2] [PATCH edk2-platforms 1/4] Platform/Solidrun: Add Hummingboard SmBios

2018-08-09 Thread Leif Lindholm
On Thu, Aug 09, 2018 at 05:42:02AM +, Chris Co wrote: > Hi Leif, > > > -Original Message- > > From: Leif Lindholm > > Sent: Tuesday, August 7, 2018 5:50 AM > > To: Chris Co > > Cc: edk2-devel@lists.01.org; Michael D Kinney > > ; Ard Biesheuvel > > Subject: Re: [PATCH edk2-platforms

Re: [edk2] [PATCH 01/26] MdeModulePkg CapsuleApp: Remove a redundant function

2018-08-09 Thread Zeng, Star
There is a typo in commit log. 'calld' should be 'callled'. With the typo fixed, Reviewed-by: Star Zeng Thanks, Star -Original Message- From: Zhang, Shenglei Sent: Wednesday, August 8, 2018 4:47 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Dong, Eric Subject: [PATCH 01/26]

[edk2] [PATCH] MdeModulePkg: Remove redundant things in inf and .h files

2018-08-09 Thread shenglei
A redundant GUID and some library classes are removed https://bugzilla.tianocore.org/show_bug.cgi?id=1062 Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei --- MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.h | 1 -

Re: [edk2] [PATCH edk2-platforms v1 29/38] Platform/Hisilicon/D06: Add PciHostBridgeLib

2018-08-09 Thread Ming
在 8/4/2018 9:41 PM, Leif Lindholm 写道: > Ard: could you give this one an additional sanity check? > > Some (mostly style) comments inline below. > > On Tue, Jul 24, 2018 at 03:09:13PM +0800, Ming Huang wrote: >> PciHostBridgeLib which is need by PciHostBridgeDxe,provide >> root bridges and deal

Re: [edk2] [PATCH edk2-platforms v1 28/38] Hisilicon/D0x: Unify FlashFvbDxe driver

2018-08-09 Thread Ming
在 8/4/2018 6:06 PM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:09:12PM +0800, Ming Huang wrote: >> From: shaochangliang >> >> Add PcdSFCMEM0BaseAddress to D06 and switch three 32-bit macro >> PcdFlashNvStorage to 64-bit for D05/D03. >> >> Contributed-under: TianoCore Contribution Agreement

  1   2   >