Re: [edk2] Recall: [PATCH V3 00/17] Merge EmuVariable and Real variable driver

2019-01-15 Thread Wu, Hao A
Wrong operation made. Please ignore the message. Sorry for the noise. > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Wu, Hao A > Sent: Wednesday, January 16, 2019 3:42 PM > To: Zeng, Star; edk2-devel@lists.01.org > Cc: Zeng, Star > Subject:

[edk2] Recall: [PATCH V3 00/17] Merge EmuVariable and Real variable driver

2019-01-15 Thread Wu, Hao A
Wu, Hao A would like to recall the message, "[edk2] [PATCH V3 00/17] Merge EmuVariable and Real variable driver". ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

Re: [edk2] [PATCH V3 00/17] Merge EmuVariable and Real variable driver

2019-01-15 Thread Wu, Hao A
Star, The KW scan for the patch series is good. Best Regards, Hao Wu > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Star Zeng > Sent: Tuesday, January 15, 2019 6:29 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star > Subject: [edk2] [PATC

[edk2] [PATCH] SD/eMMC : Fix Command Argument for SD/eMMC R/W operation.

2019-01-15 Thread Meenakshi Aggarwal
Issue : SD read failure for high capacity cards e.g. 64 GB i Reason : Command argument value exceeds 32 bit for block number 0x3787FFF and cant be fit into 32 bit wide SD host controller register. Fix : AccessMode bits [29:30] of OCR is a valid definition to calculate data address for eMMC cards.

Re: [edk2] [PATCH V3 10/17] MdeModulePkg Variable: Add emulated variable NV mode support

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:30 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A; Kinney, Michael D; Gao, Liming; Ni, > Ray; Laszlo Ersek; Ard Biesheuvel > Subject: [PATCH V

Re: [edk2] [PATCH V3 17/17] MdeModulePkg: Remove EmuVariableRuntimeDxe

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:30 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A > Subject: [PATCH V3 17/17] MdeModulePkg: Remove > EmuVariableRuntimeDxe > > REF: https://b

Re: [edk2] [PATCH V3 11/17] MdeModulePkg VariablePei: Don't check BOOT_IN_RECOVERY_MODE

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:30 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A > Subject: [PATCH V3 11/17] MdeModulePkg VariablePei: Don't check > BOOT_IN_RECOVERY_MODE >

Re: [edk2] [PATCH V3 09/17] MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:30 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A > Subject: [PATCH V3 09/17] MdeModulePkg: Refine description a little for > PcdEmuVariableNv

Re: [edk2] [PATCH V3 04/17] MdeModulePkg Variable: Not get NV PCD in VariableWriteServiceInitialize

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:29 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A > Subject: [PATCH V3 04/17] MdeModulePkg Variable: Not get NV PCD in > VariableWriteServiceI

Re: [edk2] [PATCH V3 03/17] MdeModulePkg Variable: Move "extern XXX" to Variable.h

2019-01-15 Thread Wu, Hao A
Reviewed-by: Hao Wu Best Regards, Hao Wu > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:29 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star; Wang, Jian J; Wu, Hao A > Subject: [PATCH V3 03/17] MdeModulePkg Variable: Move "extern XXX" to > Variable.h > > RE

[edk2] [PATCH] BaseTools:Evaluation of undefined macros in dsc files

2019-01-15 Thread Fan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=989 doc:If macro that is not defined is used in locations that are not expressions (where the tools would just do macro expansion as in C flags in a [BuildOptions] section), nothing will be emitted. This is in fact not what happens.Instead, the te

Re: [edk2] [Patch] BaseTools VolInfo: Fix XCODE5 build issue

2019-01-15 Thread Zhu, Yonghong
Reviewed-by: Yonghong Zhu Best Regards, Zhu Yonghong -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Liming Gao Sent: Wednesday, January 16, 2019 2:45 PM To: edk2-devel@lists.01.org Subject: [edk2] [Patch] BaseTools VolInfo: Fix XCODE5 build i

[edk2] [Patch] BaseTools VolInfo: Fix XCODE5 build issue

2019-01-15 Thread Liming Gao
XCODE5 reports warning "equality comparison with extraneous parentheses". Remove extraneous parentheses around the comparison to silence this warning. This issue is caused by commit 8daa4278e80c70e6caabc525cd122744488253f5. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Lim

Re: [edk2] [PATCH v2 09/17] MdePkg: introduce standalone MM entry point library class

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: Add the library interface for the standalone MM driver entry point. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/MdePkg.dec | 3 + MdePkg/Include/Library/Standa

Re: [edk2] [PATCH v2 14/17] MdeModulePkg/MdeModulePkg/dsc: move DxeDebugSupportDxe to x86 only section

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: MdeModulePkg/Universal/DebugSupportDxe/DebugSupportDxe.inf does not build for AARCH64 since it does not provide the needed PlDebugSupport.h header. So move the module to a x86 only section. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-o

Re: [edk2] [PATCH V3 16/17] CorebootPayloadPkg: Use merged variable driver for emulated NV mode

2019-01-15 Thread You, Benjamin
Reviewed-by: Benjamin You > -Original Message- > From: Zeng, Star > Sent: Tuesday, January 15, 2019 6:30 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Ma, Maurice ; > Agyeman, Prince ; You, Benjamin > > Subject: [PATCH V3 16/17] CorebootPayloadPkg: Use merged variable driver for >

Re: [edk2] [PATCH v2 12/17] MdeModulePkg: implement NULL instance of HobLib library class

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: In order to permit MM_STANDALONE modules to be built without relying on StandaloneMmPkg, provide a BASE type NULL implementation of HobLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Star Zeng

Re: [edk2] [PATCH v2 13/17] MdeModulePkg: implement NULL instance of MemoryAllocationLib library class

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: In order to permit MM_STANDALONE modules to be built without relying on StandaloneMmPkg, provide a BASE type NULL implementation of MemoryAllocationLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdeModu

Re: [edk2] [PATCH v2 17/17] MdeModulePkg/MdeModulePkg.dsc: add MM_STANDALONE FTW and variable modules

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: For build testing coverage, add the newly introduced MM_STANDALONE versions of the fault tolerant write (FTW) and variable runtime driver to MdeModulePkg.dsc. Note that the resulting binaries will not be able to run, since they rely on dummy implementatio

Re: [edk2] [PATCH v2 16/17] MdeModulePkg/VarCheckLib: add MM_STANDALONE support

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: Add MM_STANDALONE to the list of permitted module types of the VarCheckLib library implementation. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Star Zeng --- MdeModulePkg/Library/VarCheckLib/V

Re: [edk2] [PATCH v2 15/17] MdeModulePkg/AuthVariableLibNull: add MM_STANDALONE support

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: Add MM_STANDALONE to the list of permitted module types of the AuthVariableLibNull library implementation. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Star Zeng --- MdeModulePkg/Library/AuthV

Re: [edk2] [PATCH v2 01/17] MdeModulePkg/MdeModulePkg.dsc: add MmServicesTableLib resolution

2019-01-15 Thread Zeng, Star
On 2019/1/14 21:27, Ard Biesheuvel wrote: The SMM based FTW and variable drivers are going to depend on MmServicesTableLib after a subsequent patch, so add a resolution for it to MdeModulePkg.dsc. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-b

Re: [edk2] [PATCH v2 08/17] MdeModulePkg/VariableRuntimeDxe: implement standalone MM version

2019-01-15 Thread Zeng, Star
One minor comment. With it handled, Reviewed-by: Star Zeng On 2019/1/14 21:27, Ard Biesheuvel wrote: Reuse most of the existing code to implement a variable runtime driver that will be able to execute in the context of standalone MM. Contributed-under: TianoCore Contribution Agreement 1.1 Sig

Re: [edk2] [PATCH v2 07/17] MdeModulePkg/VariableRuntimeDxe: factor out boot service accesses

2019-01-15 Thread Zeng, Star
Some minor comments. With them handled, Reviewed-by: Star Zeng On 2019/1/14 21:27, Ard Biesheuvel wrote: In preparation of providing a standalone MM based variable runtime driver, move the existing SMM driver to the new MM services table, and factor out some pieces that are specific to the tra

Re: [edk2] [PATCH v2 06/17] MdeModulePkg/FaultTolerantWriteDxe: implement standalone MM version

2019-01-15 Thread Zeng, Star
One minor comment. With it handled, Reviewed-by: Star Zeng On 2019/1/14 21:27, Ard Biesheuvel wrote: Implement a new version of the fault tolerant write driver that can be used in the context of a standalone MM implementation. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off

Re: [edk2] [PATCH v2 05/17] MdeModulePkg/FaultTolerantWriteDxe: factor out boot service accesses

2019-01-15 Thread Zeng, Star
Some minor comments. With them handled, Reviewed-by: Star Zeng Thanks, Star On 2019/1/14 21:27, Ard Biesheuvel wrote: In preparation of providing a standalone MM based FTW driver, move the existing SMM driver to the new MM services table, and factor out some pieces that are specific to the tr

Re: [edk2] [PATCH V3 00/17] Merge EmuVariable and Real variable driver

2019-01-15 Thread Wang, Jian J
For patch 1-12,17 Reviewed-by: Jian J Wang > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Star > Zeng > Sent: Tuesday, January 15, 2019 6:29 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star > Subject: [edk2] [PATCH V3 00/17] Merge EmuVaria

Re: [edk2] [Patch] BaseTools: Fix incorrect formatting of GenFds command dictionary

2019-01-15 Thread Gao, Liming
Please update the patch to remove EFI_SOURCE. This has been removed from edk2 master. Thanks Liming >-Original Message- >From: Felix Polyudov [mailto:fel...@ami.com] >Sent: Wednesday, January 16, 2019 7:33 AM >To: edk2-devel@lists.01.org >Cc: Feng, Bob C ; Gao, Liming >; Zhu, Yonghong >

Re: [edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Match the nested partitions

2019-01-15 Thread Gary Lin
On Tue, Jan 15, 2019 at 12:58:10PM +0100, Laszlo Ersek wrote: > On 01/15/19 10:45, Gary Lin wrote: > > In some cases, such as MD RAID1 in Linux, the bootloader may be in a > > nested EFI system partition partition. For example, sda1 and sdb1 are > > combined as md0 and the first partition of md0, m

[edk2] [Patch] BaseTools: Fix incorrect formatting of GenFds command dictionary

2019-01-15 Thread Felix Polyudov
The issue is introduced by commit b3497bad1221704a5dbc5da0b10f42625f1ad2ed. GenFdsCommand returned dictionary with elements that are not compatible with GenFdsApi. As a result the following options were not processed by GenFdsApi: -v, -q, -d, --genfds-multi-thread, --ignore-sources Contributed-und

Re: [edk2] EmulatorPkg build issue with macOS mojave and Xcode 10

2019-01-15 Thread Gao, Liming
I check the history. EmulatorPkg doesn't support macOS. EmulatorePkg depends on XCODE32 tool chain to generate the host application. But, XCODE32 tool chain has been removed at edk2 f7bd152c2a05bd75471305184c25f14f01ccf0b7. I just try to add back this change, and call build.sh without the chang

Re: [edk2] Conditional Compilation support in INF file

2019-01-15 Thread Gao, Liming
Karunakar and Mike: Basetools doesn't support Feature Flag Expressions in INF file. It just ignores them. Because there are other solutions, I would like to propose to update INF spec to remove Feature Flag Expressions and avoid the confuse. Thanks Liming > -Original Message- > From:

Re: [edk2] [PATCH edk2-platforms 0/8] Silicon/SynQuacer: add support for 32-bit mode

2019-01-15 Thread Leif Lindholm
On Mon, Jan 14, 2019 at 06:01:57PM +0100, Ard Biesheuvel wrote: > This series fixes various issues that prevent the SynQuacer/DeveloperBox > platform from being built or executed in 32-bit mode. > > Ard Biesheuvel (8): > Silicon/SynQuacer/NetsecDxe: fix 32-bit build > Silicon/SynQuacer/OpteeRn

Re: [edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Match the nested partitions

2019-01-15 Thread Laszlo Ersek
On 01/15/19 10:45, Gary Lin wrote: > In some cases, such as MD RAID1 in Linux, the bootloader may be in a > nested EFI system partition partition. For example, sda1 and sdb1 are > combined as md0 and the first partition of md0, md0p1, is an EFI system > partition. Then, the bootloader can be locate

[edk2] [Patch V2] BaseTools: Remove EDK_SOURCE keyword from GenFds tool.

2019-01-15 Thread Feng, Bob C
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove unused EDK_SOURCE keyword from GenFds tool. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao Tested-by: Laszlo Ersek --- BaseTools/Source/Python/GenFds/GenFds.py | 3 ---

[edk2] [Patch V2] BaseTools: Remove EDK_SOURCE keyword from Inf Parser.

2019-01-15 Thread Feng, Bob C
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove unused EDK_SOURCE keyword from Inf Parser. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao Tested-by: Laszlo Ersek --- .../Source/Python/Workspace/InfBuildData.py | 34 --

Re: [edk2] [Patch] BaseTools: Remove EDK_SOURCE keyword from GenFds tool.

2019-01-15 Thread Laszlo Ersek
Hi Bob, On 01/15/19 12:03, Feng, Bob C wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 > Remove unused EDK_SOURCE keyword from GenFds tool. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Bob Feng > Cc: Liming Gao > --- > BaseTools/Source/Python/Ge

Re: [edk2] [Patch] BaseTools: Remove EDK_SOURCE keyword from Inf Parser.

2019-01-15 Thread Laszlo Ersek
Hi Bob, On 01/15/19 12:03, Feng, Bob C wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 > Remove unused EDK_SOURCE keyword from Inf Parser. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Bob Feng > Cc: Liming Gao > --- > .../Source/Python/Workspace

Re: [edk2] [PATCH V3 14/17] BeagleBoardPkg: Use merged variable driver for emulated NV mode

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 06:29:36PM +0800, Star Zeng wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 > Merge EmuVariable and Real variable driver. > > The real variable driver has been updated to support emulated > variable NV mode and the EmuVariableRuntimeDxe will be removed > l

Re: [edk2] [PATCH v2 5/5] ArmPkg/DefaultExceptionHandlerLib: use console if available

2019-01-15 Thread Ard Biesheuvel
On Tue, 15 Jan 2019 at 11:09, Laszlo Ersek wrote: > > On 01/15/19 09:23, Ard Biesheuvel wrote: > > Print the minimal 'exception occurred' message to the console instead > > of straight to the serial port if the console is available. This makes > > such messages visible on systems where the console

[edk2] [Patch] BaseTools: Remove EDK_SOURCE keyword from Inf Parser.

2019-01-15 Thread Feng, Bob C
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove unused EDK_SOURCE keyword from Inf Parser. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- .../Source/Python/Workspace/InfBuildData.py | 34 --- 1 file changed, 7

[edk2] [Patch] BaseTools: Remove EDK_SOURCE keyword from ECC Tool

2019-01-15 Thread Feng, Bob C
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove EDK_SOURCE keyword from ECC Tool. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/Ecc/EccMain.py| 27 --- .../Ecc/MetaFileWorkspace/M

[edk2] [Patch] BaseTools: Remove EDK_SOURCE keyword from GenFds tool.

2019-01-15 Thread Feng, Bob C
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove unused EDK_SOURCE keyword from GenFds tool. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/Python/GenFds/GenFds.py | 3 --- BaseTools/Source/Python/G

[edk2] [PATCH V3 17/17] MdeModulePkg: Remove EmuVariableRuntimeDxe

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. The real variable driver has been updated to support emulated variable NV mode. This patch removes EmuVariableRuntimeDxe after platforms are migrated to use the merged variable driver. Cc: Jian J

[edk2] [PATCH V3 10/17] MdeModulePkg Variable: Add emulated variable NV mode support

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Add emulated variable NV mode support in real variable driver. Platform can configure PcdEmuVariableNvModeEnable statically (build time) or dynamically (boot time) to support emulated variable NV m

[edk2] [PATCH V3 12/17] ArmVirtXen: Use merged variable driver for emulated NV mode

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. The real variable driver has been updated to support emulated variable NV mode and the EmuVariableRuntimeDxe will be removed later, so use merged variable driver for emulated NV mode. Cc: Laszlo E

[edk2] [PATCH V3 15/17] QuarkMin: Use merged variable driver for emulated NV mode

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. The real variable driver has been updated to support emulated variable NV mode and the EmuVariableRuntimeDxe will be removed later, so use merged variable driver for emulated NV mode. Cc: Michael

[edk2] [PATCH V3 09/17] MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved

2019-01-15 Thread Star Zeng
This patch is not related directly to REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. PcdEmuVariableNvStoreReserved actually defines the base address of reserved memory range. This patch refines description a little for PcdEmuVariableNvStoreRes

[edk2] [PATCH V3 16/17] CorebootPayloadPkg: Use merged variable driver for emulated NV mode

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. The real variable driver has been updated to support emulated variable NV mode and the EmuVariableRuntimeDxe will be removed later, so use merged variable driver for emulated NV mode. Cc: Maurice

[edk2] [PATCH V3 04/17] MdeModulePkg Variable: Not get NV PCD in VariableWriteServiceInitialize

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Add macro NV_STORAGE_VARIABLE_BASE. Not get NV PCD in VariableWriteServiceInitialize, but in FtwNotificationEvent/SmmFtwNotificationEvent, then VariableWriteServiceInitialize could be not aware the

Re: [edk2] [PATCH v1 1/2] MdeModulePkg/NetLib.h: Fix the possible NULL pointer dereference issue.

2019-01-15 Thread Laszlo Ersek
Hi Jiaxin, On 01/15/19 02:26, Jiaxin Wu wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1456 > > For the NET_LIST_FOR_EACH & NET_LIST_FOR_EACH_SAFE, "Entry" should be > checked whether it's NULL or not instead of using the pointer directly. > > Cc: Wu Hao A > Cc: Gao Liming > Cc:

[edk2] [PATCH V3 13/17] ArmVirtXen: Link VarCheckUefiLib NULL class library instance

2019-01-15 Thread Star Zeng
This patch is not related directly to REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. It just makes ArmVirtXen be aligned with ArmVirtQemuXXX to link VarCheckUefiLib NULL class library instance. Suggested-by: Laszlo Ersek Cc: Laszlo Ersek Cc:

[edk2] [PATCH V3 11/17] MdeModulePkg VariablePei: Don't check BOOT_IN_RECOVERY_MODE

2019-01-15 Thread Star Zeng
Don't check BOOT_IN_RECOVERY_MODE, but check PcdEmuVariableNvModeEnable which platform can configure flexibly. Cc: Jian J Wang Cc: Hao Wu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng --- MdeModulePkg/Universal/Variable/Pei/Variable.c | 8 +--- MdeMo

[edk2] [PATCH V3 14/17] BeagleBoardPkg: Use merged variable driver for emulated NV mode

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. The real variable driver has been updated to support emulated variable NV mode and the EmuVariableRuntimeDxe will be removed later, so use merged variable driver for emulated NV mode. Cc: Leif Lin

[edk2] [PATCH V3 08/17] MdeModulePkg: Add PcdEmuVariableNvModeEnable in dec

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Add PcdEmuVariableNvModeEnable (support both static and dynamic) to indicate if Variable driver will enable emulated variable NV mode. This patch prepares for adding emulated variable NV mode supp

[edk2] [PATCH V3 05/17] MdeModulePkg Variable: Abstract VariableWriteServiceInitializeDxe/Smm

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Abstract VariableWriteServiceInitializeDxe/Smm from FtwNotificationEvent/SmmFtwNotificationEvent, then VariableWriteServiceInitializeDxe/Smm could be not aware the NV storage is real or emulated.

[edk2] [PATCH V3 01/17] MdeModulePkg Variable: Add some missing changes for 9b18845

2019-01-15 Thread Star Zeng
To improve performance 9b18845a4b4cd1d2cf004cbc1cadf8a93ccb37ea changed the code which read from physical MMIO address to read from memory cache, but it missed some places that could be updated the same away for performance optimization. The patch updates these places as supplementary. I found th

[edk2] [PATCH V3 03/17] MdeModulePkg Variable: Move "extern XXX" to Variable.h

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Move "extern XXX" to Variable.h from VariableDxe.c/VariableSmm.c. This patch prepares for adding emulated variable NV mode support in VariableRuntimeDxe. Cc: Jian J Wang Cc: Hao Wu Contributed-

Re: [edk2] [platforms: PATCH v2 06/12] Marvell/Drivers: MvBoardDesc: Extend protocol with GPIO support

2019-01-15 Thread Marcin Wojtas
wt., 15 sty 2019 o 11:12 Leif Lindholm napisał(a): > > On Tue, Jan 15, 2019 at 11:05:12AM +0100, Marcin Wojtas wrote: > > > > Anyway, I tried to play with the MV_BOARD_GPIO_DESCRIPTION to be the > > > > global variable, but was not convinced by the outcome. My biggest > > > > objection to the glob

Re: [edk2] [platforms: PATCH v2 06/12] Marvell/Drivers: MvBoardDesc: Extend protocol with GPIO support

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 11:14:16AM +0100, Marcin Wojtas wrote: > wt., 15 sty 2019 o 11:12 Leif Lindholm napisał(a): > > > > On Tue, Jan 15, 2019 at 11:05:12AM +0100, Marcin Wojtas wrote: > > > > > Anyway, I tried to play with the MV_BOARD_GPIO_DESCRIPTION to be the > > > > > global variable, but w

[edk2] [PATCH V3 07/17] MdeModulePkg Variable: type case VolatileBase to UINTN directly

2019-01-15 Thread Star Zeng
Simplify ((UINTN) ((UINT8 *) VolatileBase + VolatileBase->Size)) to ((UINTN) VolatileBase + VolatileBase->Size) This patch prepares for adding emulated variable NV mode support in VariableRuntimeDxe. Cc: Jian J Wang Cc: Hao Wu Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreemen

[edk2] [PATCH V3 06/17] MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. CacheOffset could be removed in UpdateVariable() after // // update the memory copy of Flash region. // CopyMem ( (UINT8 *)mNvVariableCache + CacheOffset, (UINT8 *)NextVariable, VarSize );

[edk2] [PATCH V3 02/17] MdeModulePkg Variable: Abstract InitRealNonVolatileVariableStore

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Abstract InitRealNonVolatileVariableStore from InitNonVolatileVariableStore. This patch prepares for adding emulated variable NV mode support in VariableRuntimeDxe. Cc: Jian J Wang Cc: Hao Wu C

[edk2] [PATCH V3 00/17] Merge EmuVariable and Real variable driver

2019-01-15 Thread Star Zeng
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Purpose: 1. Add emulated variable NV mode support in MdeModulePkg\Universal\Variable\RuntimeDxe. Platform can configure PCD statically (build time) or dynamically (boot time) to support emulated variable NV mode. 2. Remove MdeModule

Re: [edk2] [PATCH v2 3/5] ArmVirtPkg: drop reference to ArmPkg/DefaultExceptionHandlerLibBase

2019-01-15 Thread Laszlo Ersek
On 01/15/19 09:23, Ard Biesheuvel wrote: > Drop the reference to ArmPkg/DefaultExceptionHandlerLibBase, which > is no longer used anywhere now that DebugAgentSymbolsBaseLib no > longer incorporates a vector table and exception handling. > > Contributed-under: TianoCore Contribution Agreement 1.1 >

Re: [edk2] [PATCH V2 03/15] MdeModulePkg Variable: Not get NV PCD in VariableWriteServiceInitialize

2019-01-15 Thread Zeng, Star
On 2019/1/15 14:37, Wang, Jian J wrote: Hi Star, One comment below. -Original Message- From: Zeng, Star Sent: Monday, January 14, 2019 11:20 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Wang, Jian J ; Wu, Hao A Subject: [PATCH V2 03/15] MdeModulePkg Variable: Not get NV PCD in Vari

Re: [edk2] [platforms: PATCH v2 08/12] Marvell/Drivers: MvGpioDxe: Introduce platform GPIO driver

2019-01-15 Thread Marcin Wojtas
wt., 15 sty 2019 o 11:04 Leif Lindholm napisał(a): > > On Tue, Jan 15, 2019 at 07:19:04AM +0100, Marcin Wojtas wrote: > > > > + if (MmioRead32 (BaseAddress + MV_GPIO_OUT_EN_REG) & (1 << GpioPin)) { > > > > +*Mode = GPIO_MODE_INPUT; > > > > + } else { > > > > +if (MmioRead32 (BaseAddress

Re: [edk2] [platforms: PATCH v2 06/12] Marvell/Drivers: MvBoardDesc: Extend protocol with GPIO support

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 11:05:12AM +0100, Marcin Wojtas wrote: > > > Anyway, I tried to play with the MV_BOARD_GPIO_DESCRIPTION to be the > > > global variable, but was not convinced by the outcome. My biggest > > > objection to the global variable and checking whether it's NULL in the > > > consum

Re: [edk2] [PATCH V2 06/15] MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()

2019-01-15 Thread Zeng, Star
On 2019/1/15 17:58, Laszlo Ersek wrote: On 01/15/19 09:04, Wang, Jian J wrote: Star, Just a tiny comment below. With it's addressed, Reviewed-by: Jian J Wang -Original Message- From: Zeng, Star Sent: Monday, January 14, 2019 11:20 PM To: edk2-devel@lists.01.org Cc: Zeng, Star ; Wang

Re: [edk2] [PATCH v2 5/5] ArmPkg/DefaultExceptionHandlerLib: use console if available

2019-01-15 Thread Laszlo Ersek
On 01/15/19 09:23, Ard Biesheuvel wrote: > Print the minimal 'exception occurred' message to the console instead > of straight to the serial port if the console is available. This makes > such messages visible on systems where the console is graphical and > the serial is not connected. > > Contrib

Re: [edk2] [platforms: PATCH v2 06/12] Marvell/Drivers: MvBoardDesc: Extend protocol with GPIO support

2019-01-15 Thread Marcin Wojtas
wt., 15 sty 2019 o 10:56 Leif Lindholm napisał(a): > > On Tue, Jan 15, 2019 at 07:05:42AM +0100, Marcin Wojtas wrote: > > > > index f71bfc4..e348b85 100644 > > > > --- a/Silicon/Marvell/Drivers/BoardDesc/MvBoardDescDxe.c > > > > +++ b/Silicon/Marvell/Drivers/BoardDesc/MvBoardDescDxe.c > > > > @@ -

Re: [edk2] [platforms: PATCH v2 08/12] Marvell/Drivers: MvGpioDxe: Introduce platform GPIO driver

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 07:19:04AM +0100, Marcin Wojtas wrote: > > > + if (MmioRead32 (BaseAddress + MV_GPIO_OUT_EN_REG) & (1 << GpioPin)) { > > > +*Mode = GPIO_MODE_INPUT; > > > + } else { > > > +if (MmioRead32 (BaseAddress + MV_GPIO_DATA_IN_REG) & (1 << GpioPin)) > > > { > > > + *

Re: [edk2] [PATCH V2 06/15] MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()

2019-01-15 Thread Laszlo Ersek
On 01/15/19 09:04, Wang, Jian J wrote: > Star, > > Just a tiny comment below. With it's addressed, > > Reviewed-by: Jian J Wang > >> -Original Message- >> From: Zeng, Star >> Sent: Monday, January 14, 2019 11:20 PM >> To: edk2-devel@lists.01.org >> Cc: Zeng, Star ; Wang, Jian J ; >> Wu

Re: [edk2] [platforms: PATCH v2 06/12] Marvell/Drivers: MvBoardDesc: Extend protocol with GPIO support

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 07:05:42AM +0100, Marcin Wojtas wrote: > > > index f71bfc4..e348b85 100644 > > > --- a/Silicon/Marvell/Drivers/BoardDesc/MvBoardDescDxe.c > > > +++ b/Silicon/Marvell/Drivers/BoardDesc/MvBoardDescDxe.c > > > @@ -100,6 +100,48 @@ MvBoardDescComPhyGet ( > > > > > > STATIC > >

Re: [edk2] [PATCH V2 08/15] MdeModulePkg Variable: Add emulated variable NV mode support

2019-01-15 Thread Laszlo Ersek
On 01/15/19 07:16, Zeng, Star wrote: > On 2019/1/15 14:01, Wang, Jian J wrote: >> Hi Star, >> >> Just two minor comments below. >> >>> -Original Message- >>> From: Zeng, Star >>> Sent: Monday, January 14, 2019 11:20 PM >>> To: edk2-devel@lists.01.org >>> Cc: Zeng, Star ; Wang, Jian J >>> ;

Re: [edk2] [PATCH V2 12/15] BeagleBoardPkg: Use merged variable driver for emulated NV mode

2019-01-15 Thread Leif Lindholm
On Tue, Jan 15, 2019 at 09:32:59AM +0800, Zeng, Star wrote: > > This patch also need an added resolution for SynchronizationLib. > > (MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf > > should be fine.) > > Oh, yes. I assumed it has been there, but it is not. Yes, BeagleBoard rea

Re: [edk2] [PATCH V2 08/15] MdeModulePkg Variable: Add emulated variable NV mode support

2019-01-15 Thread Zeng, Star
On 2019/1/15 17:33, Laszlo Ersek wrote: On 01/14/19 16:19, Star Zeng wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 Merge EmuVariable and Real variable driver. Add emulated variable NV mode support in real variable driver. Platform can configure PcdEmuVariableNvModeEnable stati

[edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Match the nested partitions

2019-01-15 Thread Gary Lin
In some cases, such as MD RAID1 in Linux, the bootloader may be in a nested EFI system partition partition. For example, sda1 and sdb1 are combined as md0 and the first partition of md0, md0p1, is an EFI system partition. Then, the bootloader can be located by the following device paths: PCI()/SAT

Re: [edk2] [PATCH V2 11/15] ArmVirtXen: Link VarCheckUefiLib NULL class library instance

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > This patch is not related to > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 > Merge EmuVariable and Real variable driver. > > It just makes ArmVirtXen be aligned with ArmVirtQemuXXX to > link VarCheckUefiLib NULL class library instance. > > Sugges

Re: [edk2] [PATCH V2 10/15] ArmVirtXen: Use merged variable driver for emulated NV mode

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 > Merge EmuVariable and Real variable driver. > > The real variable driver has been updated to support emulated > variable NV mode and the EmuVariableRuntimeDxe will be removed > later, so use merged var

Re: [edk2] [PATCH V2 08/15] MdeModulePkg Variable: Add emulated variable NV mode support

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 > Merge EmuVariable and Real variable driver. > > Add emulated variable NV mode support in real variable driver. > Platform can configure PcdEmuVariableNvModeEnable statically > (build time) or dynamical

[edk2] [PATCH] BaseTools:The BuildOptionPcd value is wrong

2019-01-15 Thread Fan, ZhijuX
In GenFds.py, Due to the second assignment, the value is wrong Its value should a list, not a string.and this line is not required Cc: Bob Feng Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan --- BaseTools/Source/Python/GenFds/GenFds.py | 1 - 1

[edk2] [PATCH] BaseTools:build break if the Path contains SingleFile.Ext

2019-01-15 Thread Fan, ZhijuX
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1325 if SingleFile.Path = "/foo/bar.Sap/yada/source.S" and SingleFile.Ext = ".S". Then key would end up "/foo/bar" instead of "/foo/bar.Sap/yada/source" as intended. Cc: Bob Feng Cc: Liming Gao Contributed-under: TianoCore Contribution Agreemen

[edk2] [PATCH V2] BaseTools:Build fail when PCD use in the [DEPEX] section of INF files

2019-01-15 Thread Fan, ZhijuX
Update _FixedPcdVoidTypeDict to FixedVoidTypePcds '_FixedPcdVoidTypeDict' no longer exists because edk2 version (b23414f6). 'ModuleAutoGen' object has no attribute '_FixedPcdVoidTypeDict'. Build fail when PCD use in the [DEPEX] section of INF files Cc: Bob Feng Cc: Liming Gao Contributed-under:

Re: [edk2] [PATCH v2 00/17] implement standalone MM versions of the variable runtime drivers

2019-01-15 Thread Wang, Jian J
Ard, For patch 1,5,6,7,8,12,13,14,15,16,17 Reviewed-by: Jian J Wang > -Original Message- > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > Sent: Monday, January 14, 2019 9:28 PM > To: edk2-devel@lists.01.org > Cc: Ard Biesheuvel ; Laszlo Ersek > ; Leif Lindholm ; Kinney, > Mi

[edk2] [PATCH v2 3/5] ArmVirtPkg: drop reference to ArmPkg/DefaultExceptionHandlerLibBase

2019-01-15 Thread Ard Biesheuvel
Drop the reference to ArmPkg/DefaultExceptionHandlerLibBase, which is no longer used anywhere now that DebugAgentSymbolsBaseLib no longer incorporates a vector table and exception handling. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lin

[edk2] [PATCH v2 5/5] ArmPkg/DefaultExceptionHandlerLib: use console if available

2019-01-15 Thread Ard Biesheuvel
Print the minimal 'exception occurred' message to the console instead of straight to the serial port if the console is available. This makes such messages visible on systems where the console is graphical and the serial is not connected. Contributed-under: TianoCore Contribution Agreement 1.1 Sign

[edk2] [PATCH v2 4/5] ArmPkg/DefaultExceptionHandlerLib: drop BASE variant

2019-01-15 Thread Ard Biesheuvel
Drop the redundant BASE variant, which is no longer used anywhere now that DebugAgentSymbolsBaseLib no longer incorporates a vector table and exception handling. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- ArmPkg/ArmPkg.ds

[edk2] [PATCH v2 2/5] ArmPkg/DefaultExceptionHandlerLib: declare the permitted usage context

2019-01-15 Thread Ard Biesheuvel
Declare that this library is only usable in the context of DXE core or a DXE driver. Set the MODULE_TYPE to BASE: this only affects the prototype of the constructor (if present) but doesn't actually restrict the usage context otherwise. Contributed-under: TianoCore Contribution Agreement 1.1 Signe

[edk2] [PATCH v2 1/5] ArmPkg/DebugAgentSymbolsBaseLib: remove exception handling

2019-01-15 Thread Ard Biesheuvel
DebugAgentSymbolsBaseLib is an optional library that is in charge of extracting debug headers from SEC and PEI_CORE images in memory so the filename and the offset in memory can be reported via the UART, allowing a developer to load debugging symbols into his debugger. Interestingly enough, DebugA

[edk2] [PATCH v2 0/5] ArmPkg: use console for minimal 'exception occurred' message

2019-01-15 Thread Ard Biesheuvel
When running with a graphical console, no message whatsoever is printed when the systems hits an unexpected exception and hangs, because even the minimal 'exception occurred' message is only sent to the serial port. So let's fix that, by updating DefaultExceptionHandlerLib to take the availability

[edk2] [PATCH v2 1/2] MdeModulePkg/NetLib.h: Fix the possible NULL pointer dereference issue.

2019-01-15 Thread Jiaxin Wu
v2: Fix the wrong condition in for cycle. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1456 For the NET_LIST_FOR_EACH & NET_LIST_FOR_EACH_SAFE, "Entry" should be checked whether it's NULL or not instead of using the pointer directly. Cc: Wu Hao A Cc: Gao Liming Cc: Ye Ting Cc: Fu Siyua

Re: [edk2] [PATCH] MinPlatformPkg: Support TCO base locked by FSP

2019-01-15 Thread Chiu, Chasel
Good point! I will send another patch for this. Thanks! Chasel > -Original Message- > From: Kubacki, Michael A > Sent: Tuesday, January 15, 2019 4:12 PM > To: Chiu, Chasel ; edk2-devel@lists.01.org > Cc: Desimone, Nathaniel L ; Zeng, Star > > Subject: RE: [PATCH] MinPlatformPkg: Suppo

Re: [edk2] [PATCH V2 07/15] MdeModulePkg Variable: type case VolatileBase to UINTN directly

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > Simplify > ((UINTN) ((UINT8 *) VolatileBase + VolatileBase->Size)) > to > ((UINTN) VolatileBase + VolatileBase->Size) > > This patch prepares for adding emulated variable NV mode > support in VariableRuntimeDxe. > > Cc: Jian J Wang > Cc: Hao Wu > Cc: Laszlo

Re: [edk2] [PATCH V2 06/15] MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1323 > Merge EmuVariable and Real variable driver. > > CacheOffset could be removed in UpdateVariable() after > // > // update the memory copy of Flash region. > // > CopyMem ( > (UINT8 *)mNvVariableCache +

Re: [edk2] [PATCH] MinPlatformPkg: Support TCO base locked by FSP

2019-01-15 Thread Kubacki, Michael A
According to the function description, PchTcoBaseSet ( ) should ensure the following steps are done before returning success: 1. set Smbus PCI offset 54h [8] to enable TCO base address. 2. program Smbus PCI offset 50h [15:5] to TCO base address. 3. set Smbus PCI offset 54h [8] to enable TCO

Re: [edk2] [PATCH V2 07/15] MdeModulePkg Variable: type case VolatileBase to UINTN directly

2019-01-15 Thread Wang, Jian J
Reviewed-by: Jian J Wang > -Original Message- > From: Zeng, Star > Sent: Monday, January 14, 2019 11:20 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Wang, Jian J ; > Wu, Hao A ; Laszlo Ersek > Subject: [PATCH V2 07/15] MdeModulePkg Variable: type case VolatileBase to > UINTN d

Re: [edk2] [PATCH V2 01/15] MdeModulePkg Variable: Add some missing changes for 9b18845

2019-01-15 Thread Laszlo Ersek
On 01/14/19 16:19, Star Zeng wrote: > To improve performance 9b18845a4b4cd1d2cf004cbc1cadf8a93ccb37ea > changed the code which read from physical MMIO address to read > from memory cache, but it missed some places that could be updated > at the same away for performance optimization. This commit m

Re: [edk2] [PATCH V2 06/15] MdeModulePkg Variable: Remove CacheOffset in UpdateVariable()

2019-01-15 Thread Wang, Jian J
Star, Just a tiny comment below. With it's addressed, Reviewed-by: Jian J Wang > -Original Message- > From: Zeng, Star > Sent: Monday, January 14, 2019 11:20 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Wang, Jian J ; > Wu, Hao A ; Laszlo Ersek > Subject: [PATCH V2 06/15] MdeMo

Re: [edk2] [PATCH V2 04/15] MdeModulePkg Variable: Abstract VariableWriteServiceInitializeDxe/Smm

2019-01-15 Thread Wang, Jian J
Reviewed-by: Jian J Wang > -Original Message- > From: Zeng, Star > Sent: Monday, January 14, 2019 11:20 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Wang, Jian J ; > Wu, Hao A > Subject: [PATCH V2 04/15] MdeModulePkg Variable: Abstract > VariableWriteServiceInitializeDxe/Smm >

  1   2   >