[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

[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

[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

[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

[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:

[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

[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

[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

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

[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

[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

[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

[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

[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.

[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

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

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

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

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

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

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

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

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,

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 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 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 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

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

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

[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

[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

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,

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

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

[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

[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?

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: