[edk2] [PATCH v2] MdeModulePkg: Remove redundant library classes, protocols and GUIDs

2018-08-01 Thread shenglei
v2: 1.Correct some typos. 2.Remove two library classse and a protocal in .c and .h files Some redundant library classes, protocols and GUIDs have been removed in inf, .c and .h files. https://bugzilla.tianocore.org/show_bug.cgi?id=1017 https://bugzilla.tianocore.org/show_bug.cgi?id=1035

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

2018-08-01 Thread Gao, Liming
Laszlo: I have no other comments. IntelFrameworkPkg has another UefiLib library instance FrameworkUefiLib. Could you help update it also? For MdePkg, you can add Reviewed-by: Liming Gao Thanks Liming >-Original Message- >From: Laszlo Ersek [mailto:ler...@redhat.com] >Sent: Monday,

[edk2] 答复: [PATCH edk2-platforms v1 00/38] Upload for D06 platform

2018-08-01 Thread Guoheyi
Yes, it seems to us that different IORT versions require different acpica versions; acpica does not keep backward compatibility for IORT, i.e. newer acpica is not able to compile older IORT. That's really awkward :( Heyi -邮件原件- 发件人: Ming [mailto:ming.hu...@linaro.org] 发送时间:

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

2018-08-01 Thread Zhang, Chao B
Hi Laszlo & Ricardo The patch was intended to reduce the time to read TPM interface ID register. The interface type should not change within boot cycle according to PTP spec. I agree to add some ASSERT after PCDSetxxsS. But It is a core solution without platform change as PCD has been configured

Re: [edk2] [PATCH edk2-platforms v1 00/38] Upload for D06 platform

2018-08-01 Thread Ming
在 8/2/2018 5:56 AM, Leif Lindholm 写道: > On Tue, Jul 24, 2018 at 03:08:44PM +0800, Ming Huang wrote: >> The major features of this patchset include: >> 1 D06 source code; >> 2 Unify some D0x modules; >> >> This patch set is base on pcihostbridage-v2. >> For compiling D06, add below hunk to

Re: [edk2] [PATCH edk2-platforms 3/3] Platform/Microsoft: Add Lauterbach debug library

2018-08-01 Thread Chris Co
> -Original Message- > From: Leif Lindholm > Sent: Wednesday, August 1, 2018 2:39 AM > To: Ard Biesheuvel > Cc: Chris Co ; edk2-devel@lists.01.org; > Michael D Kinney > Subject: Re: [PATCH edk2-platforms 3/3] Platform/Microsoft: Add > Lauterbach debug library > > On Tue, Jul 31,

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

2018-08-01 Thread Wu, Jiaxin
Thanks Laszlo, I have refined the patch to v2 with your "Reviewed-by" tag. > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, August 1, 2018 5:49 PM > To: Wu, Jiaxin ; edk2-devel@lists.01.org > Cc: Ye, Ting ; Fu, Siyuan > Subject: Re: [Patch]

Re: [edk2] [PATCH] MdeModulePkg DxeCapsuleLibFmp: Add NULL check to the return buffers

2018-08-01 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Thursday, August 02, 2018 9:16 AM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Yao, Jiewen; Wu, Hao A > Subject: [PATCH] MdeModulePkg DxeCapsuleLibFmp: Add NULL check to the > return buffers >

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

2018-08-01 Thread Jiaxin Wu
*v2: Optimize the patch by calculating AsciiStrSize() only once. In URI, the colon (:) is used to terminate the HostName path before a port number. However, if HostName is expressed as IPv6 format, colon characters in IPv6 addresses will conflict with the colon before port number. To alleviate

[edk2] [PATCH] MdeModulePkg DxeCapsuleLibFmp: Add NULL check to the return buffers

2018-08-01 Thread Star Zeng
Add NULL check to the return buffers from GetFmpHandleBufferByType(). Cc: Jiewen Yao Cc: Hao A Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng --- MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [edk2] [PATCH edk2-platforms 1/3] Platform/Microsoft: Add SdMmc Dxe Driver

