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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to