[edk2] [Patch] UefiCpuPkg/Mplib.c: Perform complete initialization when enable AP.

2017-08-29 Thread Eric Dong
PI has description said If an AP is enabled, then the implementation must guarantee that a complete initialization sequence is performed on the AP, so the AP is in a state that is compatible with an MP operating system. Current implementation just set the AP to idle state when enable this AP which

Re: [edk2] [PATCH 0/6] OvmfPkg/VirtioGpuDxe: map system memory addresses to device addresses

2017-08-29 Thread Laszlo Ersek
On 08/28/17 15:24, Laszlo Ersek wrote: > Repo: https://github.com/lersek/edk2.git > Branch: virtio_gpu_map > > This series brings IOMMU support to VirtioGpuDxe. The interesting part > is patch#5. > > I formatted the patches with function context, for easier review. > > I regression-tested this se

Re: [edk2] [PATCH v2 4/5] MdePkg/PciSegmentLib: Add instances that consumes PciSegmentInfoLib

2017-08-29 Thread Andrew Fish
> On Aug 29, 2017, at 1:39 PM, Laszlo Ersek wrote: > > On 08/29/17 20:51, Ard Biesheuvel wrote: >> Hi, >> >> Some comments below. >> >> On 25 August 2017 at 09:57, Ruiyu Ni wrote: >>> The patch adds two PciSegmentLib instances that consumes >>> PciSegmentInfoLib to provide multiple segments P

Re: [edk2] [PATCH 1/1] OvmfPkg/QemuFwCfgDxeLib: SEV: zero FW_CFG_DMA_ACCESS before decrypting it

2017-08-29 Thread Laszlo Ersek
On 08/29/17 16:02, Brijesh Singh wrote: > > > On 08/28/2017 07:39 AM, Laszlo Ersek wrote: >> There's a small window between >> >> - AllocFwCfgDmaAccessBuffer() mapping the new FW_CFG_DMA_ACCESS object >> for >>    common buffer operation (i.e., decrypting it), and >> >> - InternalQemuFwCfgDmaByte

Re: [edk2] [PATCH v2 4/5] MdePkg/PciSegmentLib: Add instances that consumes PciSegmentInfoLib

2017-08-29 Thread Laszlo Ersek
On 08/29/17 20:51, Ard Biesheuvel wrote: > Hi, > > Some comments below. > > On 25 August 2017 at 09:57, Ruiyu Ni wrote: >> The patch adds two PciSegmentLib instances that consumes >> PciSegmentInfoLib to provide multiple segments PCI configuration >> access. >> >> BasePciSegmentLibSegmentInfo in

Re: [edk2] [PATCH edk2-platforms 1/2] Platform/Hikey: remove UncachedMemoryAllocationLib resolution

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 20:47, Leif Lindholm wrote: > On Tue, Aug 29, 2017 at 05:42:22PM +0100, Ard Biesheuvel wrote: >> We no longer need a resolution for UncachedMemoryAllocationLib so >> remove it. >> >> Contributed-under: TianoCore Contribution Agreement 1.1 >> Signed-off-by: Ard Biesheuvel > >

Re: [edk2] [PATCH edk2-platforms 1/2] Platform/Hikey: remove UncachedMemoryAllocationLib resolution

2017-08-29 Thread Leif Lindholm
On Tue, Aug 29, 2017 at 05:42:22PM +0100, Ard Biesheuvel wrote: > We no longer need a resolution for UncachedMemoryAllocationLib so > remove it. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel For the series: Reviewed-by: Leif Lindholm > --- > Plat

Re: [edk2] [PATCH edk2-platforms] Platform/OverdriveBoard: move device tree compilation into build

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 20:26, Alan Ott wrote: > On 08/29/2017 12:27 PM, Ard Biesheuvel wrote: >> >> Use the proposed BaseTools support for device tree compilation to >> build the device tree binary from source at build time. Give it its >> own .inf and a build rule so the tools take care of everythi

Re: [edk2] [PATCH edk2-platforms] Platform/OverdriveBoard: move device tree compilation into build

2017-08-29 Thread Alan Ott
On 08/29/2017 12:27 PM, Ard Biesheuvel wrote: Use the proposed BaseTools support for device tree compilation to build the device tree binary from source at build time. Give it its own .inf and a build rule so the tools take care of everything. Contributed-under: TianoCore Contribution Agreement