2018-08-01 Thread Chris Co
Hi Leif, > -Original Message- > From: Leif Lindholm > Sent: Tuesday, July 31, 2018 1:33 PM > To: Chris Co > Cc: edk2-devel@lists.01.org; Ard Biesheuvel ; > Michael D Kinney > Subject: Re: [PATCH edk2-platforms 1/3] Platform/Microsoft: Add SdMmc > Dxe Driver > > Hi Chris, > > On Tue,

Re: [edk2] [PATCH edk2-platforms 1/7] Silicon/NXP: Add support for iMX SDHC

2018-08-01 Thread Chris Co
Hi Leif, Thank you for the initial feedback. I will address the items on all the patches and resubmit as one set. Chris > -Original Message- > From: Leif Lindholm > Sent: Wednesday, August 1, 2018 9:15 AM > To: Chris Co > Cc: edk2-devel@lists.01.org; Ard Biesheuvel ; > Michael D

Re: [edk2] Undefined types referenced in MdePkg

2018-08-01 Thread edk2-lists
Laszlo, Thank you for the pointers to the dependent header files. I agree that main API header files should include any headers that they depend upon and not require the developer to search out the dependencies. Most modern pre-processors and compilers have optimizations to mitigate reading

[edk2] [Patch v6 21/23] FmpDevicePkg/FmpDxe: Fix XCODE build failure

2018-08-01 Thread Kinney, Michael D
From: "Zeng, Star" FmpDxe.c:517:18: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] NOTE: This patch is based on thread https://lists.01.org/pipermail/edk2-devel/2018-July/027810.html. Cc: Michael D Kinney Contributed-under: TianoCore Contribution

[edk2] [Patch v6 17/23] FmpDevicePkg FmpDxe: Return UNSUPPORTED if device has been locked

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Instead of EFI_ACCESS_DENIED which is not defined in retval by UEFI spec, return UNSUPPORTED if device has been locked in SetTheImage(). Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v6 23/23] MdeModulePkg/BdsDxe: Move display of test key usage into BDS module

2018-08-01 Thread Kinney, Michael D
Cc: Ruiyu Ni Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Star Zeng --- MdeModulePkg/Universal/BdsDxe/BdsDxe.inf | 1 + MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 12 2 files changed, 13

[edk2] [Patch v6 22/23] FmpDevicePkg: Remove useless lib mapping in dsc

2018-08-01 Thread Kinney, Michael D
From: "Zeng, Star" NOTE: This patch is based on thread https://lists.01.org/pipermail/edk2-devel/2018-July/027810.html. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDevicePkg.dsc | 19

[edk2] [Patch v6 12/23] FmpDevicePkg: Remove DisplayUpdateProgressLib mapping for FmpDxe

2018-08-01 Thread Kinney, Michael D
From: Star Zeng FmpDxe does not consume DisplayUpdateProgressLib, so remove the mapping in FmpDevicePkg.dsc. Also rename the ESRT GUIDs. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v6 20/23] FmpDevicePkg FmpDxe: Use local variable to store test key digest size

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Some static tool reports "the condition in 'if' statement is constant". This patch updates the code to use local variable to store test key digest size. It can pass the static tool's check. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [Patch v6 18/23] FmpDevicePkg FmpDxe: Initialize DeviceLibLowestSupportedVersion

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Some static tool reports "DeviceLibLowestSupportedVersion" is used, but is uninitialized. It is false positive reporting based because DeviceLibLowestSupportedVersion will have assigned value after FmpDeviceGetLowestSupportedVersion() returns SUCCESS. This patch updates the code

[edk2] [Patch v6 10/23] FmpDevicePkg FmpDxe: Add EFI_ABORTED in retval of CheckTheImage()

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c

[edk2] [Patch v6 19/23] FmpDevicePkg: Fix code style issue

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDevicePkg.uni | 22 ++-- FmpDevicePkg/FmpDxe/DetectTestKey.c| 2 +-

