Re: [edk2-devel] [PATCH 4/4] RedfishClientPkg: use Json value from a function argument

2024-02-20 Thread Nickle Wang via groups.io
Reviewed-by: Nickle Wang Regards, Nickle > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Abner Chang > ; Nickle Wang ; Igor Kulchytskyy > > Subject: [PATCH 4/4] RedfishClientPkg: use Json

Re: [edk2-devel] [PATCH 3/4] RedfishClientPkg/Bios: fix leak of GetPendingSettings URI.

2024-02-20 Thread Nickle Wang via groups.io
Reviewed-by: Nickle Wang Regards, Nickle > -Original Message- > From: devel@edk2.groups.io On Behalf Of Mike > Maslenkin via groups.io > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Abner Chang > ; Nickle Wang ; Igor Kulchytskyy > >

Re: [edk2-devel] [PATCH 2/4] RedfishClientPkg: refine RedfishExternalResourceResourceFeatureCallback

2024-02-20 Thread Nickle Wang via groups.io
Hi Mike, Thanks for incorporating my suggestion to address memory issue. For the name "CollectionUri", I know this is from my suggestion, but I think Abner is right. Could you please change it to "BiosUri" or "ResourceUri" since BIOS resource is not a Redfish collection? @Abner

Re: [edk2-devel] [PATCH 1/4] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path

2024-02-20 Thread Nickle Wang via groups.io
Reviewed-by: Nickle Wang Regards, Nickle > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Igor Kulchytskyy > ; Nickle Wang ; Abner Chang > > Subject: [PATCH 1/4]

Re: [edk2-devel] [PATCH v3 0/6] OvmfPkg: Add support for 5-level paging

2024-02-20 Thread Min Xu
On Tuesday, February 20, 2024 5:07 PM, Gerd Hoffmann wrote: > Subject: [PATCH v3 0/6] OvmfPkg: Add support for 5-level paging > > Patch #1 + #2 fix MdeModulePkg/DxeIplPeim to not assert in case a 5-level > enabled build runs in 4-level paging mode. > > Patch #2 - #4 update OvmfPkg ResetVector,

Re: [edk2-devel] [PATCH v2 3/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to SwitchApContext()

2024-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni Thanks, Ray > -Original Message- > From: Gerd Hoffmann > Sent: Wednesday, February 21, 2024 1:50 AM > To: devel@edk2.groups.io > Cc: Oliver Steffen ; Laszlo Ersek > ; Kumar, Rahul R ; Ni, Ray > ; Gerd Hoffmann > Subject: [PATCH v2 3/5] UefiCpuPkg/MpInitLib: Add

Re: [edk2-devel] [PATCH] UefiCpuPkg: add volatile qualifier to page table related variable

2024-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni Thanks, Ray > -Original Message- > From: Zhou, Jianfeng > Sent: Wednesday, February 21, 2024 9:25 AM > To: devel@edk2.groups.io > Cc: Zhou, Jianfeng ; Ni, Ray ; > Laszlo Ersek ; Kumar, Rahul R > ; Gerd Hoffmann > Subject: [PATCH] UefiCpuPkg: add volatile qualifier

Re: [edk2-devel] [PATCH] UefiCpuPkg: Fix IN OUT parameters marked as IN

2024-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni Thanks, Ray > -Original Message- > From: Zhou, Jianfeng > Sent: Wednesday, February 21, 2024 9:25 AM > To: devel@edk2.groups.io > Cc: Zhou, Jianfeng ; Ni, Ray ; > Laszlo Ersek ; Kumar, Rahul R > ; Gerd Hoffmann > Subject: [PATCH] UefiCpuPkg: Fix IN OUT parameters

Re: [edk2-devel] [PATCH] MinPlatformPkg/PhatAcpiLib: Add to CoreDxeLib dsc

2024-02-20 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu Thanks, Chasel > -Original Message- > From: Clark-williams, Zachary > Sent: Tuesday, February 20, 2024 9:18 PM > To: devel@edk2.groups.io > Cc: Clark-williams, Zachary ; Chiu, Chasel > ; Desimone, Nathaniel L > ; Liming Gao ; > Dong, Eric > Subject: [PATCH]

[edk2-devel] [PATCH] MinPlatformPkg/PhatAcpiLib: Add to CoreDxeLib dsc

2024-02-20 Thread Clark-williams, Zachary
From: Zachary Clark-Williams PhatAcpiLib update to match all file names to PhatAcpiLib and add the library to CoreDxeLib for use. Hsd-es-id: 22019504949 Change-Id: Ic184715a2b5ab117d464bad5cb251c674416e0dd Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by:

[edk2-devel] [PATCH v1 1/1] BaseTools/GenFds: Resolve absolute workspace INF paths

2024-02-20 Thread Michael Kubacki
From: Michael Kubacki Currently, if an INF path is an absolute path on Linux (begins with "/"), the "/" character will be removed. If the path is an absolute system path, this creates an invalid path. An example of when this may be an issue is in external dependencies where an INF is within the

Re: [edk2-devel] [PATCH v2 5/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to SaveCpuMpData()

2024-02-20 Thread Ni, Ray
> > + MaxCpusPerHob = (MAX_UINT16 - sizeof (EFI_HOB_GUID_TYPE) - sizeof > (MP_HAND_OFF)) / sizeof (PROCESSOR_HAND_OFF); Above formula assumes the maximum HOB length could be 0x. But actually the maximum HOB length could be only 0xFFF8 because PeiCore::PeiCreateHob() contains following

Re: [edk2-devel] [PATCH v2 4/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to MpInitLibInitialize

2024-02-20 Thread Ni, Ray
> > Loop over all MP_HAND_OFF HOBs instead of expecting a single HOB > covering all CPUs in the system. > > Add a new HaveMpHandOff variable to track whenever MP_HAND_OFF HOBs > are The commit message may need to be updated as "HaveMpHandOff" variable is gone in this version. With that,

Re: [edk2-devel] [PATCH v2 2/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetBspNumber()

2024-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni Thanks, Ray > -Original Message- > From: Gerd Hoffmann > Sent: Wednesday, February 21, 2024 1:50 AM > To: devel@edk2.groups.io > Cc: Oliver Steffen ; Laszlo Ersek > ; Kumar, Rahul R ; Ni, Ray > ; Gerd Hoffmann > Subject: [PATCH v2 2/5] UefiCpuPkg/MpInitLib: Add

Re: [edk2-devel] [PATCH v2 2/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetBspNumber()

2024-02-20 Thread Ni, Ray
Reviewed-by: Ray Ni Thanks, Ray > -Original Message- > From: Gerd Hoffmann > Sent: Wednesday, February 21, 2024 1:50 AM > To: devel@edk2.groups.io > Cc: Oliver Steffen ; Laszlo Ersek > ; Kumar, Rahul R ; Ni, Ray > ; Gerd Hoffmann > Subject: [PATCH v2 2/5] UefiCpuPkg/MpInitLib: Add

Re: [edk2-devel] [PATCH v2 1/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetMpHandOffHob

2024-02-20 Thread Ni, Ray
> -Original Message- > From: Gerd Hoffmann > Sent: Wednesday, February 21, 2024 1:50 AM > To: devel@edk2.groups.io > Cc: Oliver Steffen ; Laszlo Ersek > ; Kumar, Rahul R ; Ni, Ray > ; Gerd Hoffmann > Subject: [PATCH v2 1/5] UefiCpuPkg/MpInitLib: Add support for multiple > HOBs to

[edk2-devel] [edk2-platforms][PATCH V3] OptionRomPkg: Update for UEFI spec v2.9 - mantis #1866

2024-02-20 Thread Gahan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 Bug 4689 - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data for UEFI Spec compliance 2.9 [mantis #1866] Cc: Ray Ni Signed-off-by: Gahan Saraiya --- Drivers/OptionRomPkg/UndiRuntimeDxe/Undi32.h

[edk2-devel] [edk2-platforms][PATCH V3] MinPlatformPkg: Update for UEFI spec v2.9 - mantis #1866

2024-02-20 Thread Gahan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 Bug 4689 - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data for UEFI Spec compliance 2.9 [mantis #1866] Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: Gahan

Re: [edk2-devel] [PATCH 2/4] RedfishClientPkg: refine RedfishExternalResourceResourceFeatureCallback

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Nickle Wang > ; Chang, Abner ; Igor > Kulchytskyy > Subject: [PATCH 2/4] RedfishClientPkg: refine >

Re: [edk2-devel] [PATCH 4/4] RedfishClientPkg: use Json value from a function argument

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Looks good, thank you! Reviewed-by: Abner Chang > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Chang, Abner > ; Nickle Wang ; Igor > Kulchytskyy > Subject:

Re: [edk2-devel] [PATCH 3/4] RedfishClientPkg/Bios: fix leak of GetPendingSettings URI.

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] Reviewed-by: Abner Chang > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Chang, Abner > ; Nickle Wang ; Igor > Kulchytskyy > Subject: [PATCH 3/4]

Re: [edk2-devel] [PATCH 1/4] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] One comment below, > -Original Message- > From: Mike Maslenkin > Sent: Wednesday, February 21, 2024 8:13 AM > To: devel@edk2.groups.io > Cc: Mike Maslenkin ; Igor Kulchytskyy > ; Nickle Wang ; Chang, Abner > > Subject: [PATCH 1/4]

Re: [edk2-devel] [PATCH 6/6] RedfishPkg/RedfishCrtLib: fix unresolved external symbol issue

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:42 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez > Subject: [PATCH 6/6] RedfishPkg/RedfishCrtLib: fix unresolved external > symbol issue

Re: [edk2-devel] [PATCH 5/6] RedfishPkg/RedfishDebugLib: use RedfishHttpLib

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] As I already reviewed offline on Nickle's personal Git repo, Reviewed-by: Abner Chang > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:42 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez

Re: [edk2-devel] [PATCH 4/6] RedfishPkg/RedfishLib: include RedfishServiceData.h

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] As I already reviewed offline on Nickle's personal Git repo, Reviewed-by: Abner Chang > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:42 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez

Re: [edk2-devel] [PATCH 3/6] RedfishPkg: introduce RedfishHttpLib

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] As I already reviewed offline on Nickle's personal Git repo, Reviewed-by: Abner Chang > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:42 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez

Re: [edk2-devel] [PATCH 2/6] RedfishPkg: implement Redfish HTTP protocol

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] One comment below. > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:41 PM > To: devel@edk2.groups.io > Cc: Igor Kulchytskyy ; Chang, Abner > ; Nick Ramirez > Subject: [PATCH 2/6] RedfishPkg: implement Redfish HTTP protocol

[edk2-devel] Merge commit in edk2-non-osi

2024-02-20 Thread Nate DeSimone
Hi Everyone, It appears that a merge commit was introduced to edk2-non-osi due to a PR merge: https://github.com/tianocore/edk2-non-osi/commit/61b65fccfe4c75bc9ecb7b542412a436e3db5de6 I would like to remind everyone that we generally don't accept submissions via PRs yet. At the very least

Re: [edk2-devel] [PATCH 1/6] RedfishPkg: introduce Redfish HTTP protocol

2024-02-20 Thread Chang, Abner via groups.io
[AMD Official Use Only - General] As I already reviewed offline on Nickle's personal Git repo, Reviewed-by: Abner Chang > -Original Message- > From: Nickle Wang > Sent: Tuesday, February 20, 2024 2:41 PM > To: devel@edk2.groups.io > Cc: Igor Kulchytskyy ; Chang, Abner > ; Nick Ramirez

[edk2-devel] [PATCH] MinPlatformPkg/DxePhatLib: Add to CoreDxeLib dsc

2024-02-20 Thread Clark-williams, Zachary
From: Zachary Clark-Williams PhatAcpiLib update to match all file names to DxePhatAcpiLib and add the library to CoreDxeLib for use. Hsd-es-id: 22019504949 Change-Id: Ic184715a2b5ab117d464bad5cb251c674416e0dd Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by:

[edk2-devel] [PATCH 4/4] RedfishClientPkg: use Json value from a function argument

2024-02-20 Thread Mike Maslenkin
This patch replaces value Private->Json with Json used as second argument for RedfishIdentifyResource(). Currently Json argument is not used at all and the pattern for caller side is: Status = RedfishIdentifyResourceCommon (Private, Private->Json); So in scope of RedfishIdentifyResourceCommon

[edk2-devel] [PATCH 3/4] RedfishClientPkg/Bios: fix leak of GetPendingSettings URI.

2024-02-20 Thread Mike Maslenkin
Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 5 + 1 file changed, 5 insertions(+) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c

[edk2-devel] [PATCH 1/4] RedfishClientPkg/RedfishFeatureUtilityLib: fix memory leak on error path

2024-02-20 Thread Mike Maslenkin
Cc: Igor Kulchytskyy Cc: Nickle Wang Signed-off-by: Mike Maslenkin Reviewed-by: Abner Chang --- .../Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c

[edk2-devel] [PATCH 2/4] RedfishClientPkg: refine RedfishExternalResourceResourceFeatureCallback

2024-02-20 Thread Mike Maslenkin
Use local variable for CollectionUri passed to HandleResource() to avoid problems in case of Private->Uri is overriden down the call stack. Suggested-by: Nickle Wang Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin ---

[edk2-devel] [edk2-redfish-client][PATCH 0/4] RedfishClientPkg: fix memory leaks and refine code

2024-02-20 Thread Mike Maslenkin
This set contains a trivial fix for a leak reviewed on Feb 1 [1] and a fix for а leak discussed in [2]. PR: https://github.com/tianocore/edk2-redfish-client/pull/76 [1] https://edk2.groups.io/g/devel/message/114925 [2] https://edk2.groups.io/g/devel/message/114765
 Signed-off-by: Mike Maslenkin

Re: [edk2-devel] [PATCH V2] Pkg-Module: OptionRomPkg

2024-02-20 Thread Pedro Falcato
On Tue, Feb 20, 2024 at 10:39 AM Gahan wrote: > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 > > Bug 4689 - GetInfo() of Adapter Information Protocol > should have a provision for IHV to return no data for > UEFI Spec compliance 2.9 [mantis #1866] Hi Gahan, FYI, your commit

Re: [edk2-devel] [PATCH] MinPlatformPkg/DxePhatLib: Add to CoreCommon dsc

2024-02-20 Thread Chiu, Chasel
Hi Zack, Usually we would like the LIBRARY_CLASS to be "phase agnostic" so we can share the same API cross different phase implementation. Please see if we only need to update DxePhatAcpiLib.inf LIBRARY_CLASS and add INF to CoreCommon.dsc Thanks, Chasel > -Original Message- >

Re: [edk2-devel] [PATCH v3 5/6] OvmfPkg/ResetVector: add 5-level paging support

2024-02-20 Thread Lendacky, Thomas via groups.io
On 2/20/24 03:06, Gerd Hoffmann wrote: Compile the OVMF ResetVector with 5-level paging support in case PcdUse5LevelPageTable is TRUE. When enabled the ResetVector will check at runtime whenever support for 5-level paging and gigabyte pages is available. In case both features are supported it

Re: [edk2-devel] [Patch 3/4] BaseTools/Scripts/PatchCheck: Error if no Cc tags are present

2024-02-20 Thread Michael D Kinney
Hi Ard, I suspected this one BZ/patch would get some discussion. This is an attempt to address the fundamental issue that we do not get timely reviews of patches. When I look at the ones that are delayed, in many cases, there are no Cc lines in the commit message and no Cc in the email. There

[edk2-devel] [PATCH] MinPlatformPkg/DxePhatLib: Add to CoreCommon dsc

2024-02-20 Thread Clark-williams, Zachary
From: Zachary Clark-Williams PhatAcpiLib update to match all file names to DxePhatAcpiLib and add the library to CoreCommonPkg for use. Change-Id: I6e18ecf5acfdbc2053cf60b9a151b891e4e0fdfe Hsd-es-id: 22019504949 Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by:

Re: [edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Lendacky, Thomas via groups.io
On 2/20/24 03:06, Gerd Hoffmann wrote: When running in SEV mode do not uninstall the #vc handler in CheckSevFeatures. Keep it active and uninstall it later in SevClearPageEncMaskForGhcbPage. This allows using the cpuid instruction in SetCr3ForPageTables64, which is needed to check for la57 &

Re: [edk2-devel] [PATCH] MdeModulePkg/PciBusDxe: plug device hierarchy leak upon bridge hot-unplug

2024-02-20 Thread Hsueh, Hong-Chih (Neo) via groups.io
[AMD Official Use Only - General] Hi Feng & Laszlo, Thank you for the feedback, I have changed the title of this email and the title of the commit message of this patch. The new patch as attached. If this patch looks good to you, could you please help to add reviewed-by? Thanks! Regards, Neo

Re: [edk2-devel] [PATCH 2/2] Update Maintainers for Intel packages

2024-02-20 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu Thanks, Chasel > -Original Message- > From: Haller, Nathaniel D > Sent: Friday, February 16, 2024 5:48 PM > To: devel@edk2.groups.io > Cc: Desimone, Nathaniel L ; Chiu, Chasel > > Subject: [PATCH 2/2] Update Maintainers for Intel packages > > Update

Re: [edk2-devel] [PATCH 1/2] Add maintainers for EaglestreamSiliconBinPkg and EaglestreamOpenBoardBinPkg

2024-02-20 Thread Chiu, Chasel
Reviewed-by: Chasel Chiu Thanks, Chasel > -Original Message- > From: Haller, Nathaniel D > Sent: Friday, February 16, 2024 5:47 PM > To: devel@edk2.groups.io > Cc: Desimone, Nathaniel L ; Chiu, Chasel > > Subject: [PATCH 1/2] Add maintainers for EaglestreamSiliconBinPkg and >

Re: [edk2-devel] [PATCH 2/2] Update Maintainers for Intel packages

2024-02-20 Thread Nate DeSimone
As mentioned by Mike K, please add [edk2-non-osi] to the subject line in the future. Reviewed-by: Nate DeSimone > -Original Message- > From: Haller, Nathaniel D > Sent: Friday, February 16, 2024 5:48 PM > To: devel@edk2.groups.io > Cc: Desimone, Nathaniel L ; Chiu, Chasel > >

Re: [edk2-devel] [PATCH 1/2] Add maintainers for EaglestreamSiliconBinPkg and EaglestreamOpenBoardBinPkg

2024-02-20 Thread Nate DeSimone
As mentioned by Mike K, please add [edk2-non-osi] to the subject line in the future. Reviewed-by: Nate DeSimone > -Original Message- > From: Haller, Nathaniel D > Sent: Friday, February 16, 2024 5:47 PM > To: devel@edk2.groups.io > Cc: Desimone, Nathaniel L ; Chiu, Chasel > >

Re: [edk2-devel] [PATCH v3 5/6] OvmfPkg/ResetVector: add 5-level paging support

2024-02-20 Thread Laszlo Ersek
On 2/20/24 18:45, Laszlo Ersek wrote: > (I'm using quotes around "subroutines" and "call" because we don't have > a stack at this point yet, IIUC, so all our "one time calls" are > actually just normal jumps, with some NASM macro magic. That's fine, > we're only talking a handful of assembly

[edk2-devel] [PATCH v2 5/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to SaveCpuMpData()

2024-02-20 Thread Gerd Hoffmann
Add support for splitting Hand-Off data into multiple HOBs. This is required for VMs with thousands of CPUs. The actual CPU count per HOB is much smaller (128) for better test coverage. Signed-off-by: Gerd Hoffmann --- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 44 +++-- 1

[edk2-devel] [PATCH v2 2/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetBspNumber()

2024-02-20 Thread Gerd Hoffmann
Rename the MpHandOff parameter to FirstMpHandOff. Add a loop so the function inspects all HOBs present in the system. Signed-off-by: Gerd Hoffmann --- UefiCpuPkg/Library/MpInitLib/MpLib.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git

[edk2-devel] [PATCH v2 4/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to MpInitLibInitialize

2024-02-20 Thread Gerd Hoffmann
Loop over all MP_HAND_OFF HOBs instead of expecting a single HOB covering all CPUs in the system. Add a new HaveMpHandOff variable to track whenever MP_HAND_OFF HOBs are present, using the MpHandOff pointer for that does not work because the variable will be NULL after looping over all HOBs.

[edk2-devel] [PATCH v2 1/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetMpHandOffHob

2024-02-20 Thread Gerd Hoffmann
Rename the function to GetNextMpHandOffHob(), add MP_HAND_OFF parameter. When called with NULL pointer return the first HOB, otherwise return the next in the chain. Also add the function prototype to the MpLib.h header file. Signed-off-by: Gerd Hoffmann --- UefiCpuPkg/Library/MpInitLib/MpLib.h

[edk2-devel] [PATCH v2 0/5] UefiCpuPkg/MpInitLib: Add support for multiple MP_HAND_OFF HOBs

2024-02-20 Thread Gerd Hoffmann
Needed to boot guests with thousands of vcpus. v2: - rework HOB loops for better performance: O(n) instead of O(n^2). Gerd Hoffmann (5): UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetMpHandOffHob UefiCpuPkg/MpInitLib: Add support for multiple HOBs to GetBspNumber()

[edk2-devel] [PATCH v2 3/5] UefiCpuPkg/MpInitLib: Add support for multiple HOBs to SwitchApContext()

2024-02-20 Thread Gerd Hoffmann
Rename the MpHandOff parameter to FirstMpHandOff. Add loops so the function inspects all HOBs present in the system. Signed-off-by: Gerd Hoffmann --- UefiCpuPkg/Library/MpInitLib/MpLib.h | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.c | 35 ++-- 2 files changed, 24

Re: [edk2-devel] [PATCH v3 5/6] OvmfPkg/ResetVector: add 5-level paging support

2024-02-20 Thread Laszlo Ersek
On 2/20/24 10:06, Gerd Hoffmann wrote: > Compile the OVMF ResetVector with 5-level paging support in case > PcdUse5LevelPageTable is TRUE. > > When enabled the ResetVector will check at runtime whenever support for > 5-level paging and gigabyte pages is available. In case both features > are

Re: [edk2-devel] [PATCH 1/1] MdeModulePkg: Load Serial driver earlier in DXE

2024-02-20 Thread Michael D Kinney
This is a UEFI Driver that depends on the Driver Binding Protocol and use of ConnectController(). These drivers cannot be used until the BDS phase when the active consoles and boot devices are evaluated and the smallest set of drivers required to boot are connected. It does not make sense to have

Re: [edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Laszlo Ersek
On 2/20/24 10:06, Gerd Hoffmann wrote: > When running in SEV mode do not uninstall the #vc handler in > CheckSevFeatures. Keep it active and uninstall it later in > SevClearPageEncMaskForGhcbPage. > > This allows using the cpuid instruction in SetCr3ForPageTables64, > which is needed to check

Re: [edk2-devel] [edk2-test][PATCH v1 0/4] uefi-sct/SctPkg: Add SCT Documents

2024-02-20 Thread G Edhaya Chandran
Thank you Samer. The test case spec is consolidated and upstreamed by:  https://github.com/tianocore/edk2-test/commit/f999690054b56780f5efbe0999507d7176bd87f6 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115661):

Re: [edk2-devel] [PATCH v1 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Check BspIndex first before lock cmpxchg

2024-02-20 Thread Laszlo Ersek
On 2/20/24 04:41, Wu, Jiaxin wrote: >> From C11 "5.1.2.4 Multi-threaded executions and data races": >> >> - paragraph 4: "Two expression evaluations conflict if one of them >> modifies a memory location and the other one reads or modifies the same >> memory location." >> >> - paragraph 25: "The

[edk2-devel] [PATCH 1/1] MdeModulePkg: Load Serial driver earlier in DXE

2024-02-20 Thread Borzeszkowski, Alan
For the purpose of UEFI debug prints enablement in DXE phase, Serial driver should load earlier. Separate .inf file is created in order to make minimal changes to current implementation. Signed-off-by: Alan Borzeszkowski --- .../PciSioSerialDxe/PciSioSerialDxeEarly.inf | 80 +++

[edk2-devel] [PATCH 0/1] EDK2 Serial driver UART debug print enablement

2024-02-20 Thread Borzeszkowski, Alan
On Intel platforms, we use LPSS UART for debug prints in DXE phase. Current implementation involves using custom driver. In order to reduce code maintenance cost and flash usage, we want to switch to EDK2 Serial driver. To achieve that, we need to load Serial driver shortly after DXE Core is

[edk2-devel] [PATCH] MdePkg-SerialPortConsoleRedirectionTable_h-SPCRTable-Upgrade-Rev-4

2024-02-20 Thread Praveen Sankar N via groups.io
Since ACPI SPCR table has been upgraded with new revision Rev-4, SerialPortConsoleRedirectionTable.h file should be added with new field members which are added in Rev-4. Signed-off-by: Praveen Sankar N praveensank...@ami.com To: praveensank...@ami.com ---

Re: [edk2-devel] [PATCH v1 1/1] MdeModulePkg/TraceHubDebugSysTLib: Use wider type for loop comparisons

2024-02-20 Thread Guo, Gua
Reviewed-by: Gua Guo -Original Message- From: mikub...@linux.microsoft.com Sent: Tuesday, February 20, 2024 11:26 PM To: devel@edk2.groups.io Cc: Liming Gao ; Guo, Gua ; Prakashan, Krishnadas Veliyathuparambil ; K N, Karthik Subject: [PATCH v1 1/1]

[edk2-devel] [PATCH v1 1/1] MdeModulePkg/TraceHubDebugSysTLib: Use wider type for loop comparisons

2024-02-20 Thread Michael Kubacki
From: Michael Kubacki Resolves a new CodeQL error due to the value being incremented in the loop being a narrower type than the variable it is being compared against. The variable is changed to a UINT32 type so it has the same width as the type it is being compared against. Issue explanation:

[edk2-devel] [PATCH v1 1/1] MdeModulePkg/Bus/Usb/UsbNetwork: Check array index range before access

2024-02-20 Thread Michael Kubacki
From: Michael Kubacki Checks that an offset used to access array elements is within the expected range before accessing the array item. Cc: Liming Gao Cc: Ray Ni Cc: Rebecca Cran Cc: Richard Ho Signed-off-by: Michael Kubacki --- MdeModulePkg/Bus/Usb/UsbNetwork/UsbCdcEcm/UsbEcmFunction.c

Re: [edk2-devel] [Patch 3/4] BaseTools/Scripts/PatchCheck: Error if no Cc tags are present

2024-02-20 Thread Ard Biesheuvel
Hello Mike, I understand the desire to be pedantic about cc'ing the right maintainers, but I'm not convinced this is the way. - the presence of a cc: tag does not guarantee that the person was cc'ed - only git send-email will take CC:s in the message body into account by default (but this can

[edk2-devel] [PATCH V2] Pkg-Module: OptionRomPkg

2024-02-20 Thread Gahan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 Bug 4689 - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data for UEFI Spec compliance 2.9 [mantis #1866] Cc: Ray Ni Signed-off-by: Gahan Saraiya --- Drivers/OptionRomPkg/UndiRuntimeDxe/Undi32.h

[edk2-devel] [PATCH V2] Pkg-Module: MinPlatformPkg

2024-02-20 Thread Gahan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 Bug 4689 - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data for UEFI Spec compliance 2.9 [mantis #1866] Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: Gahan

[edk2-devel] [PATCH V2] Pkg-Module: Silicon/Marvell

2024-02-20 Thread Gahan
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4689 Bug 4689 - GetInfo() of Adapter Information Protocol should have a provision for IHV to return no data for UEFI Spec compliance 2.9 [mantis #1866] Cc: Marcin Wojtas Cc: Leif Lindholm Signed-off-by: Gahan Saraiya ---

[edk2-devel] [PATCH v3 6/6] OvmfPkg/PlatformInitLib: add 5-level paging support

2024-02-20 Thread Gerd Hoffmann
Adjust physical address space logic for la57 mode (5-level paging). With a larger logical address space we can identity-map a larger physical address space. Signed-off-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek --- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 57 ++--- 1 file

[edk2-devel] [PATCH v3 3/6] OvmfPkg/ResetVector: improve page table flag names

2024-02-20 Thread Gerd Hoffmann
Add comments, rename some of the PAGE_* flags and combined attributes. Specifically use "LARGEPAGE" instead of "2M" because that bit is used for both 2M and 1G large pages. Signed-off-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek --- OvmfPkg/ResetVector/Ia32/PageTables64.asm | 39

[edk2-devel] [PATCH v3 1/6] MdeModulePkg/DxeIplPeim: fix PcdUse5LevelPageTable assert

2024-02-20 Thread Gerd Hoffmann
PcdUse5LevelPageTable documentation says: Indicates if 5-Level Paging will be enabled in long mode. 5-Level Paging will not be enabled when the PCD is TRUE but CPU doesn't support 5-Level Paging. So running in 4-level paging mode with PcdUse5LevelPageTable=TRUE is possible. The only

[edk2-devel] [PATCH v3 5/6] OvmfPkg/ResetVector: add 5-level paging support

2024-02-20 Thread Gerd Hoffmann
Compile the OVMF ResetVector with 5-level paging support in case PcdUse5LevelPageTable is TRUE. When enabled the ResetVector will check at runtime whenever support for 5-level paging and gigabyte pages is available. In case both features are supported it will run OVMF in 5-level paging mode,

[edk2-devel] [PATCH v3 4/6] OvmfPkg/ResetVector: SEV: keep #vc handler installed longer

2024-02-20 Thread Gerd Hoffmann
When running in SEV mode do not uninstall the #vc handler in CheckSevFeatures. Keep it active and uninstall it later in SevClearPageEncMaskForGhcbPage. This allows using the cpuid instruction in SetCr3ForPageTables64, which is needed to check for la57 & 1G page support. Signed-off-by: Gerd

[edk2-devel] [PATCH v3 2/6] MdeModulePkg/DxeIplPeim: rename variable

2024-02-20 Thread Gerd Hoffmann
Rename Page5LevelSupported to Page5LevelEnabled. The variable is set to true in case 5-paging level is enabled (64-bit PEI) or will be enabled (32-bit PEI), it does *not* tell whenever the 5-level paging is supported by the CPU. Signed-off-by: Gerd Hoffmann Reviewed-by: Laszlo Ersek ---

[edk2-devel] [PATCH v3 0/6] OvmfPkg: Add support for 5-level paging

2024-02-20 Thread Gerd Hoffmann
Patch #1 + #2 fix MdeModulePkg/DxeIplPeim to not assert in case a 5-level enabled build runs in 4-level paging mode. Patch #2 - #4 update OvmfPkg ResetVector, adding support for 5-level paging (setup 5-level page tables in case both la57 and gigabyte pages are supported by the vCPU). Patch #5

Re: [edk2-devel] [PATCH v3 1/4] OvmfPkg/Sec: Setup MTRR early in the boot process.

2024-02-20 Thread Gerd Hoffmann
On Tue, Feb 20, 2024 at 06:27:21AM +, Min Xu wrote: > On Monday, February 12, 2024 11:22 PM, Gerd Hoffmann wrote: > > On Thu, Feb 01, 2024 at 10:38:43AM +0100, Gerd Hoffmann wrote: > > > Hi, > > > > > > > > Can you confirm (a) this patch is OK for > > > > > "OvmfPkg/IntelTdx/Sec/SecMain.c",

Re: [edk2-devel] [PATCH 1/1] SbsaQemu: AcpiDxe: Create SRAT table at runtime

2024-02-20 Thread Xiong Yining
This is beacuse UEFI only allocates the first memory node memory space for SbsaQemu platform,  i refer to implemet of "OvmfPkg/Fdt/HighMemDxe" and add the support for other memory nodes via GCD services. Maybe you can apply patch "support multi memory nodes" together with this patch.