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

2024-02-26 Thread Laszlo Ersek
ain, it's valid English. (E.g., we also don't try to enforce American vs. British English spelling in comments, even though the American one is much more common in the codebase.) Reviewed-by: Laszlo Ersek -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this grou

Re: [edk2-devel] [PATCH] ArmVirtPkg/XenAcpiPlatformDxe: Install FACS table from DT

2024-02-25 Thread Laszlo Ersek
On 2/13/24 11:50, David Woodhouse wrote: > From: David Woodhouse > > The FACS may still exist when the reduced hardware flag is set in FADT; > it is optional. Since it contains the hardware signature field which > indicates that a hibernated system should boot cleanly instead of > attempting to r

Re: [edk2-devel] [PATCH v3 00/12] OvmfPkg: tweak shell builds

2024-02-25 Thread Laszlo Ersek
On 2/22/24 11:13, Gerd Hoffmann wrote: > - Create include files to reduce duplication. > - Fix varpolicy command. > - Little CI tweak. > > v3: > - pick up review and ack tags. > - no functional changes. > v2: > - do not move ShellCEntryLib to include file. > - refine network config conditional

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

2024-02-25 Thread Laszlo Ersek
On 2/25/24 17:18, Laszlo Ersek wrote: > ... Ah, okay! This is the point where I re-read your steps, and now I > see the actual breakage. > > It is your step #2. > > Placing the PciSioSerialDxe driver -- which is a UEFI driver that > follows the UEFI driver model, a

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

2024-02-25 Thread Laszlo Ersek
On 2/23/24 16:50, Albecki, Mateusz wrote: > Hi, > > I was originally responsible for suggesting this change > internally(more specifically - to switch from Intel specific LPSS UART > driver to EDK2 driver which on inspection seemed to cover all relevant > modes of operations of LPSS UART). > > Firs

Re: [edk2-devel] edk2-test: bug in DevicePathFromTextBBTestCoverage.c

2024-02-25 Thread Laszlo Ersek
Hello Charles, On 2/24/24 17:01, Charles Hyde wrote: > There is a bug in the following source file: > > uefi-sct\ > SctPkg\ > TestCase\ > UEFI\ >EFI\ > Protocol\ > DevicePathFromText\ > BlackBoxTest\ >

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

2024-02-25 Thread Laszlo Ersek
bSetPle(): Ple > PageTableLibSetPnle(): Pnle > > Reviewed-by: Ray Ni > Signed-off-by: Zhou Jianfeng > Cc: Ray Ni > Cc: Laszlo Ersek > Cc: Rahul Kumar > Cc: Gerd Hoffmann > --- > .../Library/CpuPageTableLib/CpuPageTableMap.c | 32 +-- > 1 file

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

2024-02-25 Thread Laszlo Ersek
usDxe internals (resource management in particular) to confidently approve this patch. I can give an Acked-by: Laszlo Ersek but the patch should not be merged until Ray provides an R-b. Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/

Re: [edk2-devel] [PATCH] UefiCpuPkg/CpuPageTableLib: qualify page table accesses as volatile

2024-02-25 Thread Laszlo Ersek
On 2/23/24 16:51, Michael Brown wrote: > On 23/02/2024 15:12, Zhou, Jianfeng wrote: >>> While it may well cause the compiler to generate less optimised code, >>> there is absolutely no way that this volatile declaration on a local >>> stack variable can possibly change the outcome of the code. >>>

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

2024-02-25 Thread Laszlo Ersek
On 2/22/24 11:23, Ni, Ray wrote: >>> I agree with the idea (I think it's a necessary change, or put >>> differently, an improvement, even though I may not be convinced that it >>> is a *sufficient* improvement; but let's not rehash all that here >>> again); however, I think the implementation is no

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

2024-02-25 Thread Laszlo Ersek
d Hoffmann >> Sent: Thursday, February 22, 2024 8:29 PM >> To: Laszlo Ersek >> Cc: devel@edk2.groups.io; Oliver Steffen ; Kumar, >> Rahul R ; Ni, Ray >> Subject: Re: [edk2-devel] [PATCH v2 4/5] UefiCpuPkg/MpInitLib: Add support >> for multiple HOBs to MpInit

Re: [edk2-devel] [edk2-InfSpecification PATCH 0/2] README: INF_VERSION >= 1.30: declare ProcessLibraryCon...() for SEC modules

2024-02-24 Thread Laszlo Ersek
On 2/24/24 22:28, Laszlo Ersek wrote: > The first patch is a minor cleanup, the new feature is documented in the > second patch. > > Rendered version: > > > https://lersek.github.io/edk2-InfSpecification/ProcessLibraryConstructorList-SEC-991/ > > htt