[edk2] [Patch v6 16/23] FmpDevicePkg FmpDxe: Add comment in mFmpDeviceLocked's declaration

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Add comment in mFmpDeviceLocked's declaration to make it more clear. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 7 +++ 1 file changed, 7

[edk2] [Patch v6 15/23] FmpDevicePkg FmpDxe: Use Attributes to know whether reset is required

2018-08-01 Thread Kinney, Michael D
From: Star Zeng REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1040 Use Attributes to know whether reset is required and remove PcdFmpDeviceSystemResetRequired. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D

[edk2] [Patch v6 13/23] FmpDevicePkg FmpDxe: Add NULL check to return Value from GetVariable2

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/VariableSupport.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[edk2] [Patch v6 14/23] FmpDevicePkg FmpDxe: Check ImageIndex first before Image/ImageSize

2018-08-01 Thread Kinney, Michael D
From: Star Zeng It does not make sense to check the Image/ImageSize if ImageIndex has been invalid. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 19 +--

[edk2] [Patch v6 11/23] FmpDevicePkg FmpDxe: Fix typo "EFI_SECURITY_VIOLATIO"

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Fix typo "EFI_SECURITY_VIOLATIO" to "EFI_SECURITY_VIOLATION". Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 8 1 file changed, 4 insertions(+), 4

[edk2] [Patch v6 09/23] FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c

[edk2] [Patch v6 08/23] FmpDevicePkg: Add DISABLE_NEW_DEPRECATED_INTERFACES build options

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Add DISABLE_NEW_DEPRECATED_INTERFACES build options to make sure no deprecated interface used in this package. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v6 07/23] FmpDevicePkg: Remove IPF

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDevicePkg.dsc | 2 +- FmpDevicePkg/FmpDxe/FmpDxe.inf

[edk2] [Patch v6 05/23] FmpDevicePkg FmpDxe: Update function comment for FmpDxeEntryPoint

2018-08-01 Thread Kinney, Michael D
From: Star Zeng FmpDxeEntryPoint is used by both FmpDxe and FmpDxeLib. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[edk2] [Patch v6 06/23] FmpDevicePkg FmpDxe: Return 0 when LSV check is not required

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Current code return 1 when LSV check is not required, but 1 LSV will make 0 Version capsule image update failed. 0 LSV is valid, this patch updates the code to return 0 when LSV check is not required We can see even the DEFAULT_LOWESTSUPPORTEDVERSION is 0. Cc: Michael D Kinney

[edk2] [Patch v6 04/23] FmpDevicePkg: Add DSC file to build all package components

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Adds a DSC file that is used to verify that all of the FmpDevicePkg libraries and modules build without error. Cc:

[edk2] [Patch v6 02/23] FmpDevicePkg: Add library instances

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Add library instances for FmpDeviceLib, CapsuleUpdatePolicyLib, and FmpPayloadHeaderLib. Library Classes

[edk2] [Patch v6 00/23] Add FmpDevicePkg

2018-08-01 Thread Kinney, Michael D
Changes in V6 = * Remove Bool PCD comparison against TRUE in BDS * Remove useless lib mapping in FmpDevicePkg DSC file * Fix XCODE build failure due to extra parenthesis Changes in V4/V5 = * Return 0 when LSV check is not required * Remove IPF * Add

[edk2] [Patch v6 03/23] FmpDevicePkg: Add FmpDxe module

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg The FmpDxe directory contains 2 INF files. FmpDxe.inf is a DXE driver that is used in a platform to add a Firmware

[edk2] [Patch v6 01/23] FmpDevicePkg: Add package, library classes, and PCDs

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Create FmpDevicePkg with library classes and PCDs used to customize the behavior of a Firmware Management Protocol

Re: [edk2] [PATCH] FmpDevicePkg: Remove useless lib mapping in dsc

2018-08-01 Thread Kinney, Michael D
Star, I have verified that removing the rest of the lib mappings still builds, so those changes look good. I have integrated these changes except the ARM/AARCH64 changes into a V6 version of the patch series. Thanks, Mike > -Original Message- > From: Kinney, Michael D > Sent:

