Re: [edk2-devel] [PATCH] Maintainers.txt: Update for IntelFsp2Pkg and IntelFsp2WrapperPkg.

2023-04-26 Thread Chen, Gang C
Reviewed-by: Chen Gang C mailto:gang.c.c...@intel.com>> Best Regards Gang From: Kuo, Ted Sent: Thursday, April 27, 2023 11:45 AM To: Mohapatra, Susovan ; Chiu, Chasel ; devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Ng, Ray Han Lim ; Chen, Gang C ; Zeng,

[edk2-devel] [PATCH] MdePkg BasePeCoffLib: Ignore the debug entry read error after it is found

2023-04-26 Thread gaoliming via groups.io
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4425 This change is to support the pre-built EFI image on the old Edk2 code. Old Edk2 GenFw tool generates the wrong debug entry in EFI image. Those pre-built images can be loaded before d6457b309. Signed-off-by: Liming Gao Cc: Ard Biesheuvel C

Re: [edk2-devel] [PATCH] UefiPayloadPkg: Fix issues when MULTIPLE_DEBUG_PORT_SUPPORT is true

2023-04-26 Thread Guo, Gua
Reviewed-by: Gua Guo -Original Message- From: Hsieh, PaytonX Sent: Thursday, April 27, 2023 2:14 PM To: devel@edk2.groups.io Cc: Hsieh, PaytonX ; Dong, Guo ; Ni, Ray ; Rhodes, Sean ; Lu, James ; Guo, Gua Subject: [PATCH] UefiPayloadPkg: Fix issues when MULTIPLE_DEBUG_PORT_SUPPORT is

[edk2-devel] [PATCH v2] MinPlatformPkg: Update HWSignature filed in FADT

2023-04-26 Thread VincentX Ke
From: VincentX Ke REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4428 Calculating CRC based on checksum from all ACPI tables. Update HWSignature filed in FADT based on CRC while ACPI table changed. Signed-off-by: VincentX Ke Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming G

[edk2-devel] [PATCH] Release build in GCC5 has warning message Wreturn-local-addr in HiiLib

2023-04-26 Thread JoeX Lu
CC: Jian J Wang CC: Liming Gao CC: Dandan Bi CC: Eric Dong CC: devel@edk2.groups.io Signed-off-by: JoeX Lu --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModu

Re: [edk2-devel] [PATCH 1/1] SecurityPkg/DxeImageVerificationLib: Add AUTH_SIG_NOT_FOUND Action

2023-04-26 Thread Min Xu
Hi, Nhi Pham Yao, Jiewen and Wang, Jian are the maintainers of SecurityPkg. They can help to merge the patch if they have no concerns about the patch. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Nhi Pham > via groups.io > Sent: Thursday, April 27, 2023 1:38 PM > To: Xu

Re: [edk2-devel] [PATCH 1/1] SecurityPkg/DxeImageVerificationLib: Add AUTH_SIG_NOT_FOUND Action

2023-04-26 Thread Nhi Pham via groups.io
Thanks Min. Could you help merge this patch to edk2? Regards, Nhi On 4/26/2023 2:54 PM, Xu, Min M wrote: It's good to me. Reviewed-by: Min Xu Thanks -Original Message- From: Nhi Pham Sent: Thursday, April 20, 2023 11:49 AM To: Xu, Min M ; devel@edk2.groups.io; n...@os.amperecompu

Re: [edk2-devel] [edk2-platforms][PATCH V3 4/5] Platform/Sgi: Initialize additional UART controllers

2023-04-26 Thread Vivek Kumar Gautam
Hi Sami, On 4/26/23 21:47, Sami Mujawar wrote: Hi Vivek, Thank you for this patch. I have some minor feedback that I will address before merging. Reviewed-by: Sami Mujawar Thank you for the review of this patch and other patches in the series. Please find my comments inline below. Re

[edk2-devel] [PATCH v3 3/3] .azurepipelines: Switch linux image default to Fedora-37

2023-04-26 Thread Guo, Gua
From: Gua Guo Switch default linux build image from Fedora-35 to Fedora-37 Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Cc: Oliver Steffen Cc: Chris Fernald Signed-off-by: Gua Guo Reviewed-by: Michael Kubacki --- .azurepipelines/templates/defaults.yml | 2 +- 1 file changed,

[edk2-devel] [PATCH v3 1/3] BaseTools/Plugin: Report error if code coverage failure