Re: [edk2] [PATCH v2 4/5] MdePkg/PciSegmentLib: Add instances that consumes PciSegmentInfoLib

2017-08-29 Thread Ard Biesheuvel
Hi, Some comments below. On 25 August 2017 at 09:57, Ruiyu Ni wrote: > The patch adds two PciSegmentLib instances that consumes > PciSegmentInfoLib to provide multiple segments PCI configuration > access. > > BasePciSegmentLibSegmentInfo instance is a BASE library. > DxeRuntimePciSegmentLibSegme

Re: [edk2] [PATCH] BaseTools/Gcc ARM AARCH64: add support for building device tree binaries

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 18:18, Laszlo Ersek wrote: > On 08/29/17 15:36, Ard Biesheuvel wrote: >> While modern AARCH64 server systems use ACPI for describing the platform >> topology to the OS, ARM systems and AARCH64 outside of the server space >> mostly use device tree binaries, which are compiled f

Re: [edk2] [PATCH] BaseTools/Gcc ARM AARCH64: add support for building device tree binaries

2017-08-29 Thread Laszlo Ersek
On 08/29/17 15:36, Ard Biesheuvel wrote: > While modern AARCH64 server systems use ACPI for describing the platform > topology to the OS, ARM systems and AARCH64 outside of the server space > mostly use device tree binaries, which are compiled from device tree > source files using the device tree c

Re: [edk2] [PATCH 0/2] Implement NULL pointer detection feature