Re: [edk2] [PATCH] FmpDevicePkg FmpDxe: Fix XCODE build failure

2018-08-01 Thread Kinney, Michael D
Star, Reviewed-by: Michael D Kinney I have integrated this patch into a V6 patch series. Mike > -Original Message- > From: Zeng, Star > Sent: Wednesday, August 1, 2018 3:31 AM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Kinney, Michael D > > Subject: [PATCH] FmpDevicePkg FmpDxe:

Re: [edk2] [Patch v5 21/21] MdeModulePkg/BdsDxe: Move display of test key usage into BDS module

2018-08-01 Thread Kinney, Michael D
Star, I agree. I will integrate into a V6 patch series. Thanks, Mike > -Original Message- > From: Zeng, Star > Sent: Wednesday, August 1, 2018 12:53 AM > To: Kinney, Michael D ; > edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Dong, Eric > ; Zeng, Star > Subject: RE: [Patch v5 21/21]

Re: [edk2] [PATCH edk2-platforms v1 00/38] Upload for D06 platform

2018-08-01 Thread Leif Lindholm
On Tue, Jul 24, 2018 at 03:08:44PM +0800, Ming Huang wrote: > The major features of this patchset include: > 1 D06 source code; > 2 Unify some D0x modules; > > This patch set is base on pcihostbridage-v2. > For compiling D06, add below hunk to edk2-platforms.config > [d06] > LONGNAME=HiSilicon

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] Missing boot related measurements at TPM 2.0 PCRs 0-7 with OVMF

2018-08-01 Thread Ricardo Araújo
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: edk2-devel@lists.01.org Enviadas: Quarta-feira, 1 de agosto de

[edk2] Undefined types referenced in MdePkg

2018-08-01 Thread edk2-lists
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 similar thing is happening with

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

2018-08-01 Thread Ricardo Araújo
Hi everyone, I'm using OVMF with a simulated TPM 2.0 (from https://github.com/stefanberger/swtpm) and I noticed lately that PCRs 0-7 are zeroed after booting the vm (ubuntu 18.04) and the only message related to this in dmesg is: [ 2.286690] tpm_tis 00:06: 2.0 TPM (device-id 0x1, rev-id 1)

Re: [edk2] [PATCH edk2-platforms 1/7] Silicon/NXP: Add support for iMX SDHC

2018-08-01 Thread Leif Lindholm
On Thu, Jul 19, 2018 at 04:11:18AM +, Chris Co wrote: > This adds support for using the SD host controller on > NXP i.MX platforms. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Christopher Co > Cc: Ard Biesheuvel > Cc: Leif Lindholm > Cc: Michael D Kinney

Re: [edk2] [PATCH] FmpDevicePkg: Remove useless lib mapping in dsc

2018-08-01 Thread Kinney, Michael D
Star, The ARM and AARCH64 specific lib mappings should not be removed. That will break the FmpDevicePkg build for ARM and AARCH64. Mike > -Original Message- > From: Zeng, Star > Sent: Wednesday, August 1, 2018 3:30 AM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Kinney, Michael D >

[edk2] [PATCH] FmpDevicePkg FmpDxe: Fix XCODE build failure

2018-08-01 Thread Star Zeng
FmpDxe.c:517:18: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng NOTE: This patch is based on thread

[edk2] [PATCH] FmpDevicePkg: Remove useless lib mapping in dsc

2018-08-01 Thread Star Zeng
Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng NOTE: This patch is based on thread https://lists.01.org/pipermail/edk2-devel/2018-July/027810.html. --- FmpDevicePkg/FmpDevicePkg.dsc | 34 -- 1 file changed,

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

2018-08-01 Thread Laszlo Ersek
On 08/01/18 03:54, Jiaxin Wu wrote: > In URI, the colon (:) is used to terminate the HostName path before > a port number. However, if HostName is expressed as IPv6 format, colon > characters in IPv6 addresses will conflict with the colon before port > number. To alleviate this conflict in URI,