2023-04-26 Thread Guo, Gua
From: Gua Guo If code coverage exist failure, CI/CD need to catch it Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Signed-off-by: Gua Guo Reviewed-by: Michael D Kinney Reviewed-by: Michael Kubacki --- .../HostBasedUnitTestRunner/HostBasedUnitTestRunner.py| 8 ++-- 1 fil

[edk2-devel] [PATCH v3 2/3] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Guo, Gua
From: Gua Guo Azure should install code coverage tool (lcov), it didn't exist on Fedora and Ubuntu by default. Update docker setting, pick below solution between 47addc9 and 3b3eb8f 3b3eb8f Fixes and improvements to dev containers (#69) 54e5bd1 Enable GTK on Fedora QEMU (#63) f1c7a20 Fedora: ins

Re: [edk2-devel] [PATCH] Maintainers.txt: Update for IntelFsp2Pkg and IntelFsp2WrapperPkg.

2023-04-26 Thread Kuo, Ted
Reviewed-by: Kuo, Ted mailto:ted@intel.com>> From: Mohapatra, Susovan Sent: Thursday, April 27, 2023 11:20 AM To: Chiu, Chasel ; devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Ng, Ray Han Lim ; Chen, Gang C ; Zeng, Star ; Kuo, Ted ; S, Ashraf Ali Subj

回复: [edk2-devel] [PATCH 4/6] BaseTools: Update toolsetup.bat and Tests/PythonTest.py to check ver

2023-04-26 Thread gaoliming via groups.io
Rebecca: This change will break some development machines those have not installed Python 3.9 or above. Now, those machines can still work. I suggest to report warning message first if the python version doesn't match. Thanks Liming > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Rebecca C

Re: [edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]

2023-04-26 Thread JoeX Lu
Hi Liming, A1: Just compiler with GCC5 in Linux and search Wreturn-local-addr in Build log A2: Thanks for your comment, I will resend the patches after separating the patch for different patches. Best Regards, Joe Lu -Original Message- From: gaoliming Sent: Thursday, April 27, 202

Recall: [edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]

2023-04-26 Thread JoeX Lu
Lu, Pen-ChunX would like to recall the message, "[edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]". -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103685): https://edk2.groups.io/g/devel/message/103685 Mute This T

Re: [edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]

2023-04-26 Thread JoeX Lu
Hi Liming, A1: Just execute "python3.8 BirchStreamRpPkg/PlatformBIOSBuild.py -b RELEASE -t GCC5" in Linux and search Wreturn-local-addr in Build log A2: Thanks for your comment, I will resend the patches after separating the patch for different patches. Best Regards, Joe Lu -Original Me

回复: [edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]

2023-04-26 Thread gaoliming via groups.io
Pen: How do you find this warning message? And, please separate the patch for the different packages. Thanks Liming > -邮件原件- > 发件人: devel@edk2.groups.io 代表 JoeX Lu > 发送时间: 2023年4月25日 14:40 > 收件人: devel@edk2.groups.io > 抄送: JoeX Lu ; Jian J Wang > ; Liming Gao ; Dandan > Bi ; Eric Do

Re: [edk2-devel] [PATCH v2 2/2] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Chris Fernald
Except the context previously mentioned by Mike and Michael, looks good to me. Reviewed-by: Chris Fernald On 4/26/2023 5:34 PM, Guo, Gua wrote: From: Gua Guo Azure should install code coverage tool (lcov), it didn't exist on Fedora and Ubuntu by default. Cc: Michael D Kinney Cc: Sean Brog

[edk2-devel] [PATCH v1] MinPlatformPkg: Update HWSignature filed in FADT

2023-04-26 Thread VincentX Ke
From: VincentX Ke REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4428 Calculating CRC based on checksum from all ACPI tables. Update HWSignature filed in FADT based on CRC while ACPI table changed. Signed-off-by: VincentX Ke --- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.

