Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence

2023-07-05 Thread Ni, Ray
Gard, any comments? > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Wednesday, July 5, 2023 10:49 AM > To: devel@edk2.groups.io; Xie, Yuanhao > Subject: Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI > sequence >

Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence

2023-07-04 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of Yuanhao Xie > Sent: Wednesday, June 28, 2023 4:47 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI > sequence > > To speed up MP initialization, thi

Re: [edk2-devel] [PATCH v15 0/8] Adds AmdSmmCpuFeaturesLib and MmSaveStateLib

2023-07-02 Thread Ni, Ray
y, July 2, 2023 12:14 PM > To: devel@edk2.groups.io > Cc: Abdul Lateef Attar ; Paul Grimes > ; Abner Chang ; Dong, Eric > ; Ni, Ray ; Kumar, Rahul R > ; Gerd Hoffmann ; Kinney, > Michael D ; Gao, Liming > ; Liu, Zhiguang ; Ard > Biesheuvel ; Yao, Jiewen ; > Justen, Jorda

Re: [edk2-devel] [PATCH 1/1] MdePkg: Add Cxl20.h into IndustryStandard

2023-06-29 Thread Ni, Ray
+@Nong, Foster > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chris Li OS > via groups.io > Sent: Friday, June 30, 2023 2:07 PM > To: Yao, Jiewen ; devel@edk2.groups.io > Subject: Re: [edk2-devel] [PATCH 1/1] MdePkg: Add Cxl20.h into > IndustryStandard > > Thanks Jiewen,

Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridge: Add support for driver binding

2023-06-29 Thread Ni, Ray
> -Original Message- > From: Jeff Brasen > Sent: Friday, June 30, 2023 11:21 AM > To: Ni, Ray ; devel@edk2.groups.io > Cc: Wang, Jian J ; Gao, Liming > ; Wu, Hao A > Subject: RE: [PATCH] MdeModulePkg/PciHostBridge: Add support for driver > binding > > No

Re: [edk2-devel] [PATCH] MdeModulePkg/PciHostBridge: Add support for driver binding

2023-06-29 Thread Ni, Ray
, 2023 4:54 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Gao, Liming > ; Wu, Hao A ; Ni, Ray > ; Jeff Brasen > Subject: [PATCH] MdeModulePkg/PciHostBridge: Add support for driver binding > > If the platform does not support any PCIe devices using the library > > meth

Re: [edk2-devel] [Patch V3 5/5] UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence.

