[edk2] [Patch] UefiCpuPkg/CpuExceptionLib: Add STATIC on global exception name strs

2015-07-09 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Leif Lindholm CC: Feng Tian --- UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib

[edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state

2015-07-08 Thread Jeff Fan
DEBUG_AGENT_INIT_POSTMEM_SEC case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni CC: Brian J. Johnson --- .../SecPeiDebugAgent/SecPeiDebugAgentLib.c | 29 ++ 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a

[edk2] [Patch] UefiCpuPkg/Library/CpuExceptionHandlerLib: Add exception type decoder

2015-07-06 Thread Jeff Fan
Add exception type decoder to print exception name string beside print exception type value. The exception names are from IA32 SDM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian --- .../CpuExceptionHandlerLib/CpuExceptionCommon.c| 48

[edk2] [Patch 10/28] UefiCpuPkg: Add PcdCpuApInitTimeOutInMicroSeconds

2015-07-03 Thread Jeff Fan
This PCD is used to specify timeout value for BSP to detect all APs for the first time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/UefiCpuPkg.dec | 7 ++- 1 file changed, 6 insertions

[edk2] [Patch 08/28] UefiCpuPkg/CpuMpPei: Get AP reset code size and far jump information

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h| 23 +++ UefiCpuPkg/CpuMpPei/Ia32/MpFuncs.asm | 16 UefiCpuPkg/CpuMpPei/Ia32

[edk2] [Patch 07/28] UefiCpuPkg/CpuMpPei: Initialize FPU per UEFI specification

2015-07-03 Thread Jeff Fan
Invoke InitializeFloatingPointUnits() to initialize FPU per UEFI specification before call C function in assembly code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h

[edk2] [Patch 25/28] UefiCpuPkg/CpuMpPei: Implementation of PeiEnableDisableAP ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/PeiMpServices.c | 87 + UefiCpuPkg/CpuMpPei/PeiMpServices.h | 50 + 2 files changed

[edk2] [Patch 15/28] UefiCpuPkg: Add some CPUID definitions

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/Include/Register/LocalApic.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Include/Register/LocalApic.h b

[edk2] [Patch 00/28] UefiCpuPkg: Add CpuMpPei install PI CPU MP PPI

2015-07-03 Thread Jeff Fan
h Aps BIST information. Jeff Fan (28): UefiCpuPkg: Add CpuMpPei module UefiCpuPkg/CpuMpPei: Load GDT table on BSP UefiCpuPkg/CpuMpPei: Find available memory < 1MB for AP reset code UefiCpuPkg/CpuMpPei: Add MP exchange structure definition UefiCpuPkg/CpuMpPei: Add AP reset IA32 assem

[edk2] [Patch 09/28] UefiCpuPkg/CpuMpPei: Prepare for buffer for AP wakeup and CPU MP data

2015-07-03 Thread Jeff Fan
Get AP wakeup buffer and copy AP reset code into it. Allocate APs' stack and CPU MP data buffer. Fill CPU MP data fields accordingly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/Cpu

[edk2] [Patch 14/28] UefiCpuPkg: Add microcode PCDs

2015-07-03 Thread Jeff Fan
Add PCDs PcdCpuMicrocodePatchAddress and PcdCpuMicrocodePatchRegionSize that are used to detect microcode patch from microcode region. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/UefiCpuPkg.dec

[edk2] [Patch 18/28] UefiCpuPkg/CpuMpPei: Update and publish CPU BIST information

2015-07-03 Thread Jeff Fan
Get CPU BIST information from SEC Platform Information(2) PPIs and update them accordingly. Install(Reinstall) SEC Platform Information2 PPI to published the new CPU BIST. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael

[edk2] [Patch 13/28] UefiCpuPkg/CpuMpPei: Sync BPS's mtrr setting to APs

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 8 UefiCpuPkg/CpuMpPei/CpuMpPei.h | 2 ++ UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 1 + 3 files changed, 11 insertions

[edk2] [Patch 05/28] UefiCpuPkg/CpuMpPei: Add AP reset IA32 assembly code

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/Ia32/MpEqu.inc| 12 UefiCpuPkg/CpuMpPei/Ia32/MpFuncs.asm | 117 ++ UefiCpuPkg/CpuMpPei/Ia32

[edk2] [Patch 20/28] UefiCpuPkg/CpuMpPei: Implementation of PeiGetNumberOfProcessors ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/PeiMpServices.c | 82 + UefiCpuPkg/CpuMpPei/PeiMpServices.h | 46 + 2 files changed

[edk2] [Patch 23/28] UefiCpuPkg/CpuMpPei: Implementation of PeiStartupThisAP ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/PeiMpServices.c | 126 UefiCpuPkg/CpuMpPei/PeiMpServices.h | 62 ++ 2 files changed

[edk2] [Patch 01/28] UefiCpuPkg: Add CpuMpPei module

2015-07-03 Thread Jeff Fan
This module is to provide MP PPI services defined in PI 1.4. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c| 41 +++ UefiCpuPkg/CpuMpPei

[edk2] [Patch 22/28] UefiCpuPkg/CpuMpPei: Implementation of PeiStartupAllAPs ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 14 +++ UefiCpuPkg/CpuMpPei/CpuMpPei.h | 34 +++ UefiCpuPkg/CpuMpPei/PeiMpServices.c | 188

[edk2] [Patch 16/28] UefiCpuPkg/CpuMpPei: Load microcode on BSP and APs

2015-07-03 Thread Jeff Fan
Add DetectMicrocode() to load microcode on BSP and APs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 8 +- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 5 + UefiCpuPkg/CpuMpPei

[edk2] [Patch 04/28] UefiCpuPkg/CpuMpPei: Add MP exchange structure definition

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.h b/UefiCpuPkg/CpuMpPei

[edk2] [Patch 24/28] UefiCpuPkg/CpuMpPei: Implementation of PeiSwitchBSP ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h| 12 UefiCpuPkg/CpuMpPei/Ia32/MpEqu.inc| 4 ++ UefiCpuPkg/CpuMpPei/Ia32/MpFuncs.asm | 79

[edk2] [Patch 17/28] UefiCpuPkg/CpuMpPei: Build one GUIDed HOB to save CPU MP Data

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 33 + 1 file changed, 33 insertions(+) diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg

[edk2] [Patch 12/28] UefiCpuPkg/CpuMpPei: Sort APIC ID in ascending order

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b

[edk2] [Patch 28/28] UefiCpuPkg/CpuMpPei: Register callback on End Of Pei PPI

2015-07-03 Thread Jeff Fan
Add CpuMpEndOfPeiCallback () to restore wakeup buffer data on S3 path and flag flag wakeup buffer to be un-used type on normal boot path. Set one EndOfPei flag save/restore wakeup buffer when wakeup APs every time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan

[edk2] [Patch 02/28] UefiCpuPkg/CpuMpPei: Load GDT table on BSP

2015-07-03 Thread Jeff Fan
Load new GDT table and update segment accordingly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c| 28 ++ UefiCpuPkg/CpuMpPei/CpuMpPei.h| 30

[edk2] [Patch 21/28] UefiCpuPkg/CpuMpPei: Implementation of PeiGetProcessorInfo ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/PeiMpServices.c | 191 UefiCpuPkg/CpuMpPei/PeiMpServices.h | 36 +++ 2 files changed, 227

[edk2] [Patch 19/28] UefiCpuPkg/CpuMpPei: Implementation of PeiWhoAmI ()

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 1 + UefiCpuPkg/CpuMpPei/CpuMpPei.inf| 2 + UefiCpuPkg/CpuMpPei/PeiMpServices.c | 94

[edk2] [Patch 26/28] UefiCpuPkg/CpuMpPei: Install PI CPU MP PPI

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 9 +++-- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 2 ++ UefiCpuPkg/CpuMpPei/CpuMpPei.inf| 1 + UefiCpuPkg/CpuMpPei

[edk2] [Patch 27/28] UefiCpuPkg/CpuMpPei: Add AsmHltLoop ()

2015-07-03 Thread Jeff Fan
Add AsmHltLoop () in assembly code, it will not be copied into AP wakeup buffer and invoked at end of ApCFunction (). To make sure AP work in case AP wakeup buffer is restored to original data. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC

[edk2] [Patch 03/28] UefiCpuPkg/CpuMpPei: Find available memory < 1MB for AP reset code

2015-07-03 Thread Jeff Fan
Search memory resource HOB list to find one available system memory under 1MB for AP reset code and exchange information between BSP and APs. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg

[edk2] [Patch 06/28] UefiCpuPkg/CpuMpPei: Add AP reset x64 assembly code

2015-07-03 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/X64/MpEqu.inc| 17 UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm | 154 +++ UefiCpuPkg/CpuMpPei/X64

[edk2] [Patch 11/28] UefiCpuPkg/CpuMpPei: Wakeup APs and collect AP count

2015-07-03 Thread Jeff Fan
BSP will send broadcast INIT Startup IPI to all APs and collect APs count and BIST information. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian CC: Jiewen Yao CC: Michael Kinney --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 119

[edk2] [Patch] SourceLevelDebugPkg/DebugAgent: Add typecast to fix sign extension

2015-06-25 Thread Jeff Fan
OffsetHigh is 16bit value and its type is UINT32 and defined in structure. If its high bit is 1, it will sign extension when do 16-bit left-shift operation. Need to typecast if after left-shift operation on GCC. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC

[edk2] [Patch 0/3] Add Sec Platform Information2 PPI

2015-06-11 Thread Jeff Fan
CPU MP DXE driver to get CPU BIST information. And PiCis.h could pass build. C. Update UefiCpuPkg/CpuDxe drive to get CPUs' BIST information by Guided HOB. Jeff Fan (3): MdePkg: Add Sec Platform Information2 PPI MdePkg: Include PiCis.h in SecPlatformInformation.h UefiCpuPkg/CpuDxe: Ge

[edk2] [Patch 1/3] MdePkg: Add Sec Platform Information2 PPI

2015-06-11 Thread Jeff Fan
This is a new PPI introduced in PI 1.4 to pass multiple CPU information from SEC phase to PEI/DXE phases. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Liming Gao --- MdePkg/Include/Ppi/SecPlatformInformation2.h | 85 MdePkg

[edk2] [Patch 2/3] MdePkg: Include PiCis.h in SecPlatformInformation.h

2015-06-11 Thread Jeff Fan
This file references EFI_PEI_SERVICES but it will be used by CPU MP DXE driver to get CPU BIST information. And PiCis.h could pass build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Liming Gao --- MdePkg/Include/Ppi/SecPlatformInformation.h | 4 +++- 1

[edk2] [Patch 3/3] UefiCpuPkg/CpuDxe: Get CPU BIST information from Guided HOB

2015-06-11 Thread Jeff Fan
Get CPU BIST information from gEfiSecPlatformInformation2PpiGuid or gEfiSecPlatformInformationPpiGuid Guided HOB and update the CPU healthy status for CPU MP Service. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Feng Tian --- UefiCpuPkg/CpuDxe/CpuDxe.inf

[edk2] [Patch] SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer

2015-06-08 Thread Jeff Fan
ff-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c| 10 ++ 1 file changed, 10 insertions(+) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/DxeDebug

[edk2] [Patch] SourceLevelDebugPkg/DebugAgent: Disable Debug Timer as early

2015-06-05 Thread Jeff Fan
InitializeDebugTimer () to avoid Debug Timer interrupt happens during debug port and debug agent initialization phase. And enable Debug Timer interrupt after debug agent is initialized. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library

[edk2] [Patch] SourceLevelDebugPkg/DebugAgent: Check PcdDebugPortHandleBufferSize

2015-06-02 Thread Jeff Fan
Check PcdDebugPortHandleBufferSize before allocate buffer. PeriodicMode is BOOLEAN type, needn't to use == TRUE in if condition. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgent

[edk2] [Patch v2 1/2] SourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer

2015-05-21 Thread Jeff Fan
ution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c b/SourceLevelDeb

[edk2] [Patch v2 2/2] SourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter

2015-05-21 Thread Jeff Fan
Add one parameter DumpFlag to indicate if need to dump Local APIC time's parameter. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/DebugAgentCommon/DebugAgent.c | 2 +- .../Library/DebugAgent/DebugAgentC

[edk2] [Patch v2 0/2] Initialize Local APIC Timer in SMM entry

2015-05-21 Thread Jeff Fan
APIC timer's parameter. Changes since v1: Per Ray's off-line comments, add DumpFlag to indicate if dump Local APIC timer's parameter instead of making use of TimerFrequency value. Jeff Fan (2): SourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer SourceLevelDebugPkg/De

[edk2] [Patch 2/2] SourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter

2015-05-21 Thread Jeff Fan
Dump Debug Timer's parameter only if TimerFrequency is not NULL. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/DebugAgentCommon/DebugTimer.c | 15 +-- 1 file changed, 9 insertions(+), 6 dele

[edk2] [Patch 1/2] SourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer

2015-05-21 Thread Jeff Fan
ution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c b/SourceLevelDeb

[edk2] [Patch 0/2] Initialize Local APIC Timer in SMM entry

2015-05-21 Thread Jeff Fan
rameter if TimerFrequency is not NULL. Jeff Fan (2): SourceLevelDebugPkg/SmmDebugAgent: Initialize Local APIC Timer SourceLevelDebugPkg/DebugTimer: Dump Debug Timer parameter .../Library/DebugAgent/DebugAgentCommon/DebugTimer.c | 15 +-- .../Library/DebugAgent/Smm

[edk2] [PATCH v2 2/2] SourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent

2015-05-14 Thread Jeff Fan
useful information as early as possible. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Cc: Ruiyu Ni --- SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.c | 42 +- .../DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c| 29 --- 2 files

[edk2] [PATCH v2 1/2] SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer early

2015-05-14 Thread Jeff Fan
of SetupDebugAgentEnvironment() name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan CC: Ruiyu Ni --- .../DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c| 39 +++--- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a

[edk2] [PATCH v2 0/2] SourceDebugAgent/DxeDebugAgent: Initialize Local APIC Timer

2015-05-14 Thread Jeff Fan
SetupDebugAgentEnvironment(). b) Fix typo of SetupDebugAgentEnviroment(). Jeff Fan (2): SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer early SourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.c | 42 - .../DebugAgent

