grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Relax memory constraints on required_pages for EFI boot


From: Daniel Kiper
Subject: Re: [PATCH] Relax memory constraints on required_pages for EFI boot
Date: Thu, 7 Jul 2022 15:34:05 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Hi,

On Sun, Jan 17, 2021 at 02:43:50PM -0800, Hanson Char via Grub-devel wrote:
> (Finally figured out how to git send-email on this patch properly.)
>
> As reported earlier, when booted in UEFI mode, Grub would fail to load a
> ramdisk of size larger than "(total_pages >> 2)" with
>
>     "error: out of memory"
>
> (https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/kern/efi/mm.c#n616)
>
> Further investigation into the EFI memory map indicates the current limit of
> MAX_HEAP_MEMORY and the use of a quarter of the total_pages returned from EFI
> available memory (type 7) as the default seems arbitrary and unnecessary.
>
> Therefore this proposed patch removes the aribrary limit, and lets Grub make
> full use of the EFI available memory reported by the BIOS.
>
> The patch has been successfully tested to load large ramdisk with size that
> would otherwise fail.

I am not sure you still care about the issue but I want to give you
heads up we have just merged alternative solution into the GRUB upstream
which should solve your problem. It would be nice if you could test it
and tell us how it works for you.

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]