Re: [edk2-devel] [edk2-BuildSpecification PATCH 0/3] AutoGen.h: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
On 2/24/24 22:23, Laszlo Ersek wrote: > The first two patches are cleanups, the new feature is documented in the > third patch. > > I managed to render these updates to public HTML, following > > (a) Mike's note from October 2020: > > https://edk2.groups.io/g/

[edk2-devel] [edk2-InfSpecification PATCH 2/2] README: INF_VERSION >= 1.30: declare ProcessLibraryCon...() for SEC modules

2024-02-24 Thread Laszlo Ersek
https://bugzilla.tianocore.org/show_bug.cgi?id=991 Suggested-by: Liming Gao Suggested-by: Michael D Kinney Signed-off-by: Laszlo Ersek --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ea7bf9b9dc43..d077ab1ceaad 100644 --- a/README.md +++ b/README.md @@

[edk2-devel] [edk2-InfSpecification PATCH 1/2] README.md: fix revision history whitespace

2024-02-24 Thread Laszlo Ersek
Fix the right-hand-side whitespace in the revision history table. Cc: Bob Feng Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=991 Signed-off-by: Laszlo Ersek --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2

[edk2-devel] [edk2-InfSpecification PATCH 0/2] README: INF_VERSION >= 1.30: declare ProcessLibraryCon...() for SEC modules

2024-02-24 Thread Laszlo Ersek
Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Thanks Laszlo Laszlo Ersek (2): README.md: fix revision history whitespace README: INF_VERSION >= 1.30: declare ProcessLibraryCon...() for SEC modules README.md | 5 +++-- 1 file changed, 3 insertions(+)

[edk2-devel] [edk2-BuildSpecification PATCH 2/3] AutoGen.c: list the SEC module type for / (VOID)

2024-02-24 Thread Laszlo Ersek
The build spec only lists BASE thus far; cover SEC now. This patch is best viewed with "git show -W". Cc: Bob Feng Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=991 Signed-off-by: Laszlo Ersek --- 8_pre

[edk2-devel] [edk2-BuildSpecification PATCH 3/3] AutoGen.h: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=991 Suggested-by: Liming Gao Suggested-by: Michael D Kinney Signed-off-by: Laszlo Ersek --- 8_pre-build_autogen_stage/83_auto-generated_code.md | 26

[edk2-devel] [edk2-BuildSpecification PATCH 0/3] AutoGen.h: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
tbook-action.yml Cc: Bob Feng Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Thanks Laszlo Laszlo Ersek (3): README.md: fix revision history whitespace AutoGen.c: list the SEC module type for / (VOID) AutoGen.h: declare ProcessLibraryConstructorList() for SEC modules

[edk2-devel] [edk2-BuildSpecification PATCH 1/3] README.md: fix revision history whitespace

2024-02-24 Thread Laszlo Ersek
Fix the right-hand-side whitespace in the revision history table. Cc: Bob Feng Cc: Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=991 Signed-off-by: Laszlo Ersek --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2

[edk2-devel] [PATCH] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
Liming Gao Cc: Michael D Kinney Cc: Rebecca Cran Cc: Yuwei Chen Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=991 Suggested-by: Liming Gao Suggested-by: Michael D Kinney Signed-off-by: Laszlo Ersek --- Notes: v2: - CI run: <https://github.com/tianocore/edk2/pull/5

[edk2-devel] [v2] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
v1 posting: https://edk2.groups.io/g/devel/message/115193 msgid <36593e23-d3e8-b71a-808d-ef94260b5...@redhat.com> Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=991 In version 2, the feature is structured differently. Following Mike's advice, for compatibility, the ProcessLibrar

Re: [edk2-devel] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
On 2/15/24 18:29, Michael D Kinney wrote: > The current INF Spec uses INF_VERSION of 1.27. Side topic: the build spec says in 8.7: https://tianocore-docs.github.io/edk2-BuildSpecification/draft/8_pre-build_autogen_stage/87_generated_asbuilt_inf_files.html that the build tool will *downgrade

Re: [edk2-devel] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules

2024-02-24 Thread Laszlo Ersek
? Or are you wanting > to jump from 1.2x to 1.3x to indicate a behavior change? > > Thanks, > > Mike > > >> -Original Message- >> From: Laszlo Ersek >> Sent: Wednesday, February 14, 2024 11:58 PM >> To: devel@edk2.groups.io; Kinney, Michael D >>

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