Re: [edk2] [PATCH edk2-platforms 3/3] Platform/Microsoft: Add Lauterbach debug library

2018-08-01 Thread Leif Lindholm
On Tue, Jul 31, 2018 at 10:59:22PM +0200, Ard Biesheuvel wrote: > On 31 July 2018 at 22:56, Leif Lindholm wrote: > > On Tue, Jul 17, 2018 at 02:05:45AM +, Chris Co wrote: > >> This debug library provides support for importing symbols to > >> debug using Lauterbach. > >> > >> Derived from:

Re: [edk2] [Patch v5 21/21] MdeModulePkg/BdsDxe: Move display of test key usage into BDS module

2018-08-01 Thread Zeng, Star
A very minor comment. if (PcdGetBool (PcdTestKeyUsed)) can be used directly instead of if (PcdGetBool (PcdTestKeyUsed) == TRUE) With update, Reviewed-by: Star Zeng . Thanks, Star -Original Message- From: Kinney, Michael D Sent: Wednesday, August 1, 2018 2:55 PM To:

Re: [edk2] [Patch v5 04/21] FmpDevicePkg: Add DSC file to build all package components

2018-08-01 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Kinney, Michael D Sent: Wednesday, August 1, 2018 2:55 PM To: edk2-devel@lists.01.org Cc: Kinney, Michael D ; Yao, Jiewen Subject: [edk2] [Patch v5 04/21] FmpDevicePkg: Add

Re: [edk2] [Patch v5 02/21] FmpDevicePkg: Add library instances

2018-08-01 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Kinney, Michael D Sent: Wednesday, August 1, 2018 2:55 PM To: edk2-devel@lists.01.org Cc: Kinney, Michael D ; Yao, Jiewen Subject: [edk2] [Patch v5 02/21] FmpDevicePkg: Add

Re: [edk2] [Patch v5 01/21] FmpDevicePkg: Add package, library classes, and PCDs

2018-08-01 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Kinney, Michael D Sent: Wednesday, August 1, 2018 2:55 PM To: edk2-devel@lists.01.org Cc: Kinney, Michael D ; Yao, Jiewen Subject: [edk2] [Patch v5 01/21] FmpDevicePkg: Add

Re: [edk2] [Patch v5 03/21] FmpDevicePkg: Add FmpDxe module

2018-08-01 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Kinney, Michael D Sent: Wednesday, August 1, 2018 2:55 PM To: edk2-devel@lists.01.org Cc: Kinney, Michael D ; Yao, Jiewen Subject: [edk2] [Patch v5 03/21] FmpDevicePkg: Add

Re: [edk2] [Patch] BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue

2018-08-01 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: Kinney, Michael D Sent: Wednesday, August 01, 2018 12:29 AM To: edk2-devel@lists.01.org Cc: Sun, Yanyan ; Zhu, Yonghong ; Gao, Liming ; Kinney, Michael D Subject: [Patch] BaseTools/BinToPcd: Fix Python

[edk2] [Patch v5 21/21] MdeModulePkg/BdsDxe: Move display of test key usage into BDS module

2018-08-01 Thread Kinney, Michael D
Cc: Ruiyu Ni Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney --- MdeModulePkg/Universal/BdsDxe/BdsDxe.inf | 1 + MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 12 2 files changed, 13 insertions(+) diff --git

[edk2] [Patch v5 13/21] FmpDevicePkg FmpDxe: Add NULL check to return Value from GetVariable2

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/VariableSupport.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[edk2] [Patch v5 16/21] FmpDevicePkg FmpDxe: Add comment in mFmpDeviceLocked's declaration

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Add comment in mFmpDeviceLocked's declaration to make it more clear. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 7 +++ 1 file changed, 7

[edk2] [Patch v5 18/21] FmpDevicePkg FmpDxe: Initialize DeviceLibLowestSupportedVersion

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Some static tool reports "DeviceLibLowestSupportedVersion" is used, but is uninitialized. It is false positive reporting based because DeviceLibLowestSupportedVersion will have assigned value after FmpDeviceGetLowestSupportedVersion() returns SUCCESS. This patch updates the code