2017-08-29 Thread Tim Lewis
Just a +1 for 4 separate PCDs. Tim -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Johnson, Brian (EXL - Eagan) Sent: Tuesday, August 29, 2017 10:12 AM To: Kinney, Michael D ; Yao, Jiewen ; Wang, Jian J ; edk2-devel@lists.01.org Subject: Re: [e

Re: [edk2] [PATCH 0/2] Implement NULL pointer detection feature

2017-08-29 Thread Johnson, Brian (EXL - Eagan)
It makes no difference to me. But it sounds more flexible and less cumbersome to use 4 PCDs. That way you don't have to define the meanings of individual bits, in the code or in the .dec file. And you could use different PCD types for the different PCDs, eg. FeatureFlag or FixedAtBuild for P

Re: [edk2] [PATCH] Platform/Armada/Pp2Dxe: switch to ArmDmaLib

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:53, Marcin Wojtas wrote: > 2017-08-29 17:48 GMT+02:00 Ard Biesheuvel : >> On 29 August 2017 at 16:47, Marcin Wojtas wrote: >>> 2017-08-29 17:46 GMT+02:00 Leif Lindholm : On Fri, Aug 25, 2017 at 01:25:54PM +0100, Ard Biesheuvel wrote: > Instead of hardcoding the no

Re: [edk2] [PATCH 0/5] ArmPkg et al: remove UncachedMemoryallocationLib

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:47, Ard Biesheuvel wrote: > On 29 August 2017 at 16:44, Leif Lindholm wrote: >> On Fri, Aug 25, 2017 at 01:10:09PM +0100, Ard Biesheuvel wrote: >>> This series is a followup to 'ArmPkg/ArmDmaLib: remove dependency on >>> UncachedMemoryAllocationLib' sent out yesterday, and

[edk2] [PATCH edk2-platforms 1/2] Platform/Hikey: remove UncachedMemoryAllocationLib resolution

2017-08-29 Thread Ard Biesheuvel
We no longer need a resolution for UncachedMemoryAllocationLib so remove it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/Hisilicon/HiKey/HiKey.dsc | 2 -- 1 file changed, 2 deletions(-) diff --git a/Platform/Hisilicon/HiKey/HiKey.dsc b/Pla

[edk2] [PATCH edk2-platforms 2/2] Platform/ARM: remove UncachedMemoryAllocationLib resolution

2017-08-29 Thread Ard Biesheuvel
No ARM platforms depend on UncachedMemoryAllocationLib anymore, so remove the library class resolution for it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [edk2] [PATCH] SecurityPkg: Add ARM/AARCH64 arch to enable RngTest module build.

2017-08-29 Thread Laszlo Ersek
On 08/29/17 10:17, Long Qin wrote: > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=680 > > Adding ARM and AARCH64 to SUPPORTED_ARCHITECTURES in SecurityPkg.dsc > to enable RngTest module build, since this is one platform-independent > application. > > Cc: Chao Zhang > Cc: Laszlo Ersek > C

Re: [edk2] [Patch] BaseTools: Enable --whole-archive in GCC tool chain as the default option

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:47, Kinney, Michael D wrote: > Ard, > > If there is a concern about the size impact, we can add an extra > Link step that uses --whole-archive to check for duplicate symbols, > but the link step used to generate final image would not use > --whole-archive. > If the size de

Re: [edk2] [PATCH] Silicon/Hisilicon: switch to NonDiscoverable driver for EHCI

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:02, Ard Biesheuvel wrote: > On 29 August 2017 at 16:00, Leif Lindholm wrote: >> On Thu, Aug 24, 2017 at 09:21:32PM +0100, Ard Biesheuvel wrote: >>> Replace the open coded PCI 'emulation' with a simple call into >>> the NonDiscoverable device registration library, and fix u

[edk2] [PATCH edk2-platforms] Platform/OverdriveBoard: move device tree compilation into build

2017-08-29 Thread Ard Biesheuvel
Use the proposed BaseTools support for device tree compilation to build the device tree binary from source at build time. Give it its own .inf and a build rule so the tools take care of everything. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform

Re: [edk2] [PATCH 0/2] Implement NULL pointer detection feature

2017-08-29 Thread Kinney, Michael D
Brian, Do you prefer 4 new PCDs or one new PCD with a bitmask to enable detection in different phases? Mike > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On > Behalf Of Johnson, Brian (EXL - Eagan) > Sent: Tuesday, August 29, 2017 8:17 AM > To: Yao, Jie

Re: [edk2] [PATCH] SourceLevelDebugPkg/DebugAgentCommon: Use global variable for revision

2017-08-29 Thread Kinney, Michael D
Ard, I agree. Adding const would be an improvement too. But I would prefer to not add a global variable at all. When could this check ever evaluate to false? Compression has been supported for a long time now. It appears that a developer would have to modify SourceLevelDebugPkg\Include\Transf

Re: [edk2] [PATCH 2/3] Ovmfpkg/VirtioScsiDxe: map virtio-scsi request and response buffers

2017-08-29 Thread Laszlo Ersek
Hi Brijesh, On 08/28/17 13:26, Brijesh Singh wrote: > When device is behind the IOMMU, driver is require to pass the device > address of virtio request, response and any memory referenced by those > request/response to the bus master. > > The patch uses IOMMU-like member functions from VIRTIO_DEVI

Re: [edk2] [PATCH] Platform/Armada/Pp2Dxe: switch to ArmDmaLib

2017-08-29 Thread Marcin Wojtas
2017-08-29 17:48 GMT+02:00 Ard Biesheuvel : > On 29 August 2017 at 16:47, Marcin Wojtas wrote: >> 2017-08-29 17:46 GMT+02:00 Leif Lindholm : >>> On Fri, Aug 25, 2017 at 01:25:54PM +0100, Ard Biesheuvel wrote: Instead of hardcoding the non-cache coherent nature of this device by invoking

Re: [edk2] [PATCH] Platform/Armada/Pp2Dxe: switch to ArmDmaLib

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:47, Marcin Wojtas wrote: > 2017-08-29 17:46 GMT+02:00 Leif Lindholm : >> On Fri, Aug 25, 2017 at 01:25:54PM +0100, Ard Biesheuvel wrote: >>> Instead of hardcoding the non-cache coherent nature of this device >>> by invoking UncachedMemoryAllocationLib directly for allocatin

Re: [edk2] [Patch] BaseTools: Enable --whole-archive in GCC tool chain as the default option

2017-08-29 Thread Kinney, Michael D
Ard, If there is a concern about the size impact, we can add an extra Link step that uses --whole-archive to check for duplicate symbols, but the link step used to generate final image would not use --whole-archive. Mike > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@

Re: [edk2] [PATCH] Platform/Armada/Pp2Dxe: switch to ArmDmaLib

2017-08-29 Thread Marcin Wojtas
2017-08-29 17:46 GMT+02:00 Leif Lindholm : > On Fri, Aug 25, 2017 at 01:25:54PM +0100, Ard Biesheuvel wrote: >> Instead of hardcoding the non-cache coherent nature of this device >> by invoking UncachedMemoryAllocationLib directly for allocating >> shared buffers, switch to DmaLib, which encapsulat

Re: [edk2] [PATCH 0/5] ArmPkg et al: remove UncachedMemoryallocationLib

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:44, Leif Lindholm wrote: > On Fri, Aug 25, 2017 at 01:10:09PM +0100, Ard Biesheuvel wrote: >> This series is a followup to 'ArmPkg/ArmDmaLib: remove dependency on >> UncachedMemoryAllocationLib' sent out yesterday, and removes library >> entirely. >> >> There are two reason

Re: [edk2] [PATCH] Platform/Armada/Pp2Dxe: switch to ArmDmaLib

2017-08-29 Thread Leif Lindholm
On Fri, Aug 25, 2017 at 01:25:54PM +0100, Ard Biesheuvel wrote: > Instead of hardcoding the non-cache coherent nature of this device > by invoking UncachedMemoryAllocationLib directly for allocating > shared buffers, switch to DmaLib, which encapsulates this at a > more abstract level. This allows

Re: [edk2] [PATCH 0/5] ArmPkg et al: remove UncachedMemoryallocationLib

2017-08-29 Thread Leif Lindholm
On Fri, Aug 25, 2017 at 01:10:09PM +0100, Ard Biesheuvel wrote: > This series is a followup to 'ArmPkg/ArmDmaLib: remove dependency on > UncachedMemoryAllocationLib' sent out yesterday, and removes library > entirely. > > There are two reasons for this: > - UncachedMemoryAllocationLib is often abu

Re: [edk2] [PATCH edk2-platforms] Silicon/Hisilicon/SasV1Dxe: remove bogus UncachedMemoryAllocationLib ref

2017-08-29 Thread Leif Lindholm
On Tue, Aug 29, 2017 at 04:08:07PM +0100, Ard Biesheuvel wrote: > This driver does not actually use UncachedMemoryAllocationLib anymore, > so remove the bogus reference. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm > ---

Re: [edk2] [PATCH 0/2] Implement NULL pointer detection feature

2017-08-29 Thread Johnson, Brian (EXL - Eagan)
Thank you for implementing this feature! It is very helpful for catching pointer-related problems. We have used a similar scheme on our systems for years, and caught several important bugs. Some comments: * It's possible to implement similar protections in PEI (IA32) by modifying the GDT de

[edk2] [PATCH edk2-platforms] Silicon/Hisilicon/SasV1Dxe: remove bogus UncachedMemoryAllocationLib ref

2017-08-29 Thread Ard Biesheuvel
This driver does not actually use UncachedMemoryAllocationLib anymore, so remove the bogus reference. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Hisilicon/Drivers/SasV1Dxe/SasV1Dxe.c | 1 - Silicon/Hisilicon/Drivers/SasV1Dxe/SasV1Dxe.inf |

Re: [edk2] [PATCH] Silicon/Hisilicon: switch to NonDiscoverable driver for EHCI

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 16:00, Leif Lindholm wrote: > On Thu, Aug 24, 2017 at 09:21:32PM +0100, Ard Biesheuvel wrote: >> Replace the open coded PCI 'emulation' with a simple call into >> the NonDiscoverable device registration library, and fix up all >> platform .DSCs/FDFs accordingly. >> >> Contribu

Re: [edk2] [PATCH] SourceLevelDebugPkg/DebugAgentCommon: Use global variable for revision

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 14:09, Hao Wu wrote: > Since some static code checkers complain that comparing two macros will > generate a constant result, this commit uses a global variable to > reflect the revision information of the debug agent, rather than using a > macro directly. > > Cc: Ruiyu Ni > C

[edk2] Questions about CorebootPayloadPkg

2017-08-29 Thread Tahnia Lichtenstein
Hi, I am trying to combine coreboot and UDK2017 for the Intel Apollo Lake CRB. I have managed to successfully compile both source trees and stitched it with the Intel FIT.exe. It boots Windows 10 and the EFI Shell successfully, but I get the following EDK II progress code error via UART debug por

Re: [edk2] [PATCH] Silicon/Hisilicon: switch to NonDiscoverable driver for EHCI

2017-08-29 Thread Leif Lindholm
On Thu, Aug 24, 2017 at 09:21:32PM +0100, Ard Biesheuvel wrote: > Replace the open coded PCI 'emulation' with a simple call into > the NonDiscoverable device registration library, and fix up all > platform .DSCs/FDFs accordingly. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed

Re: [edk2] [PATCH 0/3] Update CWD and current mapping properly

2017-08-29 Thread Carsey, Jaben
Series. Reviewed-by: Jaben Carsey > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ruiyu > Ni > Sent: Tuesday, August 29, 2017 1:11 AM > To: edk2-devel@lists.01.org > Subject: [edk2] [PATCH 0/3] Update CWD and current mapping properly > Import

Re: [edk2] [PATCH 1/1] OvmfPkg/QemuFwCfgDxeLib: SEV: zero FW_CFG_DMA_ACCESS before decrypting it

2017-08-29 Thread Brijesh Singh
On 08/28/2017 07:39 AM, Laszlo Ersek wrote: There's a small window between - AllocFwCfgDmaAccessBuffer() mapping the new FW_CFG_DMA_ACCESS object for common buffer operation (i.e., decrypting it), and - InternalQemuFwCfgDmaBytes() setting the fields of the object. In this window, earlier

[edk2] [PATCH] BaseTools/Gcc ARM AARCH64: add support for building device tree binaries

2017-08-29 Thread Ard Biesheuvel
While modern AARCH64 server systems use ACPI for describing the platform topology to the OS, ARM systems and AARCH64 outside of the server space mostly use device tree binaries, which are compiled from device tree source files using the device tree compiler. Currently, such source files and binari

Re: [edk2] [Patch] BaseTools: Enable --whole-archive in GCC tool chain as the default option

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 08:41, Gao, Liming wrote: > Ard: > This is the compiler check option, not debug option. I suggest to add it > for all configuration. > OK, fair enough. ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mail

Re: [edk2] [PATCH] SourceLevelDebugPkg/DebugAgentCommon: Use global variable for revision

2017-08-29 Thread Ni, Ruiyu
Reviewed-by: Ruiyu Ni -Original Message- From: Wu, Hao A Sent: Tuesday, August 29, 2017 9:09 PM To: edk2-devel@lists.01.org Cc: Wu, Hao A ; Ni, Ruiyu Subject: [PATCH] SourceLevelDebugPkg/DebugAgentCommon: Use global variable for revision Since some static code checkers complain that c

[edk2] [PATCH] SourceLevelDebugPkg/DebugAgentCommon: Use global variable for revision

2017-08-29 Thread Hao Wu
Since some static code checkers complain that comparing two macros will generate a constant result, this commit uses a global variable to reflect the revision information of the debug agent, rather than using a macro directly. Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 S

Re: [edk2] [PATCH 3/3] OvmfPkg/VirtioScsiDxe: negotiate VIRTIO_F_IOMMU_PLATFORM

2017-08-29 Thread Laszlo Ersek
On 08/28/17 13:26, Brijesh Singh wrote: > VirtioScsiDxe driver has been updated to use IOMMU-like member functions > from VIRTIO_DEVICE_PROTOCOL to translate the system physical address to > device address. We do not need to do anything special when > VIRTIO_F_IOMMU_PLATFORM bit is present hence tr

Re: [edk2] [PATCH 1/3] OvmfPkg/VirtioScsiDxe: map VRING using VirtioRingMap()

2017-08-29 Thread Laszlo Ersek
On 08/28/17 13:26, Brijesh Singh wrote: > When device is behind the IOMMU then driver need to pass the device > address when programing the bus master. The patch uses VirtioRingMap() to > map the VRING system physical address to device address. > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: To

Re: [edk2] iSCSI behavior

2017-08-29 Thread Santhapur Naveen
Hi Ting, Thanks for your reply. I got your point but my question(s) are 1) I agree that if I add two attempts for the same NIC, there will be a warning popup. But my question is whether the second attempt also be tried for connection if first attempt fails to connect? 2) Is it valid to add two a

Re: [edk2] [PATCH] IntelSiliconPkg/PlatformVTdSample: Avoid using constant result 'if'

2017-08-29 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com > -Original Message- > From: Wu, Hao A > Sent: Tuesday, August 29, 2017 7:44 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Yao, Jiewen > Subject: [PATCH] IntelSiliconPkg/PlatformVTdSample: Avoid using constant > result > 'if' > > In this sample dri

[edk2] [PATCH] IntelSiliconPkg/PlatformVTdSample: Avoid using constant result 'if'

2017-08-29 Thread Hao Wu
In this sample driver, if (0) {...} else {...} statements were used to illustrate two different using scenarios. This comment refines the coding style by substituting the 'if (0)' statement with comments to select sample codes for different cases. Cc: Jiewen Yao Contributed-under: TianoCore Cont

Re: [edk2] [PATCH] SecurityPkg: Add ARM/AARCH64 arch to enable RngTest module build.

2017-08-29 Thread Ard Biesheuvel
On 29 August 2017 at 09:17, Long Qin wrote: > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=680 > > Adding ARM and AARCH64 to SUPPORTED_ARCHITECTURES in SecurityPkg.dsc > to enable RngTest module build, since this is one platform-independent > application. > > Cc: Chao Zhang > Cc: Laszlo Er

Re: [edk2] iSCSI behavior

2017-08-29 Thread Ye, Ting
Hi Naveen, For 1), if you configure two attempts with iSCSI Mode "Enabled", you will receive an warning that you have configured two attempts using same NIC. If you configure two attempts with iSCSI Mode "Enabled for MPIO", it is valid, and if the first attempt failed, the second attempt will b

[edk2] UART Baud rate change code flow

2017-08-29 Thread Pankaj Bansal
Hello Edk2 team, We are trying to change the UART Baud rate dynamically from UEFI shell using "sermode" command in our ARM64 based platform. I see the code flow of sermode call as below : ShellCommandRunSerMode() -> SerialSetAttributes() -> SerialPortSetAttributes()

[edk2] [PATCH] SecurityPkg: Add ARM/AARCH64 arch to enable RngTest module build.

2017-08-29 Thread Long Qin
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=680 Adding ARM and AARCH64 to SUPPORTED_ARCHITECTURES in SecurityPkg.dsc to enable RngTest module build, since this is one platform-independent application. Cc: Chao Zhang Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.

[edk2] [PATCH 0/3] Update CWD and current mapping properly

2017-08-29 Thread Ruiyu Ni
The patches fix several bugs that caused by not updating CWD and current mapping properly. Huajing Li (3): ShellPkg: Rename gShellCurDir to gShellCurMapping ShellPkg: Fix bug that fails to change CWD after "map -r". ShellPkg: Update CWD and current mapping when commands return ShellPkg/App

