Re: [edk2] [PATCH 0/5] Remove EdkShellBinPkg in FDF, DSC and DEC

2018-10-31 Thread Zhang, Shenglei
Thanks for your comments about 'USE_OLD_SHELL'. I'll improve the patches in next version. Shenglei > -Original Message- > From: Justen, Jordan L > Sent: Wednesday, October 31, 2018 2:48 PM > To: edk2-devel@lists.01.org; Zhang, Shenglei > Subject: Re: [edk2] [PATCH 0/5] Remove

[edk2] [edk2-test][Patch v2] uefi-sct/SctPkg:Assign 0 to the tail of HwErrRecVariableName.

2018-10-31 Thread Eric Jin
Add definition of HwErrRecVariableNamePrefixLength, HwErrRecVariableNameIndexLength and HwErrRecVariableNameLength Make the HwErrRecVariableName as the valid string. Ensure the HwErrRecVariable could be deleted before the test exit. Cc: Supreeth Venkatesh Contributed-under: TianoCore

Re: [edk2] [edk2-test][Patch] uefi-sct/SctPkg:Assign 0 to the tail of the HwErrRecVariableName

2018-10-31 Thread Jin, Eric
Hi Supreeth, Got your worry. It is difficult to define the clear/meaningful macro to express the implication and avoid the ambiguity in my eye. How about to document the clear comments in the key process? It is more help for reading by someone new and sustaining. Best Regards Eric

Re: [edk2] [PATCH v3] MdeModulePkg/PiSmmIpl: Do not reset SMRAM to UC when CPU driver runs

2018-10-31 Thread Yao, Jiewen
Thanks. SMRR is used to prevent cache poisoning attack. IMHO, the assumption is valid. Reviewed-by: jiewen@intel.com > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ni, > Ruiyu > Sent: Tuesday, October 30, 2018 10:51 AM > To:

Re: [edk2] [Patch v1 1/1] MdeModulePkg: fix comments in BaseSortLib

2018-10-31 Thread Zeng, Star
Reviewed-by: Star Zeng -Original Message- From: Carsey, Jaben Sent: Thursday, November 1, 2018 3:21 AM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Wang, Jian J Subject: [Patch v1 1/1] MdeModulePkg: fix comments in BaseSortLib The comments are incorrect for the base version of this

Re: [edk2] [PATCH v1] NetworkPkg/Mtftp6Dxe: Remove the trailing white spaces.

2018-10-31 Thread Fu, Siyuan
Reviewed-by: Fu Siyuan > -Original Message- > From: Wu, Jiaxin > Sent: Wednesday, October 31, 2018 4:46 PM > To: edk2-devel@lists.01.org > Cc: Fu, Siyuan ; Wu, Jiaxin > Subject: [PATCH v1] NetworkPkg/Mtftp6Dxe: Remove the trailing white spaces. > > Cc: Fu Siyuan >

Re: [edk2] [PATCH V3 4/4] MdeModulePkg EhciDxe: Use common buffer for AsyncInterruptTransfer

2018-10-31 Thread Zeng, Star
On 2018/10/31 20:08, Leif Lindholm wrote: On Wed, Oct 31, 2018 at 12:38:43PM +0800, Zeng, Star wrote: Good feedback. On 2018/10/30 20:50, Leif Lindholm wrote: On Tue, Oct 30, 2018 at 09:39:24AM -0300, Ard Biesheuvel wrote: (add back the list) Oi! Go back on holiday! On 30 October 2018 at

Re: [edk2] [PATCH v1] Edk2Platforms: Replace MdeModulePkg PXE/iSCSI/TCP with NetworkPkg drivers.

2018-10-31 Thread Fu, Siyuan
Hi, Leif So you have tested all the platform build? That's great, thanks a lot. Do you want me to merge these 3 patches to a combo v2 patch, or can you help to commit the patch set to edk2-platform repo? BestRegards Fu Siyuan > -Original Message- > From: Leif Lindholm

Re: [edk2] [PATCH edk2-platforms 03/27] Platform/Microsoft: Add MsPkg

2018-10-31 Thread Leif Lindholm
(You'll note I'm skipping over the SdMmc bits for now.) On Fri, Sep 21, 2018 at 08:25:55AM +, Chris Co wrote: > MsPkg is a collection of libraries and drivers that are specific > to supporting Windows IoT Core but are not Platform/Silicon specific. > > Contributed-under: TianoCore

Re: [edk2] [PATCH edk2-platforms 01/27] Platform/Microsoft: Add OpteeClientPkg dec