[edk2] [Patch 2/2] SourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent

2015-05-14 Thread Jeff Fan
useful information as early as possible. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan SourceLevelDebugPkg/DebugAgentDxe: Move help info from DxeDebugAgent Now DxeDebugAgent Library instance will print help information on how to load DebugAgentDxe.efi in UEFI shell

[edk2] [Patch 0/2] SourceDebugAgent/DxeDebugAgent: Initialize Local APIC Timer

2015-05-14 Thread Jeff Fan
DxeDebugAgent library instance initialize Local APIC timer is too late to be used for time-out mechanism. Also move help information for serial debug port to DebugAgentDxe module to help developer as early as possible. Jeff Fan (2): SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer

[edk2] [Patch 1/2] SourceLevelDebugPkg/DxeDebugAgent: Initialize Local APIC Timer early

2015-05-14 Thread Jeff Fan
Signed-off-by: Jeff Fan Cc: Ruiyu Ni --- .../Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/DxeDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent

[edk2] [Patch] MdePkg/SmmGipDispatch2.h: SMM GpiNum meaning clarification

2015-05-06 Thread Jeff Fan
nds to logical GPI[1], and so on, and GpiNum of N corresponds to GPI[N], where N can span from 0 to 2^64-1. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- MdePkg/Include/Protocol/SmmGpiDispatch2.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) d