2023-06-26 Thread Ni, Ray
> + OriginalValue = InterlockedCompareExchange32 ( > +(UINT32 *)ApStartupSignalBuffer, > +MP_HAND_OFF_SIGNAL, > +0 > +); > + if (OriginalValue == MP_HAND

Re: [edk2-devel] [Patch V3 4/5] UefiCpuPkg: ApWakeupFunction directly use CpuMpData.

2023-06-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Xie, Yuanhao > Sent: Monday, June 26, 2023 1:57 PM > To: devel@edk2.groups.io > Cc: Gerd Hoffmann ; Dong, Eric ; Ni, > Ray ; Kumar, Rahul R ; Tom > Lendacky ; Xie, Yuanhao > > Subject: [Patch V3 4/5] UefiCpuPkg

Re: [edk2-devel] [Patch V3 3/5] UefiCpuPkg: Create MpHandOff.

2023-06-26 Thread Ni, Ray
Several comments below: > > The SaveCpuMpData() function was updated to construct the MP_HAND_OFF > Hob. Additionally, the function introduced the MP_HAND_OFF_SIGNAL, > which solely served the purpose of awakening the APs > and transitioning their context from PEI to DXE. The > WaitLoopExecutionM

Re: [edk2-devel] [Patch V3 2/5] UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop.

2023-06-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Xie, Yuanhao > Sent: Monday, June 26, 2023 1:57 PM > To: devel@edk2.groups.io > Cc: Gerd Hoffmann ; Dong, Eric ; Ni, > Ray ; Kumar, Rahul R ; Tom > Lendacky ; Xie, Yuanhao > > Subject: [Patch V3 2/5] UefiCpu

Re: [edk2-devel] [Patch V3 1/5] UefiCpuPkg: Refactor the logic for placing APs in HltLoop.

2023-06-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Xie, Yuanhao > Sent: Monday, June 26, 2023 1:57 PM > To: devel@edk2.groups.io > Cc: Gerd Hoffmann ; Dong, Eric ; Ni, > Ray ; Kumar, Rahul R ; Tom > Lendacky ; Xie, Yuanhao > > Subject: [Patch V3 1/5] UefiCpu

Re: [edk2-devel] [Patch V2 6/6] UefiCpuPkg: Enhance MpHandOff Handling.

2023-06-25 Thread Ni, Ray
ndex is 0. Thanks, Ray > -Original Message- > From: Xie, Yuanhao > Sent: Sunday, June 25, 2023 10:39 PM > To: devel@edk2.groups.io > Cc: Gerd Hoffmann ; Dong, Eric ; Ni, > Ray ; Kumar, Rahul R ; Tom > Lendacky ; Xie, Yuanhao > > Subject: [Patch V2 6/6]

Re: [edk2-devel] [PATCH] MdePkg: Move gTraceHubDebugInfoHobGuid to MdePkg

2023-06-21 Thread Ni, Ray
I don't think that's the solution to resolve pkg dependencies by adding interfaces to mdePkg. From: Guo, Gua Sent: Wednesday, June 21, 2023 9:23 PM To: Ni, Ray ; devel@edk2.groups.io; Hsu, VictorX Cc: Gao, Liming ; Chan Laura ; Prakashan, Krishnadas Veliyathuparambil ; K

Re: [edk2-devel] [PATCH] MdePkg: Move gTraceHubDebugInfoHobGuid to MdePkg

2023-06-21 Thread Ni, Ray
Why is this GUID moved to MdePkg? > -Original Message- > From: devel@edk2.groups.io On Behalf Of Guo, Gua > Sent: Wednesday, June 21, 2023 3:02 PM > To: Hsu, VictorX ; devel@edk2.groups.io > Cc: Gao, Liming ; Chan Laura > ; Prakashan, Krishnadas Veliyathuparambil > ; K N, Karthik > > Sub

Re: [edk2-devel] [PATCH v2 0/3] UefiCpuPkg/ResetVector: Remove pre-built binaries

2023-06-20 Thread Ni, Ray
I updated the patch per Zhiguang's comments to remove ALIGN 16 requirement. Can you please review again? Only the 2nd patch is updated. Thanks, Ray > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Wednesday, June 21, 2023 10:55 AM &g

[edk2-devel] [PATCH v2 2/3] UefiCpuPkg/ResetVector: Add guidance of FDF ffs rule

2023-06-20 Thread Ni, Ray
ResetVector assembly implementation puts "ALIGN 16" in the end to guarantee the final executable file size is multiple of 16 bytes. Because the module uses a special GUID which guarantees it's put in the very end of a FV, which should be also the end of the FD. All of these (file size is multiple o

[edk2-devel] [PATCH v2 3/3] UefiCpuPkg/ResetVector: Remove pre-built binaries

2023-06-20 Thread Ni, Ray
Because it's simpler for a platform to include the ResetVector source and having pre-built binaries add burdens of updating the pre-built binaries. This patch removes the pre-built binaries and the script that buids the pre-built binaries. Signed-off-by: Ray Ni Cc: Eric Dong Cc: Rahul Kumar Ack

[edk2-devel] [PATCH v2 1/3] UefiCpuPkg: Include ResetVector in DSC

2023-06-20 Thread Ni, Ray
Since ResetVector source module shares the same GUID as the binary module, the binary INF file is just removed from DSC. Signed-off-by: Ray Ni Cc: Eric Dong Cc: Rahul Kumar Acked-by: Gerd Hoffmann --- UefiCpuPkg/UefiCpuPkg.dsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[edk2-devel] [PATCH v2 0/3] UefiCpuPkg/ResetVector: Remove pre-built binaries

2023-06-20 Thread Ni, Ray
Ray Ni (3): UefiCpuPkg: Include ResetVector in DSC UefiCpuPkg/ResetVector: Add guidance of FDF ffs rule UefiCpuPkg/ResetVector: Remove pre-built binaries .../Vtf0/Bin/IA32/ResetVector.ia32.port80.raw | Bin 532 -> 0 bytes .../Vtf0/Bin/IA32/ResetVector.ia32.raw| Bin 500 -> 0 bytes .

Re: [edk2-devel] [PATCH v14 0/8] Adds AmdSmmCpuFeaturesLib and MmSaveStateLib

2023-06-15 Thread Ni, Ray
Gerd, Can you kindly provide "Reviewed-by" for the patch series? Thanks, Ray > -Original Message----- > From: Ni, Ray > Sent: Tuesday, June 13, 2023 3:56 PM > To: devel@edk2.groups.io; abdat...@amd.com > Cc: Paul Grimes ; Abner Chang > ; Dong, Eric ; Kumar, Rahul

[edk2-devel] [PATCH 3/3] UefiCpuPkg/ResetVector: Remove pre-built binaries

2023-06-15 Thread Ni, Ray
Because it's simpler for a platform to include the ResetVector source and having pre-built binaries add burdens of updating the pre-built binaries. This patch removes the pre-built binaries and the script that buids the pre-built binaries. Signed-off-by: Ray Ni Cc: Eric Dong Cc: Rahul Kumar Cc:

[edk2-devel] [PATCH 2/3] UefiCpuPkg/ResetVector: Add guidance of how to guarantee 16B align

2023-06-15 Thread Ni, Ray
ResetVector assembly implementation puts "ALIGN 16" in the end to guarantee the final executable file size is multiple of 16 bytes. Because the module uses a special GUID which guarantees it's put in the very end of a FV, which should be also the end of the FD. Then to make sure the reset vector "J

[edk2-devel] [PATCH 0/3] Remove pre-built ResetVector binaries

2023-06-15 Thread Ni, Ray
Ray Ni (3): UefiCpuPkg: Include ResetVector in DSC UefiCpuPkg/ResetVector: Add guidance of how to guarantee 16B align UefiCpuPkg/ResetVector: Remove pre-built binaries .../Vtf0/Bin/IA32/ResetVector.ia32.port80.raw | Bin 532 -> 0 bytes .../Vtf0/Bin/IA32/ResetVector.ia32.raw| Bin 500

[edk2-devel] [PATCH 1/3] UefiCpuPkg: Include ResetVector in DSC

2023-06-15 Thread Ni, Ray
Since ResetVector source module shares the same GUID as the binary module, the binary INF file is just removed from DSC. Signed-off-by: Ray Ni Cc: Eric Dong Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/UefiCpuPkg.dsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [edk2-devel] [PATCH V3 0/8] Enable SMM perf-logging

2023-06-15 Thread Ni, Ray
I haven't got "Reviewed-by" for MdeModulePkg changes. Can Jian or Liming approve? > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Tuesday, June 13, 2023 2:13 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH V

Re: [edk2-devel] [PATCH v1] IntelSiliconPkg: Add gEndOfSiInitPpiGuid definition in DEC file

2023-06-13 Thread Ni, Ray
Is this event signaled regardless of FSP API/Dispatch mode? > -Original Message- > From: Chang, Hunter > Sent: Tuesday, June 13, 2023 8:40 PM > To: devel@edk2.groups.io > Cc: Chang, Hunter ; Ni, Ray ; > Chaganty, Rangasai V ; Oram, Isaac W > ; S, Ashraf Ali ; Chen,

Re: [edk2-devel] [PATCH v14 0/8] Adds AmdSmmCpuFeaturesLib and MmSaveStateLib

2023-06-13 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of Abdul Lateef > Attar via groups.io > Sent: Tuesday, June 6, 2023 2:07 PM > To: devel@edk2.groups.io > Cc: Abdul Lateef Attar ; Paul Grimes > ; Abner Chang ; Dong, Eric > ;

[edk2-devel] [PATCH V2] Maintainers.txt: Stop to be reviewer of several modules

2023-06-12 Thread Ni, Ray
Remove my name from reviewer list of following modules: * MdeModulePkg: Console and Graphics modules * MdeModulePkg: Reset modules * MdeModulePkg: Serial modules * MdeModulePkg: Universal Payload definitions Signed-off-by: Ray Ni Cc: Zhichao Gao Cc: Hao A Wu Cc: Zhiguang Liu Cc: Gua Guo ---

[edk2-devel] [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch

2023-06-12 Thread Ni, Ray
Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu --- MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 4 1 file changed, 4 insertions(+) diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c index 68af9ab81b..a8537829e3 100644 --- a/Md

[edk2-devel] [PATCH V3 7/8] UefiCpuPkg/SmmCpu: Add PcdSmmApPerfLogEnable control AP perf-logging

2023-06-12 Thread Ni, Ray
When a platform has lots of CPU cores/threads, perf-logging on every AP produces lots of records. When this multiplies with number of SMIs during post, the records are even more. So, this patch adds a new PCD PcdSmmApPerfLogEnable (default TRUE) to allow platform to turn off perf-logging on APs.

[edk2-devel] [PATCH V3 6/8] MdeModulePkg/SmmCorePerformanceLib: Disable perf-logging at runtime

2023-06-12 Thread Ni, Ray
Because SMM perf-logging is migrated to non-SMRAM at ReadyToBoot by DxeCorePerformanceLib, the perf-logging after ExitBS is useless and impact the SMI latency at runtime. Hence the SmmCorePerformanceLib is updated to disable perf-logging after ExitBS. Cc: Jiaxin Wu Cc: Dandan Bi Cc: Liming Gao

[edk2-devel] [PATCH V3 5/8] MdeModulePkg/SmmPerformanceLib: Disable perf-logging after ExitBS

2023-06-12 Thread Ni, Ray
Because SMM perf-logging is migrated to non-SMRAM at ReadyToBoot by DxeCorePerformanceLib, the perf-logging after ExitBS is useless and impact the SMI latency at runtime. Hence the SmmPerformanceLib is updated to disable perf-logging after ExitBS. Cc: Jiaxin Wu Cc: Dandan Bi Cc: Liming Gao Cc:

[edk2-devel] [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler

2023-06-12 Thread Ni, Ray
SmmDriverDispatchHandler is the routine that dispatches SMM drivers from FV. It's a time-consuming routine. Add perf-logging for this routine. Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu Reviewed-by: Jiaxin Wu Reviewed-by: Eric Dong --- MdeModulePkg/Core/PiSmmCore/Dis

[edk2-devel] [PATCH V3 3/8] MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures

2023-06-12 Thread Ni, Ray
Following procedures are perf-logged: * SmmReadyToBootHandler * SmmReadyToLockHandler * SmmEndOfDxeHandler * SmmEntryPoint (It's the main routine run in BSP when SMI happens.) * SmiManage Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu Reviewed-by: Jiaxin Wu Reviewed-by: Eric Dong --- MdeModu

[edk2-devel] [PATCH V3 2/8] UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures

2023-06-12 Thread Ni, Ray
MP procedures are those procedures that run in every CPU thread. The EDKII perf infra is not MP safe so it doesn't support to be called from those MP procedures. The patch adds SMM MP perf-logging support in SmmMpPerf.c. The following procedures are perf-logged: * SmmInitHandler * SmmCpuFeaturesRe

[edk2-devel] [PATCH V3 1/8] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures

2023-06-12 Thread Ni, Ray
The patch adds perf-logging for the following potential time-consuming BSP procedures: * PiCpuSmmEntry - SmmRelocateBases - ExecuteFirstSmiInit * BSPHandler - SmmWaitForApArrival - PerformRemainingTasks * InitPaging * SetMemMapAttributes * SetUefiMemMapAttributes * SetPageT

[edk2-devel] [PATCH V3 0/8] Enable SMM perf-logging

2023-06-12 Thread Ni, Ray
To avoid impacting runtime performance, the perf-logging is disabled upon ExitBootServices. Ray Ni (8): UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures MdeModulePkg/SmmCore: Add perf-logging for time-consuming proced

Re: [edk2-devel] [PATCH] Maintainers.txt: Stop to be reviewer of several modules

2023-06-12 Thread Ni, Ray
Sure. I will update the patch to keep my name for disk modules. Thanks, Ray > -Original Message- > From: Wu, Hao A > Sent: Tuesday, June 13, 2023 11:05 AM > To: Ni, Ray ; devel@edk2.groups.io > Cc: Gao, Zhichao ; Liu, Zhiguang > ; Guo, Gua > Subject: RE: [PATCH]

Re: [edk2-devel] [PATCH] IntelSiliconPkg/VTd: Fix wrong parameter type in VtdLog.c

2023-06-12 Thread Ni, Ray
Reviewed-by: Ray Ni From: devel@edk2.groups.io on behalf of Sheng Wei Sent: Monday, June 12, 2023 16:17 To: devel@edk2.groups.io Cc: Ni, Ray; Chaganty, Rangasai V; Huang, Jenny; Kowalewski, Robert Subject: [edk2-devel] [PATCH] IntelSiliconPkg/VTd: Fix

[edk2-devel] [PATCH] Maintainers.txt: Stop to be reviewer of several modules

2023-06-12 Thread Ni, Ray
Remove my name from reviewer list of following modules: * MdeModulePkg: Console and Graphics modules * MdeModulePkg: Disk modules * MdeModulePkg: Reset modules * MdeModulePkg: Serial modules * MdeModulePkg: Universal Payload definitions Signed-off-by: Ray Ni Cc: Zhichao Gao Cc: Hao A Wu Cc: Zhi

Re: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures

2023-06-11 Thread Ni, Ray
Jiaxin, you are right! ExecuteFirstSmiInit doesn't belong to SmmRelocateBases. I will update commit message. From: Ni, Ray Sent: Monday, June 12, 2023 13:16 To: Wu, Jiaxin; devel@edk2.groups.io Cc: Dong, Eric; Kumar, Rahul R; Gerd Hoffmann Subjec

Re: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures

2023-06-11 Thread Ni, Ray
From: Wu, Jiaxin Sent: Friday, June 9, 2023 21:42 To: devel@edk2.groups.io; Ni, Ray Cc: Dong, Eric; Kumar, Rahul R; Gerd Hoffmann Subject: RE: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures > &g

Re: [edk2-devel] [PATCH V2 3/6] MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures

2023-06-11 Thread Ni, Ray
We can add perf-logging for the two functions in a separate patch. From: Wu, Jiaxin Sent: Friday, June 9, 2023 22:36 To: Ni, Ray; devel@edk2.groups.io Cc: Wang, Jian J; Gao, Liming Subject: RE: [PATCH V2 3/6] MdeModulePkg/SmmCore: Add perf-logging for

Re: [edk2-devel] [PATCH V2 2/6] UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures

2023-06-11 Thread Ni, Ray
> > Could we add the comments to this enum? It defines the ID of the MP procedure. > For MP procedure, it needs call SMM_MP_PERF_PROCEDURE_ID with entries > name defined in the SMM_MP_PERF_PROCEDURE_LIST. Thanks. Will add the comments. > > > > Others good to me. > > Reviewed-by: Jiaxin Wu

Re: [edk2-devel] [PATCH 2/2] UefiCpuPkg/CpuMpPei X64: Reallocate page tables in permanent DRAM

2023-06-08 Thread Ni, Ray
e has already done.) Thanks, Ray > -Original Message- > From: Ard Biesheuvel > Sent: Friday, June 9, 2023 1:23 AM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Ni, Ray ; Yao, > Jiewen ; Gerd Hoffmann ; Taylor > Beebe ; Oliver Smith-Denny ; > Bi, Dandan ; Tan,

Re: [edk2-devel] [Patch V5 01/14] OvmfPkg:Remove code that apply AddressEncMask to non-leaf entry

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:27 AM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Yao, Jiewen > ; Justen, Jordan L ; Gerd > Hoffmann ; Tom Lendacky > ; Ni, Ray > Subject: [Patch V5 01/14] Ovm

Re: [edk2-devel] [Patch V5 04/14] UefiCpuPkg: Add DEBUG_CODE for special case when clear RP

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 04/14] UefiCpuPkg: Add DEBUG_CODE for special case &g

Re: [edk2-devel] [Patch V5 05/14] UefiCpuPkg/PiSmmCpuDxeSmm: Avoid setting non-present range to RO/NX

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [edk2-devel] [Patch V5 05/14] Uefi

Re: [edk2-devel] [Patch V5 03/14] UefiCpuPkg: Use CpuPageTableLib to convert SMM paging attribute.

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 03/14] UefiCpuPkg: Use CpuPageTableLib to convert S

Re: [edk2-devel] [Patch V5 08/14] UefiCpuPkg: Extern mSmmShadowStackSize in PiSmmCpuDxeSmm.h

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 08/14] UefiCpuPkg: Extern mSmmShadowStackSize

Re: [edk2-devel] [Patch V5 13/14] UefiCpuPkg: Refinement to smm runtime InitPaging() code

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 13/14] UefiCpuPkg: Refinement to smm runtime > Ini

Re: [edk2-devel] [Patch V5 12/14] UefiCpuPkg: Sort mProtectionMemRange when ReadyToLock

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 12/14] UefiCpuPkg: Sort mProtectionMemRange when &g

Re: [edk2-devel] [Patch V5 11/14] UefiCpuPkg: Sort mSmmCpuSmramRanges in FindSmramInfo

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 11/14] UefiCpuPkg: Sort mSmmCpuSmramRanges in >

Re: [edk2-devel] [Patch V5 09/14] UefiCpuPkg: Add GenSmmPageTable() to create smm page table

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [Patch V5 09/14] UefiCpuPkg: Add GenSmmPageTable() to create >

Re: [edk2-devel] [Patch V5 02/14] MdeModulePkg: Remove RO and NX protection when unset guard page

2023-06-08 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Thursday, June 8, 2023 10:28 AM > To: devel@edk2.groups.io > Cc: Gao, Liming ; Ni, Ray ; > Wang, Jian J > Subject: [Patch V5 02/14] MdeModulePkg: Remove RO and NX protection > when unset guard pa

Re: [edk2-devel] [PATCH] UefiCpuPkg/SmmCpu: Add PcdSmmApPerfLogEnable control AP perf-logging

2023-06-07 Thread Ni, Ray
This patch is based on patch series: https://edk2.groups.io/g/devel/message/105492. I don't want to send a V3 for just including the additional patch. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Wednesday, June 7, 2023 4:38 PM &g

[edk2-devel] [PATCH] UefiCpuPkg/SmmCpu: Add PcdSmmApPerfLogEnable control AP perf-logging

2023-06-07 Thread Ni, Ray
When a platform has lots of CPU cores/threads, perf-logging on every AP produces lots of records. When this multiplies with number of SMIs during post, the records are even more. So, this patch adds a new PCD PcdSmmApPerfLogEnable (default TRUE) to allow platform to turn off perf-logging on APs.

[edk2-devel] [PATCH] Maintainers.txt: Remove me from maintainers of UefiPayloadPkg,ShellPkg

2023-06-06 Thread Ni, Ray
Signed-off-by: Ray Ni Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Cc: Zhichao Gao --- Maintainers.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Maintainers.txt b/Maintainers.txt index 5209e21449..e40361a0ae 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -592,7 +59

[edk2-devel] [PATCH] Maintainers.txt: Remove UEFI Shell Binaries section

2023-06-06 Thread Ni, Ray
The Shell binaries are not generated anymore in each stable tag release. So, remove the section. Cc: Zhichao Gao Cc: Leif Lindholm Cc: Ard Biesheuvel Signed-off-by: Ray Ni --- Maintainers.txt | 8 1 file changed, 8 deletions(-) diff --git a/Maintainers.txt b/Maintainers.txt index 9c

[edk2-devel] [PATCH] Maintainers.txt: Update maintainers for StandaloneMmPkg

2023-06-06 Thread Ni, Ray
Signed-off-by: Ray Ni Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Jiewen Yao Cc: Supreeth Venkatesh --- Maintainers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maintainers.txt b/Maintainers.txt index 09d04af27a..9c54800f2f 100644 --- a/Maintainers.txt +++ b/Maintainers

Re: [edk2-devel] [PATCH v1] StandaloneMmPkg: Add StandaloneMmIplPei driver.

2023-06-06 Thread Ni, Ray
ectly used with this IPL? Thanks, Ray > -Original Message- > From: Zhang, Hongbin1 > Sent: Monday, May 22, 2023 1:21 PM > To: devel@edk2.groups.io > Cc: Zhang, Hongbin1 ; Yao, Jiewen > ; Ni, Ray ; Zeng, Star > ; Wu, Jiaxin ; Sami Mujawar > ; Ard Biesheuvel ; >

Re: [edk2-devel] [PATCH v2] UnitTestFrameworkPkg: Add UnitTestPeiServicesTablePointerLib

2023-06-05 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of Zhiguang Liu > Sent: Tuesday, June 6, 2023 1:40 PM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang ; Kinney, Michael D > ; Michael Kubacki > ; Sean Brogan > Subject: [edk2-devel] [PATCH v2] UnitTestFramewo

Re: [edk2-devel] [PATCH v1 1/1] ArmPkg: CpuDxe: Sync GCD Capabilities With Page Table Attributes

2023-06-05 Thread Ni, Ray
I just set it up. It's in https://edk2.groups.io/g/devel/calendar, also in attachment. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Michael > Kubacki > Sent: Tuesday, June 6, 2023 10:14 AM > To: Ni, Ray ; devel@edk2.groups.io > Cc: Leif Li

Re: [edk2-devel] [PATCH v13 0/8] Adds AmdSmmCpuFeaturesLib and MmSaveStateLib

2023-06-05 Thread Ni, Ray
tion that? I am afraid I may forget this without clear function header comments. Others look good to me. Thanks, Ray > -Original Message- > From: devel@edk2.groups.io On Behalf Of Chang, Abner > via groups.io > Sent: Tuesday, May 23, 2023 2:36 PM > To: Ni, Ray ; Attar, Abdul

Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add UnitTestPeiServicesTablePointerLib

2023-06-04 Thread Ni, Ray
> +/** > + Allocate Buffer Or Clear Buffer For Global Data. > +**/ > +VOID > +AllocateBufferOrClearBufferForGlobalData ( > + VOID > + ) > +{ > + ZeroMem (&mPrivateData, sizeof (mPrivateData)); > + if (!PSInitDone) { 1. "PSInitDone" doesn't follow edk2 coding style. > +mHobBuffer = Alloc

Re: [edk2-devel] [Patch V4 10/15] UefiCpuPkg: Add GenSmmPageTable() to create smm page table

2023-06-01 Thread Ni, Ray
m: Tan, Dun > Sent: Friday, June 2, 2023 11:47 AM > To: Ni, Ray ; devel@edk2.groups.io > Cc: Dong, Eric ; Kumar, Rahul R > ; Gerd Hoffmann > Subject: RE: [edk2-devel] [Patch V4 10/15] UefiCpuPkg: Add GenSmmPageTable() > to create smm page table > > Edited the reply to make

Re: [edk2-devel] [Patch V4 15/15] UefiCpuPkg/PiSmmCpuDxeSmm: Remove unnecessary function

2023-06-01 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Tuesday, May 16, 2023 6:00 PM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, Rahul > R ; Gerd Hoffmann > Subject: [Patch V4 15/15] UefiCpuPkg/PiSmmCpuDxeSmm: Remove unnecessary &

Re: [edk2-devel] [Patch V4 14/15] UefiCpuPkg: Refinement to smm runtime InitPaging() code

2023-06-01 Thread Ni, Ray
> + } else { > +MemoryAttrMask = EFI_MEMORY_XP; > +for (Index = 0; Index < mSmmCpuSmramRangeCount; Index++) { > + Base = mSmmCpuSmramRanges[Index].CpuStart; > + if ((Base > PreviousAddress) && mXdSupported) { Is "mXdSupported" check really needed? But you didn't add that check f

Re: [edk2-devel] [Patch V4 13/15] UefiCpuPkg: Sort mProtectionMemRange when ReadyToLock

2023-06-01 Thread Ni, Ray
Why do you add the sort logic? I thought you might have further changes to remove some unnecessary logic that deals with un-sorted array. > -Original Message- > From: Ni, Ray > Sent: Friday, June 2, 2023 11:34 AM > To: Tan, Dun ; devel@edk2.groups.io > Cc: Dong, Eric ;

Re: [edk2-devel] [Patch V4 13/15] UefiCpuPkg: Sort mProtectionMemRange when ReadyToLock

2023-06-01 Thread Ni, Ray
Similar comments as patch #12. You could avoid pool allocation. > -Original Message- > From: Tan, Dun > Sent: Tuesday, May 16, 2023 6:00 PM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, Rahul > R ; Gerd Hoffmann > Subject: [Patch V4 13

Re: [edk2-devel] [Patch V4 12/15] UefiCpuPkg: Sort mSmmCpuSmramRanges in FindSmramInfo

2023-06-01 Thread Ni, Ray
> + Buffer = AllocateZeroPool (sizeof (EFI_SMRAM_DESCRIPTOR)); > + ASSERT (Buffer != NULL); You can define a local variable "EFI_SMRAM_DESCRIPTOR OneSmramDescriptor" to avoid pool allocation. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply O

Re: [edk2-devel] [Patch V4 11/15] UefiCpuPkg: Use GenSmmPageTable() to create Smm S3 page table

2023-06-01 Thread Ni, Ray
> - mSmmS3ResumeState->SmmS3Cr3 = (UINT32)(UINTN)PTEntry; > + mSmmS3ResumeState->SmmS3Cr3 = (UINT32)GenSmmPageTable > (Paging4Level, 32); Why is "Paging4Level" used for S3 page table? The S3 page table is used by S3Resume module: if (SmmS3ResumeState->Signature == SMM_S3_RESUME_SMM_64) {

Re: [edk2-devel] [Patch V4 10/15] UefiCpuPkg: Add GenSmmPageTable() to create smm page table

2023-06-01 Thread Ni, Ray
he "Guard page" in "mSmmStackSize range" as not-present. But the "Guard page" in "mSmmShadowStackSize range" is not marked as not-present. Why? Thanks, Ray > -Original Message- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Tuesday, May 16,

Re: [edk2-devel] [Patch V4 09/15] UefiCpuPkg: Extern mSmmShadowStackSize in PiSmmCpuDxeSmm.h

2023-06-01 Thread Ni, Ray
You removed all "extern" and added one "extern" in PiSmmCpuDxeSmm.h. But, where is the mSmmShadowStackSize defined? No link error? > -Original Message- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Tuesday, May 16, 2023 5:59 PM > To: devel@edk2

Re: [edk2-devel] [Patch V4 08/15] UefiCpuPkg/PiSmmCpuDxeSmm: Clear CR0.WP before modify page table

2023-06-01 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Tuesday, May 16, 2023 5:59 PM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, Rahul > R ; Gerd Hoffmann > Subject: [edk2-devel] [Patch V4 08/15] Uefi

Re: [edk2-devel] [Patch V4 07/15] UefiCpuPkg/PiSmmCpuDxeSmm: Add 2 function to disable/enable CR0.WP

2023-06-01 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Tan, Dun > Sent: Tuesday, May 16, 2023 5:59 PM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, Rahul > R ; Gerd Hoffmann > Subject: [Patch V4 07/15] UefiCpuPkg/PiSmmCpuDxeSmm: Add 2 function to &g

Re: [edk2-devel] [PATCH v1 1/1] ArmPkg: CpuDxe: Sync GCD Capabilities With Page Table Attributes

2023-06-01 Thread Ni, Ray
following items in next meeting: 1. Alignment of the problem to solve 2. Alignment of the priority I am available at 10pm~11pm (GMT+8) next Wednesday night. Thanks, Ray > -Original Message- > From: Michael Kubacki > Sent: Friday, June 2, 2023 10:24 AM > To: Ni, Ray ; Ol

Re: [edk2-devel] [PATCH v1] UefiCpuPkg: Get processor extended information for SmmCpuServiceProtocol

2023-05-31 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Wu, Jiaxin > Sent: Thursday, June 1, 2023 9:31 AM > To: Zhang, Hongbin1 ; devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann ; > Zeng, Star > Subject: RE: [PATCH v1] UefiCpuPkg

Re: [edk2-devel] [Patch V4 05/15] UefiCpuPkg: Use CpuPageTableLib to convert SMM paging attribute.

2023-05-31 Thread Ni, Ray
> diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c > b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c > index 3deb1ffd67..a25a96f68c 100644 > --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c > +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c > @@ -1,7 +1,7 @@ > /** @file > Page Fault (#PF) handler for X

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg/VariableSmm.c: add Ap rendezvous check before SmmSetVariable.

2023-05-31 Thread Ni, Ray
Jiewen, Good suggestion😊. This also resolve's Jiaxin's comments that check if the variable is non-volatile. Thanks, Ray > -Original Message- > From: Yao, Jiewen > Sent: Thursday, June 1, 2023 9:06 AM > To: devel@edk2.groups.io; Wu, Jiaxin ; Li, Zhihao > ; Gao,

[edk2-devel] [PATCH V2 6/6] MdeModulePkg/SmmCorePerformanceLib: Disable perf-logging at runtime

2023-05-31 Thread Ni, Ray
Because SMM perf-logging is migrated to non-SMRAM at ReadyToBoot by DxeCorePerformanceLib, the perf-logging after ExitBS is useless and impact the SMI latency at runtime. Hence the SmmCorePerformanceLib is updated to disable perf-logging after ExitBS. Cc: Jiaxin Wu Cc: Dandan Bi Cc: Liming Gao

[edk2-devel] [PATCH V2 5/6] MdeModulePkg/SmmPerformanceLib: Disable perf-logging after ExitBS

2023-05-31 Thread Ni, Ray
Because SMM perf-logging is migrated to non-SMRAM at ReadyToBoot by DxeCorePerformanceLib, the perf-logging after ExitBS is useless and impact the SMI latency at runtime. Hence the SmmPerformanceLib is updated to disable perf-logging after ExitBS. Cc: Jiaxin Wu Cc: Dandan Bi Cc: Liming Gao Cc:

[edk2-devel] [PATCH V2 4/6] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler

2023-05-31 Thread Ni, Ray
SmmDriverDispatchHandler is the routine that dispatches SMM drivers from FV. It's a time-consuming routine. Add perf-logging for this routine. Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu --- MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 - 1 file changed, 4 insertion

[edk2-devel] [PATCH V2 3/6] MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures

2023-05-31 Thread Ni, Ray
Following procedures are perf-logged: * SmmReadyToBootHandler * SmmReadyToLockHandler * SmmEndOfDxeHandler * SmmEntryPoint (It's the main routine run in BSP when SMI happens.) * SmiManage Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu --- MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 14 ++

[edk2-devel] [PATCH V2 2/6] UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures

2023-05-31 Thread Ni, Ray
MP procedures are those procedures that run in every CPU thread. The EDKII perf infra is not MP safe so it doesn't support to be called from those MP procedures. The patch adds SMM MP perf-logging support in SmmMpPerf.c. The following procedures are perf-logged: * SmmInitHandler * SmmCpuFeaturesRe

[edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures

2023-05-31 Thread Ni, Ray
The patch adds perf-logging for the following potential time-consuming BSP procedures: * PiCpuSmmEntry - SmmRelocateBases * ExecuteFirstSmiInit * BSPHandler - SmmWaitForApArrival - PerformRemainingTasks * InitPaging * SetMemMapAttributes * SetUefiMemMapAttributes * SetPag

[edk2-devel] [PATCH V2 0/6] Enable perf-logging in SMM environment

2023-05-31 Thread Ni, Ray
Ray Ni (6): UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler MdeModulePkg/S

[edk2-devel] [PATCH] MinPlatform: Add CpuPageTableLib required by CpuMpPeim

2023-05-31 Thread Ni, Ray
The patch moves the CpuPageTableLib reference from CoreDxeLib.dsc to CoreCommonLib.dsc since now not only DxeMpInitLib but also CpuMpPei depends on it. Signed-off-by: Ray Ni Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong --- Platform/Intel/MinPlatformPkg/Inclu

Re: [edk2-devel] [RFC PATCH 05/10] MdeModulePkg: Define memory attribute PPI

2023-05-31 Thread Ni, Ray
> > > > 2. > > > > When a memory region is marked from not-present to present, > PageTableLib > > > expects > > > > caller to supply all memory attributes (including RW, NX, etc.) as the > > > > lib > > > implementation doesn't > > > > want to carry any default attributes.. > > > > Do you think th

Re: [edk2-devel] [RFC PATCH 05/10] MdeModulePkg: Define memory attribute PPI

2023-05-31 Thread Ni, Ray
> -Original Message- > From: Ard Biesheuvel > Sent: Tuesday, May 30, 2023 3:32 PM > To: Ni, Ray > Cc: devel@edk2.groups.io; Yao, Jiewen ; Gerd > Hoffmann ; Taylor Beebe ; Oliver > Smith-Denny ; Bi, Dandan ; > Gao, Liming ; Kinney, Michael D > ; Leif Lindhol

Re: [edk2-devel] [RFC PATCH 08/11] MdeModulePkg/DxeIpl: Relocate and remap XIP capable DXE drivers

2023-05-31 Thread Ni, Ray
ith me offline😊 Thanks, Ray From: devel@edk2.groups.io On Behalf Of Marvin Häuser Sent: Tuesday, May 30, 2023 6:25 PM To: Ard Biesheuvel Cc: edk2-devel-groups-io ; Ni, Ray Subject: Re: [edk2-devel] [RFC PATCH 08/11] MdeModulePkg/DxeIpl: Relocate and remap XIP capable DXE drivers On 30. May 2023,

Re: [edk2-devel] [PATCH v10] MinPlatformPkg: Update HWSignature field in FACS

2023-05-30 Thread Ni, Ray
Reviewed-by: Ray Ni thanks, ray From: devel@edk2.groups.io on behalf of VincentX Ke Sent: Wednesday, May 31, 2023 10:48:06 AM To: devel@edk2.groups.io Cc: Ke, VincentX ; Chiu, Chasel ; Desimone, Nathaniel L ; Oram, Isaac W ; Gao, Liming ; Dong, Eric ; Sinha

Re: [edk2-devel] [PATCH v9] MinPlatformPkg: Update HWSignature field in FACS

2023-05-30 Thread Ni, Ray
4 minor comments. > +if (FadtPtr->XFirmwareCtrl) { 1. you should use "if (FadtPtr->XFirmwareCtrl != 0)" to align with edk2 coding style. > > + CallbackFunction ((EFI_ACPI_COMMON_HEADER > *)(UINTN)FadtPtr->XFirmwareCtrl, TableIndex++, Context); > > +} else { > > +

Re: [edk2-devel] [RFC PATCH 09/10] MdeModulePkg/DxeIpl: Use memory attribute PPI to remap the stack NX

2023-05-30 Thread Ni, Ray
+@Abner Chang and @Tom Lendacky > -Original Message- > From: Tan, Dun > Sent: Tuesday, May 30, 2023 6:25 PM > To: Ni, Ray ; Ard Biesheuvel ; > devel@edk2.groups.io > Cc: Yao, Jiewen ; Gerd Hoffmann > ; Taylor Beebe ; Oliver Smith- > Denny ; Bi, Dandan ; Gao, >

Re: [edk2-devel] [RFC PATCH 05/11] MdeModulePkg/DxeCore: Use memory mapped FV protocol to avoid image copy

2023-05-30 Thread Ni, Ray
> -Original Message- > From: Ard Biesheuvel > Sent: Tuesday, May 30, 2023 3:52 PM > To: devel@edk2.groups.io; Ni, Ray > Cc: Yao, Jiewen ; Gerd Hoffmann ; > Taylor Beebe ; Oliver Smith-Denny denny.com>; Bi, Dandan ; Gao, Liming > ; Kinney, Michael D ; > Leif

[edk2-devel] [PATCH] SimicsOpenBoard: Use default 10ms as delay between INIT and SIPI

2023-05-30 Thread Ni, Ray
Today the delay is 10us but the QSP simulates the multiprocessor by dividing time into segments and serializing processors within a segment. The length of the segment is configurable and Simics open board is configured using 100us. But the firmware configures the delay between INIT and SIPI is 10u

Re: [edk2-devel] [RFC PATCH 08/11] MdeModulePkg/DxeIpl: Relocate and remap XIP capable DXE drivers

2023-05-30 Thread Ni, Ray
> -Original Message- > From: devel@edk2.groups.io On Behalf Of Ard > Biesheuvel > Sent: Tuesday, May 30, 2023 3:58 PM > To: devel@edk2.groups.io; Ni, Ray > Cc: Yao, Jiewen ; Gerd Hoffmann ; > Taylor Beebe ; Oliver Smith-Denny denny.com>; Bi, Dandan ; Gao, Limi

Re: [edk2-devel] [RFC PATCH 09/10] MdeModulePkg/DxeIpl: Use memory attribute PPI to remap the stack NX

2023-05-30 Thread Ni, Ray
Looks good. @Tan, Dun, can you please evaluate if using MemoryAttribute PPI, what opens will there be for X64 DxeIpl? > -Original Message- > From: Ard Biesheuvel > Sent: Thursday, May 25, 2023 10:31 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Ni, Ray ; Yao,

Re: [edk2-devel] [RFC PATCH 05/10] MdeModulePkg: Define memory attribute PPI

2023-05-30 Thread Ni, Ray
nt to carry any default attributes.. Do you think the MemoryAttribute PPI should expect the same to caller? Thanks, Ray > -Original Message- > From: Ard Biesheuvel > Sent: Thursday, May 25, 2023 10:31 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Ni, Ray ; Yao, Jiewen &g

Re: [edk2-devel] [RFC PATCH 09/11] MdeModulePkg/DxeCore: Add PCD NX policy bit for default NX state

2023-05-29 Thread Ni, Ray
ginal Message- > From: Ard Biesheuvel > Sent: Monday, May 29, 2023 6:17 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Ni, Ray ; Yao, Jiewen > ; Gerd Hoffmann ; Taylor Beebe > ; Oliver Smith-Denny ; Bi, Dandan > ; Gao, Liming ; Kinney, > Michael D ; Leif Lindholm >

<    1   2   3   4   5   6   7   8   9   10   >