PcdFSBClock.
Cc: Michael D Kinney
Cc: Eric Dong
Cc: Ruiyu Ni
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Library/SecPeiDxeTimerLibUefiCpu/X86TimerLib.c | 114 -
1 file changed, 111 insertions(+), 3 deletions(-)
diff --git a/UefiCpuPkg
Cc: Michael D Kinney
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 24 +++-
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index 735e099..c6f8191
https://bugzilla.tianocore.org/show_bug.cgi?id=575
v2:
Updated #1 comments
v3:
1. Remove ASSERT() in #1 if X2APIC enable but user configuration is FALSE.
2. Add #3 to force X2APIC mode if CPU number > 255.
Jeff Fan (3):
UefiCpuPkg/CpuCommonFeaturesLib: Support X2APIC ena
;= 255.
Cc: Michael D Kinney
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuCommonFeaturesLib/CpuCommonFeatures.h | 15 +
.../CpuCommonFeaturesLib/CpuCommonFeaturesLib.c| 2 +-
UefiCpuPkg/Library/CpuCommonFeaturesLib/X2
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 24 +++-
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index 735e099..c6f8191
;= 255.
Cc: Michael D Kinney
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuCommonFeaturesLib/CpuCommonFeatures.h | 15 +
.../CpuCommonFeaturesLib/CpuCommonFeaturesLib.c| 2 +-
UefiCpuPkg/Library/CpuCommonFeaturesLib/X2
https://bugzilla.tianocore.org/show_bug.cgi?id=575
v2:
Updated #1 comments.
Jeff Fan (2):
UefiCpuPkg/CpuCommonFeaturesLib: Support X2APIC enable
UefiCpuPkg/MpInitLib: Check APIC mode change around AP function
.../CpuCommonFeaturesLib/CpuCommonFeatures.h | 15
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 24 +++-
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c
b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index 735e099..c6f8191
https://bugzilla.tianocore.org/show_bug.cgi?id=575
Jeff Fan (2):
UefiCpuPkg/CpuCommonFeaturesLib: Support X2APIC enable
UefiCpuPkg/MpInitLib: Check APIC mode change around AP function
.../CpuCommonFeaturesLib/CpuCommonFeatures.h | 15 +
.../CpuCommonFeaturesLib
;= 255.
Cc: Michael D Kinney
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuCommonFeaturesLib/CpuCommonFeatures.h | 15 +
.../CpuCommonFeaturesLib/CpuCommonFeaturesLib.c| 2 +-
UefiCpuPkg/Library/CpuCommonFeaturesLib/X2
Contributed-under: TianoCore Contribution Agreement 1.0
Cc: Eric Dong
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
b/UefiCpuPkg/Library/MpInitLib
Cc: Jiewen Yao
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
b/UefiCpuPkg/PiSmmCpuDxeSmm
gSmst->SmmStartupThisAp() in ConfigSmmCodeAccessCheck() and to check if
ProcessorId is valid in InternalSmmStartupThisAp() to avoid unexpected DEBUG
error message displayed.
Cc: Jiewen Yao
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmm
Jeff Fan (2):
UefiCpuPkg/SmmCpuFeaturesLib: Fix Ia32/SmiEntry.asm build issue
UefiCpuPkg/SmmCpuFeaturesLib: Correct print level
UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm| 6 +++---
.../Library/SmmCpuFeaturesLib/Ia32/SmiException.asm | 15 ++-
UefiCpuPkg
Cc: Jiewen Yao
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/SmmCpuFeaturesLib/Ia32/SmiEntry.asm| 6 +++---
.../Library/SmmCpuFeaturesLib/Ia32/SmiException.asm | 15 ++-
2 files changed, 13 insertions
Cc: Jiewen Yao
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmStm.c
b/UefiCpuPkg
Cc: Feng Tian
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/UefiCpuPkg.dec | 2 +-
UefiCpuPkg/UefiCpuPkg.dsc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg
Cc: Feng Tian
Cc: Eric Dong
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/UefiCpuPkg.dec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec
index 6f30ad0..e5b0334 100644
After X2APIC mode is enabled, APs need to be set tp IDLE state, otherwise APs
cannot be waken up by MP PPI services.
https://bugzilla.tianocore.org/show_bug.cgi?id=505
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
After X2APIC mode is enabled, APs need to be set tp IDLE state, otherwise APs
cannot be waken up by MP PPI services.
https://bugzilla.tianocore.org/show_bug.cgi?id=500
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
*Serach* should be *Search*
Cc: Liming Gao
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
MdePkg/Include/Library/PeCoffGetEntryPointLib.h | 2 +-
MdePkg/Library/BasePeCoffGetEntryPointLib
://bugzilla.tianocore.org/show_bug.cgi?id=503
Cc: Liming Gao
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (1):
PeCoffGetEntryPointLib: Fix spelling issue
MdePkg/Include/Library/PeCoffGetEntryPointLib.h | 2
ution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.h | 22 +--
UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 6 +-
UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 93 ---
3 files changed, 2 insertions(+), 119 deletions(-)
diff
/show_bug.cgi?id=500
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (2):
UefiCpuPkg/MpInitLib: save/restore original contents
UefiCpuPkg/MpInitLib: needn't to allocate AP reset vector
UefiCpuPkg/Library/MpInitLib/Mp
Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 16
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c
b/UefiCpuPkg/Library/MpInitLib/PeiMpLib.c
index fb1d48f..5ce5788 100644
--- a
Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuDxe/CpuDxe.c | 5 -
UefiCpuPkg/Library/MpInitLib/MpLib.c | 4
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
index 4a5e282..8680656 100644
Cc: Feng Tian
Cc: Star Zeng
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/MdeModulePkg/Universal/Acpi
SMM BSP's *busy* state should be acquired. We could use AcquireSpinLock()
instead of AcquireSpinLockOrFail().
Cc: Hao Wu
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 2 +-
1
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c | 10 +-
.../Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c | 4 ++--
MdeModulePkg/Universal/Acpi/S3SaveStateDxe
Some modules mis-used error level when outputting debug message.
Jeff Fan (3):
MdeModulePkg: Error Level is not used correctly
SecurityPkg: Error Level is not used correctly
UefiCpuPkg: Error Level is not used correctly
.../Acpi/BootScriptExecutorDxe/ScriptExecute.c | 10
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.c | 4 ++--
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.c | 4 ++--
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
Cc: Feng Tian
Cc: Jiewen Yao
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 2 +-
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c | 68 +++
2 files changed, 35 insertions(+), 35
Consuming PeCoffSerachImageBase() from PeCoffGetEntrypointLib and consuming
DumpCpuContext() from CpuExceptionHandlerLib to replace its own implementation.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
v1's patch 7, 8 to v2's patch 4.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (5):
MdePkg/PeCoffGetEntryPointLib: Add PeCoffSerachImageBase()
MdeModulePkg/CpuExceptionHandlerLib
This new API only works on DEBUG build. It will search the PE/COFF image base
forward the input address in this PE/COFF image and returns it.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
MdePkg/Include
This API is used to display exception type and all processor context for debug
purpose.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
MdeModulePkg/Include/Library/CpuExceptionHandlerLib.h| 15
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../DebugAgent/DebugAgentCommon/DebugAgent.c | 50 +++---
1 file changed, 6 insertions(+), 44 deletions(-)
diff --git
a
ution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuExceptionHandlerLib/CpuExceptionCommon.c| 82 ++
.../CpuExceptionHandlerLib/CpuExceptionCommon.h| 27 ---
.../Library/CpuExceptionHandlerLib/DxeException.c | 7 +-
.../Ia32/ArchExceptionHandler.c
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=453
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib/MpLib.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff
Page-fault exception data bit displaying is very useful.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuExceptionHandlerLib/CpuExceptionCommon.h| 11 +
.../Ia32/ArchExceptionHandler.c
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 18 ++
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 4 ++--
UefiCpuPkg/PiSmmCpuDxeSmm
This API is used to display exception type and all processor context for debug
purpose.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
MdeModulePkg/Include/Library/CpuExceptionHandlerLib.h| 15
Add internal DumpModuleImageInfo() to replace FindModuleImageBase(). It will
consume PeCoffGetEntrypointLib's PeCoffSerachImageBase() to get PE/COFF image
base.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jef
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../CpuExceptionHandlerLib/CpuExceptionCommon.h| 1 +
.../Ia32/ArchExceptionHandler.c| 24 +-
.../X64
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../DebugAgent/DebugAgentCommon/DebugAgent.c | 50 +++---
1 file changed, 6 insertions(+), 44 deletions(-)
diff --git
a
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 37 +++---
1 file changed, 3 insertions(+), 34 deletions(-)
diff --git a/UefiCpuPkg
Rename internal DumpCpuContent() to DumpImageAndCpuContent().
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h| 4 ++--
UefiCpuPkg/Library
This new API only works on DEBUG build. It will search the PE/COFF image base
forward the input address in this PE/COFF image and returns it.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
MdePkg/Include
-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (9):
MdePkg/PeCoffGetEntryPointLib: Add PeCoffSerachImageBase()
MdeModulePkg/CpuExceptionHandlerLib: Add DumpCpuContext()
UefiCpuPkg/CpuExceptionHandlerLib: Rename internal DumpCpuContent()
UefiCpuPkg
: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (3):
UefiCpuPkg/PiSmmCpuDxeSmm: Save SMM ranges info into global variables
UefiCpuPkg/PiSmmCpuDxeSmm: Add IsInSmmRanges() to check SMM range
UefiCpuPkg/PiSmmCpuDxeSmm: Update saved SMM
: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 42 +-
1 file changed, 36 insertions(+), 6 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
b/UefiCpuPkg
v2:
Add #define SMRR_MAX_ADDRESS to clarify SMRR requirement.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 44 --
UefiCpuPkg
Internal function IsInSmmRanges() is added t check SMM range by saved SMM ranges
beside by mCpuHotPlugData.SmrrBase/mCpuHotPlugData.SmrrSiz.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 44 --
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 4 ++-
2 files changed, 27
: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 42 +-
1 file changed, 36 insertions(+), 6 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
b/UefiCpuPkg
Internal function IsInSmmRanges() is added t check SMM range by saved SMM ranges
beside by mCpuHotPlugData.SmrrBase/mCpuHotPlugData.SmrrSiz.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg
Signed-off-by: Jeff Fan
Jeff Fan (3):
UefiCpuPkg/PiSmmCpuDxeSmm: Save SMM ranges info into global variables
UefiCpuPkg/PiSmmCpuDxeSmm: Add IsInSmmRanges() to check SMM range
UefiCpuPkg/PiSmmCpuDxeSmm: Update saved SMM ranges check in SmmProfile
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
Internal function IsInSmmRanges() is added t check SMM range by saved SMM ranges
beside by mCpuHotPlugData.SmrrBase/mCpuHotPlugData.SmrrSiz.
Cc: Jiewen Yao
Cc: Michael Kinney
Cc: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg
Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 44 --
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 4 ++-
2 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
b
: Feng Tian
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 42 +-
1 file changed, 36 insertions(+), 6 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
b/UefiCpuPkg
Signed-off-by: Jeff Fan
Jeff Fan (3):
UefiCpuPkg/PiSmmCpuDxeSmm: Save SMM ranges info into global variables
UefiCpuPkg/PiSmmCpuDxeSmm: Add IsInSmmRanges() to check SMM range
UefiCpuPkg/PiSmmCpuDxeSmm: Update saved SMM ranges check in SmmProfile
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
If CR0 PG bit is not set, it means paging is not enabled on BSP. Thus, Execute
Disable feature is not working actually. Thus, we cannot enable it on APs.
v2:
Correct the commit log.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff
If CR0 PG bit is not set, it means paging is enabled on BSP. Thus, Execute
Disable feature is not working actually. We cannot enable it on APs.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/MpInitLib
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Include/Library/RegisterCpuFeaturesLib.h | 60 +++--
.../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 2 +-
.../DxeRegisterCpuFeaturesLib.c
Cc: Feng Tian
Cc: Michael Kinney
Jeff Fan (5):
UefiCpuPkg/RegisterCpuFeaturesLib: Fix the function header issues
UefiCpuPkg/RegisterCpuFeaturesLib: Remove static type
UefiCpuPkg/RegisterCpuFeaturesLib: Fix meta data comments
UefiCpuPkg/CpuCommonFeaturesLib: Generate new INF GUID value
Using one specific name for global variable to save MP services protocol
pointer.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c | 10 +-
1 file changed
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.inf| 4 ++--
UefiCpuPkg/CpuFeatures/CpuFeaturesPei.inf| 2 +-
UefiCpuPkg/Library
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib
Correct PCD declaration comments and add new PCDs in UNI file.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/UefiCpuPkg.dec | 12 ++--
UefiCpuPkg/UefiCpuPkg.uni | 31 +++
2
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib
The current CPU_REGISTER_TABLE_ENTRY structure only defined UINT32 Index to
indicate MSR/MMIO address. It's ok for MSR because MSR address is UINT32 type
actually. But for MMIO address, UINT32 limits MMIO address exceeds 4GB.
https://bugzilla.tianocore.org/show_bug.cgi?id=347
Jeff F
ution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Include/AcpiCpuData.h | 12 +++-
.../Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 6 +++---
.../Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c | 1 +
UefiCpuPkg/PiSmmCpuDxeSmm/Cp
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Include/Library/RegisterCpuFeaturesLib.h | 4 ++--
.../Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c | 8
2 files changed, 6 insertions(+), 6 deleti
ted-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c
b/UefiCpuPkg/Library/Re
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeatures.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/UefiCpuPkg/Library/CpuCommonFeaturesLib
from AesniGetConfigData() to AesniSupport().
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (11):
UefiCpuPkg/AcpiCpuData: Update RegisterTableEntry type
UefiCpuPkg/CpuS3DataDxe: Consume the existing PcdCpuS3DataAddress
UefiC
ement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 30 +-
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
index 12efc1f..c3280b8 100644
--- a/UefiC
from AesniGetConfigData() to AesniSupport().
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/Aesni.c| 127 +++
UefiCpuPkg/Library/CpuCommonFeaturesLib/C1e.c | 79 ++
.../Li
Needn't to copy register table if AllocatedSize is 0.
v4:
Fix potential uninitialized variable issue.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 27 +++--
#9: Trim white space at end of line.
#10: Add AesniGetConfigData() to get current register state.
v4:
#3, #8, #9: Fix GCC complied issue.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (11):
UefiCpuPkg/AcpiCp
: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Include/Library/RegisterCpuFeaturesLib.h | 516 +
UefiCpuPkg/UefiCpuPkg.dec | 5 +
2 files changed, 521 insertions(+)
create
unused local variable.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 745
.../DxeRegisterCpuFeaturesLib.c| 266
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 747
.../DxeRegisterCpuFeaturesLib.c| 266 +++
.../DxeRegisterCpuFeaturesLib.inf
inney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/Aesni.c| 124 +++
UefiCpuPkg/Library/CpuCommonFeaturesLib/C1e.c | 79 ++
.../Library/CpuCommonFeaturesLib/ClockModulation.c | 106 +++
.../CpuCommonFeatur
#9: Trim white space at end of line.
#10: Add AesniGetConfigData() to get current register state.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (11):
UefiCpuPkg/AcpiCpuData: Update RegisterTableEntry type
UefiC
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 747
.../DxeRegisterCpuFeaturesLib.c| 266 +++
.../DxeRegisterCpuFeaturesLib.inf | 62
d-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/Aesni.c| 94 +++
UefiCpuPkg/Library/CpuCommonFeaturesLib/C1e.c | 79 ++
.../Library/CpuCommonFeaturesLib/ClockModulation.c | 106 +++
.../CpuCommonFeaturesLib/CpuCommonFeatures.h
Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
Jeff Fan (11):
UefiCpuPkg/AcpiCpuData: Update RegisterTableEntry type
UefiCpuPkg/CpuS3DataDxe: Consume the existing PcdCpuS3DataAddress
UefiCpuPkg/PiSmmCpuDxeSmm: Skip if AllocatedSi
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index 65f607a..ab664b4 100644
--- a/UefiCpuPkg/CpuDxe
: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuDxe/CpuPageTable.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c
index 65f607a..ab664b4 100644
--- a/UefiCpuPkg/CpuDxe
ution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c | 54 ++---
1 file changed, 33 insertions(+), 21 deletions(-)
diff --git a/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c
b/UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c
index 07c7102..dccb406 100644
oCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Include/Register/Msr/AtomMsr.h| 22 +-
UefiCpuPkg/Include/Register/Msr/BroadwellMsr.h | 21 -
UefiCpuPkg/Include/Register/Msr/Core2Msr.h | 19 ++-
UefiC
Needn't to copy register table if AllocatedSize is 0.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 26 ++
1 file changed, 14 insertions(+), 12 deletions(-)
ed by NULL
CPU Common Features Library instance.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Library/CpuCommonFeaturesLib/Aesni.c| 94 +++
UefiCpuPkg/Library/CpuCommonFeaturesLib/C1e.c | 79 ++
.../Li
initialized.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/Include/Guid/CpuFeaturesInitDone.h | 26 ++
UefiCpuPkg/UefiCpuPkg.dec | 3 +++
2 files changed, 29 insertions
PcdCpuFeaturesInitOnS3Resume
that consumed by CpuFeaturesPei and CpuFeaturesDxe.
Cc: Feng Tian
Cc: Michael Kinney
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
UefiCpuPkg/CpuFeatures/CpuFeaturesDxe.c| 122 +
UefiCpuPkg/CpuFeatures
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan
---
.../Include/Library/RegisterCpuFeaturesLib.h | 516 +
UefiCpuPkg/UefiCpuPkg.dec | 5 +
2 files changed, 521 insertions(+)
create mode 100644 UefiCpuPkg/Include
Agreement 1.0
Signed-off-by: Jeff Fan
---
.../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 700 +++
.../DxeRegisterCpuFeaturesLib.c| 266 +++
.../DxeRegisterCpuFeaturesLib.inf | 62 ++
.../PeiRegisterCpuFeaturesLib.c| 390
1 - 100 of 582 matches
Mail list logo