2024-02-21 Thread Laszlo Ersek
On 2/22/24 02:49, Laszlo Ersek wrote: > (commenting once more, to explain the actual reason:) > > On 2/21/24 11:24, Gerd Hoffmann wrote: >> On Wed, Feb 21, 2024 at 03:48:25AM +, Ni, Ray wrote: >>>> >>>> + MaxCpusPerHob = (MAX_UINT16 - sizeof (EFI_HO

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

2024-02-21 Thread Laszlo Ersek
On 2/20/24 18:49, Gerd Hoffmann wrote: > 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. (1) The mention of the count 128 now seems stale for the code. >

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

2024-02-21 Thread Laszlo Ersek
(commenting once more, to explain the actual reason:) On 2/21/24 11:24, Gerd Hoffmann wrote: > On Wed, Feb 21, 2024 at 03:48:25AM +, Ni, Ray wrote: >>> >>> + MaxCpusPerHob = (MAX_UINT16 - sizeof (EFI_HOB_GUID_TYPE) - sizeof >>> (MP_HAND_OFF)) / sizeof (PROCESSOR_HAND_OFF); >> >> Above formula

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

2024-02-21 Thread Laszlo Ersek
On 2/21/24 11:24, Gerd Hoffmann wrote: > On Wed, Feb 21, 2024 at 03:48:25AM +, Ni, Ray wrote: >>> >>> + 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. > > W

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

2024-02-21 Thread Laszlo Ersek
On 2/20/24 18:49, Gerd Hoffmann wrote: > 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 > varia

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

2024-02-21 Thread Laszlo Ersek
n of >memory and continue its loop there. > > - @param[in] MpHandOff Pointer to MP hand-off data structure. > + @param[in] FirstMpHandOff Pointer to first MP hand-off HOB. comment should say sth like "Pointer to first MP hand-off HOB body". Reviewed-by: Laszlo Ersek

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

2024-02-21 Thread Laszlo Ersek
On 2/20/24 18:49, Gerd Hoffmann wrote: > 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 inser

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

2024-02-21 Thread Laszlo Ersek
[Index].ApicId == ApicId) { > +BspNumber = MpHandOff->ProcessorIndex + Index; > + } > } >} > It's strange that the pre-patch code keeps looking even after finding the BSP by APIC-ID; now it's stranger yet, because we even go to further HOBs. In the

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

2024-02-21 Thread Laszlo Ersek
On 2/21/24 04:35, Ni, Ray wrote: >> -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 >&

Re: [edk2-devel] Peims are not gettting Dispatched in EagleStream Platform

2024-02-21 Thread Laszlo Ersek
On 2/21/24 07:59, memristor2 via groups.io wrote: > Hi, > I am trying to build edk2-platforms for EagleStream Platform. The > problem I am facing now is that the Peims are not getting dispatched > when The PeiMain routine calls PeiDispatcher(). > After digging deeper into it it seems that the Depex

Re: [edk2-devel] [PATCH] NetworkPkg:Resolved Consecutive Pxe-Http Boot Issue

2024-02-21 Thread Laszlo Ersek
On 2/21/24 18:15, Santhosh Kumar V via groups.io wrote: > The customer has a server environment where PXE and HTTP service run in same > Linux Server. In this environment a SUT trying to boot to SLES 15 OS via PXE > from the Boot Menu. After PXE Boot file downloaded and grub Loaded without > con

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

2024-02-21 Thread Laszlo Ersek
On 2/20/24 15:48, Ard Biesheuvel wrote: > 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

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

2024-02-21 Thread Laszlo Ersek
On 2/21/24 18:15, Borzeszkowski, Alan wrote: >> It does not make sense to have a UEFI Driver active in early DXE because it >> will not be connected yet and has dependencies on other UEFI drivers that >> will not be connected yet. > > With suggested change, we connect to this driver successfully

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

2024-02-21 Thread Laszlo Ersek
On 2/21/24 02:25, Zhou Jianfeng wrote: > Add volatile qualifier to page table related variable to prevent > compiler from optimizing away the variables which may lead to > unexpected result. > > Signed-off-by: Zhou Jianfeng > Cc: Ray Ni > Cc: Laszlo Ersek > Cc: Rahul Ku

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

2024-02-21 Thread Laszlo Ersek
On 2/21/24 21:06, Laszlo Ersek wrote: > On 2/21/24 06:46, Ni, Ray wrote: >> Reviewed-by: Ray Ni > > Thank you Ray for reviewing this; I'm happy if this goes in with your > review. small suggestion: I think we could improve the subject line as follows: UefiCpuPkg/CpuP

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

2024-02-21 Thread Laszlo Ersek
M >> To: devel@edk2.groups.io >> Cc: Zhou, Jianfeng ; Ni, Ray ; >> Laszlo Ersek ; Kumar, Rahul R >> ; Gerd Hoffmann >> Subject: [PATCH] UefiCpuPkg: Fix IN OUT parameters marked as IN >> >> Some IN OUT parameters in CpuPageTableMap.c were mistakenl

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

2024-02-21 Thread Laszlo Ersek
--- > *From:* Ding, Feng (Sunnyvale) > *Sent:* Thursday, February 8, 2024 5:09 PM > *To:* Laszlo Ersek ; devel@edk2.groups.io > ; Hsueh, Hong-Chih (Neo) > *Cc:* He, Jiangang ; Chang, Abner > ; ray...@intel.com ; > gaolim...@byosoft.com.

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&#

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 supp

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

2024-02-20 Thread Laszlo Ersek
is needed to check for la57 & 1G page support. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/ResetVector/Ia32/AmdSev.asm | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) I'll let Tom review this :) Acked-by: Laszlo Ersek > > diff --git a/

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 exe

Re: [edk2-devel] GVT-g VM takes a long time before OVMF splash shown - bisected

2024-02-19 Thread Laszlo Ersek
Hi, On 2/19/24 19:18, chriscjsus via groups.io wrote: > Sorry if this is a duplicate post.  I sent an email to > devel@edk2.groups.io before creating an > account on groups.io. > > This started with edk2-stable202311.  I bisected this to > > first bad commit: [e8aa4

Re: [edk2-devel] [PATCH 2/2] MdeModulePkg/NvmExpressDxe: use format "0x%lx" for UINT64 values.

2024-02-19 Thread Laszlo Ersek
ata->Ncap)); > +DEBUG ((DEBUG_INFO, "NUSE: 0x%lx\n", NamespaceData->Nuse)); > DEBUG ((DEBUG_INFO, "LBAF0.LBADS : 0x%x\n", > (NamespaceData->LbaFormat[0].Lbads))); > > // series Reviewed-by: Laszlo Ersek -=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH edk2-libc 1/1] StdLib: Remove the 'register' keyword from public interfaces

2024-02-19 Thread Laszlo Ersek
/4/93"; > */ > char * > strsep( > - register char **stringp, > - register const char *delim > + char **stringp, > + const char *delim >) > { > - register char *s; > - register const char *spanp; > - register int c, sc; > + char *s; > + const

Re: [edk2-devel] The API in BaseCryptLib can't seed the pseudorandom number generator properly

2024-02-19 Thread Laszlo Ersek
, from 1.1.1u.) Attaching the source code of the small repro application to the ticket would likely be helpful. Laszlo > Laszlo Ersek mailto:ler...@redhat.com>> 於 2024年2月 > 15日 週四 下午7:48寫道: > > On 2/15/24 12:09, eddie wang wrote: > > Hi Laszlo, > > Thank

Re: [edk2-devel] [edk2-platforms PATCH 5/6] LoongArchQemuPkg: fix SEC ProcessLibraryConstructorList() prototype

2024-02-19 Thread Laszlo Ersek
;ve already used a LoongArch toolchain in a Fedora VM, with a virtio filesystem. Laszlo > > > Thanks, > Chao > On 2024/2/7 09:09, Laszlo Ersek wrote: >> The current declaration of, and call to, SEC >> ProcessLibraryConstructorList() in LoongArchQemuPkg matches the PEIM ent

Re: [edk2-devel] [PATCH v2 12/12] OvmfPkg: only add shell to FV in case secure boot is disabled

2024-02-19 Thread Laszlo Ersek
On 2/19/24 11:21, Gerd Hoffmann wrote: >>> -!if $(BUILD_SHELL) == TRUE >>> +!if $(BUILD_SHELL) == TRUE && $(SECURE_BOOT_ENABLE) == FALSE >>> >>> !if $(TOOL_CHAIN_TAG) != "XCODE5" >>> !if $(NETWORK_ENABLE) == TRUE >> >&g

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

