[edk2-devel] [PATCH v1 1/2] MdePkg/SmBios.h: Add New ProcessorUpgrade definitions for SMBIOS Type4

2024-04-14 Thread Jason Lou
From: Jason Lou The patch adds new ProcessorUpgrade definitions for SMBIOS Type4 based on SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Zhiguang Liu Cc: Dandan Bi Cc: Star Zeng Cc: Zhichao Gao Cc: Benny Lin Cc: Gua Guo Cc: Michael D Kinney Cc: Liming Gao --- MdePkg/Include

[edk2-devel] [PATCH v1 2/2] ShellPkg/SmbiosView: Support New ProcessorUpgrade for SMBIOS Type4

2024-04-14 Thread Jason Lou
From: Jason Lou The patch updates SmbiosView to support new ProcessorUpgrade for SMBIOS Type4 based on SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Liming Gao Cc: Star Zeng Cc: Zhichao Gao --- ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c | 30 +++- 1

[edk2-devel] [PATCH v4 2/2] ShellPkg/SmbiosView: Support New ProcessorFamily for SMBIOS Type4

2024-02-25 Thread Jason Lou
From: Jason Lou The patch updates SmbiosView to support new ProcessorFamily for SMBIOS Type4 based on SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Liming Gao Cc: Zhichao Gao --- ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 34 +++- 1 file changed, 33

[edk2-devel] [PATCH v4 1/2] MdePkg/SmBios.h: Add New ProcessorFamily definitions for SMBIOS Type4

2024-02-25 Thread Jason Lou
From: Jason Lou The patch adds new ProcessorFamily definitions for SMBIOS Type4 based on SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Zhiguang Liu Cc: Dandan Bi Cc: Star Zeng Cc: Zhichao Gao Cc: Benny Lin Cc: Gua Guo Cc: Michael D Kinney Cc: Liming Gao --- MdePkg/Include

[edk2-devel] [PATCH v3] MdePkg/SmBios.h: Add New ProcessorFamily definitions for SMBIOS Type4

2024-02-23 Thread Jason Lou
From: Jason Lou The patch adds new ProcessorFamily definitions for SMBIOS Type4 based on SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Zhiguang Liu Cc: Dandan Bi Cc: Star Zeng Cc: Zhichao Gao Cc: Benny Lin Cc: Gua Guo Cc: Michael D Kinney Cc: Liming Gao --- ShellPkg/Library

[edk2-devel] [PATCH v1] MdePkg/SmBios.h: Add New ProcessorFamily definitions for SMBIOS Type4

2024-01-28 Thread Jason Lou
From: Jason Lou The patch adds new ProcessorFamily definitions for SMBIOS Type4 based On SMBIOS 3.8.0. Signed-off-by: Jason Lou Cc: Zhiguang Liu Cc: Dandan Bi Cc: Star Zeng Cc: Zhichao Gao Cc: Benny Lin Cc: Gua Guo Cc: Michael D Kinney Cc: Liming Gao --- MdePkg/Include

[edk2-devel] [PATCH v1 1/2] UefiCpuPkg/Test: Move EfiMpServiceProtocol UT in a separate function

2022-11-24 Thread Jason Lou
From: Jason Lou Move the implementation of EfiMpServiceProtocol unit tests in a separate function in preparation for developing the UEFI application and dynamic command for the same unit tests. Signed-off-by: Jason Lou Reviewed-by: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar

[edk2-devel] [PATCH v1 2/2] UefiCpuPkg/Test: develop UEFI App and dynamic cmd for MP services UT

2022-11-24 Thread Jason Lou
From: Jason Lou The code changes develop UEFI application and dynamic command for EfiMpServiceProtocol unit tests based on current UnitTestFramework. Signed-off-by: Jason Lou Reviewed-by: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar Cc: Zhiguang Liu Cc: Dun Tan --- UefiCpuPkg

[edk2-devel] [PATCH v2] UefiCpuPkg/Test: Add unit tests for MP service PPI and Protocol

2022-10-10 Thread Jason Lou
From: Jason Lou The code changes add unit tests based on current UnitTestFramework. EdkiiPeiMpServices2PpiPeiUnitTest PEI module is used to test EdkiiPeiMpServices2Ppi and EfiMpServiceProtocolDxeUnitTest DXE driver is used to test EfiMpServiceProtocol. Signed-off-by: Jason Lou Cc: Ray Ni Cc

[edk2-devel] [PATCH v1] UefiCpuPkg/Test: Add unit tests for MP service PPI and Protocol

2022-09-25 Thread Jason Lou
From: Jason Lou The code changes add unit tests based on current UnitTestFramework. EdkiiPeiMpServices2PpiPeiUnitTest PEIM is used to test EdkiiPeiMpServices2Ppi and EfiMpServiceProtocolDxeUnitTest DXE driver is used to test EfiMpServiceProtocol. Change-Id

[edk2-devel] [PATCH v1] MdeModulePkg/DxeIpl: Create 5-level page table for long mode

2022-03-11 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2008 Correct the logic about whether 5-level paging is supported. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Dandan Bi Cc: Liming Gao --- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[edk2-devel] [PATCH v2 6/6] BaseTools: Upgrade the version of NASM tool

2022-01-10 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790 Upgrade the version of NASM tool to avoid compilation errors when compiling NASM code change. Signed-off-by: Jason Lou Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen --- BaseTools/Conf/tools_def.template | 6 +++--- 1 file changed, 3

[edk2-devel] [PATCH v2 5/6] MdePkg: Remove the macro definitions regarding Opcode.

2022-01-10 Thread Jason Lou
-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu --- MdePkg/Include/Ia32/Nasm.inc | 26 +--- MdePkg/Include/X64/Nasm.inc | 26 +--- 2 files changed, 2 insertions(+), 50 deletions(-) diff --git a/MdePkg/Include/Ia32/Nasm.inc b/MdePkg/Include

[edk2-devel] [PATCH v2 4/6] UefiCpuPkg: Replace Opcode with the corresponding instructions.

2022-01-10 Thread Jason Lou
. (tool link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild) Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/CpuDxe/X64/CpuAsm.nasm| 4 +-- UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32

[edk2-devel] [PATCH v2 1/6] MdeModulePkg: Replace Opcode with the corresponding instructions.

2022-01-10 Thread Jason Lou
. (tool link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild) Signed-off-by: Jason Lou Cc: Ray Ni Cc: Dandan Bi Cc: Liming Gao --- MdeModulePkg/Universal/DebugSupportDxe/Ia32/AsmFuncs.nasm | 20 +++ MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm | 21

[edk2-devel] [PATCH v2 3/6] SourceLevelDebugPkg: Replace Opcode with the corresponding instructions.

2022-01-10 Thread Jason Lou
. (tool link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild) Signed-off-by: Jason Lou Cc: Hao A Wu --- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/AsmFuncs.nasm | 6 +++--- SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/AsmFuncs.nasm | 6 +++--- 2 files

[edk2-devel] [PATCH v2 2/6] MdePkg: Replace Opcode with the corresponding instructions.

2022-01-10 Thread Jason Lou
. (tool link: https://github.com/mdkinney/edk2/tree/sandbox/CompareBuild) Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu --- MdePkg/Library/BaseLib/Ia32/EnablePaging64.nasm | 20 MdePkg/Library/BaseLib/Ia32/LongJump.nasm | 6

Re: [edk2-devel] [PATCH v1 2/4] MdePkg: Replace Opcode with the corresponding instructions.

2022-01-04 Thread Jason Lou
Hi Liming, Sure, I will create 2 more patches, one is used to update 2 Nasm.inc files, the other is used to update nasm tool version. Best Regards Jason Lou -Original Message- From: devel@edk2.groups.io On Behalf Of gaoliming Sent: Tuesday, January 4, 2022 11:14 AM To: devel@edk2

Re: [edk2-devel] [PATCH v1 2/4] MdePkg: Replace Opcode with the corresponding instructions.

2021-12-28 Thread Jason Lou
Hi Liming, Yes, and I use version 2.15.05 of the nasm compiler to verify code changes. https://www.nasm.us/xdoc/2.15.05/html/nasmdocb.html Best Regards Jason Lou -Original Message- From: gaoliming Sent: Wednesday, December 29, 2021 11:15 AM To: Lou, Yun ; devel@edk2.groups.io Cc

[edk2-devel] [PATCH v1 1/4] MdeModulePkg: Replace Opcode with the corresponding instructions.

2021-12-28 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790 Replace Opcode with the corresponding instructions. The code changes have been verified with CompareBuild.py tool, which can be used to compare the results of two different EDK II builds to determine if they generate

[edk2-devel] [PATCH v1 2/4] MdePkg: Replace Opcode with the corresponding instructions.

2021-12-28 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790 Replace Opcode with the corresponding instructions. The code changes have been verified with CompareBuild.py tool, which can be used to compare the results of two different EDK II builds to determine if they generate

[edk2-devel] [PATCH v1 3/4] SourceLevelDebugPkg: Replace Opcode with the corresponding instructions.

2021-12-28 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790 Replace Opcode with the corresponding instructions. The code changes have been verified with CompareBuild.py tool, which can be used to compare the results of two different EDK II builds to determine if they generate

[edk2-devel] [PATCH v1 4/4] UefiCpuPkg: Replace Opcode with the corresponding instructions.

2021-12-28 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3790 Replace Opcode with the corresponding instructions. The code changes have been verified with CompareBuild.py tool, which can be used to compare the results of two different EDK II builds to determine if they generate

Re: [edk2-devel] [PATCH v2] UefiCpuPkg: Cpu feature data stored in memory may be migrated

2021-09-30 Thread Jason Lou
This new patch adds memory pages initialization( ZeroMem ) based on patch v1. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#81315): https://edk2.groups.io/g/devel/message/81315 Mute This Topic: https://groups.io/mt/85967849/21656 Group

[edk2-devel] [PATCH v2] UefiCpuPkg: Cpu feature data stored in memory may be migrated

2021-09-30 Thread Jason Lou
the memory(such as the pointers in ACPI_CPU_DATA structure) changes, which may cause "PiSmmCpuDxeSmm" driver can't find the memory(the pointers in ACPI_CPU_DATA structure) that allocated in "PeiRegisterCpuFeaturesLib", so use "PeiAllocatePages" to allocate memory instea

[edk2-devel] [PATCH v1] UefiCpuPkg: Cpu feature data stored in memory may be migrated

2021-09-29 Thread Jason Lou
the memory(such as the pointers in ACPI_CPU_DATA structure) changes, which may cause "PiSmmCpuDxeSmm" driver can't find the memory(the pointers in ACPI_CPU_DATA structure) that allocated in "PeiRegisterCpuFeaturesLib", so use "PeiAllocatePages" to allocate memory instea

[edk2-devel] [PATCH v2 1/2] UefiCpuPkg: Refactor initialization of CPU features during S3 resume

2021-09-16 Thread Jason Lou
update. It will be removed after all the platform code uses new ACPI_CPU_DATA structure. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- OvmfPkg/CpuS3DataDxe/CpuS3Data.c | 7 +- UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c

[edk2-devel] [PATCH v2 2/2] UefiCpuPkg: Prevent from re-initializing CPU features during S3 resume

2021-09-16 Thread Jason Lou
t; is set to TRUE. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c| 34 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 3 +- 2 files changed, 23 insertions(+), 14 deletions(-) diff --g

Re: [edk2-devel] [PATCH v1 1/2] UefiCpuPkg: Refactor initialization of CPU features during S3 resume

2021-09-16 Thread Jason Lou
On Thu, Sep 16, 2021 at 02:14 PM, Ni, Ray wrote: > > FeatureInitData = Hi Ray, Yes, agree with you, I will remove the code blow. > > if (FeatureInitData == NULL) { > return; > } > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online

[edk2-devel] [PATCH v1 2/2] UefiCpuPkg: Prevent from re-initializing CPU features during S3 resume

2021-09-15 Thread Jason Lou
t; is set to TRUE. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c| 34 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 3 +- 2 files changed, 23 insertions(+), 14 deletions(-) diff --g

[edk2-devel] [PATCH v1 1/2] UefiCpuPkg: Refactor initialization of CPU features during S3 resume

2021-09-15 Thread Jason Lou
update. It will be removed after all the platform code uses new ACPI_CPU_DATA structure. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- OvmfPkg/CpuS3DataDxe/CpuS3Data.c | 7 +- UefiCpuPkg/CpuS3DataDxe/CpuS3Data.c

[edk2-devel] [PATCH v2] UefiCpuPkg/CpuCacheInfoLib: Correct logical for identifying cache type

2021-08-13 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3265 Correct the logical for identifying "Direct mapped" cache type. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 2 +- 1 file

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Correct logical for identifying cache type

2021-08-13 Thread Jason Lou
Sure, I will change it in next version patch. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79276): https://edk2.groups.io/g/devel/message/79276 Mute This Topic: https://groups.io/mt/84855450/21656 Group Owner:

[edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Correct logical for identifying cache type

2021-08-12 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3265 Correct the logical for identifying "Direct mapped" cache type. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 2 +- 1 file

[edk2-devel] [PATCH v3] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-06 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3508 Sort the CpuCacheInfo array by CPU package ID, core type, cache level and cache type. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c

Re: [edk2-devel] [PATCH v2] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-06 Thread Jason Lou
Sure, I will rename "Fields" and "Data64" in v3 patch. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78809): https://edk2.groups.io/g/devel/message/78809 Mute This Topic: https://groups.io/mt/84704801/21656 Group Owner:

[edk2-devel] [PATCH v2] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-06 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3508 Sort the CpuCacheInfo array by CPU package ID, core type, cache level and cache type. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c

[edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-06 Thread Jason Lou
From: Jason REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3508 Sort the CpuCacheInfo array by the core type values from largest to smallest. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c

Re: [edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-08-02 Thread Jason Lou
Hi Ray, According to the definitions in SDM, the value of "Core" core type(40H) is larger than that of "Atom" core type(20H), if array is sorted by core type value from largest to smallest, “Core” CPU cache info can be placed before "Atom" CPU cache info in the CpuCacheInfo array. No matter

[edk2-devel] [PATCH v1] UefiCpuPkg/CpuCacheInfoLib: Sort CpuCacheInfo array

2021-07-27 Thread Jason Lou
From: Jason REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3508 Sort the CpuCacheInfo array by the core type values from largest to smallest. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c

Re: [edk2-devel] [PATCH v2] IntelFsp2WrapperPkg: Remove microcode related PCDs

2021-05-19 Thread Jason Lou
Hi Chasel & Star, So far, the PCD usage has been removed from all of these platforms: 1. Server platforms("ServerGen2") 2. Client platforms("ClientMaster") 3. Edk2-platform opensource Thanks Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages

[edk2-devel] [PATCH v1] Intel/CometlakeOpenBoardPkg: Simplify microcode related PCD usage

2021-04-25 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3334 There are following PCDs in IntelFsp2WrapperPkg for microcode location: * IntelFsp2WrapperPkg: PcdCpuMicrocodePatchAddress PcdCpuMicrocodePatchRegionSize PcdFlashMicrocodeOffset The change simplify the platform

[edk2-devel] [PATCH v1] Intel/WhiskeylakeOpenBoardPkg: Simplify microcode related PCD usage

2021-04-25 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3334 There are following PCDs in IntelFsp2WrapperPkg for microcode location: * IntelFsp2WrapperPkg: PcdCpuMicrocodePatchAddress PcdCpuMicrocodePatchRegionSize PcdFlashMicrocodeOffset The change simplify the platform

[edk2-devel] [PATCH v1] Intel/KabylakeOpenBoardPkg: Simplify microcode related PCD usage

2021-04-25 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3334 There are following PCDs in IntelFsp2WrapperPkg for microcode location: * IntelFsp2WrapperPkg: PcdCpuMicrocodePatchAddress PcdCpuMicrocodePatchRegionSize PcdFlashMicrocodeOffset The change simplify the platform

[edk2-devel] [PATCH v1] Intel/TigerlakeOpenBoardPkg: Simplify microcode related PCD usage

2021-04-25 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3334 There are following PCDs in IntelFsp2WrapperPkg for microcode location: * IntelFsp2WrapperPkg: PcdCpuMicrocodePatchAddress PcdCpuMicrocodePatchRegionSize PcdFlashMicrocodeOffset The change simplify the platform

[edk2-devel] [PATCH v2] IntelFsp2WrapperPkg: Remove microcode related PCDs

2021-04-15 Thread Jason Lou
are only used by a sample FSP-T wrapper, this patch removes the 3 PCDs defined in IntelFsp2WrapperPkg. The FSP-T wrapper is updated to directly use the ones in UefiCpuPkg. Signed-off-by: Jason Lou Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Cc: Ray Ni --- IntelFsp2WrapperPkg/Library

[edk2-devel] [PATCH v1] IntelFsp2WrapperPkg: Remove microcode PCDs

2021-04-13 Thread Jason Lou
the ones that have The same name in UefiCpuPkg. To avoid confusion, remove the three PCDs defined in IntelFsp2WrapperPkg. Signed-off-by: Jason Lou Cc: Ray Ni --- IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecRamInitData.c | 6 +++--- IntelFsp2WrapperPkg

[edk2-devel] [PATCH v1] UefiCpuPkg/CpuTimerLib: Update LIBRARY_CLASS of Base instance.

2021-04-10 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2832 Update LIBRARY_CLASS of BaseCpuTimerLib to remove the usage limitation, otherwise the Base instance cannot be used in some types of modules. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar

[edk2-devel] [PATCH v4] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3309 Define new element(Hybird) in CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS (07h) data structure. Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- MdePkg/Include/Register/Intel/Cpuid.h | 14

Re: [edk2-devel] [PATCH v3] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
Hi Ray, the update will be included in the new patch(v4). Thanks! Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73890): https://edk2.groups.io/g/devel/message/73890 Mute This Topic: https://groups.io/mt/81943824/21656 Group

[edk2-devel] [PATCH v3] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3309 Define new element(Hybird) in CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS (07h) data structure. Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- MdePkg/Include/Register/Intel/Cpuid.h | 16

Re: [edk2-devel] [PATCH v1] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
Got it, the update will be included in the new patch(v3). Thanks! Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73861): https://edk2.groups.io/g/devel/message/73861 Mute This Topic: https://groups.io/mt/81936049/21656 Group

[edk2-devel] [PATCH v2] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3309 Define new element(Hybird) in CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS (07h) data structure. Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- MdePkg/Include/Register/Intel/Cpuid.h | 16

[edk2-devel] [PATCH v1] MdePkg/Cpuid.h: Define new element in CPUID Leaf(07h) data structure.

2021-04-08 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3309 Define new element(Hybird) in CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS (07h) data structure. Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- MdePkg/Include/Register/Intel/Cpuid.h | 14

[edk2-devel] [PATCH v2] UefiCpuPkg: Remove PEI/DXE instances of CpuTimerLib.

2021-04-07 Thread Jason Lou
From: Jason Lou REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2832 1. Remove PEI instance(PeiCpuTimerLib). PeiCpuTimerLib is currently designed to save time by getting CPU TSC frequency from Hob. BaseCpuTimerLib is designed to calculate TSC frequency by using CPUID[15h] each time

Re: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Remove PEI/DXE instances of CpuTimerLib.

2021-04-01 Thread Jason Lou
, please feel free to let me know. If not, I will submit code patch later, thanks. Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73604): https://edk2.groups.io/g/devel/message/73604 Mute This Topic: https://groups.io/mt/77073830

Re: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg: Remove PEI/DXE instances of CpuTimerLib.

2021-03-25 Thread Jason Lou
2. The time required to search for CpuCrystalFrequencyHob HOB: about 2000ns. The actual delay of NanoSecondDelay function is longer than the expected delay. If any questions, please feel free let me know, thanks Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg/CpuCacheInfoLib: Collect cache associative type

2021-03-15 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3265 Support collecting cache associative type in CpuCacheInfoLib. This prevents the user from using additional code to obtain the same information. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Collect cache associative type

2021-03-15 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3265 Support collecting cache associative type in CpuCacheInfoLib. This prevents the user from using additional code to obtain the same information. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar

[edk2-devel] [PATCH v2 1/1] UefiCpuPkg/CpuCacheInfoLib: Add MpService dependency

2021-02-01 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3190 Add MpService dependency to enforce the executability of CpuCacheInfoLib. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 7

Re: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Add more dependency of CpuCacheInfoLib

2021-02-01 Thread Jason Lou
Yes, good idea, I will update later. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#71022): https://edk2.groups.io/g/devel/message/71022 Mute This Topic: https://groups.io/mt/80278288/21656 Group Owner: devel+ow...@edk2.groups.io

Re: [edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Add more dependency of CpuCacheInfoLib

2021-02-01 Thread Jason Lou
There is already the assertion in function CpuCacheInfoGetMpServices. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#71014): https://edk2.groups.io/g/devel/message/71014 Mute This Topic: https://groups.io/mt/80278288/21656 Group Owner:

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Support no enabled AP case in DxeLib

2021-02-01 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3195 Support system has no enabled AP case in DxeCpuCacheInfoLib. Otherwise, if the system only has 1 BSP without any enabled AP, UEFI POST hangs when invoking StartupAllAPs protocol because EFI_NOT_STARTED is returned. Signed-off-by: Jason Lou

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Add more dependency of CpuCacheInfoLib

2021-01-31 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3190 Add more dependency to enforce the executability of CpuCacheInfoLib. Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 7

Re: [edk2-devel] 回复: [edk2-devel] 回复: [edk2-devel] [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro definitions.

2021-01-24 Thread Jason Lou
Got it. I have sent out v3 code patch, please help to review it when you are available, thanks. Jason Lou -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70711): https://edk2.groups.io/g/devel/message/70711 Mute This Topic: https

[edk2-devel] [PATCH v3 1/1] MdePkg/Cpuid.h: Change and add some macro definitions.

2021-01-24 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3105 Change and add some macro definitions about CPUID_HYBRID_INFORMATION Leaf(1Ah). Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg

Re: [edk2-devel] 回复: [edk2-devel] [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro definitions.

2021-01-21 Thread Jason Lou
Hi Liming, Yes, I replaced all the CPUID_HYBRID_INFORMATION_ *SUB* _LEAF with CPUID_HYBRID_INFORMATION_ *MAIN* _LEAF. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70669): https://edk2.groups.io/g/devel/message/70669 Mute This Topic:

[edk2-devel] [PATCH v2 1/1] MdePkg/Cpuid.h: Change and add some macro definitions.

2021-01-20 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3105 Change and add some macro definitions about CPUID_HYBRID_INFORMATION Leaf(1Ah). Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg

[edk2-devel] [PATCH v1 2/2] UefiCpuPkg/CpuCacheInfoLib: Update reference to the macro definitions.

2021-01-19 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3105 Update reference to some macro definitions about CPUID_HYBRID_INFORMATION Leaf(1Ah). Signed-off-by: Jason Lou Cc: Ray Ni Cc: Eric Dong Cc: Laszlo Ersek Cc: Rahul Kumar --- UefiCpuPkg/Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 2

[edk2-devel] [PATCH v1 1/2] MdePkg/Cpuid.h: Change and add some macro definitions.

2021-01-19 Thread Jason Lou
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3105 Change and add some macro definitions about CPUID_HYBRID_INFORMATION Leaf(1Ah). Signed-off-by: Jason Lou Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu --- MdePkg/Include/Register/Intel/Cpuid.h | 17 + 1 file

Re: [edk2-devel] [PATCH v7 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(1Ah).

2021-01-19 Thread Jason Lou
Reviewed-by: Liming Gao (in patch v5) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70539): https://edk2.groups.io/g/devel/message/70539 Mute This Topic: https://groups.io/mt/79750873/21656 Group Owner: devel+ow...@edk2.groups.io