2018-10-31 Thread Leif Lindholm
+Sumit (just to loop you two together). Is there anything Microsoft platform specific about what will go in here? / Leif On Fri, Sep 21, 2018 at 08:25:53AM +, Chris Co wrote: > On Windows IoT Core devices with ARM TrustZone capabilities, > EDK2 runs in normal world and we use OP-TEE to

[edk2] [PATCH 1/1] MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF().

2018-10-31 Thread Marvin Häuser
Replace the current NULL pointer dereference to retrieve Field's offset with a call to OFFSET_OF(). This is implemented via __builtin_offsetof for GCC and Clang, which eliminates UB caught by Clang UndefinedBehaviorSanitizer. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:

Re: [edk2] [PATCH 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Fix ASSERT for success.

2018-10-31 Thread Marvin Häuser
Hey Eric, I discovered it by accident, no tool was involved. Regards, Marvin > -Original Message- > From: Dong, Eric > Sent: Tuesday, October 30, 2018 3:30 AM > To: Marvin Häuser ; edk2- > de...@lists.01.org > Cc: ler...@redhat.com > Subject: RE: [PATCH 2/2] UefiCpuPkg/PiSmmCpuDxeSmm:

[edk2] [Patch v1 1/1] MdeModulePkg: fix comments in BaseSortLib

2018-10-31 Thread Jaben Carsey
The comments are incorrect for the base version of this lib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Cc: Star Zeng Cc: Jian J Wang --- MdeModulePkg/Library/BaseSortLib/BaseSortLib.c | 22 1 file changed, 9 insertions(+), 13

Re: [edk2] [PATCH v2 edk-platforms 3/3] Platform/HiKey: enable SD/MMC controller on HiKey

2018-10-31 Thread Leif Lindholm
On Thu, Aug 16, 2018 at 09:49:26AM +0800, Haojian Zhuang wrote: > Replace DwEmmcDxe driver by DwMmcHcDxe driver on HiKey platform. Since > the new driver could work on both eMMC and SD controller. > > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Contributed-under: TianoCore Contribution Agreement

Re: [edk2] [PATCH v2 edk-platforms 2/3] Platform/HiKey960: enable SD controller

2018-10-31 Thread Leif Lindholm
Apologies for ridiculously slow response, On Thu, Aug 16, 2018 at 09:49:25AM +0800, Haojian Zhuang wrote: > Enable DwMmcHcDxe driver on HiKey960 platform. > > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Haojian Zhuang > ---

Re: [edk2] [PATCH v1] Edk2Platforms: Replace MdeModulePkg PXE/iSCSI/TCP with NetworkPkg drivers.

2018-10-31 Thread Leif Lindholm
On Wed, Oct 31, 2018 at 11:38:51AM +0800, Fu Siyuan wrote: > The PXE/iSCSI/TCP drivers in MdeModulePkg are going to be deprecated. All > platform DSC/FDF files should be updated to use the dual-stack drivers in > NetworkPkg. > > The NetworkPkg driver have all the functionality compared with

Re: [edk2] [edk2-test][Patch] uefi-sct/SctPkg:Assign 0 to the tail of the HwErrRecVariableName

2018-10-31 Thread Supreeth Venkatesh
On Wed, 2018-10-31 at 02:29 +, Jin, Eric wrote: > Hi Supreeth, Hi Eric, > > Thank for the comments. > I will re-create the patch to add the definition of the > HwErrRecVariableNamePrefixLength(8) and > HwErrRecVariableNameIndexLength(4). Thank you. > > There are two meanings to 2. To

Re: [edk2] [PATCH v1 0/7] Delete TCP, PXE, iSCSI driver in MdeModulePkg.

2018-10-31 Thread Kinney, Michael D
Fu Siyuan, Just edk2-platforms/master. Maintainers for devel and stable branches need to device when to move to a new version of edk2 repo and perform integration tasks. The patch for edk2-platforms/master should include this notification so maintainer of devel and stable branches will know

Re: [edk2] [PATCH] BaseTools: Check the max size for string PCD.

2018-10-31 Thread Carsey, Jaben
Reviewed-by: Jaben Carsey > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Zhaozh1x > Sent: Wednesday, October 31, 2018 3:36 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [edk2] [PATCH] BaseTools: Check the max size for

Re: [edk2] [Patch V2] BaseTools: Add special handle for '\' use in Pcd Value

2018-10-31 Thread Carsey, Jaben
Reviewed-by: Jaben Carsey > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Yonghong Zhu > Sent: Tuesday, October 30, 2018 8:50 PM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [edk2] [Patch V2] BaseTools: Add special handle

Re: [edk2] D06 ACPI

2018-10-31 Thread Ming Huang
Hi Leif, I will try to modify D03/D05 IORT and test also and will incorporate these fixes for v2. Thanks you and Al Stone for finding and fix IORT bug. On 10/31/2018 7:06 PM, Leif Lindholm wrote: > (On further thinking, and testing ...) > > Could you also make sure D03/D05 ACPI is up to date

[edk2] Linux kernel fails to boot after "Set boot script outside SMM after SmmReadyToLock"

2018-10-31 Thread Hristo Mihaylov
Hello, I'm building a custom x86_64 platform. It gets to BDS, where I select an USB with Debian as a boot device. ``` [Bds]Booting UEFI USB Flash Memory C412F52D6C89C0210002C15B error: no suitable video mode found. error: no video mode activated. GNU GRUB version

Re: [edk2] RuntimeDXE unable to save variables to flash

2018-10-31 Thread Hristo Mihaylov
I wanted to close this off, The value was checked. The problem was that I had previously changed the offsets/sizes of some FD/FVs. Removing those changes fixed the issue. --- Hristo -Original Message- From: Laszlo Ersek [mailto:ler...@redhat.com] Sent: 09 October 2018 12:49 To: Hristo

[edk2] [RFC PATCH 9/9] CryptoPkg/BaseCryptLib: allow MM_STANDALONE drivers to use this library

2018-10-31 Thread Jagadeesh Ujja
“BaseCryptLib” library can be used by MM_STANDALONE drivers as well. So add MM_STANDALONE as the module type this library supports A new inf file is added for this because the UefiRuntimeServicesTableLib library class cannot be used along with MM_STANDALONE modules. Change-Id:

Re: [edk2] [PATCH V3 4/4] MdeModulePkg EhciDxe: Use common buffer for AsyncInterruptTransfer

2018-10-31 Thread Leif Lindholm
On Wed, Oct 31, 2018 at 12:38:43PM +0800, Zeng, Star wrote: > Good feedback. > > On 2018/10/30 20:50, Leif Lindholm wrote: > > On Tue, Oct 30, 2018 at 09:39:24AM -0300, Ard Biesheuvel wrote: > > > (add back the list) > > > > Oi! Go back on holiday! > > > > > On 30 October 2018 at 09:07, Cohen,

Re: [edk2] Building EmulatorPkg and EDK2 project issue.

2018-10-31 Thread Prem Kumar
Hi Liming, Thanks for quick response and details, EmulatorPkg\Win Above folder was not present in UDK2018. But available in EDK2 master When I used below command I'm able to build success, build -p EmulatorPkg\EmulatorPkg.dsc -t VS2015x86 -D WIN_SEC_BUILD -a IA32 -m

Re: [edk2] [PATCH v2 1/2] ShellPkg-UefiShellLib: Add a function to fully-qualify paths

2018-10-31 Thread Jim.Dailey
Yes, Ray, that is the code block that I meant. It serves no purpose since InputPath cannot possibly be NULL in that part of the code. I appreciate your help in deleting this block and pushing the rest of the patch. Also, thanks for your thorough review of this code (and the first version)!

[edk2] [RFC PATCH 8/9] MdeModulePkg VarCheckLib: allow reusability as MM_STANDALONE

2018-10-31 Thread Jagadeesh Ujja
“VarCheckLib” library will be used by MM_STANDALONE driver too, hence adding LIBRARY_CLASS as MM_STANDALONE Change-Id: I1b999d05381180b511b986cd09b4923907ef2a4d Signed-off-by: Jagadeesh Ujja --- MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf | 5 +++-- 1 file changed, 3 insertions(+), 2

[edk2] [RFC PATCH 7/9] SecurityPkg/AuthVariableLib:allow reusability as MM_STANDALONE

2018-10-31 Thread Jagadeesh Ujja
“AuthVariableLib” library will be used by MM_STANDALONE driver too, hence adding LIBRARY_CLASS as MM_STANDALONE Change-Id: I67a10e1c60b3c859283c995f442d5b8709de89e1 Signed-off-by: Jagadeesh Ujja --- SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf | 5 +++-- 1 file changed, 3

[edk2] [RFC PATCH 6/9] CryptoPkg/BaseCryptLib: Hack to get time in MM Standalone mode

2018-10-31 Thread Jagadeesh Ujja
This is hack to get the time when executing in MM Standalone mode. It is not clear how to implement a function that gets the current time. So using this as a hack for now. Change-Id: I6f0ad72d2c965e8f1e7e4871039b3399cf9c3c6a Signed-off-by: Jagadeesh Ujja ---

[edk2] [RFC PATCH 5/9] MdeModulePkg/Variable/RuntimeDxe: adapt as a MM Standalone driver

2018-10-31 Thread Jagadeesh Ujja
Adapt the variable runtime dxe driver to be used as a MM_STANDALONE driver to provide variable storage service in MM Standalone mode. Change-Id: Ieadd1e575d7c430b2a3223f049d41d88dfbaecb2 Signed-off-by: Jagadeesh Ujja --- .../Universal/Variable/RuntimeDxe/Variable.c | 16 ++-

[edk2] [RFC PATCH 4/9] MdeModulePkg/Variable/RuntimeDxe: adapt for usability with MM Standalone

2018-10-31 Thread Jagadeesh Ujja
Adapt the VariableSmmRuntimeDxe driver to communicate with a VariableSmm driver that is implemented as a MM Standalone driver. Change-Id: I3975d021ac848f13206bc2c577a4f5fb0e29b941 Signed-off-by: Jagadeesh Ujja --- .../Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 20 ++-- 1

[edk2] [RFC PATCH 3/9] MdeModulePkg/FaultTolerantWriteDxe: allow reusability as a MM driver

2018-10-31 Thread Jagadeesh Ujja
Adapt the FaultTolerantWriteDxe driver to be used as a MM_STANDALONE driver to provide UEFI fault tolerant write protocol functionality for variable reclaim operation on EFI variables stored on a NOR flash that is only accessible to code executing in MM Standalone mode. Change-Id:

[edk2] [RFC PATCH 2/9] ArmPlatformPkg/NorFlashDxe: allow reusability as a MM driver

2018-10-31 Thread Jagadeesh Ujja
Adapt the NorFlashDxe driver to be used as a MM_STANDALONE driver to allow access to NOR flash for code executing in MM_STANDALONE mode. This allows storing of EFI variables on NOR flash which is accessible only via the MM STANDALONE mode software. Change-Id:

[edk2] [RFC PATCH 1/9] StandaloneMmPkg: Pull in additonal libraries from staging branch

2018-10-31 Thread Jagadeesh Ujja
Three additional library packages are being pulled into StandaloneMmPkg from the staging area in order to support the secure variable service. The three packages being pulled in are - StandaloneMmHobLib - StandaloneMmMemoryAllocationLib - StandaloneMmServicesTableLib Change-Id:

[edk2] [RFC PATCH 0/9] Extend secure variable service to be usable from Standalone MM

2018-10-31 Thread Jagadeesh Ujja
This RFC patch series extends the existing secure variable service support for use with Standalone MM. This is applicable to paltforms that use Standalone Management Mode to protect access to non-volatile memory (NOR flash in case of these patches) used to store the secure EFI variables. The

Re: [edk2] D06 ACPI

2018-10-31 Thread Leif Lindholm
(On further thinking, and testing ...) Could you also make sure D03/D05 ACPI is up to date and builds with acpica 20181003? I think anything that compiles with 20180629 should also work with 20181003. Best Regards, Leif On Mon, Oct 29, 2018 at 06:58:46PM +, Leif Lindholm wrote: > Hi Ming,

Re: [edk2] [PATCH 1/3] Maintainers.txt: Remove EdkShellPkg and EkdShellBinPkg

2018-10-31 Thread Leif Lindholm
Hi Shenglei, I am happy with this change, but I think the deletion from Maintainers.txt should come last (as 3/3). Could you rework and resubmit, and add a cover letter (0/3)? Best Regards, Leif On Wed, Oct 31, 2018 at 02:05:23PM +0800, shenglei wrote: > Given that EdkShellPkg and

Re: [edk2] [PATCH v1 0/7] Delete TCP, PXE, iSCSI driver in MdeModulePkg.

2018-10-31 Thread Leif Lindholm
Hi Fu Siyuan, Hmm, strange. Ming Huang (cc) has also had issues with this in his latest set (but not before). Can you guys work together to try to figure out what is going wrong? Can you start by testing with an older version of git? Best Regards, Leif On Wed, Oct 31, 2018 at 12:41:39AM

Re: [edk2] Reminder for deleting 3 network drivers in MdeModulePkg

2018-10-31 Thread Leif Lindholm
Hi Fu Siyuan, That is fine too. But I expect the change to be one to go in the week after a stable tag has been made. (My own philosophy is that one can be quite aggressive with removals, because if it turns out to have been a bad idea, git revert can quickly restore the tree to the state it

[edk2] [PATCH] BaseTools: Check the max size for string PCD.

2018-10-31 Thread Zhaozh1x
According to PCD_DATABASE_INIT in edk2\MdeModulePkg\Include\Guid\PcdDataBaseSignatureGuid.h, the max size for string PCD should not exceed USHRT_MAX 65535(0x). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: ZhiqiangX Zhao Cc: Liming Gao Cc: Yonghong Zhu Cc: Bob Feng

Re: [edk2] [PATCH v2 1/2] ShellPkg-UefiShellLib: Add a function to fully-qualify paths

2018-10-31 Thread Ni, Ruiyu
Jim, I checked the other parts in your patch. They looks good. But I don't quite understand how to handle the if-statement. Do you mean to remove the below code block? // // Handle the degenerate case where Path was only a file system reference. // In that case we return the current

Re: [edk2] [PATCH 2/5] EmulatorPkg: Remove EdkShellBinPkg in FDF and DEC

2018-10-31 Thread Ni, Ruiyu
Shenglei, The patch is not complete for removing EDK SHELL from EmulatorPkg. Please also review all references of "USE_OLD_SHELL" and remove the related contents. Same comments apply to the changes to other platforms. Thanks/Ray > -Original Message- > From: Zhang, Shenglei > Sent:

Re: [edk2] [PATCH 1/3] Maintainers.txt: Remove EdkShellPkg and EkdShellBinPkg

2018-10-31 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni Thanks/Ray > -Original Message- > From: edk2-devel On Behalf Of shenglei > Sent: Wednesday, October 31, 2018 2:05 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Laszlo Ersek > > Subject: [edk2] [PATCH 1/3] Maintainers.txt: Remove EdkShellPkg and >

Re: [edk2] [PATCH 2/2] MdeModulePkg/BaseSortLib: Enable for all module types

2018-10-31 Thread Ni, Ruiyu
SortLib depends on MemoryAllocationLib. How can it be a BASE type library? Can we do it in two options? 1. Change the SortLib API to accept a temporary buffer from caller. So the MemoryAllocationlIb dependency can be removed. 2. Do not change SortLibAPI but uses a fixed-size temporary buffer

[edk2] [PATCH v1] NetworkPkg/Mtftp6Dxe: Remove the trailing white spaces.

2018-10-31 Thread Jiaxin Wu
Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin --- NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h b/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h index

[edk2] [PATCH] BaseTools/Eot: Remove a duplication code in EotMain class

2018-10-31 Thread Yonghong Zhu
From: Hess Chen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen --- BaseTools/Source/Python/Eot/EotMain.py | 365 - 1 file changed, 365 deletions(-) diff --git a/BaseTools/Source/Python/Eot/EotMain.py

Re: [edk2] [PATCH 0/5] Remove EdkShellBinPkg in FDF, DSC and DEC

2018-10-31 Thread Jordan Justen
I also see USE_OLD_SHELL references in the .dsc files. (Try 'git grep USE_OLD_SHELL') After the platforms no longer reference EdkShellBinPkg, then the bin package will be removed? -Jordan On 2018-10-30 22:57:06, shenglei wrote: > Remove EdkShellBinPkg in CorebootPayloadPkg, EmulatorPkg,

[edk2] [PATCH 0/3] Remove EdkShellBinPkg and EdkShellPkg

2018-10-31 Thread shenglei
EdkShellBinPkg and EdkShellPkg are removed and so that Maintainers.txt is modified. shenglei (3): Maintainers.txt: Remove EdkShellPkg and EkdShellBinPkg EdkShellBinPkg: Remove EdkShellBinPkg EdkShellPkg: Remove EdkShellPkg EdkShellBinPkg/Bin/Arm/Attrib.efi | Bin 21504 -> 0

[edk2] [PATCH 1/3] Maintainers.txt: Remove EdkShellPkg and EkdShellBinPkg

2018-10-31 Thread shenglei
Given that EdkShellPkg and EkdShellBinPkg will be removed, information about them in Maintainers.txt should also be deleted. https://bugzilla.tianocore.org/show_bug.cgi?id=1107 https://bugzilla.tianocore.org/show_bug.cgi?id=1108 Cc: Andrew Fish Cc: Laszlo Ersek Cc: Leif Lindholm Cc: Michael D