Re: [edk2-devel] [PATCH v2 2/2] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Michael Kubacki
I agree with Mike that there should be more context in the commit message about the change that added lcov installation to the container (https://github.com/tianocore/containers/commit/f1c7a20f641852034b0d7e8c1b209407c92560f2). Ideally, a summary of changes from the previous container version t

Re: [edk2-devel] [PATCH v1 1/2] Add the volatile keyword to NvmExpressDxe's Passthru CQs and SQs.

2023-04-26 Thread Wu, Hao A
Thanks Oliver, Agree with your points. Let's keep "Sq" as is and mark "Cq" as volatile. Best Regards, Hao Wu > -Original Message- > From: Oliver Smith-Denny > Sent: Thursday, April 27, 2023 5:07 AM > To: devel@edk2.groups.io; Wu, Hao A ; Ni, Ray > > Cc: Wang, Jian J ; Gao, Liming > ; M

Re: [edk2-devel] [PATCH v2 2/2] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Guo, Gua
Sure, I will update the commit message. From: Kinney, Michael D Sent: Thursday, April 27, 2023 8:52:40 AM To: Guo, Gua ; devel@edk2.groups.io Cc: Sean Brogan ; Michael Kubacki ; Oliver Steffen ; fernald, chris ; Kinney, Michael D Subject: RE: [PATCH v2 2/2] .az

Re: [edk2-devel] [PATCH v2 1/2] BaseTools/Plugin: Report error if code coverage failure

2023-04-26 Thread Michael Kubacki
Reviewed-by: Michael Kubacki On 4/26/2023 8:34 PM, Guo, Gua wrote: From: Gua Guo If code coverage exist failure, CI/CD need to catch it Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Signed-off-by: Gua Guo --- .../HostBasedUnitTestRunner/HostBasedUnitTestRunner.py| 8

Re: [edk2-devel] [PATCH v2 2/2] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Michael D Kinney
Hi Gua, It is hard to review this type of patch without more context. Can you provide a link to the PR or branch where the docker image was updated? That information should be part of the commit message. Thanks, Mike > -Original Message- > From: Guo, Gua > Sent: Wednesday, April 26,

Re: [edk2-devel] [PATCH v2 1/2] BaseTools/Plugin: Report error if code coverage failure

2023-04-26 Thread Michael D Kinney
Reviewed-by: Michael D Kinney > -Original Message- > From: Guo, Gua > Sent: Wednesday, April 26, 2023 5:34 PM > To: devel@edk2.groups.io > Cc: Guo, Gua ; Kinney, Michael D > ; Sean Brogan ; > Michael Kubacki > Subject: [PATCH v2 1/2] BaseTools/Plugin: Report error if code coverage > f

[edk2-devel] [PATCH v2 1/2] BaseTools/Plugin: Report error if code coverage failure

2023-04-26 Thread Guo, Gua
From: Gua Guo If code coverage exist failure, CI/CD need to catch it Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Signed-off-by: Gua Guo --- .../HostBasedUnitTestRunner/HostBasedUnitTestRunner.py| 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Bas

[edk2-devel] [PATCH v2 2/2] .azurepipelines: Choose container that have installed lcov

2023-04-26 Thread Guo, Gua
From: Gua Guo Azure should install code coverage tool (lcov), it didn't exist on Fedora and Ubuntu by default. Cc: Michael D Kinney Cc: Sean Brogan Cc: Michael Kubacki Cc: Oliver Steffen Cc: Chris Fernald Signed-off-by: Gua Guo --- .azurepipelines/templates/defaults.yml | 2 +- 1 file cha

Re: [edk2-devel][PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Guo, Gua
You can check with network_fv or bds_fv [cid:image001.png@01D978D3.909189F0] Thanks, Gua From: devel@edk2.groups.io On Behalf Of Sheng Lean Tan Sent: Wednesday, April 26, 2023 9:11 PM To: devel@edk2.groups.io; Guo, Gua Cc: Rhodes, Sean ; Benjamin Doron ; Dong, Guo ; Ni, Ray ; Lu, James Subj

Re: [edk2-devel] [PATCH v4 1/1] MdePkg/BaseRngLib: Add a smoketest for RDRAND and check CPUID

2023-04-26 Thread Benjamin Doron
Hi, Is there merit to removing the assert statement? When this instance of the RngLib class is used, the platform builder says there's RNG support. Asserts are a little easier to see than debug prints, especially when they stall the platform. I think that leaving it in is better. If asserts don'

Re: [edk2-devel] [PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Benjamin Doron
I hadn't seen the bugzilla yet, though I know the issue. See patch 1/2, the current approach is to use RngLibTimerLib if the build-time configuration indicates. This isn't recommended but sufficient for building for platforms which require the library class - I think OpensslLib has a dependency.

[edk2-devel] How to properly get Simple File System Protocol on RAM Disk

2023-04-26 Thread Andy Falanga
Hello to all, I believe that I'm asking this question in the correct group. I asked this on Stack Overflow too so I'm just posting that below. Since this is straight text, please forgive the Markdown but hopefully it will help separate things. I have need to make a RAM Disk during the DXE phase o

[edk2-devel] [PATCH] * UefiPayloadPkg: Clang dependency removal

2023-04-26 Thread brucex . wang
From: BruceX Wang REF: TBD Use Python to replace llvm-objcopy in UniversalPayloadBuild.py. 1. AddSection32() and AddSection64(): Make a section named with the contents of . 2. RemoveSection32() and RemoveSection64(): Remove . 3. ReplaceFv (): remove the section before add the section if the fil

[edk2-devel] [PATCH] Fix GCC5 Release build warning [-Wreturn-local-addr]

2023-04-26 Thread JoeX Lu
Cc: Jian J Wang Cc: Liming Gao Cc: Dandan Bi Cc: Eric Dong Cc: devel@edk2.groups.io Cc: Jiewen Yao Signed-off-by: JoeX Lu --- MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 20 --- .../HashLibBaseCryptoRouterPei.c | 19 ++ 2 files changed, 28 ins

Re: [edk2-devel] [PATCH V1 1/1] OvmfPkg/PlatformPei: Skip PlatformInitEmuVariableNvStore in SEV guest

2023-04-26 Thread Lendacky, Thomas via groups.io
On 4/24/23 04:45, Gerd Hoffmann wrote: On Fri, Apr 21, 2023 at 03:49:27PM -0500, Tom Lendacky wrote: On 4/21/23 04:18, Gerd Hoffmann wrote: Hmm, good question. Can the guest figure what memory ranges are part of the launch measurement? I have a patch here (attached below) which refines flash

Re: [edk2-devel][PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Pedro Falcato
On Tue, Apr 25, 2023 at 6:09 PM Benjamin Doron wrote: > > From: Benjamin Doron > > Uses CPU RDRAND support and installs the EfiRngProtocol. > The protocol may be used by iPXE or the Linux kernel to gather entropy. > > Cc: Guo Dong > Cc: Ray Ni > Cc: Sean Rhodes > Cc: James Lu > Cc: Gua Guo >

Re: [edk2-devel] [PATCH v5 00/13] BaseTools,CryptoPkg,EmulatorPkg,MdePkg,others: Delete CLANG35,CLANG38,VS2008-2013,EBC, deprecate GCC48,GCC49,GCC5, add GCC and GCCNOLTO, update CLANGDWARF

2023-04-26 Thread Rebecca Cran
I've not been able to replicate either of those problems, so it sounds like I'll need to leave this until you can figure it out. -- Rebecca Cran On 4/26/23 09:09, Kinney, Michael D wrote: Yes. Actually 2 issues. Working on ways to reproduce both in edk2 repo. One is in build.py that is g

[edk2-devel] [PATCH 2/2] SecurityPkg: add TIS sanity check (tpm12)

2023-04-26 Thread Gerd Hoffmann
The code blindly assumes a TIS interface is present in case both CRB and FIFO checks fail. Check the InterfaceType for TIS instead and only return PtpInterfaceTis in case it matches, PtpInterfaceMax otherwise. Signed-off-by: Gerd Hoffmann --- SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c |

[edk2-devel] [PATCH 1/2] SecurityPkg: add TIS sanity check (tpm2)

2023-04-26 Thread Gerd Hoffmann
The code blindly assumes a TIS interface is present in case both CRB and FIFO checks fail. Check the InterfaceType for TIS instead and only return Tpm2PtpInterfaceTis in case it matches, Tpm2PtpInterfaceMax otherwise. Signed-off-by: Gerd Hoffmann --- SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Pt

[edk2-devel] [PATCH 0/2] SecurityPkg: add TIS sanity check

2023-04-26 Thread Gerd Hoffmann
Gerd Hoffmann (2): SecurityPkg: add TIS sanity check (tpm2) SecurityPkg: add TIS sanity check (tpm12) SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c | 6 +- SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.c | 6 +- 2 files changed, 10 insertions(+), 2 deletions(-) -- 2.40.0

Re: [edk2-devel] [edk2-platforms][PATCH V3 5/5] Platform/Sgi: Enable SoC expansion block for RD-N2 variants

2023-04-26 Thread Sami Mujawar
Hi Vivek, Thank you for this patch. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/03/2023 11:03 am, Vivek Gautam wrote: For all the RD-N2 platform variants, include the SSDT ACPI table that describes the devices present in SoC expansion block that is connected to the IO virtualizati

Re: [edk2-devel] [edk2-platforms][PATCH V3 4/5] Platform/Sgi: Initialize additional UART controllers

2023-04-26 Thread Sami Mujawar
Hi Vivek, Thank you for this patch. I have some minor feedback that I will address before merging. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/03/2023 11:03 am, Vivek Gautam wrote: From: Shriram K The IO virtualization block on reference design platforms allow connecting SoC ex

Re: [edk2-devel] [edk2-platforms][PATCH V3 3/5] Platform/Sgi: Add SSDT table for IO virtualization SoC expansion block

2023-04-26 Thread Sami Mujawar
Hi Vivek, Thank you for this patch. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/03/2023 11:03 am, Vivek Gautam wrote: Arm reference design platforms have multiple IO virtualization blocks that allow connecting PCIe root bus or non-PCIe SoC peripherals to the system. Each of these

Re: [edk2-devel] [edk2-platforms][PATCH V3 2/5] Platform/Sgi: Enable virtio-p9 device on RD-N2 platform variants

2023-04-26 Thread Sami Mujawar
Hi Vivek, Thank you for this patch. These changes look good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/03/2023 11:03 am, Vivek Gautam wrote: Enable the virtio-p9 device that is present as part of the RoS peripherals on RD-N2 platform variants. This will allow filesystem s

Re: [edk2-devel] [edk2-platforms][PATCH V3 1/5] Platform/Sgi: Add SSDT table for Virtio-P9

2023-04-26 Thread Sami Mujawar
Hi Vivek, Thank you for this patch. These changes look good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 24/03/2023 11:02 am, Vivek Gautam wrote: Some of the Arm reference design FVP platforms support the Virtio-p9 device as part of the RoS subsystem. Add an entry for this dev

Re: [edk2-devel] [PATCH v5 00/13] BaseTools,CryptoPkg,EmulatorPkg,MdePkg,others: Delete CLANG35,CLANG38,VS2008-2013,EBC, deprecate GCC48,GCC49,GCC5, add GCC and GCCNOLTO, update CLANGDWARF

2023-04-26 Thread Michael D Kinney
Yes. Actually 2 issues. Working on ways to reproduce both in edk2 repo. One is in build.py that is generating a python traceback when a tool chain tag is used that will be retired in the future. The 2nd one is in CLANGDWARF changes. Main break is that one of the PATHs used to map to echo and

Re: [edk2-devel] [PATCH v2 0/4] Fixes for SEV-SNP CC blob and CPUID table handling

2023-04-26 Thread Yao, Jiewen
Merged https://github.com/tianocore/edk2/pull/4313 > -Original Message- > From: Michael Roth > Sent: Wednesday, April 26, 2023 4:33 AM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Tom Lendacky > ; Yao, Jiewen ; Ni, > Ray ; Gerd Hoffmann ; Aktas, > Erdem ; James Bottomley ; > Xu, Min

Re: [edk2-devel] [edk2-platforms][PATCH V2 1/1] Platform/ARM/N1sdp: Add support to parse NT_FW_CONFIG

2023-04-26 Thread Sami Mujawar
Hi Sahil, Thank you for this patch. Please find my feedback inline marked [SAMI]. Regards, Sami Mujawar On 01/02/2023 08:13 am, sahil wrote: NT_FW_CONFIG DTB contains platform information passed by Tf-A boot stage. This information is used for Virtual memory map generation during PEI phase a

Re: [edk2-devel] [edk2-redfish-client][PATCH v2] Initial edk2 redfish client repository

2023-04-26 Thread Igor Kulchytskyy via groups.io
Hi Nickle, Sorry for the delay. Reviewed-by: Igor Kulchytskyy -Original Message- From: Nickle Wang Sent: Friday, April 21, 2023 10:45 PM To: devel@edk2.groups.io Cc: Abner Chang ; Igor Kulchytskyy ; Michael D Kinney Subject: [EXTERNAL] [edk2-redfish-client][PATCH v2] Initial edk2 redf

Re: [edk2-devel] [PATCH v5 00/13] BaseTools,CryptoPkg,EmulatorPkg,MdePkg,others: Delete CLANG35,CLANG38,VS2008-2013,EBC, deprecate GCC48,GCC49,GCC5, add GCC and GCCNOLTO, update CLANGDWARF

2023-04-26 Thread Rebecca Cran
Do you have an update? -- Rebecca Cran On 4/25/23 09:26, Michael D Kinney wrote: Made some progress on root cause. Related to rename of CLANG38 to CLANGDWARF definitions for IA32. Wil give an update in a few hours after some more testing. Mike -Original Message- From: devel@edk

Re: [edk2-devel][PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Sheng Lean Tan
Hi Gua, Thanks for the review. Do you have a proposal or small example on how you want to separate into another FV? Thanks, Sheng On Wed, 26 Apr 2023 at 14:55, Guo, Gua wrote: > Do we separate these Security Driver into separate FV ? > > > > I really don’t want to see gather everything into u

Re: [edk2-devel] [PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Sheng Lean Tan
Hi Gua, Thanks for the review. Do you have a proposal or small example on how you want to see to separate into another FV? Thanks, Sheng -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103648): https://edk2.groups.io/g/devel/message/1036

Re: [edk2-devel][PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Guo, Gua
Do we separate these Security Driver into separate FV ? I really don’t want to see gather everything into uefi_fv. Separate it into a lot of fv, we can easy to plug in and plug out. Thanks, Gua From: devel@edk2.groups.io On Behalf Of Sean Rhodes Sent: Wednesday, April 26, 2023 8:33 PM To: Benja

Re: [edk2-devel][PATCH v1 2/2] UefiPayloadPkg: Enable RNG support

2023-04-26 Thread Sean Rhodes
Reviewed-by: Sean Rhodes On Tue, 25 Apr 2023 at 18:09, Benjamin Doron wrote: > From: Benjamin Doron > > Uses CPU RDRAND support and installs the EfiRngProtocol. > The protocol may be used by iPXE or the Linux kernel to gather entropy. > > Cc: Guo Dong > Cc: Ray Ni > Cc: Sean Rhodes > Cc: Ja

Re: [edk2-devel][PATCH v1 1/2] UefiPayloadPkg: Define RngLibTimerLib for systems without RDRAND

2023-04-26 Thread Sean Rhodes
Reviewed-by: Sean Rhodes On Tue, 25 Apr 2023 at 18:09, Benjamin Doron wrote: > From: Benjamin Doron > > Presently, `ArchIsRngSupported()` always returns TRUE, per > > https://github.com/tianocore/edk2/blob/1eeca0750af5af2f0e78437bf791ac2de74bde74/MdePkg/Library/BaseRngLib/Rand/RdRand.c#L124-L1

[edk2-devel] [PATCH 1/1] ShellPkgDisconnect: zero-initialize handles

2023-04-26 Thread Gerd Hoffmann
In case ShellConvertStringToUint64() fails the Handles are left uninitialized. That can for example happen for Handle2 and Handle3 in case only one parameter was specified on the command line. Which can trigger the ASSERT() in line 185. Reproducer: boot ovmf to efi shell in qemu, using q35 machi

[edk2-devel] [PATCH v1 1/1] UefiCpuPkg/PiSmmCpuDxeSmm:add Ap Rendezvous check in PerformRemainingTasks.

2023-04-26 Thread Li, Zhihao
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4424 In Relaxed-AP Sync Mode, BSP will not wait for all Aps arrive. However, SmmReadyToLock needs all Aps to arrive to set memory map Attributes and check config Smm code access in PerformRemainingTasks. Cc: Eric Dong Cc: Ray Ni Signed-off-by

Re: [edk2-devel] [PATCH v9 7/9] UefiCpuPkg: Implements MmSaveStateLib for Ovmf

2023-04-26 Thread Gerd Hoffmann
On Wed, Apr 26, 2023 at 12:52:25PM +0530, Abdul Lateef Attar wrote: > From: Abdul Lateef Attar > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 > > Implements MmSaveStateLib library interfaces > to read and write save state > registers for Ovmf/Qemu. You can drop this patch and use t

Re: [edk2-devel] [PATCH v2 0/5] refine Smm range code in BoardX58Ich10

2023-04-26 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of Zhiguang > Liu > Sent: Wednesday, April 26, 2023 2:16 PM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang > Subject: [edk2-devel] [PATCH v2 0/5] refine Smm range code in > BoardX58Ich10 > > In BoardX58Ich1

Re: [edk2-devel] [PATCH v2 2/2] UefiCpuPkg: Support 5 level page table in ResetVector

2023-04-26 Thread Ni, Ray
> -Original Message- > From: Liu, Zhiguang > Sent: Wednesday, April 26, 2023 4:13 PM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang ; Dong, Eric > ; Ni, Ray ; Kumar, Rahul R > ; Gerd Hoffmann ; De, > Debkumar ; West, Catharine > > Subject: [PATCH v2 2/2] UefiCpuPkg: Support 5 level pag

Re: [edk2-devel] [PATCH v2 1/2] UefiCpuPkg/ResetVector: Modify Page Table in ResetVector

2023-04-26 Thread Ni, Ray
1. Can you please update the comments to use proper name for each level of paging entry? Page-directory pointer table Pointers -> Page Directory Pointer Table PML4 table pointers -> PML4 > -Original Message- > From: Liu, Zhiguang > Sent: Wednesday, April 26, 2023 4:25 PM > To: devel@edk2

Re: [edk2-devel] [PATCH v2 1/2] UefiCpuPkg/ResetVector: Modify Page Table in ResetVector

2023-04-26 Thread Zhiguang Liu
Correct a typo in commit message inline. Thanks Zhiguang > -Original Message- > From: Liu, Zhiguang > Sent: Wednesday, April 26, 2023 4:13 PM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang ; Dong, Eric > ; Ni, Ray ; Kumar, Rahul R > ; Gerd Hoffmann ; De, > Debkumar ; West, Catharine > >

[edk2-devel] [PATCH v2 2/2] UefiCpuPkg: Support 5 level page table in ResetVector

2023-04-26 Thread Zhiguang Liu
Add a macro USE_5_LEVEL_PAGE_TABLE to determine whether to create 5 level page table. If macro USE_5_LEVEL_PAGE_TABLE is defined, PML5Table is created at (4G-12K), while PML4Table is at (4G-16K). In runtime check, if 5level paging is supported, use PML5Table, otherwise, use PML4Table. If macro USE_

[edk2-devel] [PATCH v2 1/2] UefiCpuPkg/ResetVector: Modify Page Table in ResetVector

2023-04-26 Thread Zhiguang Liu
In ResetVector, if create page table, its highest address is fixed because after page table, code layout is fixed(4K for normal code, and another 4K only contains reset vector code). Today's implementation organizes the page table as following if 1G page table is used: 4G-16K: PML4 page (PML4[0]

Re: [edk2-devel] [Patch V4 0/2] Update ProcTrace feature code for new requirements.

2023-04-26 Thread Ni, Ray
Thanks for the update. I missed that portion. The new change is better. Reviewed-by: Ray Ni > -Original Message- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Wednesday, April 26, 2023 4:03 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [Patch V4 0/2] Update ProcTrace

[edk2-devel] [Patch V4 2/2] UefiCpuPkg: Update PT code to support enable collect performance

2023-04-26 Thread duntan
Update ProcTrace feature code to support enable collect performance data by generating CYC and TSC packets. Add a new dynamic PCD to indicate if enable performance collecting. In ProcTrace.c code, if this new PCD is true, after check cpuid, CYC and TSC packets will be generated by setting the corre

[edk2-devel] [Patch V4 1/2] UefiCpuPkg: Update code to support enable ProcTrace only on BSP

2023-04-26 Thread duntan
Update code to support enable ProcTrace only on BSP. Add a new dynamic PCD to indicate if enable ProcTrace only on BSP. In ProcTrace.c code, if this new PCD is true, only allocate buffer and set CtrlReg.Bits.TraceEn to 1 for BSP. Bugzila: https://bugzilla.tianocore.org/show_bug.cgi?id=4423 Signed-

[edk2-devel] [Patch V4 0/2] Update ProcTrace feature code for new requirements.

2023-04-26 Thread duntan
In V4 patch set: Move the two new PCD from '[PcdsDynamic, PcdsDynamicEx]' section to '[PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]' section. Dun Tan (2): UefiCpuPkg: Update code to support enable ProcTrace only on BSP UefiCpuPkg: Update PT code to support enable colle

Re: [edk2-devel] [Patch V3 03/11] OvmfPkg:Remove code that apply AddressEncMask to non-leaf entry

2023-04-26 Thread Min Xu
On April 25, 2023 10:51 AM, Ni Ray wrote: > > > > On Fri, Apr 21, 2023 at 09:26:44AM -0500, Tom Lendacky wrote: > > > On 4/21/23 03:36, Dun Tan wrote: > > > > Remove code that apply AddressEncMask to non-leaf entry when split > > > > smm page table by MemEncryptSevLib. In FvbServicesSmm driver, it

Re: [edk2-devel] [PATCH 1/1] SecurityPkg/DxeImageVerificationLib: Add AUTH_SIG_NOT_FOUND Action

2023-04-26 Thread Min Xu
It's good to me. Reviewed-by: Min Xu Thanks > -Original Message- > From: Nhi Pham > Sent: Thursday, April 20, 2023 11:49 AM > To: Xu, Min M ; devel@edk2.groups.io; > n...@os.amperecomputing.com; Yao, Jiewen ; Wang, > Jian J > Cc: patc...@amperecomputing.com > Subject: Re: [edk2-devel]

[edk2-devel] [PATCH v9 7/9] UefiCpuPkg: Implements MmSaveStateLib for Ovmf

2023-04-26 Thread Abdul Lateef Attar via groups.io
From: Abdul Lateef Attar BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Implements MmSaveStateLib library interfaces to read and write save state registers for Ovmf/Qemu. Cc: Paul Grimes Cc: Garrett Kirkendall Cc: Abner Chang Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoff

[edk2-devel] [PATCH v9 4/9] UefiCpuPkg/SmmCpuFeaturesLib: Restructure arch-dependent code

2023-04-26 Thread Abdul Lateef Attar via groups.io
From: Abdul Lateef Attar BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 moves Intel-specific code to the arch-dependent file. Other processor families might have different implementation of these functions. Hence, moving out of the common file. Cc: Abner Chang Cc: Garrett Kirkendall

[edk2-devel] [PATCH v9 9/9] OvmfPkg: Uses MmSaveStateLib library

2023-04-26 Thread Abdul Lateef Attar via groups.io
From: Abdul Lateef Attar BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Uses new MmSaveStateLib library instance. Cc: Paul Grimes Cc: Garrett Kirkendall Cc: Abner Chang Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Just

[edk2-devel] [PATCH v9 8/9] UefiCpuPkg: Removes SmmCpuFeaturesReadSaveStateRegister

2023-04-26 Thread Abdul Lateef Attar via groups.io
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Removes SmmCpuFeaturesReadSaveStateRegister and SmmCpuFeaturesWirteSaveStateRegister function from SmmCpuFeaturesLib library. MmSaveStateLib library replaces the functionality of the above functions. Platform old/new need to use MmSaveState

[edk2-devel] [PATCH v9 2/9] UefiCpuPkg: Adds MmSaveStateLib library class

2023-04-26 Thread Abdul Lateef Attar via groups.io
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Adds MmSaveStateLib Library class in UefiCpuPkg.dec. Adds function declaration header file. Cc: Paul Grimes Cc: Garrett Kirkendall Cc: Abner Chang Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Signed-off-by: Abdul Lateef

[edk2-devel] [PATCH v9 6/9] UefiCpuPkg: Implements MmSaveStateLib for Intel

2023-04-26 Thread Abdul Lateef Attar via groups.io
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Implements MmSaveStateLib library interfaces to read and write save state registers for Intel processor family. Moves Intel and AMD common functionality to common area. Cc: Paul Grimes Cc: Garrett Kirkendall Cc: Abner Chang Cc: Eric Dong

[edk2-devel] [PATCH v9 5/9] UefiCpuPkg: Implements SmmCpuFeaturesLib for AMD Family

2023-04-26 Thread Abdul Lateef Attar via groups.io
From: Abdul Lateef Attar BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Implements interfaces to read and write save state registers of AMD's processor family. Initializes processor SMMADDR and MASK depends on PcdSmrrEnable flag. Program or corrects the IP once control returns from SMM.

[edk2-devel] [PATCH v9 3/9] UefiCpuPkg: Implements MmSaveStateLib library instance

2023-04-26 Thread Abdul Lateef Attar via groups.io
From: Abdul Lateef Attar BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Implements MmSaveStateLib Library class for AMD cpu family. Cc: Paul Grimes Cc: Garrett Kirkendall Cc: Abner Chang Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Signed-off-by: Abdul Lateef Atta

[edk2-devel] [PATCH v9 0/9] Adds AmdSmmCpuFeaturesLib and MmSaveStateLib

2023-04-26 Thread Abdul Lateef Attar via groups.io
PR: https://github.com/tianocore/edk2/pull/4282 V9: Delta changes: Addressed review comments. Rename to MmSaveStateLib. Also rename SMM_ defines to MM_. Implemented OVMF MmSaveStateLib. Removes SmmCpuFeaturesReadSaveStateRegister and SmmCpuFeaturesWriteSaveStateRegister function inter

[edk2-devel] [PATCH v9 1/9] MdePkg: Adds AMD SMRAM save state map

2023-04-26 Thread Abdul Lateef Attar via groups.io
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4182 Adds an SMM SMRAM save-state map for AMD processors. SMRAM save state maps for the AMD processor family are now supported. Save state map structure is added based on AMD64 Architecture Programmer's Manual, Volume 2, Section 10.2. The AMD le

Re: [edk2-devel] [PATCH] * UefiPayloadPkg: Clang dependency removal

2023-04-26 Thread Guo, Gua
@Wang, BruceX Bugzilla please fill this link https://bugzilla.tianocore.org/show_bug.cgi?id=4426 Reviewed-by: Gua Guo -Original Message- From: Wang, BruceX Sent: Wednesday, April 26, 2023 3:12 PM To: devel@edk2.groups.io Cc: Wang, BruceX ; Dong, Guo ; Ni, Ray ; Rhodes, Sean ; Lu, Ja