[edk2] [Patch 1/2] MdePkg/PiSmmCis.h: SMM register protocol notify function clarify

2015-05-05 Thread Jeff Fan
Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- MdePkg/Include/Pi/PiSmmCis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Pi/PiSmmCis.h b/MdePkg/Include/Pi/PiSmmCis.h index 26880b8..66e2dd5 100644 --- a/MdePkg/Include/Pi/PiSmmCis.h +++ b/MdePkg/Include

[edk2] [Patch 2/2] MdeModulePkg/SmmCore: SMM register protocol notify function clarify

2015-05-05 Thread Jeff Fan
SmmRegisterProtocolNotify() already followed this new rule, needn't to be updated. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- MdeModulePkg/Core/PiSmmCore/Notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Core/PiSm

[edk2] [Patch 0/2] SMM register protocol notify function clarify

2015-05-05 Thread Jeff Fan
SmmRegisterProtocolNotify() already followed this new rule, needn't to be updated. Jeff Fan (2): MdePkg/PiSmmCis.h: SMM register protocol notify function clarify MdeModulePkg/SmmCore: SMM register protocol notify function clarify MdeModulePkg/Core/PiSmmCore/Notify.c | 6 +++--- MdePkg/Inclu

[edk2] [PATCH v2 2/3] SourceLevelDebugPkg/DebugAgent: Clear/Restore EFLAGS.IF