[edk2] [PATCH 3/3] ShellPkg: Update CWD and current mapping when commands return

2017-08-29 Thread Ruiyu Ni
From: Huajing Li Some commands may cause current directory or even current mapping become invalid. For example, "MAP" after unplugging the USB thumb key may cause current mapping "FS0:" disappear. This patch updates the CWD and current mapping when commands return. It also causes the command prom

[edk2] [PATCH 1/3] ShellPkg: Rename gShellCurDir to gShellCurMapping

2017-08-29 Thread Ruiyu Ni
From: Huajing Li Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Huajing Li Reviewed-by: Ruiyu Ni --- ShellPkg/Application/Shell/ShellProtocol.c | 8 ShellPkg/Include/Library/ShellCommandLib.h | 4 ++-- ShellPkg/Library/UefiShellC

[edk2] [PATCH 2/3] ShellPkg: Fix bug that fails to change CWD after "map -r".

2017-08-29 Thread Ruiyu Ni
From: Huajing Li When "map -r" runs, the mapping list is re-created but gShellCurMapping still points to the old mapping list which is already destroyed. The patch updates the gShellCurMapping to point to the correct location in the new mapping list. Contributed-under: TianoCore Contribution Agr

Re: [edk2] [Patch] BaseTools: Enable --whole-archive in GCC tool chain as the default option

2017-08-29 Thread Gao, Liming
Ard: This is the compiler check option, not debug option. I suggest to add it for all configuration. Thanks Liming >-Original Message- >From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] >Sent: Tuesday, August 29, 2017 12:59 AM >To: Gao, Liming >Cc: Laszlo Ersek ; edk2-devel@lists

Re: [edk2] [PATCH v2] MdeModulePkg/UefiHiiLib: Fix incorrect check for string length

2017-08-29 Thread Dong, Eric
Reviewed-by: Eric Dong -Original Message- From: Bi, Dandan Sent: Tuesday, August 29, 2017 2:45 PM To: edk2-devel@lists.01.org Cc: Dong, Eric ; Gao, Liming Subject: [PATCH v2] MdeModulePkg/UefiHiiLib: Fix incorrect check for string length REF: https://bugzilla.tianocore.org/show_bug.cg