[edk2] [Patch v5 19/21] FmpDevicePkg: Fix code style issue

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDevicePkg.uni | 22 ++-- FmpDevicePkg/FmpDxe/DetectTestKey.c| 2 +-

[edk2] [Patch v5 04/21] FmpDevicePkg: Add DSC file to build all package components

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Adds a DSC file that is used to verify that all of the FmpDevicePkg libraries and modules build without error. Cc:

[edk2] [Patch v5 14/21] FmpDevicePkg FmpDxe: Check ImageIndex first before Image/ImageSize

2018-08-01 Thread Kinney, Michael D
From: Star Zeng It does not make sense to check the Image/ImageSize if ImageIndex has been invalid. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 19 +--

[edk2] [Patch v5 00/21] Add FmpDevicePkg

2018-08-01 Thread Kinney, Michael D
Changes in V4/V5 = * Return 0 when LSV check is not required * Remove IPF * Add DISABLE_NEW_DEPRECATED_INTERFACES build options * Check Progress!= NULL before calling Progress(100) * Add EFI_ABORTED in retval of CheckTheImage() * Fix typo "EFI_SECURITY_VIOLATIO" * Add NULL check to

[edk2] [Patch v5 10/21] FmpDevicePkg FmpDxe: Add EFI_ABORTED in retval of CheckTheImage()

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c b/FmpDevicePkg/FmpDxe/FmpDxe.c

[edk2] [Patch v5 11/21] FmpDevicePkg FmpDxe: Fix typo "EFI_SECURITY_VIOLATIO"

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Fix typo "EFI_SECURITY_VIOLATIO" to "EFI_SECURITY_VIOLATION". Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 8 1 file changed, 4 insertions(+), 4

[edk2] [Patch v5 07/21] FmpDevicePkg: Remove IPF

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDevicePkg.dsc | 2 +- FmpDevicePkg/FmpDxe/FmpDxe.inf

[edk2] [Patch v5 05/21] FmpDevicePkg FmpDxe: Update function comment for FmpDxeEntryPoint

2018-08-01 Thread Kinney, Michael D
From: Star Zeng FmpDxeEntryPoint is used by both FmpDxe and FmpDxeLib. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[edk2] [Patch v5 06/21] FmpDevicePkg FmpDxe: Return 0 when LSV check is not required

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Current code return 1 when LSV check is not required, but 1 LSV will make 0 Version capsule image update failed. 0 LSV is valid, this patch updates the code to return 0 when LSV check is not required We can see even the DEFAULT_LOWESTSUPPORTEDVERSION is 0. Cc: Michael D Kinney

[edk2] [Patch v5 17/21] FmpDevicePkg FmpDxe: Return UNSUPPORTED if device has been locked

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Instead of EFI_ACCESS_DENIED which is not defined in retval by UEFI spec, return UNSUPPORTED if device has been locked in SetTheImage(). Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v5 09/21] FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- FmpDevicePkg/FmpDxe/FmpDxe.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.c

[edk2] [Patch v5 08/21] FmpDevicePkg: Add DISABLE_NEW_DEPRECATED_INTERFACES build options

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Add DISABLE_NEW_DEPRECATED_INTERFACES build options to make sure no deprecated interface used in this package. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v5 20/21] FmpDevicePkg FmpDxe: Use local variable to store test key digest size

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Some static tool reports "the condition in 'if' statement is constant". This patch updates the code to use local variable to store test key digest size. It can pass the static tool's check. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [Patch v5 12/21] FmpDevicePkg: Remove DisplayUpdateProgressLib mapping for FmpDxe

2018-08-01 Thread Kinney, Michael D
From: Star Zeng FmpDxe does not consume DisplayUpdateProgressLib, so remove the mapping in FmpDevicePkg.dsc. Also rename the ESRT GUIDs. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney ---

