Re: [edk2-devel] [edk2-platforms PATCH v2 1/4] BeagleBoardPkg: auto-generate SEC ProcessLibraryConstructorList() decl

2024-03-05 Thread Ard Biesheuvel
agleBoard/BeagleBoardPkg/BeagleBoardPkg.dsc -t GCC5 > > Cc: Ard Biesheuvel > Cc: Leif Lindholm > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=990 > Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel > --- > Platform/BeagleBoard/BeagleBoardPkg/PrePi/PeiUniCore.inf | 2 +-

Re: [edk2-devel][PATCH v1 1/3] MdeModulePkg: ImagePropertiesRecordLib: Use SectionAlignment for CodeSize

2024-03-04 Thread Ard Biesheuvel
On Mon, 4 Mar 2024 at 18:49, Oliver Smith-Denny wrote: > > Hi Ard, > > On 3/1/2024 3:58 AM, Ard Biesheuvel wrote: > > Hi Oliver, > > > > On Tue, 27 Feb 2024 at 21:27, Oliver Smith-Denny > > wrote: > >> > >> When an ImageRe

Re: [edk2-devel] [edk2][PATCH V2 1/2] ArmPkg/ArmGicArchLib: Add macros for SPI and extended SPI ranges

2024-03-01 Thread Ard Biesheuvel
uplicate it at multiple places. > > Can you let me know if I can merge this patch, please? > I have no problems with that, please go ahead. Acked-by: Ard Biesheuvel I will note that we will have to clean this up in the future, though: the architected GIC pieces should not be p

Re: [edk2-devel][PATCH v1 1/3] MdeModulePkg: ImagePropertiesRecordLib: Use SectionAlignment for CodeSize

2024-03-01 Thread Ard Biesheuvel
emitting sections either using a non-1:1 file:memory mapping, or with unallocated holes in the file representation? > Cc: Liming Gao > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Cc: Sami Mujawar > Cc: Taylor Beebe > > Signed-off-by: Oliver Smith-Denny > --- > MdeModulePkg/Lib

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

2024-02-21 Thread Ard Biesheuvel
On Wed, 21 Feb 2024 at 23:16, Laszlo Ersek wrote: > > 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. > > > > - th

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

2024-02-21 Thread Ard Biesheuvel
On Wed, 21 Feb 2024 at 16:05, Michael D Kinney wrote: > > Hi Ard, > > I disagree. We have never allowed a force push to the main > branch of TianoCore repos. This has happened before and > was discussed and the policy is to not fix. Even the edk2 > repo has some merge commits in its history

Re: [edk2-devel][PATCH v2 0/3] Fix Runtime Granularity Issues

2024-02-21 Thread Ard Biesheuvel
Update guard commit message, comments, and static assert to use > the correct types > > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Cc: Sami Mujawar > Cc: Liming Gao > > Oliver Smith-Denny (3): > MdeModulePkg: DxeCore: Fix CodeQL Error in FreePages > MdeModulePkg: D

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

2024-02-21 Thread Ard Biesheuvel
mfPkg/PlatformInitLib: add 5-level paging support > I'm fine with all this but I haven't looked in great detail, so Acked-by: Ard Biesheuvel -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115726): https://edk2.groups.io/g/devel/

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

2024-02-21 Thread Ard Biesheuvel
On Wed, 21 Feb 2024 at 02:49, Nate DeSimone wrote: > > 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

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

Re: [edk2-devel] [Patch 1/1] BaseTools/Scripts/PatchCheck: Error if commit modifies multiple packages

2024-02-18 Thread Ard Biesheuvel
gle commit. Not the entire PR. > 2) The information about what CI checks to skip are part of the >commit message and the commit history so the information can be >reused if needed in downstream CI. > 3) The information is in the commit message, so it is available for both >PR CI checks and 'push' CI checks. > 4) No new behavi

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

2024-02-16 Thread Ard Biesheuvel
On Fri, 16 Feb 2024 at 15:20, Laszlo Ersek wrote: > > 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

Re: [edk2-devel][PATCH v1 1/1] MdeModulePkg: DxeCore: Don't Guard Large Runtime Granularity Allocations

2024-02-15 Thread Ard Biesheuvel
On Thu, 15 Feb 2024 at 20:55, Oliver Smith-Denny wrote: > > On 2/14/2024 11:50 PM, Ard Biesheuvel wrote: > > I looked at the EFI spec again, and EfiACPIReclaimMemory is not > > actually listed as a memory type that has this 64k alignment > > requirement. This makes sense

Re: [edk2-devel][PATCH v1 1/1] MdeModulePkg: DxeCore: Don't Guard Large Runtime Granularity Allocations

2024-02-15 Thread Ard Biesheuvel
On Thu, 15 Feb 2024 at 18:08, Oliver Smith-Denny wrote: > > On 2/14/2024 11:50 PM, Ard Biesheuvel wrote> On Thu, 15 Feb 2024 at > 01:34, Oliver Smith-Denny > > wrote >> This could also be fixed with > > rearchitecting the heap guard system to > >> r

Re: [edk2-devel] [PATCH v5 00/11] DynamicTablesPkg: Enable _PSD/_CPC generation using SCMI

2024-01-25 Thread Ard Biesheuvel
; > A patchset for Juno-r2 platforms will be submitted to demonstrate > this functionality. > > [1] https://edk2.groups.io/g/devel/message/111901 > > Pierre Gondois (11): > ArmPkg/ArmScmiDxe: Rename PERFORMANCE_PROTOCOL_VERSION > ArmPkg/ArmScmiDxe: Add PERFORMANCE_DESCRIBE_FASTCHANNEL s

Re: [edk2-devel] [PATCH RESEND 1/1] StandaloneMmPkg/Core: Remove optimization for depex evaluation

2024-01-23 Thread Ard Biesheuvel
On Mon, 22 Jan 2024 at 03:34, Nhi Pham via groups.io wrote: > > From: Laszlo Ersek > > The current dependency evaluator violates the memory access permission > when patching depex grammar directly in the read-only depex memory area. > > Laszlo pointed out the optimization issue in the thread (1)

Re: [edk2-devel] [PATCH v3 5/5] MdeModulePkg: Extend NestedInterruptTplLib to support Arm CPUs

2024-01-23 Thread Ard Biesheuvel
eInterrupts(), which also sets both > flags). > > Tested by patching ArmPkg's TimerDxe to use NestedInterruptTplLib and > verifying that ArmVirtQemu passes the NestedInterruptTplLib self-tests > for both ARM and AARCH64. > > Cc: Ard Biesheuvel > Signed-off-by: Michael Brown

Re: [edk2-devel] [PATCH 1/1] StandaloneMmPkg/Core: Remove optimization for depex evaluation

2024-01-19 Thread Ard Biesheuvel
On Fri, 19 Jan 2024 at 05:58, Nhi Pham via groups.io wrote: > > From: Laszlo Ersek > > The current dependency evaluator violates the memory access permission > when patching depex grammar directly in the read-only depex memory area. > > Laszlo pointed out the optimization issue in the thread (1)

Re: [edk2-devel] [PATCH v3 0/6] OvmfPkg/VirtNorFlashDxe: fix corruption + misc small improvements

2024-01-18 Thread Ard Biesheuvel
On Thu, 18 Jan 2024 at 21:28, Laszlo Ersek wrote: > > On 1/16/24 18:10, Gerd Hoffmann wrote: > > This is a little series containing the flash corruption fix sent > > yesterday with an slightly improved commit message and some small > > improvements on top of this. > > > > v3: > > - fix diagram >

Re: [edk2-devel] [PATCH 0/2] OvmfPkg: drop support for TPM 1.2

2024-01-16 Thread Ard Biesheuvel
(cc Jiewen. Laszlo) On Tue, 16 Jan 2024 at 16:42, Gerd Hoffmann wrote: > > > > Gerd Hoffmann (2): > OvmfPkg: remove TPM1_ENABLE build option > OvmfPkg/Tcg2Config: remove unused TPM 1.2 support > Good riddance Acked-by: Ard Biesheuvel -=-=-=-=-=-=-=-=-=-=-=- Groups.

Re: [edk2-devel] [PATCH 0/4] OvmfPkg/VirtNorFlashDxe: fix corruption + misc small improvements

2024-01-16 Thread Ard Biesheuvel
On Tue, 16 Jan 2024 at 10:37, Laszlo Ersek wrote: > > On 1/15/24 18:56, Ard Biesheuvel wrote: > > On Mon, 15 Jan 2024 at 11:21, Laszlo Ersek wrote: > >> > >> On 1/12/24 12:37, Gerd Hoffmann wrote: > >>> This is a little series containing the

Re: [edk2-devel] [PATCH 0/4] OvmfPkg/VirtNorFlashDxe: fix corruption + misc small improvements

2024-01-15 Thread Ard Biesheuvel
On Mon, 15 Jan 2024 at 11:21, Laszlo Ersek wrote: > > On 1/12/24 12:37, Gerd Hoffmann wrote: > > This is a little series containing the flash corruption fix sent > > yesterday with an slightly improved commit message and some small > > improvements on top of this. > > > > Gerd Hoffmann (4): > >

Re: [edk2-devel] [PATCH v3 0/3] Support CloudHv guests with >1TB of RAM

2024-01-15 Thread Ard Biesheuvel
bug.cgi?id=1468526. The bug is > > still occuring for CloudHv guests because the PlatformScanE820 > > utility is not currently supported for CloudHv. > > > > My working branch for these changes can be found here: > > https://github.com/thomasbarrett/edk2/tree/cloud-hv-1tb-ram

Re: [edk2-devel] [PATCH v3 0/3] Support CloudHv guests with >1TB of RAM

2024-01-15 Thread Ard Biesheuvel
On Mon, 15 Jan 2024 at 16:32, Ard Biesheuvel wrote: > > On Mon, 15 Jan 2024 at 16:27, Gerd Hoffmann wrote: > > > > On Fri, Jan 12, 2024 at 06:31:41PM +, Thomas Barrett wrote: > > > This series adds support for cloud-hypervisor guests with >1TiB > > &

Re: [edk2-devel] [PATCH v3 0/3] Support CloudHv guests with >1TB of RAM

2024-01-15 Thread Ard Biesheuvel
2/tree/cloud-hv-1tb-ram > > > > Cc: Anatol Belski > > Cc: Ard Biesheuvel > > Cc: Gerd Hoffmann > > Cc: Jianyong Wu > > Cc: Jiewen Yao > > Cc: Laszlo Ersek > > Cc: Rob Bradford > > > > Thomas Barrett (3): > > OvmfPkg: Add

Re: [edk2-devel] Memory Attribute for depex section

