Re: [PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Vladimir 'phcoder' Serbinenko
> > > > If so I see a solution in having a code that would check paging table and > > then decide on maximum usable memory > > any other arch doing this that i can imitate? > None currently. It could look like something along the lines: * Allocate pages * Check that they are mapped properly * If no

Re: [PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Paymon
huh, i thought egg rejected the first one because it was trying tls. anyways, discard this one please; it's a duplicate. -- Paymon ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Paymon MARANDI
this basically comes down to this in the specs: - Allocation requests of Type AllocateMaxAddress allocate any available range of pages whose uppermost address is less than or equal to the address pointed to by Memory on input. (this returns EFI_OUT_OF_RESOURCEST on loading slightly large, 71

Re: [PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Paymon
On Wed, Apr 16, 2025 at 11:03:46PM +0300, Vladimir 'phcoder' Serbinenko wrote: > This will break systems that have a bug of mapping only 4GiB of RAM. i am sure it does. i should have tagged it RFC. > This code is a workaround for that bug. Which system do you use? Is it an > x64? yes, dell preci

Re: [PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Vladimir 'phcoder' Serbinenko
This will break systems that have a bug of mapping only 4GiB of RAM. This code is a workaround for that bug. Which system do you use? Is it an x64? If so I see a solution in having a code that would check paging table and then decide on maximum usable memory Regards Vladimir 'phcoder' Serbinenko

[PATCH] efi/mm: relax memory type request we're asking for from allocate_pages()

2025-04-16 Thread Paymon MARANDI
this basically comes down to this in the specs: - Allocation requests of Type AllocateMaxAddress allocate any available range of pages whose uppermost address is less than or equal to the address pointed to by Memory on input. (this returns EFI_OUT_OF_RESOURCEST on loading slightly large, 71