2024-02-19 Thread Laszlo Ersek
On 2/19/24 12:37, Gerd Hoffmann wrote: > Hi, > >> (I'm missing the larger picture here -- is this related to the problem >> -- too many CPUs to fit their infos into a single HOB -- that Pawel >> worked on for a while? > > Different HOB, but similar underlying problem. > > At least the HOB stru

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

2024-02-19 Thread Laszlo Ersek
On 2/15/24 10:31, Gerd Hoffmann wrote: > 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/MpIn

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

2024-02-19 Thread Laszlo Ersek
On 2/15/24 10:31, Gerd Hoffmann wrote: > 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 > varia

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

2024-02-19 Thread Laszlo Ersek
On 2/15/24 10:31, Gerd Hoffmann wrote: > Remove the MpHandOff parameter. This is not useful in case multiple > HOBs are present in the system. The function will use GetMpHandOffHob() > to loop over all HOBs instead. > > Signed-off-by: Gerd Hoffmann > --- > UefiCpuPkg/Library/MpInitLib/MpLib.h

Re: [edk2-devel] [PATCH 1/5] UefiCpuPkg/MpInitLib: Add ProcessorIndex argument to GetMpHandOffHob()

2024-02-19 Thread Laszlo Ersek
(); > + MpHandOff = GetMpHandOffHob (0); >if (MpHandOff == NULL) { > MaxLogicalProcessorNumber = PcdGet32 (PcdCpuMaxLogicalProcessorNumber); >} else { Seems to do what it says on the tin; not sure what it's going to be good for, though. Reviewed-by: Laszlo Ersek

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

2024-02-19 Thread Laszlo Ersek
On 2/15/24 10:31, Gerd Hoffmann wrote: > Remove the MpHandOff parameter. This is not useful in case multiple > HOBs are present in the system. The function will use GetMpHandOffHob() > to loop over all HOBs instead. > > Signed-off-by: Gerd Hoffmann > --- > UefiCpuPkg/Library/MpInitLib/MpLib.c

Re: [edk2-devel] [PATCH v2 12/12] OvmfPkg: only add shell to FV in case secure boot is disabled

2024-02-16 Thread Laszlo Ersek
TRUE > +!if $(BUILD_SHELL) == TRUE && $(SECURE_BOOT_ENABLE) == FALSE > > !if $(TOOL_CHAIN_TAG) != "XCODE5" > !if $(NETWORK_ENABLE) == TRUE This does the job: Reviewed-by: Laszlo Ersek An alternative could be (perhaps informing the user better): !if $(BUILD_SHEL

Re: [edk2-devel] [PATCH v2 11/12] OvmfPkg/CI: copy shell to virtual drive

2024-02-16 Thread Laszlo Ersek
ch will exclude the shell from > secure boot enabled builds. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/PlatformCI/PlatformBuildLib.py | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) Thanks for the commit message update. Acked-by: Laszlo Ersek -

Re: [edk2-devel] [PATCH v2 09/12] OvmfPkg: switch IntelTdxX64 to new shell include files

2024-02-16 Thread Laszlo Ersek
: Gerd Hoffmann > Acked-by: Laszlo Ersek > --- > OvmfPkg/IntelTdx/IntelTdxX64.dsc | 32 +++- > OvmfPkg/IntelTdx/IntelTdxX64.fdf | 9 ++--- > 2 files changed, 5 insertions(+), 36 deletions(-) Thanks for the commit message update here too. -=-=-=-=-

Re: [edk2-devel] [PATCH v2 08/12] OvmfPkg: switch AmdSevX64 to new shell include files

2024-02-16 Thread Laszlo Ersek
: Gerd Hoffmann > Acked-by: Laszlo Ersek > --- > OvmfPkg/AmdSev/AmdSevX64.dsc | 30 ++ > OvmfPkg/AmdSev/AmdSevX64.fdf | 8 ++-- > 2 files changed, 4 insertions(+), 34 deletions(-) Thanks for the update. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: Yo

Re: [edk2-devel] [PATCH v2 04/12] OvmfPkg: Shell*.inc: allow building without network support

2024-02-16 Thread Laszlo Ersek
!if $(TOOL_CHAIN_TAG) != "XCODE5" > +!if $(NETWORK_ENABLE) == TRUE > INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf > INF ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf > +!endif > INF > OvmfPkg/LinuxInitrdDynamicShellCommand/Linu

Re: [edk2-devel] [PATCH v2 02/12] OvmfPkg: add ShellLibs.dsc.inc

2024-02-16 Thread Laszlo Ersek
| 4 +--- > 2 files changed, 11 insertions(+), 3 deletions(-) > create mode 100644 OvmfPkg/Include/Dsc/ShellLibs.dsc.inc Reviewed-by: Laszlo Ersek > > diff --git a/OvmfPkg/Include/Dsc/ShellLibs.dsc.inc > b/OvmfPkg/Include/Dsc/ShellLibs.dsc.inc > new file mode 100644 > i

Re: [edk2-devel] mail-archive.com (secondary archive) feed resumed

2024-02-16 Thread Laszlo Ersek
On 2/15/24 14:45, Rebecca Cran wrote: > On 2/15/2024 4:28 AM, Laszlo Ersek wrote: >> mail-archive.com is an important secondary archive because it offers >> message-id-based lookup. "git am --message-id" captures patch email >> message IDs in the commit messages,

Re: [edk2-devel] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules

2024-02-16 Thread Laszlo Ersek
the draft (= latest unreleased) spec. Thanks! Laszlo >> -Original Message- >> From: Laszlo Ersek >> Sent: Wednesday, February 14, 2024 11:58 PM >> To: devel@edk2.groups.io; Kinney, Michael D >> >> Cc: Abdul Lateef Attar ; Abner Chang >> ; Warkentin, A

Re: [edk2-devel] The API in BaseCryptLib can't seed the pseudorandom number generator properly

2024-02-15 Thread Laszlo Ersek
console or standard error devices, respectively. hth Laszlo > Laszlo Ersek mailto:ler...@redhat.com>> 於 2024年2月 > 8日 週四 上午5:03寫道: > > On 2/6/24 08:00, eddie wang wrote: > > Hi all, > > We had an UEFI application that used the EDK2(2023/12/05), and we >

[edk2-devel] mail-archive.com (secondary archive) feed resumed

2024-02-15 Thread Laszlo Ersek
Hi, you may have noticed that the secondary archive at stopped receiving messages after 28 Jan 2024. The reason is described here: https://groups.io/static/reverifyfaq A message about the reverification ("Update on Groups.io Reverification P

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

2024-01-25 Thread Laszlo Ersek
On 1/25/24 11:52, Pedro Falcato wrote: > On Thu, Jan 25, 2024 at 8:23 AM Gerd Hoffmann wrote: >> >> Specifically before running lzma uncompress of the main firmware volume. >> This is needed to make sure caching is enabled, otherwise the uncompress >> can be extremely slow. >> >> Adapt the ASSERTs

Re: [edk2-devel] [PATCH v2 0/2] MdeModulePkg: 5-level paging fixes

2024-01-25 Thread Laszlo Ersek
rtions(+), 6 deletions(-) > series Reviewed-by: Laszlo Ersek Feel free to keep the R-b if Ray suggests a different approach for the PCD renaming (e.g., keeping the existing name, or replacing "PcdGetBool (PcdUse5LevelPageTable)" with constant TRUE altogether) Laszlo -=-=-=-

Re: [edk2-devel] [Patch v2 1/1] MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB

2024-01-25 Thread Laszlo Ersek
On 1/24/24 18:46, Kinney, Michael D wrote: > Hi Laszlo, > > Yes. I can add more details in the commit message. > > The impact is for ACPI S4. There are many reasons why the set of > HOBs passed into the DXE Core may change from boot to boot or that > allocations in the early DXE init phase shou

Re: [edk2-devel] [PATCH 1/1] OvmfPkg/ResetVector: send post codes to qemu debug console

2024-01-25 Thread Laszlo Ersek
On 1/25/24 08:50, Gerd Hoffmann wrote: > On Wed, Jan 24, 2024 at 05:43:29PM -0800, Erdem Aktas wrote: >> Same for TDX, I did not run it but it should cause failure >> as debugShowPostCode is called OvmfPkg/ResetVector/Ia32/IntelTdx.asm before >> actually the #VE handlers are installed. >> >>> Had a

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

2024-01-25 Thread Laszlo Ersek
On 1/25/24 07:52, Gerd Hoffmann wrote: > On Wed, Jan 24, 2024 at 05:14:10PM +0100, Laszlo Ersek wrote: >> On 1/24/24 16:15, Gerd Hoffmann wrote: >>> Specifically before running lzma uncompress of the main firmware volume. >>> This is needed to make sure caching is enable

Re: [edk2-devel] [PATCH] MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler

2024-01-25 Thread Laszlo Ersek
On 1/25/24 13:05, Ni, Ray wrote: > Laszlo, > SMI handler is called from SmmCore. > So SmmCore knows which handle is passed to the SMI handler. > How about let Unregister() rejects the request coming from a SMI handler > which unregisters other handles? > > A "gCurrentSmiHandle" can be assigned be

Re: [edk2-devel] [PATCH 11/11] OvmfPkg/CI: copy shell to virtual drive

2024-01-25 Thread Laszlo Ersek
On 1/24/24 17:38, Gerd Hoffmann wrote: > Place the EFI shell as EFI/BOOT/BOOT{ARCH}.EFI on the virtual drive. > This allows the "run to shell" CI test case to work even in case the > shell is not included in the firmware image. In the commit message, can you list the platforms explicitly that bene

Re: [edk2-devel] [PATCH 10/11] OvmfPkg: switch MicrovmX64 to new shell include files

2024-01-25 Thread Laszlo Ersek
igDxe.inf > - OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf > + OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf { > + > +ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf > + } > !endif > >OvmfPkg/PlatformDxe/Platform.inf &quo

Re: [edk2-devel] [PATCH 09/11] OvmfPkg: switch IntelTdxX64 to new shell include files

2024-01-25 Thread Laszlo Ersek
cShellCommand.inf > -!endif > -!if $(BUILD_SHELL) == TRUE > -INF ShellPkg/Application/Shell/Shell.inf > -!endif > - > INF MdeModulePkg/Logo/LogoDxe.inf > > # > @@ -332,6 +325,8 @@ [FV.NCCFV] > INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf &g

Re: [edk2-devel] [PATCH 08/11] OvmfPkg: switch AmdSevX64 to new shell include files

2024-01-25 Thread Laszlo Ersek
clude/Dsc/ShellComponents.dsc.inc > >OvmfPkg/PlatformDxe/Platform.inf >OvmfPkg/AmdSevDxe/AmdSevDxe.inf { (1) This is not an identical change. That's alright (we could say this is an intended benefit from factoring out the shell stuff -- it is now bringing forward this platfor

Re: [edk2-devel] [PATCH 07/11] OvmfPkg: switch OvmfPkgIa32X64 to new shell include files

2024-01-25 Thread Laszlo Ersek
!if $(SECURE_BOOT_ENABLE) == TRUE > > SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf > - OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf > + OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf { > + > +ShellCEntryLib|ShellPkg/Library/UefiS

Re: [edk2-devel] [PATCH 06/11] OvmfPkg: switch OvmfPkgIa32 to new shell include files

2024-01-25 Thread Laszlo Ersek
xe.inf > !endif Note that this patch is inconsistent with patch#2 (OvmfPkg: add ShellLibs.dsc.inc); in that patch, "OvmfPkgX64.dsc" gets a module-scope ShellCEntryLib class resolution for "EnrollDefaultKeys.inf", but here, "OvmfPkgIa32.dsc". *However*, that incons

Re: [edk2-devel] [PATCH 05/11] OvmfPkg: ShellDxe.fdf.inc: add VariablePolicyDynamicCommand to FV

2024-01-25 Thread Laszlo Ersek
riablePolicyDynamicCommand.inf > INF > OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf > !endif > Reviewed-by: Laszlo Ersek -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114431): https://edk2.groups.io/g/deve

Re: [edk2-devel] [PATCH 04/11] OvmfPkg: Shell*.inc: allow building without network support

2024-01-25 Thread Laszlo Ersek
On 1/24/24 17:37, Gerd Hoffmann wrote: > Add NETWORK_ENABLE conditionals for the components > which need network support. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/Include/Dsc/ShellComponents.dsc.inc | 4 > OvmfPkg/Include/Fdf/ShellDxe.fdf.inc| 2 ++ > 2 files changed, 6 inse

Re: [edk2-devel] [PATCH 03/11] OvmfPkg: add ShellDxe.fdf.inc

2024-01-25 Thread Laszlo Ersek
inf > +INF ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf > +INF > OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf > +!endif > + > +INF ShellPkg/Application/Shell/Shell.inf > +!endif ... and this indeed shows, in comparison to patch#

Re: [edk2-devel] [PATCH 02/11] OvmfPkg: add ShellLibs.dsc.inc

2024-01-25 Thread Laszlo Ersek
I have several comments on this one: On 1/24/24 17:37, Gerd Hoffmann wrote: > Move EFI Shell libraries from OvmfPkgX64.dsc to > the new ShellComponents.dsc.inc include file. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/Include/Dsc/ShellLibs.dsc.inc | 11 +++ > OvmfPkg/OvmfPkgX64.dsc

Re: [edk2-devel] [PATCH 01/11] OvmfPkg: add ShellComponents.dsc.inc

2024-01-25 Thread Laszlo Ersek
vmfPkg/OvmfPkgX64.dsc | 43 +- > 2 files changed, 50 insertions(+), 42 deletions(-) > create mode 100644 OvmfPkg/Include/Dsc/ShellComponents.dsc.inc "git show --color --color-moved=zebra" works wonders on this patch. Reviewed-by: Laszlo Ersek -=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH] MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler

2024-01-25 Thread Laszlo Ersek
On 1/24/24 05:03, Zhiguang Liu wrote: > To support unregister SMI handler inside SMI handler itself, > get next node before SMI handler is executed, since LIST_ENTRY that > Link points to may be freed if unregister SMI handler in SMI handler > itself. > > Cc: Liming Gao > Cc: Jiaxin Wu > Cc: Ray

Re: [edk2-devel] [PATCH] MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler

2024-01-24 Thread Laszlo Ersek
> *From:*Ni, Ray > *Sent:* Wednesday, January 24, 2024 11:17 AM > *To:* Laszlo Ersek ; devel@edk2.groups.io; Liu, > Zhiguang > *Cc:* Liming Gao ; Wu, Jiaxin > ; Felix Polyudov > *Subject:* [EXTERNAL] Re: [edk2-devel] [PATCH] MdeModulePkg/SMM: Support > to unregister SMI

Re: [edk2-devel] [PATCH 1/1] OvmfPkg/ResetVector: send post codes to qemu debug console

2024-01-24 Thread Laszlo Ersek
On 1/24/24 16:31, Gerd Hoffmann wrote: > Neat when doing ResetVector coding. > > Signed-off-by: Gerd Hoffmann > --- > OvmfPkg/ResetVector/DebugCon.asm | 43 +++ > OvmfPkg/ResetVector/ResetVector.nasmb | 2 +- > 2 files changed, 44 insertions(+), 1 deletion(-) > cre

Re: [edk2-devel] [PATCH 1/1] MdeModulePkg/VirtualMemory: drop 5-level paging assert

2024-01-24 Thread Laszlo Ersek
On 1/24/24 16:49, Gerd Hoffmann wrote: > The ResetVector decides at runtime (depending in CPU capabilities) (1) s/depending in/dependent on/ > whenever it uses 5-level paging or not. Firmware builds with 5-level > paging enabled (PcdUse5LevelPageTable=TRUE) may run run in 4-level (2) typo: "run

Re: [edk2-devel] 回复: [Patch v2 1/1] MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB

2024-01-24 Thread Laszlo Ersek
On 1/24/24 15:59, gaoliming via groups.io wrote: > Mike: > Current algorithm tries to reserve the top available memory for memory type > bin range. > If the platform uses new way to describe the memory range, should we > suggest the rule to still > use the top memory resource hob for the memor

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

2024-01-24 Thread Laszlo Ersek
On 1/24/24 16:15, Gerd Hoffmann wrote: > Specifically before running lzma uncompress of the main firmware volume. > This is needed to make sure caching is enabled, otherwise the uncompress > can be extremely slow. > > Adapt the ASSERTs in PlatformInitLib to the changes. > > Background: In some v

Re: [edk2-devel] pixiefail

2024-01-24 Thread Laszlo Ersek
the GHSA process looks great! I didn't know! Thanks! Laszlo > > On Wed, Jan 24, 2024 at 6:57 AM Laszlo Ersek <mailto:ler...@redhat.com>> wrote: > > On 1/24/24 15:35, Laszlo Ersek wrote: > > > I figure the most flexible approach for those that di

Re: [edk2-devel] pixiefail

2024-01-24 Thread Laszlo Ersek
On 1/24/24 15:35, Laszlo Ersek wrote: > I figure the most flexible approach for those that dislike email-based > review for embargoed patches would be if github.com supported locked > down *PRs* (i.e., not private organizatons). In other words, if those > PRs would be submitted agai

Re: [edk2-devel] [PATCH V1 1/1] UefiCpuPkg/ResetVector: Cache Disable should not be set by default in CR0

2024-01-24 Thread Laszlo Ersek
On 1/24/24 14:26, Gerd Hoffmann wrote: > Hi, > >> So, yesterday I read your status on virt-staff, and I found an entry in >> it that resembled this upstream thread pretty closely. However, your >> status was the *only* mention of "mdev" specifically, and so I wasn't >> sure if *mdev* meant the s

Re: [edk2-devel] pixiefail

2024-01-24 Thread Laszlo Ersek
On 1/23/24 19:49, Doug Flick via groups.io wrote: > Gerd, > > As a new EDK2 developer, I'm working through getting the patches up > to EDK2 but I have to follow the EDK2 patch process which is not the > fastest thing to follow and also not my day job. If you want to see > where I am you can look a

Re: [edk2-devel] [Patch v2 1/1] MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB

2024-01-24 Thread Laszlo Ersek
On 1/23/24 21:24, Michael D Kinney wrote: > Provide an optional method for PEI to declare a specific address > range to use for the Memory Type Information bins. The current > algorithm uses heuristics that tends to place the Memory Type > Information bins in the same location, but memory configura

Re: [edk2-devel] [Patch v2 1/1] MdeModulePkg/Core/Dxe: Set MemoryTypeInfo bin range from HOB

2024-01-24 Thread Laszlo Ersek
On 1/23/24 21:24, Michael D Kinney wrote: > Provide an optional method for PEI to declare a specific address > range to use for the Memory Type Information bins. The current > algorithm uses heuristics that tends to place the Memory Type > Information bins in the same location, but memory configura

Re: [edk2-devel] Resources for Creating Packages

2024-01-24 Thread Laszlo Ersek
meta (CC Mike): On 1/22/24 19:25, ryderkeys via groups.io wrote: > (Originally sent to edk2 discuss but it looks like my message has > been stuck in moderation for a week, so I thought I would try here > instead.) I'm now checking the moderation queue for edk2-discuss; I seem to have found your o

Re: [edk2-devel] [PATCH] MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler

2024-01-24 Thread Laszlo Ersek
is the spec silent on it (in which case I guess we can call this a quality-of-implementation improvement)? > > Reviewed-by: Ray Ni Reviewed-by: Laszlo Ersek Thanks Laszlo > > Thanks, > Ray >> -Original Message- >> From: Liu, Zhiguang >> Sent: Wednesday,

Re: [edk2-devel] [Patch 1/1] MdePkg/Library/BaseCpuLibNull: Add missing X86 specific services

2024-01-24 Thread Laszlo Ersek
b library class include to all C files. > > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Laszlo Ersek > Cc: Qing Huang > Signed-off-by: Michael D Kinney > --- > .../Library/BaseCpuLibNull/BaseCpuLibNull.c | 17 + > .../Library/BaseCpuLibNull/BaseCpuLibNull.inf | 3 +

Re: [edk2-devel] [PATCH v3 4/5] MdeModulePkg: Add self-tests for NestedInterruptTplLib

2024-01-24 Thread Laszlo Ersek
On 1/23/24 18:41, Michael Brown wrote: > On 23/01/2024 16:55, Laszlo Ersek wrote: >>> +  /// >>> +  /// Number of self-tests performed. >>> +  /// >>> +  UINTN  SelfTestCount; >>>   } NESTED_INTERRUPT_STATE; >>>     /** >> >&g

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