[edk2] [PATCH] ShellPkg: Follow spec to remove the last '\' char in return name of GetCurDir().

2015-10-19 Thread Qiu Shumin
In Shell spec 2.1 the return name of EFI_SHELL_PROTOCOL.GetCurDir() is defined as 'fs0:\current-dir' while in current implementation it's 'fs0:\current-dir\'. To follow spec the patch removed the redundant '\' char. Since it has been broken for a long time, some codes may depend on the broken b

Re: [edk2] [PATCH v3 03/52] UefiCpuPkg: PiSmmCpuDxeSmm: do not execute RSM from 64-bit mode

2015-10-19 Thread Yao, Jiewen
Yes. I have confirmed this is a typo in IA32 SDM. Good catch. The code could be kept as is, since this is no real impact. Thank you Yao Jiewen -Original Message- From: Fan, Jeff Sent: Monday, October 19, 2015 10:05 PM To: Paolo Bonzini; Yao, Jiewen; Laszlo Ersek; edk2-de...@ml01.01.org

[edk2] OVMF VM with a custom PCI ROM attached hangs up for some time during load.

2015-10-19 Thread Blank Field
checked the ROM, it is the same it was a year ago. Software versions: QEMU emulator version 2.3.1 (qemu-2.3.1-6.fc22), Copyright (c) 2003-2008 Fabrice Bellard EDK2.git: 20151019.b1270.g368002a libvirtd (libvirt) 1.2.13.1 (doesn't matter much in that case) Linux crossfire 4.2.3-200.fc22.x86_64

Re: [edk2] SMM core problems

2015-10-19 Thread Kinney, Michael D
Dimitri, Yes. A virtual mapping to the physical pages with the RT attribute may be provided by the OS if the OS calls SetVirtualAddressMap(). The UEFI Spec quote below shows that some of the structures passed from firmware to OS contain physical pointers that are not fixed up when SetVirtualA

Re: [edk2] MdePkg include definition issue in UefiPxe.h?

2015-10-19 Thread Michael Brown
On 19/10/15 18:20, Andrew Fish wrote: I was porting some code the other day and I hit a compiler warning that PXE_OPFLAGS_STATION_ADDRESS_READ and PXE_OPFLAGS_STATION_ADDRESS_WRITE had the same value? Is this correct, I didn’t see the value in the UEFI spec? https://github.com/tianocore/edk2/b

Re: [edk2] [PATCH v4 17/19] UefiCpuPkg: Add PiSmmCpuDxeSmm module no IA32/X64 files

2015-10-19 Thread Kinney, Michael D
Laszlo, Thanks for the all git hints and advice. I have split out the DSC update to the UefiCpuPkg, so it comes after the PiSmmCpuiDxeSmm module is buildable. Thanks, Mike >-Original Message- >From: Laszlo Ersek [mailto:ler...@redhat.com] >Sent: Monday, October 19, 2015 7:51 AM >To: K

Re: [edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Kinney, Michael D
Laszlo, I have updated the commit message and I have updated source to use gBS->Stall() to be consistent with the rest of this module. I will come back to this module in the future and look into using the performance counter functions in the TimerLib and CpuPause(), so this module can minimize

Re: [edk2] [PATCH v4 03/19] UefiCpuPkg: CpuDxe: broadcast MTRR changes to APs

2015-10-19 Thread Kinney, Michael D
Laszlo, Thanks for the feedback. 1) I have updated the author using --author='Laszlo Ersek ' 2) I changed the order of the commits so the MP race condition is fixed before your patch to sync MTRRs to all APs. Best regards, Mike >-Original Message- >From: edk2-devel [mailto:edk2-deve

[edk2] MdePkg include definition issue in UefiPxe.h?

2015-10-19 Thread Andrew Fish
I was porting some code the other day and I hit a compiler warning that PXE_OPFLAGS_STATION_ADDRESS_READ and PXE_OPFLAGS_STATION_ADDRESS_WRITE had the same value? Is this correct, I didn’t see the value in the UEFI spec? https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Uefi/UefiPxe.h

Re: [edk2] [PATCH] Update the ACPI device information for ARM Juno.

2015-10-19 Thread Leif Lindholm
On Mon, Oct 19, 2015 at 09:36:00AM -0500, Jeremy Linton wrote: > These patches correct a number of problems with the JUNO ACPI tables. > > First, put CCA attributes on the devices which can do DMA. This is > because the linux kernel now requires ARM64 devices specify a coherency > model. Without C

Re: [edk2] [PATCH v4 17/19] UefiCpuPkg: Add PiSmmCpuDxeSmm module no IA32/X64 files

2015-10-19 Thread Laszlo Ersek
On 10/19/15 16:20, Laszlo Ersek wrote: > On 10/19/15 09:44, Michael Kinney wrote: >> Add module that initializes a CPU for the SMM environment and >> installs the first level SMI handler. This module along with the >> SMM IPL and SMM Core provide the services required for >> DXE_SMM_DRIVERS to reg

Re: [edk2] [PATCH v4 16/19] UefiCpuPkg: Update DEC/DSC files for new includes and libraries

2015-10-19 Thread Laszlo Ersek
On 10/19/15 16:18, Laszlo Ersek wrote: > On 10/19/15 09:44, Michael Kinney wrote: >> Add SmmCpuPlatformHookLib library class declaration >> Add SmmCpuFeaturesLib library class declaration >> Add gEfiSmmCpuServiceProtocolGuid protocol declaration >> Build SmmCpuPlatformHookLibNull library instance >

[edk2] [PATCHv3] ArmPlatformPkg/ArmJunoPkg correct ACPI tables

2015-10-19 Thread Jeremy Linton
V3 Added appropriate contribution tag V2 Removed mali definition as its not been completely tested yet. V1 This set of patches updates the ACPI tables for the JunoR1 in keeping with recent changes to the linux kernel. These changes allow both the RHEL and mainline kernels to boot with a functio

[edk2] [PATCH] Update the ACPI device information for ARM Juno.

2015-10-19 Thread Jeremy Linton
These patches correct a number of problems with the JUNO ACPI tables. First, put CCA attributes on the devices which can do DMA. This is because the linux kernel now requires ARM64 devices specify a coherency model. Without CCA the devices are unable to perform DMA. Update the EHCI window to a fu

Re: [edk2] [PATCH 1/1] AppPkg: Allow interactive Python on platforms without STDERR

2015-10-19 Thread Carsey, Jaben
Code looks good. The format of the diff/patch seems quite different and harder to decode than the usual. Reviewed-by: Jaben Carsey > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Daryl McDaniel > Sent: Friday, October 16, 2015 4:19 PM > T

Re: [edk2] [PATCH v4 17/19] UefiCpuPkg: Add PiSmmCpuDxeSmm module no IA32/X64 files

2015-10-19 Thread Laszlo Ersek
On 10/19/15 09:44, Michael Kinney wrote: > Add module that initializes a CPU for the SMM environment and > installs the first level SMI handler. This module along with the > SMM IPL and SMM Core provide the services required for > DXE_SMM_DRIVERS to register hardware and software SMI handlers. >

Re: [edk2] [PATCH v4 16/19] UefiCpuPkg: Update DEC/DSC files for new includes and libraries

2015-10-19 Thread Laszlo Ersek
On 10/19/15 09:44, Michael Kinney wrote: > Add SmmCpuPlatformHookLib library class declaration > Add SmmCpuFeaturesLib library class declaration > Add gEfiSmmCpuServiceProtocolGuid protocol declaration > Build SmmCpuPlatformHookLibNull library instance > Build SmmCpuFeaturesLib library instance >

Re: [edk2] [PATCH v4 00/19] UefiCpuPkg: Add CPU SMM and SecCore

2015-10-19 Thread Fan, Jeff
This serial of patches s good to me! Thanks! Reviewed-by: Jeff Fan -Original Message- From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Michael Kinney Sent: Monday, October 19, 2015 3:45 PM To: edk2-devel@lists.01.org Subject: [edk2] [PATCH v4 00/19] UefiCpuPkg: Add

Re: [edk2] [PATCH v4 14/19] UefiCpuPkg: Add ACPI CPU Data include file

2015-10-19 Thread Laszlo Ersek
On 10/19/15 09:44, Michael Kinney wrote: > Add AcpuCpuData.h that defines a data structure that is shared between > modules and is required for ACPI S3 support. > APState field removed between V1 and V2 patch. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Michael Kin

Re: [edk2] [PATCH v3 03/52] UefiCpuPkg: PiSmmCpuDxeSmm: do not execute RSM from 64-bit mode

2015-10-19 Thread Fan, Jeff
Paolo, Thanks reporting this spec issue. We will forward it to SDM owner to address it. Thanks! Jeff -Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: Friday, October 16, 2015 4:38 PM To: Yao, Jiewen; Fan, Jeff; Laszlo Ersek; edk2-de...@ml01.01.org Cc: Kinney, Mi

Re: [edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Laszlo Ersek
comments below On 10/19/15 09:44, Michael Kinney wrote: > Address a race condition in first call to StartupAllAPs() with > SingleThread set to TRUE in the MP initialization. If the APs > have not entered their idle loop before StartupAllAPs() is called, > then some of the APs will be in an unexpe

Re: [edk2] [PATCH v4 03/19] UefiCpuPkg: CpuDxe: broadcast MTRR changes to APs

2015-10-19 Thread Laszlo Ersek
On 10/19/15 09:44, Michael Kinney wrote: > From: edk2-devel With SVN it won't matter much ultimately, but considering git per se, I think in your git tree my authorship was lost somehow. (The Signed-off-by below is correct though.) This can be fixed by: - rebasing the series - selecting "edit" fo

Re: [edk2] [PATCH v4 02/19] UefiCpuPkg: CpuDxe: Use PCD for AP detection timeout

2015-10-19 Thread Laszlo Ersek
On 10/19/15 09:44, Michael Kinney wrote: > Use PcdCpuApInitTimeOutInMicroSeconds instead of hardcoded 100ms for > the time to wait for all APs to respond to first INIT SIPI SIPI > wake request. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Michael Kinney > Cc: Jeff

Re: [edk2] [PATCH v3 03/52] UefiCpuPkg: PiSmmCpuDxeSmm: do not execute RSM from 64-bit mode

2015-10-19 Thread Laszlo Ersek
On 10/17/15 13:39, Paolo Bonzini wrote: > > > On 16/10/2015 18:39, Kinney, Michael D wrote: >> Paolo, >> >> Thanks for the reference. We believe this is a document issue. >> >> We would prefer to drop this patch. > > Fair enough. Laszlo, please keep it in your branch for ease of testing > but

Re: [edk2] [PATCH v3 04/52] UefiCpuPkg: CpuDxe: broadcast MTRR changes to APs

2015-10-19 Thread Laszlo Ersek
On 10/17/15 18:15, Kinney, Michael D wrote: > Laszlo, > > I agree with many of your points. > > If you prefer, I can consolidate the UefiCpuPkg updates including 6 > items you list below into my UefiCpuPkg series and get that checked > in first so you can focus on OVMF SMM. That's greatly apprec

Re: [edk2] [PATCH v3 26/52] OvmfPkg: SmmCpuFeaturesLib: customize state save map format

2015-10-19 Thread Paolo Bonzini
On 18/10/2015 09:38, Jordan Justen wrote: > > This adjusts the previously introduced state save map access functions, to > > account for QEMU and KVM's 64-bit state save map following the AMD spec > > rather than the Intel one. > > Shouldn't this layout match the processor being emulated? I think

Re: [edk2] [EDK II] implementing EFI_SMART_CARD_EDGE_PROTOCOL.GetData

2015-10-19 Thread Nilesh
Hi Andrew, Thank so much for your detailed reply. Best Regards, Nilesh -Original Message- From: af...@apple.com [mailto:af...@apple.com] Sent: Thursday, October 15, 2015 8:42 PM To: Nilesh Cc: edk2-devel@lists.01.org Subject: Re: [edk2] [EDK II] implementing EFI_SMART_CARD_EDGE_PROTOCO

Re: [edk2] SMM core problems

2015-10-19 Thread Dimitri
> > UEFI spec has clear description about the configuration table for SMBIOS. > > UEFI 2.5 page 103 and 104: > " > The following list shows the GUIDs for tables defined in some of the > industry standards. These > industry standards define tables accessed as UEFI Configuration Tables > on UEFI-

[edk2] [PATCH v4 07/19] UefiCpuPkg: Add PlatformSecLib

2015-10-19 Thread Michael Kinney
Add PlatformSecLib class and PlatformSecLibNull instance that is used by the SecCore. PlatformSecLibNull should not be used in a platform build. Instead, it should be used as a template for implementing a platform specific instance of the PlatformSecLib library class. Contributed-under: TianoCor

[edk2] [PATCH v4 15/19] UefiCpuPkg: Add CPU Hot Plug Data include file

2015-10-19 Thread Michael Kinney
Add CpuHotPlugData.h that defines a data structure that is shared between modules and is required for to support hot plug CPUs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCpuPkg/Include/CpuHotPlugData.h | 33 + 1

[edk2] [PATCH v4 09/19] UefiCpuPkg: Add SecCore module and supporting library class and PCD

2015-10-19 Thread Michael Kinney
Add declaration of PlatformSecLib library class to DEC file Add declaration of PcdPeiTemporaryRamStackSize PCD to DEC/UNI file Add build of PlatformSecLibNull to DSC file Add build of SecCore to DSC file Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- Ue

[edk2] [PATCH v4 14/19] UefiCpuPkg: Add ACPI CPU Data include file

2015-10-19 Thread Michael Kinney
Add AcpuCpuData.h that defines a data structure that is shared between modules and is required for ACPI S3 support. APState field removed between V1 and V2 patch. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Cc: Laszlo Ersek --- UefiCpuPkg/Include/AcpiCp

[edk2] [PATCH v4 11/19] UefiCpuPkg: Add SmmCpuPlatformHookLib

2015-10-19 Thread Michael Kinney
Add SmmCpuPlatformHookLib that provides platform specific functions that are used to initialize SMM and process SMIs. A Null instance of this library is provided that should work for most platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCp

[edk2] [PATCH v4 06/19] UefiCpuPkg: Add SMM Communication PPI and Handler Modules

2015-10-19 Thread Michael Kinney
Add modules that produce the SMM Communications PPI and install a SW SMI handler for SMM Communication requests Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- .../PiSmmCommunication/PiSmmCommunicationPei.c | 425 + .../PiSmmCommu

[edk2] [PATCH v4 19/19] UefiCpuPkg: Add PiSmmCpuDxeSmm module X64 files

2015-10-19 Thread Michael Kinney
Add module that initializes a CPU for the SMM environment and installs the first level SMI handler. This module along with the SMM IPL and SMM Core provide the services required for DXE_SMM_DRIVERS to register hardware and software SMI handlers. CPU specific features are abstracted through the Sm

[edk2] [PATCH v4 13/19] UefiCpuPkg: Add SMRAM Save State include file

2015-10-19 Thread Michael Kinney
Add SmramSaveStateMap.h file that defines the 32-bit and 64-bit CPU SMRAM Save State Map. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCpuPkg/Include/Register/SmramSaveStateMap.h | 190 1 file changed, 190 insertions(+) c

[edk2] [PATCH v4 18/19] UefiCpuPkg: Add PiSmmCpuDxeSmm module IA32 files

2015-10-19 Thread Michael Kinney
Add module that initializes a CPU for the SMM environment and installs the first level SMI handler. This module along with the SMM IPL and SMM Core provide the services required for DXE_SMM_DRIVERS to register hardware and software SMI handlers. CPU specific features are abstracted through the Sm

[edk2] [PATCH v4 04/19] UefiCpuPkg: CpuDxe: Wait for APs to enter idle loop

2015-10-19 Thread Michael Kinney
Address a race condition in first call to StartupAllAPs() with SingleThread set to TRUE in the MP initialization. If the APs have not entered their idle loop before StartupAllAPs() is called, then some of the APs will be in an unexpected state, and StartupAllAPs() will hang. This is the hang cond

[edk2] [PATCH v4 02/19] UefiCpuPkg: CpuDxe: Use PCD for AP detection timeout

2015-10-19 Thread Michael Kinney
Use PcdCpuApInitTimeOutInMicroSeconds instead of hardcoded 100ms for the time to wait for all APs to respond to first INIT SIPI SIPI wake request. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Cc: Jeff Fan Cc: Laszlo Ersek --- UefiCpuPkg/CpuDxe/ApStartup

[edk2] [PATCH v4 10/19] UefiCpuPkg: Add SmmCpuFeaturesLib

2015-10-19 Thread Michael Kinney
Add SmmCpuFeaturesLib that provides CPU specific functions that are used to initialize SMM and process SMIs. A functional implementation of this library class is provided that is based on the Intel(R) 64 and IA-32 Architectures Software Developer's Manual [jeff@intel.com: Fix code style issue

[edk2] [PATCH v4 03/19] UefiCpuPkg: CpuDxe: broadcast MTRR changes to APs

2015-10-19 Thread Michael Kinney
From: edk2-devel The Quark_EDKII_v1.1.0/IA32FamilyCpuBasePkg/CpuArchDxe driver applies any MTRR changes to APs, if the EFI_MP_SERVICES_PROTOCOL is available. We should do the same. Additionally, the broadcast should occur at MP startup as well, not only when MTRR settings are changed. The inspir

[edk2] [PATCH v4 01/19] UefiCpuPkg: Update CPU MP drivers to support single CPU configuration

2015-10-19 Thread Michael Kinney
Only perform AP detection if PcdCpuMaxLogicalProcessorNumber > 1 Only free AP related structures of they were allocated Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCpuPkg/CpuDxe/CpuMp.c | 49 -- UefiCp

[edk2] [PATCH v4 12/19] UefiCpuPkg: Add SMM CPU Service Protocol

2015-10-19 Thread Michael Kinney
Add definition of the SMM CPU Service Protocol that is produced by the PiSmmCpuDxeSmm module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCpuPkg/Include/Protocol/SmmCpuService.h | 209 1 file changed, 209 insertions(+

[edk2] [PATCH v4 16/19] UefiCpuPkg: Update DEC/DSC files for new includes and libraries

2015-10-19 Thread Michael Kinney
Add SmmCpuPlatformHookLib library class declaration Add SmmCpuFeaturesLib library class declaration Add gEfiSmmCpuServiceProtocolGuid protocol declaration Build SmmCpuPlatformHookLibNull library instance Build SmmCpuFeaturesLib library instance Changes between [PATCH v1] and [PATCH v2]: 1) Use mod

[edk2] [PATCH v4 08/19] UefiCpuPkg: Add SecCore module

2015-10-19 Thread Michael Kinney
Add SecCore module that uses the PlatformSecLib class for platform specific actions. The SecCore module also uses a new PCD to configure the size of the stack used in the SEC phase. If the stack size PCD is set to 0, the stack is configured to use half of the available temporary RAM. Contributed

[edk2] [PATCH v4 00/19] UefiCpuPkg: Add CPU SMM and SecCore

2015-10-19 Thread Michael Kinney
Laszlo, I have addressed the MP race conditions and have timeouts configurable using a PCD in the CpuDxe module in this revised patch series. I picked up the patch from your series to sync MTRRs. I have also removed trailing spaces from all new files in UefiCpuPkg and any files that were modi

[edk2] [PATCH v4 05/19] UefiCpuPkg: Add Cpuid.h include files for CPUID related defines

2015-10-19 Thread Michael Kinney
Move CPUID related defines from LocalApic.h to Cpuid.h Update LocalApicLib instances to include Cpuid.h Update CpuMpPei module to include Cpuid.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 1 + U

Re: [edk2] [PATCH v2] MdeModulePkg: Make the BmFindLoadOption function public

2015-10-19 Thread Wang, Sunny (HPS SW)
Hi Ray, Could you help to review the updated patch? Regards, Sunny Wang -Original Message- From: Wang, Sunny (HPS SW) Sent: Tuesday, October 13, 2015 6:10 PM To: edk2-devel@lists.01.org Cc: El-Haj-Mahmoud, Samer; Wang, Sunny (HPS SW) Subject: [PATCH v2] MdeModulePkg: Make the B