2015-04-22 Thread Jeff Fan
-by: Jeff Fan --- .../DebugAgent/DebugAgentCommon/DebugAgent.c | 49 ++ 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon

[edk2] [PATCH v2 3/3] SourceLevelDebugPkg/DebugAgent: Add some comments and debug message

2015-04-22 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- .../Library/DebugAgent/DebugAgentCommon/DebugAgent.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c

[edk2] [PATCH v2 1/3] SourceLevelDebugPkg/DebugAgent: Add InterruptFlag field

2015-04-22 Thread Jeff Fan
Add InterruptFlag field in DEBUG_AGENT_FLAG. This field is used to save/restore EFLAGS.IF across Stepping command execution. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h | 4 +++- 1 file

[edk2] [PATCH v2 0/3] SourceLevelDebugPkg/DebugAgent: Enhancement exception handling

2015-04-22 Thread Jeff Fan
This series does the following enhancement to handle exception during execution Stepping command. a) In case the instruction executing Stepping command generates other exception. Such as, #GP or #PF exception. b) Clear EFLAGS.IF before do IRET for Stepping command, it could avoid the pending interr

[edk2] [Patch 3/3] SourceLevelDebugPkg: Add some comments and debug message

2015-04-21 Thread Jeff Fan
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c | 4 1 file changed, 4 insertions(+) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b

[edk2] [Patch 2/3] SourceLevelDebugPkg: Clear/Restore EFLAGS.IF across Steeping command

2015-04-21 Thread Jeff Fan
-off-by: Jeff Fan --- .../DebugAgent/DebugAgentCommon/DebugAgent.c | 53 ++ 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon

[edk2] [Patch 0/3] SourceLevelDebugPkg: Enhanced exception handling during Stepping

2015-04-21 Thread Jeff Fan
This series does the following enhancement to handle exception during execution Stepping command. a) In case the instruction executing Stepping command generates other exception. Such as, #GP or #PF exception. b) Clear EFLAGS.IF before do IRET for Stepping command, it could avoid the pending int

[edk2] [Patch 1/3] SourceLevelDebugPkg: Add InterruptFlag field in DEBUG_AGENT_FLAG

2015-04-21 Thread Jeff Fan
This field is used to save/restore EFLAGS.IF across Stepping command execution. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff