Re: [edk2-devel] Proposing v3 of MM communicate buffer

2024-08-12 Thread Kun Qin via groups.io
From: Ni, Ray Sent: Sunday, August 11, 2024 10:50 PM To: Kun Qin ; devel@edk2.groups.io Cc: Wu, Jiaxin ; Tan, Dun ; Xu, Wei6 ; Zhang, Hongbin1 ; Kinney, Michael D ; Zimmer, Vincent Subject: [EXTERNAL] Re: Proposing v3 of MM communicate buffer Kun, This PR (Mm infra by

Re: [edk2-devel] Proposing v3 of MM communicate buffer

2024-08-09 Thread Kun Qin via groups.io
(32 or 64 bit, Intel or AMD) and communicate under the new definition of data structure and PPI. Please let me know your thoughts. Your feedback is really appreciated! Regards, Kun From: Ni, Ray Sent: Thursday, August 8, 2024 8:48 PM To: Kun Qin ; devel@edk2.groups.io Cc: Wu, Jiaxin ; Tan, Du

Re: [edk2-devel] Proposing v3 of MM communicate buffer

2024-08-08 Thread Kun Qin via groups.io
ain/MmSupervisorPkg/Drivers/MmPeiLaunchers/MmIplX64Relay.inf>. We can upstream it to edk2 if folks think it will help. From: Ni, Ray Sent: Thursday, August 8, 2024 1:15 AM To: devel@edk2.groups.io; Kun Qin Cc: Wu, Jiaxin ; Tan, Dun ; Xu, Wei6 ; Zhang, Hongbin1 ; Ni, Ray ; Kinney, Michael D S

Re: [edk2-devel] Proposing v3 of MM communicate buffer

2024-08-07 Thread Kun Qin via groups.io
Adding stakeholders. Regards, Kun From: Kun Qin Sent: Wednesday, August 7, 2024 11:15 AM To: devel@edk2.groups.io Subject: Proposing v3 of MM communicate buffer Hi all, I am trying to propose a change into PI spec and would like to gather some feedback in this forum. Essentially, the current

[edk2-devel] Proposing v3 of MM communicate buffer

2024-08-07 Thread Kun Qin via groups.io
Hi all, I am trying to propose a change into PI spec and would like to gather some feedback in this forum. Essentially, the current communicate header contains a UINTN field in place, which is causing programing errors when trying to communicate the message between different operation mode (i.

Re: [edk2-devel] [PATCH 7/9] MdeModulePkg:Consume gEdkiiVariableRuntimeCacheInfoHobGuid

2024-05-17 Thread Kun Qin via groups.io
but does this routine still run properly if variable PEIM is loaded much later than memory discovered? Regards, Kun From: Ni, Ray Sent: Friday, May 17, 2024 5:10 AM To: Tan, Dun ; devel@edk2.groups.io Cc: Liming Gao ; Kun Qin ; Sean Brogan Subject: [EXTERNAL] Re: [PATCH 7/9] MdeMod

[edk2-devel] [PATCH v2 4/4] MdeModulePkg: PeiMain: Updated dispatcher for delayed dispatch

2023-10-09 Thread Kun Qin
: Dandan Bi Cc: Debkumar De Cc: Catharine West Co-authored-by: John Schock Signed-off-by: Kun Qin --- Notes: v2: - Fix up author MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Dispatcher

[edk2-devel] [PATCH v2 3/4] MdeModulePkg: PeiMain: Introduce implementation of delayed dispatch

2023-10-09 Thread Kun Qin
delayed dispatch callbacks. Cc: Jian J Wang Cc: Dandan Bi Cc: Liming Gao Cc: Debkumar De Cc: Catharine West Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- Notes: v2: - Fixed function documentation [Liming] - Removed GUID declaration internal to PEI core [Liming

[edk2-devel] [PATCH v2 2/4] MdePkg: DelayedDispatch: Added WaitOnEvent interface

2023-10-09 Thread Kun Qin
spec. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- Notes: v2: - Fixed PI spec version number to v1.8 [Liming] MdePkg/Include/Ppi/DelayedDispatch.h | 26 ++-- 1 file changed, 24 insertions(+), 2 deletions

[edk2-devel] [PATCH v2 1/4] MdePkg: DelayedDispatch: Correct PPI descriptions

2023-10-09 Thread Kun Qin
type. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- Notes: v2: - No review, no change. MdePkg/Include/Ppi/DelayedDispatch.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/MdePkg

[edk2-devel] [PATCH v2 0/4] Implement Delayed Dispatch per PI v1.8

2023-10-09 Thread Kun Qin
- Removed max entry PCD declaration and use macro instead Patch branch: https://github.com/kuqin12/edk2/tree/Delayed_Dispatch_v3 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Jian J Wang Cc: Dandan Bi Cc: Debkumar De Cc: Catharine West Kun Qin (4): MdePkg: DelayedDispatch

Re: [edk2-devel] [PATCH v1 0/3] Add support for handling SGI and pending interrupts

2023-08-03 Thread Kun Qin
e: On Wed, 26 Jul 2023 at 20:45, Kun Qin wrote: Hi Ard, Our current use case is around AP core suspension and wake-ups. The program can suspend the secondary cores through PSCI interfaces (after powering them on). BSP can then wake up the suspended cores through SGI on demand. The

Re: [edk2-devel] 回复: [PATCH v1 3/4] MdeModulePkg: PeiMain: Introduce implementation of delayed dispatch

2023-07-31 Thread Kun Qin
after your input on those. Thanks, Kun On 7/24/2023 7:17 PM, gaoliming via groups.io wrote: Kun: I add my comments below. -邮件原件- 发件人: Kun Qin 发送时间: 2023年7月21日 5:07 收件人:devel@edk2.groups.io 抄送: Jian J Wang; Dandan Bi ; Liming Gao; Debkumar De; Catharine West ; Mike Turner 主题: [PATCH

Re: [edk2-devel] [PATCH v1 0/3] Add support for handling SGI and pending interrupts

2023-07-26 Thread Kun Qin
Biesheuvel wrote: On Mon, 24 Jul 2023 at 22:15, Kun Qin wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4466 This patch series introduce a few improvements related to interrupt handling for ArmGic driver and library. 1. The current implementation of the `ArmGicSendSgiTo` is based on GIC v2

[edk2-devel] [PATCH v1 3/3] ArmPkg: ArmGic: Added functionalities to manipulate pending interrupts

2023-07-24 Thread Kun Qin
: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Kun Qin --- ArmPkg/Drivers/ArmGic/ArmGicLib.c | 162 ArmPkg/ArmPkg.ci.yaml | 2 + ArmPkg/Include/Library/ArmGicLib.h | 49 ++ 3 files changed, 213 insertions(+) diff --git a/ArmPkg/Drivers

[edk2-devel] [PATCH v1 2/3] ArmPkg: ArmGicLib: Added GIC v3 and v4 support to ArmGicSendSgiTo

2023-07-24 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4466 This change extended the existing function `ArmGicSendSgiTo` of ArmGicLib to format the incoming parameters to comply with GICv3 and GICv4 spec, and signal software generated interrupts to non secure group 1 at EL1. Cc

[edk2-devel] [PATCH v1 0/3] Add support for handling SGI and pending interrupts

2023-07-24 Thread Kun Qin
/kuqin12/edk2/tree/improve_gic_v1 Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Kun Qin (3): ArmPkg: ArmGic: Added support to send SGI to NS G1 EL1 ArmPkg: ArmGicLib: Added GIC v3 and v4 support to ArmGicSendSgiTo ArmPkg: ArmGic: Added functionalities to manipulate pending interrupts

[edk2-devel] [PATCH v1 1/3] ArmPkg: ArmGic: Added support to send SGI to NS G1 EL1

2023-07-24 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4466 This change extended the functionality of ArmGic to support sending software generated interrupts to non-secure group 1 at EL1. The change made here follows the ARM documentation `ICC_SGI1R_EL1, Interrupt Controller

[edk2-devel] [PATCH v1 3/4] MdeModulePkg: PeiMain: Introduce implementation of delayed dispatch

2023-07-20 Thread Kun Qin
delayed dispatch callbacks. Cc: Jian J Wang Cc: Dandan Bi Cc: Liming Gao Cc: Debkumar De Cc: Catharine West Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 353 MdeModulePkg/Core/Pei/PeiMain/PeiMain.c | 3

[edk2-devel] [PATCH v1 4/4] MdeModulePkg: PeiMain: Updated dispatcher for delayed dispatch

2023-07-20 Thread Kun Qin
: Dandan Bi Cc: Debkumar De Cc: Catharine West Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei

[edk2-devel] [PATCH v1 1/4] MdePkg: DelayedDispatch: Correct PPI descriptions

2023-07-20 Thread Kun Qin
type. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- MdePkg/Include/Ppi/DelayedDispatch.h | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg/Include

[edk2-devel] [PATCH v1 2/4] MdePkg: DelayedDispatch: Added WaitOnEvent interface

2023-07-20 Thread Kun Qin
spec. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Co-authored-by: Mike Turner Signed-off-by: Kun Qin --- MdePkg/Include/Ppi/DelayedDispatch.h | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg

[edk2-devel] [PATCH v1 0/4] Implement Delayed Dispatch per PI v1.8

2023-07-20 Thread Kun Qin
: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Jian J Wang Cc: Dandan Bi Cc: Debkumar De Cc: Catharine West Kun Qin (4): MdePkg: DelayedDispatch: Correct PPI descriptions MdePkg: DelayedDispatch: Added WaitOnEvent interface MdeModulePkg: PeiMain: Introduce implementation of

Re: [edk2-devel] [PATCH v5 0/9] SecurityPkg/MdePkg: Update RngLib GUID identification

2023-07-20 Thread Kun Qin
Hi Pierre, Thanks for sending this update. I tested the v5 patch series and verified it booted to Windows. Tested-by: Kun Qin Regards, Kun On 7/18/2023 4:51 AM, pierre.gond...@arm.com wrote: From: Pierre Gondois v5: - Let an implementation of BaseRngLibTimer in MdePkg to give some

Re: [edk2-devel] [edk2-platforms][PATCH V1 19/20] ArmPkg/MmCommunicationDxe: Use the FF-A transport for MM requests

2023-07-12 Thread Kun Qin
*From:* Kun Qin *Sent:* 11 July 2023 20:22 *To:* devel@edk2.groups.io ; Nishant Sharma *Cc:* Ard Biesheuvel ; Sami Mujawar ; Thomas Abraham ; Sayanta Pattanayak ; Achin Gupta ; Aditya Angadi *Subject:* Re: [edk2-devel] [edk2-platforms][PATCH V1 19/20] ArmPkg

Re: [edk2-devel] [edk2-platforms][PATCH V1 19/20] ArmPkg/MmCommunicationDxe: Use the FF-A transport for MM requests

2023-07-11 Thread Kun Qin
Hi Nishant, Thank you for sending out the patch. Can you please evaluate how much effort it would be to support the same for MmCommunicatePei? I think it would provide better coverage for the FFA support if we can have that change. Thanks, Kun On 7/11/2023 7:36 AM, Nishant Sharma wrote: Fro

Re: [edk2-devel] [PATCH v3 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache Option

2023-07-07 Thread Kun Qin
e the changes made in response to his v1 request so we'll need to get that before merging the patch. Thanks, Michael On 6/30/2023 2:14 PM, Kun Qin wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4467 Current implementation of UnitTestFrameworkPkg for shell-based unit test will sav

Re: [edk2-devel] [PATCH v2 1/1] SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator

2023-07-07 Thread Kun Qin
Hi Sami, Jiewen & Jian, Just a gentle ping on this. Could you please provide further feedback on this patch and/or merge the patch? Thanks in advance! Regards, Kun On 7/3/2023 1:09 PM, Kun Qin via groups.io wrote: Hi Sami, Would you prefer to have input from Jiewen or Jian to review

Re: [edk2-devel] [PATCH v3 0/6] SecurityPkg/MdePkg: Update RngLib GUID identification

2023-07-06 Thread Kun Qin
Hi Pierre, Thanks for sending the update. I tested on QEMU with this change (no TRNG from TFA), it works for me. Tested-by: Kun Qin Please note that the change below is still needed to avoid data abortion exception. It will be helpful if one of the maintainers can help merging it. [PATCH

Re: [edk2-devel] [PATCH v2 1/1] SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator

2023-07-03 Thread Kun Qin
Hi Sami, Would you prefer to have input from Jiewen or Jian to review this patch as well? Otherwise, would you mind helping me to merge the change? Thanks in advance! Regards, Kun On 6/29/2023 4:59 PM, Kun Qin via groups.io wrote: From: Kun Qin REF: https://bugzilla.tianocore.org

[edk2-devel] [PATCH v3 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache Option

2023-06-30 Thread Kun Qin
` shell argument to allow even more flexibility. This change was tested on proprietary physical hardware platforms and QEMU based virtual platform. Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Signed-off-by: Kun Qin --- Notes: v2: - Adding input argument [Mike Kinney

[edk2-devel] [PATCH v3 0/1] Add support for running shell test application in an immutable volume

2023-06-30 Thread Kun Qin
updated changes are verified on QEMU based Q35 virtual platform as well as proprietary physical platforms. Patch v3 branch: https://github.com/kuqin12/edk2/tree/unit_test_fv_v3 Cc: Michael D Kinney Cc: Michael Kubacki Cc: Sean Brogan Kun Qin (1): UnitTestFrameworkPkg: UnitTestPersistenceLib: Save

Re: [edk2-devel] [PATCH v1 2/8] MdePkg/MdePkg.dec: Move PcdCpuRngSupportedAlgorithm to MdePkg

2023-06-30 Thread Kun Qin
touching 2 packages in one commit? Thanks, Kun On 6/30/2023 7:30 AM, Pierre Gondois wrote: Hello Kun, On 6/29/23 22:36, Kun Qin wrote: This patch seems to have some discrepancy between the title and content :) I'm not sure I see the discrepancy between the title/content, should I

[edk2-devel] [PATCH v2 0/1] Fixing RngDxe error for ARM/AARCH64

2023-06-29 Thread Kun Qin
/message/104347 - Added reviewed-by tag This change is verified on QEMU based ARM SBSA system. Patch v2 branch: https://github.com/kuqin12/edk2/tree/fix_rng_edk2_v2 Cc: Jiewen Yao Cc: Jian J Wang Cc: Sami Mujawar Cc: Pierre Gondois Kun Qin (1): SecurityPkg: RngDxe: Fixing mAvailableAlgoArray

[edk2-devel] [PATCH v2 1/1] SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator

2023-06-29 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4491 mAvailableAlgoArray is currently allocated for "RNG_AVAILABLE_ALGO_MAX" number of bytes, whereas it was dereferenced as "EFI_RNG_ALGORITHM". This change fixed the buffer allocation logic by allocat

Re: [edk2-devel] [PATCH v1 7/8] SecurityPkg/RngDxe: Select safe default Rng algorithm

2023-06-29 Thread Kun Qin
Hi Sami, Your suggestion in https://edk2.groups.io/g/devel/message/106511 works properly during my test. But I think we still need to keep the `+  &RngGuid, ` change below as a bug fix? Thanks, Kun On 6/29/2023 3:28 AM, Sami Mujawar wrote: Hi Pierre, I think this patch would not be r

Re: [edk2-devel] [PATCH v1 2/8] MdePkg/MdePkg.dec: Move PcdCpuRngSupportedAlgorithm to MdePkg

2023-06-29 Thread Kun Qin
This patch seems to have some discrepancy between the title and content :) Can you please break this patch into 2, so that MdePkg change and SecurityPkg can be their own commit? Thanks, Kun On 5/9/2023 12:40 AM, PierreGondois wrote: From: Pierre Gondois In order to use PcdCpuRngSupportedAl

Re: [edk2-devel] [PATCH v1 1/8] MdePkg/ArmTrngLib: Remove ASSERTs in Null implementation

2023-06-29 Thread Kun Qin
Hi Pierre, Do we really need this removal of ASSERT? I tried to use the real ArmTrngLib with this patch and it seems to work fine with a TFA that does not support TRNG interfaces. I think it would be valuable to keep the ASSERT to indicate there might be an integration error? Please let me

Re: [edk2-devel] [PATCH v1 0/2] Fixing RngDxe error for ARM/AARCH64

2023-06-29 Thread Kun Qin
: Hello Kun, Thanks for the patch-set, there is another patch-set that also aims to fix the logic at: https://edk2.groups.io/g/devel/message/104341 but I haven't got feedback so far. Would it be possible to try it out to see if it also solves your issue ? Regards, Pierre On 6/28/23 22:33, Ku

[edk2-devel] [PATCH v1 2/2] SecurityPkg: RngDxe: Fixing mAvailableAlgoArray allocator

2023-06-28 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4491 mAvailableAlgoArray is currently allocated for "RNG_AVAILABLE_ALGO_MAX" number of bytes, whereas it was dereferenced as "EFI_RNG_ALGORITHM". This change fixed the buffer allocation logic by allocat

[edk2-devel] [PATCH v1 1/2] SecurityPkg: RngDxe: Unify handling of zero guid

2023-06-28 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4491 The existing logic of initializing `mAvailableAlgoArrayCount` will treat the zero GUID in `PcdCpuRngSupportedAlgorithm` as a legit case and increment `mAvailableAlgoArrayCount`, causing the RNG protocol be published

[edk2-devel] [PATCH v1 0/2] Fixing RngDxe error for ARM/AARCH64

2023-06-28 Thread Kun Qin
ge is verified on QEMU virtual platform and proprietary physical platform. Patch v1 branch: https://github.com/kuqin12/edk2/tree/fix_rng_edk2_v1 Cc: Jiewen Yao Cc: Jian J Wang Cc: Sami Mujawar Cc: Pierre Gondois Kun Qin (2): SecurityPkg: RngDxe: Unify handling of zero guid

Re: [edk2-devel] [PATCH v3 0/2] Support MM based variable services in PEI for ARM

2023-06-28 Thread Kun Qin
Thank you so much for the quick turnaround! Regards, Kun On 6/28/2023 11:44 AM, Ard Biesheuvel wrote: On Wed, 28 Jun 2023 at 01:14, Kun Qin wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This patch series is a follow-up of previous submission: https://edk2.groups.io/g/devel

Re: [edk2-devel] [PATCH v2 1/2] ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI

2023-06-27 Thread Kun Qin
pi". This was because the "Ppi" field inside "EFI_PEI_PPI_DESCRIPTOR" was defined as "VOID*" and not doing so will cause the build failure. Please let me know if you have further feedback. Thanks in advance. Regards, Kun On 6/27/2023 7:36 AM, Ard Biesheuvel wrot

[edk2-devel] [PATCH v3 2/2] MdeModulePkg: Variable: Introduce MM based variable read service in PEI

2023-06-27 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the Standalone MM based variable read capability in PEI phase for applicable platforms (such as ARM platforms). Similar to the x86 counterpart, MM communicate PPI is used to request variable

[edk2-devel] [PATCH v3 1/2] ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI

2023-06-27 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the MM communicate support in PEI phase for ARM based platforms. Similar to the DXE counterpart, `PcdMmBufferBase` is used as communicate buffer and SMC will be invoked to communicate to TrustZone when

[edk2-devel] [PATCH v3 0/2] Support MM based variable services in PEI for ARM

2023-06-27 Thread Kun Qin
: Sami Mujawar Kun Qin (2): ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI MdeModulePkg: Variable: Introduce MM based variable read service in PEI ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.c | 221 MdeModulePkg/Universal/Variable/MmVariablePei

Re: 回复: [edk2-devel] [PATCH v1 2/2] MdeModulePkg: Variable: Introduce MM based variable read service in PEI

2023-06-26 Thread Kun Qin
Liming -邮件原件- 发件人: devel@edk2.groups.io 代表 Kun Qin 发送时间: 2023年6月9日 4:45 收件人: devel@edk2.groups.io 抄送: Hao A Wu ; Liming Gao ; Jian J Wang ; Ronny Hansen ; Shriram Masanamuthu Chinnathurai ; Preshit Harlikar 主题: [edk2-devel] [PATCH v1 2/2] MdeModulePkg: Variable: Introduce MM based

Re: [edk2-devel] [PATCH v1 1/2] ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI

2023-06-26 Thread Kun Qin
response inline marked [SAMI]. Regards, Sami Mujawar On 08/06/2023 09:44 pm, Kun Qin wrote: From: Kun Qin REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the MM communicate support in PEI phase for ARM based platforms. Similar to the DXE counterpart, `PcdMmBufferBase

[edk2-devel] [PATCH v2 2/2] MdeModulePkg: Variable: Introduce MM based variable read service in PEI

2023-06-26 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the Standalone MM based variable read capability in PEI phase for applicable platforms (such as ARM platforms). Similar to the x86 counterpart, MM communicate PPI is used to request variable

[edk2-devel] [PATCH v2 1/2] ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI

2023-06-26 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the MM communicate support in PEI phase for ARM based platforms. Similar to the DXE counterpart, `PcdMmBufferBase` is used as communicate buffer and SMC will be invoked to communicate to TrustZone when

[edk2-devel] [PATCH v2 0/2] Support MM based variable services in PEI for ARM

2023-06-26 Thread Kun Qin
ndholm Cc: Ard Biesheuvel Cc: Sami Mujawar Kun Qin (2): ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI MdeModulePkg: Variable: Introduce MM based variable read service in PEI ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.c | 212 +++ MdeModulePkg

Re: [edk2-devel] [PATCH v1 0/2] Support MM based variable services in PEI for ARM

2023-06-22 Thread Kun Qin
Thanks a lot, Sami! On 6/22/2023 12:06 AM, Sami Mujawar wrote: Hi Kun, Apologies for the delay in reviewing. I will take a look at this series shortly and get back. Regards, Sami Mujawar On 22/06/2023, 06:07, "Kun Qin" mailto:kuqi...@gmail.com>> wrote: Hi Arm and M

Re: [edk2-devel] [PATCH v2 0/1] Add support for running shell test application in an immutable volume

2023-06-22 Thread Kun Qin
Also, a gentle ping on this topic. Could any maintainer help reviewing this change? Any feedback is appreciated. Regards, Kun On 6/6/2023 6:07 PM, Kun Qin via groups.io wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4467 This is a follow-up of a previously submitted patch series

Re: [edk2-devel] [PATCH v2 0/3] Adding Status Code Definitions from PI Spec v1.8

2023-06-21 Thread Kun Qin
/16/2023 4:38 PM, Kun Qin via groups.io wrote: Hi Mike, Thank you for the rb tag. Could you please help merging the change if you have a chance? If it is preferable to send a v3 with your extra tag, please let me know as well. Thanks, Kun On 6/14/2023 3:31 PM, Michael D Kinney wrote

Re: [edk2-devel] [PATCH v1 0/2] Support MM based variable services in PEI for ARM

2023-06-21 Thread Kun Qin
Hi Arm and MdeModule package maintainers, This patch series has been sent out for almost 2 weeks without any reviews. Could you please provide feedback on the change when you have a chance? Any input is appreciated. Regards, Kun On 6/8/2023 1:44 PM, Kun Qin via groups.io wrote: REF: https

Re: [edk2-devel] [PATCH v2 0/3] Adding Status Code Definitions from PI Spec v1.8

2023-06-16 Thread Kun Qin
-Original Message- From: devel@edk2.groups.io On Behalf Of Kun Qin Sent: Thursday, June 8, 2023 11:25 AM To: devel@edk2.groups.io Cc: Yao, Jiewen ; Wang, Jian J ; Zhang, Qi1 ; Kumar, Rahul R ; Kinney, Michael D ; Gao, Liming ; Liu, Zhiguang Subject: [edk2-devel] [PATCH v2 0/3] Adding Status Code

Re: [edk2-devel] [PATCH v2 0/3] Adding Status Code Definitions from PI Spec v1.8

2023-06-13 Thread Kun Qin
Hi EDK2 maintainers, This patch series was reviewed the week before and was not merged. Could you please help merging this when you have a chance? Thanks in advance. Regards, Kun On 6/8/2023 11:25 AM, Kun Qin via groups.io wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3794 REF

[edk2-devel] [PATCH v1 2/2] MdeModulePkg: Variable: Introduce MM based variable read service in PEI

2023-06-08 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the Standalone MM based variable read capability in PEI phase for applicable platforms (such as ARM platforms). Similar to the x86 counterpart, MM communicate PPI is used to request variable

[edk2-devel] [PATCH v1 0/2] Support MM based variable services in PEI for ARM

2023-06-08 Thread Kun Qin
code, thus will be ideally added to MdeModulePkg. Patch v1 branch: https://github.com/kuqin12/edk2/tree/arm_var_pei_v1 Cc: Hao A Wu Cc: Liming Gao Cc: Jian J Wang Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Kun Qin (2): ArmPkg: MmCommunicationPei: Introduce MM communic

[edk2-devel] [PATCH v1 1/2] ArmPkg: MmCommunicationPei: Introduce MM communicate in PEI

2023-06-08 Thread Kun Qin
From: Kun Qin REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4464 This change introduced the MM communicate support in PEI phase for ARM based platforms. Similar to the DXE counterpart, `PcdMmBufferBase` is used as communicate buffer and SMC will be invoked to communicate to TrustZone when

[edk2-devel] [PATCH v2 3/3] SecurityPkg: SubClassTpm: Updated default value

2023-06-08 Thread Kun Qin
-by: Kun Qin Reviewed-by: Jiewen Yao Reviewed-by: Liming Gao --- Notes: v2: - Added reviewed-by tag [Jiewen] - Added reviewed-by tag [Liming] SecurityPkg/SecurityPkg.dec | 6 +++--- SecurityPkg/SecurityPkg.uni | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[edk2-devel] [PATCH v2 1/3] MdePkg: PiStatusCode: Add new Host Software class Error Code to MdePkg

2023-06-08 Thread Kun Qin
to another. These error codes could provide helpful datapoints to OEMs to investigate and prevent system failures in general. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin Reviewed-by: Liming Gao --- Notes: v2: - Added reviewed-by tag [Liming] MdePkg

[edk2-devel] [PATCH v2 2/3] MdePkg: PiStatusCode: Add TPM subclass definition to MdePkg

2023-06-08 Thread Kun Qin
provide helpful datapoints to OEMs to analyze system security state and healthiness, as well as avoid definition collision with other existing peripheral subclass definitions. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin Reviewed-by: Liming Gao --- Notes: v2

[edk2-devel] [PATCH v2 0/3] Adding Status Code Definitions from PI Spec v1.8

2023-06-08 Thread Kun Qin
and no other changes. Patch v2 branch: https://github.com/kuqin12/edk2/tree/pi_v1p8_v2 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Kun Qin (3): MdePkg: PiStatusCode: Add new Host Software class Error Code to MdePkg

Re: [edk2-devel] Using Depex for Standalone MM drivers on ARM

2023-06-08 Thread Kun Qin
Forgot to add applicable maintainers earlier.. It would be great if StandaloneMmPkg maintainers could shed some light here. Thanks, Kun On 6/6/2023 5:57 PM, Kun Qin via groups.io wrote: Hi all, We found an issue a while back on ARM systems, where the Standalone MM drivers with Depex

Re: [edk2-devel] 回复: [PATCH v1 0/3] Adding Statuc Code Definitions from PI Spec v1.8

2023-06-06 Thread Kun Qin
. Thanks, Kun On 6/1/2023 6:18 PM, gaoliming via groups.io wrote: Reviewed-by: Liming Gao -邮件原件- 发件人: Kun Qin 发送时间: 2023年6月2日 2:30 收件人: devel@edk2.groups.io 抄送: Jiewen Yao ; Jian J Wang ; Qi Zhang ; Rahul Kumar ; Michael D Kinney ; Liming Gao ; Zhiguang Liu 主题: [PATCH v1 0/3] Adding Statuc

Re: [edk2-devel] [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive

2023-06-06 Thread Kun Qin
function can look for UEFI Shell arguments and if args specify alternate path for unit test cache then save some state for that path. Mike -Original Message- From: Kun Qin Sent: Thursday, June 1, 2023 8:50 AM To: Kinney, Michael D ; devel@edk2.groups.io Cc: Sean Brogan ; Michael

[edk2-devel] [PATCH v2 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache Option

2023-06-06 Thread Kun Qin
` shell argument to allow even more flexibility. This change was tested on proprietary physical hardware platforms and QEMU based virtual platform. Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Signed-off-by: Kun Qin --- Notes: v2: - Adding input argument [Mike Kinney

[edk2-devel] [PATCH v2 0/1] Add support for running shell test application in an immutable volume

2023-06-06 Thread Kun Qin
. The updated changes are verified on QEMU based Q35 virtual platform as well as proprietary physical platforms. Patch v2 branch: https://github.com/kuqin12/edk2/tree/unit_test_fv_v2 Cc: Michael D Kinney Cc: Michael Kubacki Cc: Sean Brogan Kun Qin (1): UnitTestFrameworkPkg

[edk2-devel] Using Depex for Standalone MM drivers on ARM

2023-06-06 Thread Kun Qin
Hi all, We found an issue a while back on ARM systems, where the Standalone MM drivers with Depex specified will run into a hang when TFA hands off to Standalone MM core. (https://bugzilla.tianocore.org/show_bug.cgi?id=3883) After some debugging, the logic in the ticket still seems to be true un

[edk2-devel] [PATCH v1 2/3] MdePkg: PiStatusCode: Add TPM subclass definition to MdePkg

2023-06-01 Thread Kun Qin
provide helpful datapoints to OEMs to analyze system security state and healthiness, as well as avoid definition collision with other existing peripheral subclass definitions. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- MdePkg/Include/Pi/PiStatusCode.h | 1 + 1

[edk2-devel] [PATCH v1 1/3] MdePkg: PiStatusCode: Add new Host Software class Error Code to MdePkg

2023-06-01 Thread Kun Qin
to another. These error codes could provide helpful datapoints to OEMs to investigate and prevent system failures in general. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- MdePkg/Include/Pi/PiStatusCode.h | 41 ++-- 1 file changed, 21

[edk2-devel] [PATCH v1 3/3] SecurityPkg: SubClassTpm: Updated default value

2023-06-01 Thread Kun Qin
-by: Kun Qin --- SecurityPkg/SecurityPkg.dec | 6 +++--- SecurityPkg/SecurityPkg.uni | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SecurityPkg/SecurityPkg.dec b/SecurityPkg/SecurityPkg.dec index 0a8042d63fe1..53aa7ec43557 100644 --- a/SecurityPkg/SecurityPkg.dec +++ b

[edk2-devel] [PATCH v1 0/3] Adding Statuc Code Definitions from PI Spec v1.8

2023-06-01 Thread Kun Qin
Cc: Zhiguang Liu Kun Qin (3): MdePkg: PiStatusCode: Add new Host Software class Error Code to MdePkg MdePkg: PiStatusCode: Add TPM subclass definition to MdePkg SecurityPkg: SubClassTpm: Updated default value MdePkg/Include/Pi/PiStatusCode.h | 42 ++-- SecurityPkg

Re: [edk2-devel] [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive

2023-06-01 Thread Kun Qin
-Original Message- From: Kun Qin Sent: Thursday, June 1, 2023 8:50 AM To: Kinney, Michael D ; devel@edk2.groups.io Cc: Sean Brogan ; Michael Kubacki Subject: Re: [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive Hi Mike, Yes, that would indeed serve the

Re: [edk2-devel] [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive

2023-06-01 Thread Kun Qin
? Mike -Original Message- From: Kun Qin Sent: Wednesday, May 31, 2023 12:14 PM To: devel@edk2.groups.io Cc: Sean Brogan ; Michael Kubacki ; Kinney, Michael D Subject: [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive From: kuqin12 <42554914+k

[edk2-devel] [PATCH v1 1/1] UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache to Drive

2023-05-31 Thread Kun Qin
rdware platforms and QEMU based virtual platform. Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Signed-off-by: Kun Qin --- UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.c | 81 +++- 1 file changed, 43 inse

[edk2-devel] [PATCH v1 0/1] Add support for running shell test application in an immutable volume

2023-05-31 Thread Kun Qin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4467 Current implementation of UnitTestFrameworkPkg for shell-based unit test will save the unit test cache to the same file system as the test application itself. This works as long as the test application is on a writable volume, such as USB or

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

2023-05-25 Thread Kun Qin
wrote: Hi Kun, I've updated my answers in your original mail. Thanks, Dun -Original Message- From: Kun Qin Sent: Saturday, May 20, 2023 10:00 AM To: devel@edk2.groups.io; Tan, Dun Cc: Dong, Eric ; Ni, Ray ; Kumar, Rahul R ; Gerd Hoffmann Subject: Re: [edk2-devel] [Patch V4

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

2023-05-24 Thread Kun Qin
validation process. Thanks, Kun On 5/23/2023 2:14 AM, duntan wrote: Hi Kun, I've updated my answers in your original mail. Thanks, Dun -Original Message- From: Kun Qin Sent: Saturday, May 20, 2023 10:00 AM To: devel@edk2.groups.io; Tan, Dun Cc: Dong, Eric ; Ni, Ray ; Kumar, Ra

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

2023-05-19 Thread Kun Qin
Hi Dun, Thanks for the notice on the other thread (v4 04/15). I have a few more questions on this specific patch (and a few associated commits related to it): Why would we allow page table manipulation after `mIsReadOnlyPageTable` is evaluated to TRUE? As far as I can tell, `mIsReadOnlyPag

Re: [edk2-devel] [Patch V4 04/15] MdeModulePkg: Remove RO and NX protection when unset guard page

2023-05-16 Thread Kun Qin
Hi Dun, I might have missed the context, but could you please explain why we need to clear "EFI_MEMORY_XP"? It is understandable that you would like to clear RO. But would it make more sense to clear XP only when needed (i.e. code page allocation)? Thanks, Kun On 5/16/2023 2:59 AM, duntan

[edk2-devel] [PATCH v1 1/1] Define security policy in SECURITY.md file for repository

2023-03-09 Thread Kun Qin
From: Sean Brogan Create SECURITY.md security policy for tianocore edk2 leveraging CVD and the Github Private Vulnerability Reporting process. Co-authored-by: Sean Brogan Signed-off-by: Kun Qin --- SECURITY.md | 33 1 file changed, 33 insertions(+) diff --git a

[edk2-devel] [PATCH v1 0/1] Define security policy in SECURITY.md file for repository

2023-03-09 Thread Kun Qin
This change added a markdown file as a policy guideline for Tianocore EDK2 community to handle security sensitive reports. Patch v1 branch: https://github.com/kuqin12/edk2/tree/patch-1 Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Miki Demeter Cc: Sean Brogan Sean Brogan (1):

Re: [edk2-devel] [PATCH v5 0/2] ArmPkg: Implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls for AArch64

2023-01-23 Thread Kun Qin
Thanks for sharing the updated patches. I tested the patches on both QEMU and FVP, they work for all my use cases. Although my vote probably does not mean much, thanks again for sharing this update: Tested-by: Kun Qin On 1/16/2023 8:57 PM, Rebecca Cran wrote: Implement

Re: [edk2-devel] [PATCH v4 2/3] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2023-01-12 Thread Kun Qin
added some comments under [KQ-3]. Please let me know if any thoughts about them. Sorry again for the fragmented email. Regards, Kun On 1/6/2023 2:16 PM, Kun Qin wrote: Sorry, hit the send button too soon... One more comment under [KQ-2]. Thanks, Kun On 1/6/2023 2:11 PM, Kun Qin via

Re: [edk2-devel] [PATCH v4 3/3] MdeModulePkg: Add new Application/MpServicesTest application

2023-01-06 Thread Kun Qin
Hi Rebecca, Thanks for sharing this patch. I found a few minor issues when running this test app. Please see comments with [KQ] below. Regards, Kun On 1/4/2023 7:37 AM, Rebecca Cran wrote: The MpServicesTest application exercises the EFI_MP_SERVICES_PROTOCOL. usage: MpServicesTest -A [-O

Re: [edk2-devel] [PATCH v4 2/3] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2023-01-06 Thread Kun Qin
Sorry, hit the send button too soon... One more comment under [KQ-2]. Thanks, Kun On 1/6/2023 2:11 PM, Kun Qin via groups.io wrote: Hi Rebecca, I have tried to use this for a few different scenarios and below is a few minor issues I have found and potential changes (marked with [KQ]). Please

Re: [edk2-devel] [PATCH v4 2/3] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2023-01-06 Thread Kun Qin
Hi Rebecca, I have tried to use this for a few different scenarios and below is a few minor issues I have found and potential changes (marked with [KQ]). Please let me know if I have any misunderstanding on the protocol itself. Thanks, Kun On 1/4/2023 7:37 AM, Rebecca Cran wrote: Add suppor

Re: [edk2-devel] [PATCH v4 0/3] ArmPkg,MdeModulePkg: Implement EFI_MP_SERVICES_PROTOCOL for AArch64 and add an MpServicesTest application to exercise it

2023-01-06 Thread Kun Qin
Hi Rebecca, Thanks for the information. Somehow these patches (i.e. https://edk2.groups.io/g/devel/message/98106) just landed on groups.io last night. I will test the latest version of your patches and reply back here. Regards, Kun On 1/6/2023 10:42 AM, Rebecca Cran wrote: The patches aren'

Re: [edk2-devel] [PATCH v4 0/3] ArmPkg,MdeModulePkg: Implement EFI_MP_SERVICES_PROTOCOL for AArch64 and add an MpServicesTest application to exercise it

2023-01-05 Thread Kun Qin
Hi Ard/Rebecca, Thanks for bringing this to the mailing list. But somehow I cannot find the patches sent along with this v4 cover letter. Could you please point me to them? I have been running the previous version of this patch and noticed a minor issue when the wait event is specified but th

Re: [edk2-devel] [PATCH 1/2] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2022-11-29 Thread Kun Qin
Thanks for the update, Rebecca. I will also keep an eye on the cache issue when I have a chance to run this on FVP models. Regards, Kun On 11/28/2022 4:04 PM, Rebecca Cran wrote: On 11/28/22 15:59, Kun Qin wrote: Hi Rebecca/Ard, I was trying to reach out regarding the original patches

Re: [edk2-devel] [PATCH 1/2] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2022-11-28 Thread Kun Qin
let me know if you have other concerns: https://github.com/kuqin12/mu_silicon_arm_tiano/commit/c76072b37018276f2fec2582d0c540be5b40d0f2 Lastly, do you plan to merge these patches in the near future? This will be a great add-on for ARM platforms. Thanks, Kun On 9/29/2022 11:45 AM, Kun Qi

Re: [edk2-devel] [PATCH 1/2] ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls

2022-09-29 Thread Kun Qin
Hi Rebecca, Thanks for sending this patch. I have a few questions inline "[KQ]". Could you please help me to understand the patch better? Thanks in advance. Regards, Kun On 8/29/2022 8:59 AM, Rebecca Cran wrote: Add support for EFI_MP_SERVICES_PROTOCOL during the DXE phase under AArch64. PS

Re: [edk2-devel] [PATCH v1 1/1] BaseTools: Edk2ToolsBuild: Fixing pipeline build due to path too long

2022-09-22 Thread Kun Qin
d like me to send a v2 patch? Regards, Kun On 09/22/2022 04:26, Bob Feng wrote: Create PR https://github.com/tianocore/edk2/pull/3378 for merge. -Original Message- From: devel@edk2.groups.io On Behalf Of Bob Feng Sent: Thursday, September 22, 2022 7:11 PM To: Kun Qin ; devel@edk2.gro

[edk2-devel] [PATCH v1 0/1] Fixing BaseTool build break

2022-09-21 Thread Kun Qin
Currently the BaseTool build step is failing and caused the pipeline to malfunciton. The issue is due to the environment path too long during the build process and adding VC toolchain path to the environment variable will fail due to Windows varaible length limit. Patch v1 branch: https://github.

[edk2-devel] [PATCH v1 1/1] BaseTools: Edk2ToolsBuild: Fixing pipeline build due to path too long

2022-09-21 Thread Kun Qin
to replace the existing path, which is desirable in the specific use case. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Co-authored-by: Sean Brogan Signed-off-by: Kun Qin --- BaseTools/Edk2ToolsBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools

Re: [edk2-devel] [PATCH v1 0/2] MM communicate functionality in variable policy

2022-09-07 Thread Kun Qin
M, Ard Biesheuvel wrote: On Mon, 13 Dec 2021 at 19:23, Kun Qin wrote: Hi ArmPkg and MdeModulePkg maintainers, Now that the hard freeze is lifted, could you please provide some feedback on these patches when you have a chance? My apologies for not responding to these changes. If these patches are

Re: [edk2-devel] [PATCH v4 0/6] Enhance DynamicTablesPkg modules

2022-09-01 Thread Kun Qin
Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 10/08/2022 11:28 pm, Kun Qin wrote: REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3996 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3997 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3998 This patch series is a follow-up of

  1   2   3   4   5   6   >