2024-01-15 Thread Ard Biesheuvel
On Mon, 15 Jan 2024 at 14:07, Nhi Pham wrote: > > On 1/12/2024 4:45 PM, Laszlo Ersek wrote: > > (Independently: I think that's a valid thing to do for *SMM* drivers, > > because the entry point functions of those drivers are permitted to use > > both SMM and DXE/UEFI protocols. But whether the

[edk2-devel] [PATCH edk2-platforms 1/1] Maintainers: Remove Ard as Platform/ARM reviewer

2024-01-12 Thread Ard Biesheuvel via groups.io
From: Ard Biesheuvel Remove me as reviewer for ARM development platforms: I am no longer employed by ARM and have no access to or knowledge about ARM development/reference hardware. Signed-off-by: Ard Biesheuvel --- Maintainers.txt | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [edk2-devel] [PATCH 4/4] OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too

2024-01-12 Thread Ard Biesheuvel
On Fri, 12 Jan 2024 at 12:38, Gerd Hoffmann wrote: > > It is possible to find variable entries with State being 0xff, > i.e. not updated since flash block erase. This indicates the > header write was not completed (and therefore State was not set > to VAR_HEADER_VALID_ONLY). Treat this as

Re: [edk2-devel] [PATCH 3/4] OvmfPkg/VirtNorFlashDxe: allow larger writes without block erase

2024-01-12 Thread Ard Biesheuvel
FER_SIZE_IN_BYTES)) { > + if ((*NumBytes + (Offset & BOUNDARY_OF_32_WORDS)) <= (4 * > P30_MAX_BUFFER_SIZE_IN_BYTES)) { > // Check to see if we need to erase before programming the data into NOR. > // If the destination bits are only changing from 1s to 0s we can j

Re: [edk2-devel] [PATCH 2/4] OvmfPkg/VirtNorFlashDxe: clarify block write logic

2024-01-12 Thread Ard Biesheuvel
to handle updates larger > than two P30_MAX_BUFFER_SIZE_IN_BYTES blocks, even though the patch > does not actually change the size limit. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Ard Biesheuvel Nit below > --- > OvmfPkg/VirtNorFlashDxe/VirtNorFlash.c | 31

Re: [edk2-devel] [PATCH 1/4] OvmfPkg/VirtNorFlashDxe: fix shadowbuffer reads

2024-01-12 Thread Ard Biesheuvel
log. This should have been 0xff. > > This patch fixes the calculation. > > Signed-off-by: Gerd Hoffmann Thanks a lot for taking the time to track this down and fix it. Reviewed-by: Ard Biesheuvel > --- > OvmfPkg/VirtNorFlashDxe/VirtNorFlash.c | 2 +- > 1 file changed,

Re: [edk2-devel] [PATCH v1 0/4] Bz4166: Integer Overflow in CreateHob()

2024-01-11 Thread Ard Biesheuvel
On Thu, 11 Jan 2024 at 09:35, Guo, Gua wrote: > > CC: @Mathews, John and @Zimmer, Vincent > > Hi @Gerd Hoffmann > > My company teammate share me your patch can resolved > https://bugzilla.tianocore.org/show_bug.cgi?id=4166. So the signed-off name > is your name. > Again, a signed-off-by line

Re: [edk2-devel] [PATCH 5/5] Platform/RaspberryPi: Update PCIe MMIO window for DT

2024-01-10 Thread Ard Biesheuvel
On Thu, 11 Jan 2024 at 00:52, Jeremy Linton wrote: > > Since we are updating the DT memory map and telling it how > we have configured the PCIe, there isn't a reason for moving the > MMIO window. In fact this appears to fix OpenBSD+DT as well as > it makes the linux XHCI reset sequence happier. >

Re: [edk2-devel] [PATCH 4/5] Platform/RaspberryPi: Give the user control over the XHCI mailbox

2024-01-10 Thread Ard Biesheuvel
On Thu, 11 Jan 2024 at 00:52, Jeremy Linton wrote: > > Its a complete tossup whether removing the mailbox call after we have > set up the XHCI works for a given kernel+distro in DT mode. So lets > give users which want to try DT the option of flipping this on/off. > > Users that don't want to

Re: [edk2-devel] [PATCH 1/5] Platform/RaspberryPi/DualSerialPortLib: Always configure the pl011

2024-01-10 Thread Ard Biesheuvel
Hi Jeremy, Thanks for the patches. On Thu, 11 Jan 2024 at 00:52, Jeremy Linton wrote: > > The rpi's config.txt controls which uart (pl011, or miniuart) is > selected as the console. TFA and edk2 follow its lead, but if the > miniuart is selected as the primary and the machine is booted in ACPI

Re: [edk2-devel] [PATCH v1 2/4] StandaloneMmPkg/Hob: Integer Overflow in CreateHob()

2024-01-10 Thread Ard Biesheuvel
On Thu, 11 Jan 2024 at 07:52, Ard Biesheuvel wrote: > > On Thu, 11 Jan 2024 at 06:15, wrote: > > > > From: Gerd Hoffmann > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4166 > > > > Fix integer overflow in various CreateHob instances. >

Re: [edk2-devel] [PATCH v1 3/4] EmbeddedPkg/Hob: Integer Overflow in CreateHob()

2024-01-10 Thread Ard Biesheuvel
ses. > > Reported-by: Marc Beatove > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Cc: Abner Chang > Cc: John Mathew > Signed-off-by: Gerd Hoffmann This is missing a signed-off line from the sender. (the signoff is not a statement of authorship, it is a promise by the sender

Re: [edk2-devel] [PATCH v1 2/4] StandaloneMmPkg/Hob: Integer Overflow in CreateHob()

2024-01-10 Thread Ard Biesheuvel
> performing the following operation: > ``` > HobLength = (UINT16)((HobLength + 0x7) & (~0x7)); > ``` > > No checks are performed to ensure this value doesn't > overflow, and could lead to CreateHob() returning a smaller > HOB than requested, which could lead to OOB HOB access

Re: [edk2-devel] Updates to .mailmap needed for Jeff Brasen, Jake Garver, Joey Vagades and Michael Roth?

2024-01-09 Thread Ard Biesheuvel
On Tue, 9 Jan 2024 at 10:17, Laszlo Ersek wrote: > > On 1/5/24 01:05, Rebecca Cran via groups.io wrote: > > I noticed recent commits by Jeff Brasen, Jake Garver, Joey Vagades and > > Michael Roth have funky Author lines, which I think means .mailmap needs > > updated? > > > > Author: Jeff Brasen

Re: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg: Initialise serial port early in StandaloneMmEntryPoint

2024-01-05 Thread Ard Biesheuvel
On Fri, 5 Jan 2024 at 12:49, levi.yun wrote: > > Serial port used by the DEBUG macro is initialised in StandaloneMmMain > by the DebugLib constructor. > > When we use a serial port initialised by TF-A it is not a problem. > However, if we use a serial port that is not initialised by TF-A, > the

Re: [edk2-devel] [PATCH v3 2/3] ArmPkg: Introduce global mTimerPeriod and remove calculation

2024-01-05 Thread Ard Biesheuvel
On Fri, 5 Jan 2024 at 06:15, Rebecca Cran wrote: > > The calculation of the timer period was broken. Introduce a global > mTimerPeriod so the calculation can be removed. Since mTimerFrequencyHz > is only used in one place, remove the global and make it a local > variable. Do the same with

Re: [edk2-devel] [PATCH v3 0/3] ArmPkg: GenericWatchdogDxe fixes and improvements

2024-01-05 Thread Ard Biesheuvel
On Fri, 5 Jan 2024 at 06:15, Rebecca Cran wrote: > > Fixes and improvements to GenericWatchdogDxe. > What is the difference between v2 and v3? > PR: https://github.com/tianocore/edk2/pull/5176 > > Rebecca Cran (3): > ArmPkg: Update GenericWatchdogDxe to allow setting full 48-bit offset >

Re: [edk2-devel] [PATCH 3/3] StandaloneMmPkg:Remove MpInformation.h

2024-01-04 Thread Ard Biesheuvel
, there might be more than 1 HOB > instance of this gMpInformationHobGuid2. > There is no change in ARM related code in the new patch set. > > Thanks, > Dun > > -Original Message- > From: Ard Biesheuvel > Sent: Wednesday, January 3, 2024 11:12 PM > To: d

Re: [edk2-devel] [PATCH 2/3] ArmPkg: Fix the calculation of the timer period in GenericWatchdogDxe

2024-01-03 Thread Ard Biesheuvel
Hi Rebecca, On Wed, 3 Jan 2024 at 21:44, Rebecca Cran wrote: > > Fix the calculation of the timer period in GenericWatchdogDxe: we need > to multiply before dividing to keep the values as integers. > > Signed-off-by: Rebecca Cran > --- > ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.c |

Re: [edk2-devel] [PATCH 3/3] StandaloneMmPkg:Remove MpInformation.h

2024-01-03 Thread Ard Biesheuvel
On Thu, 9 Nov 2023 at 03:51, duntan wrote: > > Remove MpInformation.h in StandaloneMmPkg since > it has been moved to UefiCpuPkg > > Signed-off-by: Dun Tan > Cc: Ard Biesheuvel > Cc: Sami Mujawar > Cc: Ray Ni Doesn't this break the ARM build? > ---

Re: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg.

2024-01-03 Thread Ard Biesheuvel
(cc Samer and Jose) Hello Dun Tan, On Fri, 17 Nov 2023 at 10:57, Tan, Dun wrote: > > Hi Ard, > > I'm working on moving gMpInformationHobGuid from StandaloneMmPkg to > UefiCpuPkg in this patch series. Currently in Edk2, the HOB is only consumed > by StandaloneMmCpu.inf. > > As we know that

Re: [edk2-devel] [PATCH v2 0/3] EmbeddedPkg ReallocatePool and Mock changes

2024-01-03 Thread Ard Biesheuvel
On Thu, 28 Dec 2023 at 21:47, Jeff Brasen wrote: > > Adding Mock support for DtPlatformLoaderLib and changing ci.yaml to support > this > Adding ReallocatePool support to PrePi Library. > > Passing CI in https://github.com/tianocore/edk2/pull/5197 > > Change log > v2 - > Fix uncrustify errors

Re: [edk2-devel] [edk2-platforms: PATCH v4] Marvell/Armada80x0Db: Fix build

2024-01-03 Thread Ard Biesheuvel
On Sun, 31 Dec 2023 at 12:07, Marcin Wojtas wrote: > > Commit ec5de71d83 ("Silicon/Marvell: Restructure package") > broke Armada80x0Db build by unintentional removal of > device tree component. Restore it. > > Signed-off-by: Marcin Wojtas Applied, thanks. > --- >

Re: [edk2-devel] [PATCH] Maintainers: Update my email address

2024-01-03 Thread Ard Biesheuvel
On Tue, 26 Dec 2023 at 00:03, Marcin Wojtas wrote: > > I no longer use m...@semihalf.com email. Update Marvell entry with > my alternative address. As there are more than one SolidRun > pltaforms, on the occasion extend the scope. > > Signed-off-by: Marcin Wojtas Applied, thanks. > --- >

[edk2-devel] [PATCH edk2-platforms 1/1] Silicon/SynQuacer: Fix CLANGDWARF build

2023-12-26 Thread Ard Biesheuvel via groups.io
From: Ard Biesheuvel Drop the CLANG3x build options, and add ones for CLANGDWARF so that SynQuacer based platforms can be built with it. Instead of copying the -no-integrated-as option that CLANG3x used, let's fix the assembler code so it can be built with Clang's integrated assembler. Also

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-22 Thread Ard Biesheuvel
On Fri, 22 Dec 2023 at 03:37, Ni, Ray wrote: > > Good to me. > > > > Thanks, > > Ray > > From: Chao Li > Sent: Friday, December 22, 2023 9:15 AM > To: devel@edk2.groups.io; a...@kernel.org; Ni, Ray > Cc: Kumar, Rahul R ; Gerd Hoffmann > ; Leif L

Re: [edk2-devel] [PATCH] EmbeddedPkg/PrePiMemoryAllocationLib: Add ReallocatePool

2023-12-21 Thread Ard Biesheuvel
On Thu, 21 Dec 2023 at 15:39, Ard Biesheuvel wrote: > > On Mon, 18 Dec 2023 at 03:23, Chang, Abner wrote: > > > > [AMD Official Use Only - General] > > > > Reviewed-by: Abner Chang > > > > I've queued this up, along with the mock one - thanks. >

Re: [edk2-devel] [PATCH] EmbeddedPkg/PrePiMemoryAllocationLib: Add ReallocatePool

2023-12-21 Thread Ard Biesheuvel
On Mon, 18 Dec 2023 at 03:23, Chang, Abner wrote: > > [AMD Official Use Only - General] > > Reviewed-by: Abner Chang > I've queued this up, along with the mock one - thanks. > > -Original Message- > > From: Jeff Brasen > > Sent: Monday, December 11, 2023 11:48 PM > > To:

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-21 Thread Ard Biesheuvel
On Thu, 21 Dec 2023 at 13:41, Chao Li wrote: > ... > A given platform will either be able to use port IO, or it will need > to use MMIO translation. So a driver that can do both based on a PCD > is not very useful, it makes more sense to have two different drivers, > and the platform incorporates

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-21 Thread Ard Biesheuvel
On Thu, 21 Dec 2023 at 13:11, Chao Li wrote: > > Hi Ard, > > > Thanks, > Chao > On 2023/12/21 15:31, Ard Biesheuvel wrote: > > On Thu, 21 Dec 2023 at 04:48, Chao Li wrote: > > ... > > Ard, > > PcdPciIoTranslationIsEnabled is only use for whether

Re: [edk2-devel] [PATCH v2] BaseTools/GenFw: Correct offset when relocating an ADR

2023-12-21 Thread Ard Biesheuvel
; 30cc:f460adrpx0, 0x92000 > > 30d0:912ec000add x0, x0, #0xbb0 > > > > Note that we're now setting the stack canary from the wrong address, > > resulting in an erroneous stack fault. > > > > After this fix, the offset will be calcu

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-20 Thread Ard Biesheuvel
On Thu, 21 Dec 2023 at 04:48, Chao Li wrote: > ... > Ard, > > PcdPciIoTranslationIsEnabled is only use for whether to trigger the Ffio read > or write, it seem that only x86 or x64 need them, not others. > > When I was submitted the patch V2, CpuIo2Dxe was private to LoongArch, just > like Arm

Re: [edk2-devel] [PATCH] StandaloneMmPkg/Core: Remove dead code

2023-12-20 Thread Ard Biesheuvel
On Wed, 20 Dec 2023 at 10:11, Ray Ni wrote: > > Load-module-at-fixed-address feature does not work in standalone MM core. > > The patch removes the 2 dead functions and related global variables > that are related to the feature. > > Signed-off-by: Ray Ni > Cc: Sami Mu

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-20 Thread Ard Biesheuvel
On Wed, 20 Dec 2023 at 13:28, Ni, Ray wrote: > > Thanks for pointing it out. > I found it in ACPI spec that tells how to use "Resource Type Specific Flags" > to describe a MEM resource while maps to IO, > and an IO resource while maps to MEM. > > I assume that the IO port accesses are all from

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-20 Thread Ard Biesheuvel
On Wed, 20 Dec 2023 at 10:44, Ni, Ray wrote: > > Ard, > Let me try to understand: > > 1. CPU does not support IO instructions to access IO ports. > 2. PCI devices contain IO space. > 3. A special PCI host bridge can be configured to map a range of MMIO space > from CPU side to another range of

Re: [edk2-devel] [PATCH v4 19/37] UefiCpuPkg: Add MMIO method in CpuIo2Dxe

2023-12-19 Thread Ard Biesheuvel
his seems unnecessary to me. But perhaps I missed something? > > From: Chao Li > Sent: Tuesday, December 19, 2023 9:04 PM > To: devel@edk2.groups.io; Ni, Ray > Cc: Kumar, Rahul R ; Gerd Hoffmann > ; Leif Lindholm ; Ard > Biesheuvel ; Sami Mujawar > Subject: Re: [edk2-

Re: [edk2-devel] [PATCH] BaseTools/GenFw: Change opcode when converting ADR to ADRP

2023-12-19 Thread Ard Biesheuvel
Jake Garver > Sent: Wednesday, December 13, 2023 2:47 PM > To: Pedro Falcato ; Ard Biesheuvel > Cc: devel@edk2.groups.io ; rebe...@bsdio.com > ; gaolim...@byosoft.com.cn ; > bob.c.f...@intel.com ; yuwei.c...@intel.com > > Subject: Re: [edk2-devel] [PATCH] BaseTools/Gen

[edk2-devel] [PATCH edk2-platforms] Platform, Silicon: Drop AMD Seattle support

2023-12-19 Thread Ard Biesheuvel via groups.io
From: Ard Biesheuvel AMD Seattle support in edk2-platforms is implemented using a number of closed source components delivered as binary drivers via edk2-non-osi, some of which have dependencies on internal EDK2 APIs that are not considered stable, and some of which have evolved over the years

Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery

2023-12-19 Thread Ard Biesheuvel
-Haj-Mahmoud > > > > 主题: Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: > > Signal ReadyToBoot on platform recovery > > > > On Mon, Dec 18, 2023 at 22:55:21 +0100, Ard Biesheuvel wrote: > > > Hello all, > > > > > > Same quest

Re: [edk2-devel] [PATCH v4 0/4] StandaloneMmCore finds drivers in uncompressed inner fv.

2023-12-19 Thread Ard Biesheuvel
3 1:02 PM > To: Xu, Wei6 ; devel@edk2.groups.io > Cc: Laszlo Ersek ; Ard Biesheuvel > ; Sami Mujawar > Subject: RE: [edk2-devel] [PATCH v4 0/4] StandaloneMmCore finds drivers in > uncompressed inner fv. > > Reviewed-by: Ray Ni > > Can you kindly update the PR

Re: [edk2-devel] [PATCH V4 2/2] ArmPkg: Remove manual exclusion of debug vars when MDEPKG_NDEBUG is not defined

2023-12-19 Thread Ard Biesheuvel
On Fri, Dec 15, 2023 at 12:56 PM Mike Beaton wrote: > > > For the exception handler case, we can just drop the #Ifdefs around > > the definition of BaseName () entirely given that it will now always > > be referenced. But that does depend a lot on how other toolchains deal > > with this (VS201x

Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery

2023-12-18 Thread Ard Biesheuvel
. On Tue, 12 Dec 2023 at 09:11, Ard Biesheuvel wrote: > > (cc Mike, Leif) > > On Thu, 7 Dec 2023 at 08:40, Ard Biesheuvel wrote: > > > > (cc Liming) > > > > On Thu, 7 Dec 2023 at 05:48, Neal Gompa wrote: > > > > > > On Fri, Nov 24, 2023 at 6:36 PM

Re: [edk2-devel] [PATCH] ArmPkg/DebugPeCoffExtraActionLib: Drop RVCT and Cygwin support

2023-12-14 Thread Ard Biesheuvel
ve WSL, I have stopped using Cygwin. > Also, this patch looks good to me. > > Reviewed-by: Sami Mujawar > Merged as #5148 Thanks all > > On Thu, Dec 14, 2023 at 10:20:46 +0100, Ard Biesheuvel wrote: > > From: Ard Biesheuvel mailto:a...@kernel.org>> > > > > The Deb

Re: [edk2-devel] [PATCH V5] DebugLib: Update DEBUG macro used when MDEPKG_NDEBUG is defined

2023-12-14 Thread Ard Biesheuvel
On Thu, 14 Dec 2023 at 10:37, Mike Beaton wrote: > > > IOW, please don't send a v6 until the discussion comes to a conclusion. > > Apologies, I did _not_ see this before sending. > > > > - #if !defined (MDEPKG_NDEBUG) > > > + #if defined (__CC_ARM) || defined (__GNUC__) > > > > No, this is not

[edk2-devel] [PATCH] ArmPkg/DebugPeCoffExtraActionLib: Drop RVCT and Cygwin support

2023-12-14 Thread Ard Biesheuvel
From: Ard Biesheuvel The DebugPeCoffExtraActionLib implemention in ArmPkg contains some cruft that dates back to the original RVCT based ARM port, and support for RVCT was dropped a while ago. Also drop the handling of Cygwin specific paths, which is highly unlikely to be still depended upon

Re: [edk2-devel] [PATCH V6] DebugLib: Update DEBUG macro used when MDEPKG_NDEBUG is defined

2023-12-14 Thread Ard Biesheuvel
Please stop sending patches. On Thu, 14 Dec 2023 at 10:12, Mike Beaton wrote: > > Repeats V5, but with a hopefully clearer (on motivation and history) commit > message. > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112512):

Re: [edk2-devel] [PATCH V4 2/2] ArmPkg: Remove manual exclusion of debug vars when MDEPKG_NDEBUG is not defined

2023-12-14 Thread Ard Biesheuvel
On Thu, 14 Dec 2023 at 08:40, Ard Biesheuvel wrote: > > On Thu, 14 Dec 2023 at 08:28, Mike Beaton wrote: > > > > From: Mike Beaton > > > > This is no longer required since the revised DEBUG macro automatically > > compiles away unused var accesses when M

Re: [edk2-devel] [PATCH V5] DebugLib: Update DEBUG macro used when MDEPKG_NDEBUG is defined

2023-12-14 Thread Ard Biesheuvel
(cc Michael) On Thu, 14 Dec 2023 at 08:58, Mike Beaton wrote: > > From: Mike Beaton > > The variant provided when MDEPKG_NDEBUG is defined will be optimised > away in RELEASE builds, but by referencing the argument list, avoids > unused variable errors from valid debug code, for example when

Re: [edk2-devel] [PATCH V3] DebugLib: Update DEBUG macro used when MDEPKG_NDEBUG is defined

2023-12-13 Thread Ard Biesheuvel
(cc MdePkg and BaseTools maintainers) On Thu, 14 Dec 2023 at 00:08, Mike Beaton wrote: > > From: Mike Beaton > > The variant provided when MDEPKG_NDEBUG is defined will be optimised > away in RELEASE builds, but by referencing the argument list, avoids > unused variable errors from valid debug

Re: [edk2-devel] [PATCH V4 2/2] ArmPkg: Remove manual exclusion of debug vars when MDEPKG_NDEBUG is not defined

2023-12-13 Thread Ard Biesheuvel
On Thu, 14 Dec 2023 at 08:28, Mike Beaton wrote: > > From: Mike Beaton > > This is no longer required since the revised DEBUG macro automatically > compiles away unused var accesses when MDEPKG_NDEBUG is defined; > keeping these lines is incompatible with the updated DEBUG macro, as > there has

Re: [edk2-devel] [PATCH] BaseTools/GenFw: Change opcode when converting ADR to ADRP

2023-12-13 Thread Ard Biesheuvel
On Wed, 13 Dec 2023 at 15:58, Jake Garver wrote: > > Totally understand and agree, Ard. > > In the meantime, I've now experienced the issue with Ubuntu22's GCC 12.3. > Originally, we didn't see the issue on this toolchain, but a developer ran > into when preparing a change. Even more

Re: [edk2-devel] [PATCH V2] DebugLib: Allow -Wunneeded-internal-declaration with clang

2023-12-12 Thread Ard Biesheuvel
On Tue, 12 Dec 2023 at 22:46, Mike Beaton wrote: > > From: Mikhail Krichanov > > Provides a variant of the DEBUG macro for clang when MDEPKG_NDEBUG is > defined, which uses but discards the contained expression. This means > clang can tell that it has optimised away variable usage as part of >

Re: [edk2-devel] [PATCH v4] ArmVirt: Allow memory attributes protocol to be disabled

2023-12-12 Thread Ard Biesheuvel
On Tue, 12 Dec 2023 at 11:08, Gerd Hoffmann wrote: > > On Tue, Dec 12, 2023 at 09:36:00AM +0100, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > > > Shim's PE loader uses the EFI memory attributes protocol in a way that > > results in an immediate crash when inv

Re: [edk2-devel] [PATCH] EmbeddedPkg/PrePiMemoryAllocationLib: Add ReallocatePool

2023-12-12 Thread Ard Biesheuvel
On Mon, 11 Dec 2023 at 16:48, Jeff Brasen wrote: > > Add implementation of ReallocatePool which is defined in the > MemoryAllocationLib header file to allow components to not > need special handling for PrePi module types. > > Signed-off-by: Jeff Brasen Reviewed-

Re: [edk2-devel] [PATCH] DebugLib: Allow -Wunneeded-internal-declaration with clang

2023-12-12 Thread Ard Biesheuvel
On Tue, 12 Dec 2023 at 09:49, Mike Beaton wrote: > > From: Mike Beaton > > Provides a variant of the DEBUG macro for clang when MDEPKG_NDEBUG is defined, > which uses but discards the contained expression, this means clang can tell > that it has optimised away variable usage, therefore we can

Re: [edk2-devel] [PATCH] BaseTools/GenFw: Change opcode when converting ADR to ADRP

2023-12-12 Thread Ard Biesheuvel
On Wed, 6 Dec 2023 at 17:51, Jake Garver wrote: > > Thanks, Pedro and Ard, > > An update on this issue: > > It seems to be very specific to Ubuntu20's 10.5 build of GCC. > I could not reproduce it using a crosstool-ng build of 10.5, even after > trying to configure it identically to Ubuntu20's.

[edk2-devel] [PATCH v4] ArmVirt: Allow memory attributes protocol to be disabled

2023-12-12 Thread Ard Biesheuvel
From: Ard Biesheuvel Shim's PE loader uses the EFI memory attributes protocol in a way that results in an immediate crash when invoking the loaded image, unless the base and size of its executable segment are both aligned to 4k. If this is not the case, it will strip the memory allocation

Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery

2023-12-12 Thread Ard Biesheuvel
(cc Mike, Leif) On Thu, 7 Dec 2023 at 08:40, Ard Biesheuvel wrote: > > (cc Liming) > > On Thu, 7 Dec 2023 at 05:48, Neal Gompa wrote: > > > > On Fri, Nov 24, 2023 at 6:36 PM Neal Gompa wrote: > > > > > > On Thu, Nov 2, 2023 at 6:35 AM Laszlo Ersek

Re: [edk2-devel] [PATCH] BaseTools/tools_def: Disable unneeded-internal-declaration warning in CLANGPDB

2023-12-11 Thread Ard Biesheuvel
On Tue, 12 Dec 2023 at 08:17, Mike Beaton wrote: > > > > A completely different approach, which allows clang to spot that the > > > usage has been 'optimised away' and so to not complain (and therefore > > > allows us to re-enable the warning in CLANGDWARF as well), is the > > > following: > > >

Re: [edk2-devel] [PATCH v3] ArmVirt: Allow memory attributes protocol to be disabled

2023-12-11 Thread Ard Biesheuvel
On Mon, 11 Dec 2023 at 15:33, Laszlo Ersek wrote: > > On 12/11/23 11:55, Gerd Hoffmann wrote: > >> + // > >> + // Work around shim's terminally broken use of the EFI memory attributes > >> + // protocol, by uninstalling it if requested on the QEMU command line. > >> + // > >> + // E.g., > >>

[edk2-devel] [PATCH v3] ArmVirt: Allow memory attributes protocol to be disabled

2023-12-11 Thread Ard Biesheuvel
From: Ard Biesheuvel Shim's PE loader uses the EFI memory attributes protocol in a way that results in an immediate crash when invoking the loaded image, unless the base and size of its executable segment are both aligned to 4k. If this is not the case, it will strip the memory allocation

Re: [edk2-devel] [PATCH v2] ArmVirt: Allow memory attributes protocol to be disabled on first boot

2023-12-11 Thread Ard Biesheuvel
On Mon, Dec 11, 2023 at 10:06 AM Gerd Hoffmann wrote: > > On Thu, Dec 07, 2023 at 11:06:03AM +0100, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > > > Shim's PE loader uses the EFI memory attributes protocol in a way that > > results in an immediate crash

Re: [edk2-devel] RELEASE CLANGPDB OVMF currently does not compile

2023-12-10 Thread Ard Biesheuvel
IC (and adding a comment) in the relevant line in > VirtioSerialDxe. > Removing STATIC means that (modulo LTO) the compiler will not know whether or not the definition can be dropped. It also pollutes the global namespace. IMO, lack of the use of STATIC where appropriate is a severe iss

Re: [edk2-devel] [PATCH 4/4] ArmVirtPkg: Sync debug level comments in ArmVirt.dsc.inc

2023-12-08 Thread Ard Biesheuvel
On Sat, 9 Dec 2023 at 01:20, Rebecca Cran wrote: > > Update the debug level comments in ArmVirt.dsc.inc to sync with > MdePkg/Include/Library/DebugLib.h. > > Signed-off-by: Rebecca Cran Reviewed-by: Ard Biesheuvel > --- > ArmVirtPkg/ArmVirt.dsc.inc | 42 ++---

Re: [edk2-devel] [PATCH v2] ArmVirt: Allow memory attributes protocol to be disabled on first boot

2023-12-08 Thread Ard Biesheuvel
Thanks for the review. On Fri, 8 Dec 2023 at 15:34, Laszlo Ersek wrote: > > On 12/7/23 11:06, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > > > Shim's PE loader uses the EFI memory attributes protocol in a way that > > results in an immediate crash when inv

Re: [edk2-devel] [PATCH v2] ArmVirt: Allow memory attributes protocol to be disabled on first boot

2023-12-08 Thread Ard Biesheuvel
On Thu, 7 Dec 2023 at 11:06, Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > Shim's PE loader uses the EFI memory attributes protocol in a way that > results in an immediate crash when invoking the loaded image, unless the > base and size of its executable segment are

Re: [edk2-devel] [PATCH v2 1/1] OvmfPkg/Bhyve: use a proper PCI IO range

2023-12-07 Thread Ard Biesheuvel
mul.c#L133-L134 > [2] > https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e593355d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157 > [3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274389 > > Signed-off-by: Corvin Köhne > Reviewed-by: Laszlo Ersek > Re

Re: [edk2-devel] [PATCH v2 1/1] OvmfPkg/VirtNorFlashDxe: sanity-check variables

2023-12-07 Thread Ard Biesheuvel
Hi Gerd, On Thu, 7 Dec 2023 at 10:44, Gerd Hoffmann wrote: > > Extend the ValidateFvHeader function, additionally to the header checks > walk over the list of variables and sanity check them. > > In case we find inconsistencies indicating variable store corruption > return EFI_NOT_FOUND so the

[edk2-devel] [PATCH v2] ArmVirt: Allow memory attributes protocol to be disabled on first boot

2023-12-07 Thread Ard Biesheuvel
From: Ard Biesheuvel Shim's PE loader uses the EFI memory attributes protocol in a way that results in an immediate crash when invoking the loaded image, unless the base and size of its executable segment are both aligned to 4k. If this is not the case, it will strip the memory allocation

Re: [edk2-devel] [PATCH] ArmVirtPkg: Allow EFI memory attributes protocol to be disabled

2023-12-07 Thread Ard Biesheuvel
On Tue, 5 Dec 2023 at 10:56, Marcin Juszkiewicz wrote: > ... > > I use 'sbsa-ref' with QEMU and upstream EDK2. And cannot use either RHEL > 9.3 nor CentOS Stream 9 installers because they hang. > > And this is not the only platform where upstream EDK2 is used. > > Sure, I can hack something, use

Re: [edk2-devel] [PATCH] ArmVirtPkg: Allow EFI memory attributes protocol to be disabled

2023-12-06 Thread Ard Biesheuvel
t more sensical. > No worries - and congrats! > On 12/6/2023 5:23 AM, Ard Biesheuvel wrote: > > But what we might do is invent a way to avoid setting the XP attribute > > on the entire region based on some heuristic. Given that the main > > purpose of the EFI memory attri

Re: [edk2-devel] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Signal ReadyToBoot on platform recovery

2023-12-06 Thread Ard Biesheuvel
(cc Liming) On Thu, 7 Dec 2023 at 05:48, Neal Gompa wrote: > > On Fri, Nov 24, 2023 at 6:36 PM Neal Gompa wrote: > > > > On Thu, Nov 2, 2023 at 6:35 AM Laszlo Ersek wrote: > > > > > > On 10/31/23 23:27, Jeremy Linton wrote: > > > > On 10/31/23 12:37, Neal Gompa via groups.io wrote: > > > >>

Re: [edk2-devel] [PATCH] ArmVirtPkg: Allow EFI memory attributes protocol to be disabled

2023-12-06 Thread Ard Biesheuvel
t; From: Gerd Hoffmann > Date: Wed, 6 Dec 2023 13:00:53 +0100 > Subject: [PATCH 1/1] ArmVirtPkg: add runtime option to enable/disable > MemoryAttributesProtocol > > Based on a patch by Ard Biesheuvel > > Usage: > qemu-system-aarch64 $args \ > -fw_cfg name=opt

Re: [edk2-devel] [PATCH] ArmVirtPkg: Allow EFI memory attributes protocol to be disabled

2023-12-04 Thread Ard Biesheuvel
On Mon, 4 Dec 2023 at 15:52, Gerd Hoffmann wrote: > > Hi, > > > > > That way you at least you know who you trust. Just remove shim. Have a > > > > look > > > > at how Amazon Linux 2023 did it [2] :)) > > > > You are in the luxurious position to run your own distro on your own > > > platform,

Re: [edk2-devel] [PATCH] ArmVirtPkg: Allow EFI memory attributes protocol to be disabled

2023-12-04 Thread Ard Biesheuvel
On Mon, 4 Dec 2023 at 13:38, Alexander Graf wrote: > > > On 04.12.23 13:20, Gerd Hoffmann wrote: > >Hi, > > > >> (hint: You really don't want or need shim on ARM. The only reason for shim > >> is that on most x86 desktop systems, users will have the MS keys > >> preinstalled. The MS Secure

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