[edk2] [Patch v5 03/21] FmpDevicePkg: Add FmpDxe module

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg The FmpDxe directory contains 2 INF files. FmpDxe.inf is a DXE driver that is used in a platform to add a Firmware

[edk2] [Patch v5 15/21] FmpDevicePkg FmpDxe: Use Attributes to know whether reset is required

2018-08-01 Thread Kinney, Michael D
From: Star Zeng REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1040 Use Attributes to know whether reset is required and remove PcdFmpDeviceSystemResetRequired. Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D

[edk2] [Patch v5 01/21] FmpDevicePkg: Add package, library classes, and PCDs

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Create FmpDevicePkg with library classes and PCDs used to customize the behavior of a Firmware Management Protocol

[edk2] [Patch v5 02/21] FmpDevicePkg: Add library instances

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=922 Based on content from the following branch: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport/MsCapsuleUpdatePkg Add library instances for FmpDeviceLib, CapsuleUpdatePolicyLib, and FmpPayloadHeaderLib. Library Classes

[edk2] [Patch v3 08/10] BaseTools/Capsule: Update file header with tool limitations

2018-08-01 Thread Kinney, Michael D
Update file header to state that the tool does not support: * Multiple payloads * Drivers * Vendor code bytes https://bugzilla.tianocore.org/show_bug.cgi?id=1031 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1

[edk2] [Patch v3 04/10] BaseTools/Capsule: Remove support for PopulateSystemTable

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1030 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Capsule/GenerateCapsule.py | 8

[edk2] [Patch v3 01/10] BaseTools/Capsule: Add Capsule Generation Tools

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=945 Based on content from the following branch https://github.com/Microsoft/MS_UEFI/tree/share/beta/CapsuleTools * Convert C tools to Python * Add common python modules to: BaseTools/Source/Python/Common/Uefi/Capsule

[edk2] [Patch v3 06/10] BaseTools/Capsule: Do not support -o with --dump-info

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1025 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/Capsule/GenerateCapsule.py | 4

[edk2] [Patch v3 09/10] BaseTools/Capsule: Prevent traceback during signing operations

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1046 https://bugzilla.tianocore.org/show_bug.cgi?id=1048 https://bugzilla.tianocore.org/show_bug.cgi?id=1050 Remove raise statements that generate Tracebacks that were only intended for development/debug. With the raise statements removed proper

[edk2] [Patch v3 02/10] BaseTools GenerateCapsule: Change property to executable for Linux

2018-08-01 Thread Kinney, Michael D
From: Star Zeng Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Michael D Kinney --- BaseTools/BinWrappers/PosixLike/GenerateCapsule | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755

[edk2] [Patch v3 00/10] Add Capsule Generation Tools

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=945 Based on content from the following branch https://github.com/Microsoft/MS_UEFI/tree/share/beta/CapsuleTools Command line unit tests for python modules available from following branch:

[edk2] [Patch v3 07/10] BaseTools/Capsule: Update help for --fw-version and --lsv

2018-08-01 Thread Kinney, Michael D
Update help to state that --fw-version and -=-lsv are required for encode operations that sign a payload. https://bugzilla.tianocore.org/show_bug.cgi?id=1029 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

[edk2] [Patch v3 05/10] BaseTools/Capsule: Fix CertType GUID byte order

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1024 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney Reviewed-by: Yonghong Zhu ---

[edk2] [Patch v3 03/10] BaseTools/Capsule: Add max value checks to Capsule Generation tools

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1021 https://bugzilla.tianocore.org/show_bug.cgi?id=1022 https://bugzilla.tianocore.org/show_bug.cgi?id=1026 Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

[edk2] [Patch v3 10/10] BaseTools/Capsule: Support capsules without a payload header

2018-08-01 Thread Kinney, Michael D
https://bugzilla.tianocore.org/show_bug.cgi?id=1028 Update --dump-info and --decode to show auth header information even if a payload header is not present. The --decode operation still fails if a payload header is not present. Cc: Sean Brogan Cc: Jiewen Yao Cc: Yonghong Zhu Cc: Liming Gao