Re: [PATCH] arm/efi: fix ram base detection

2021-04-12 Thread Daniel Kiper
On Tue, Mar 30, 2021 at 10:01:23PM +0200, Vincent Stehlé via Grub-devel wrote: > On Mon, Mar 22, 2021 at 06:28:51PM +, Leif Lindholm wrote: > .. > > > > diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c > > > > index 0cdb063bb..abf8772bc 100644 > > > > --- a/grub-core/kern/efi/mm.c

Re: [PATCH] arm/efi: fix ram base detection

2021-03-30 Thread Vincent Stehlé via Grub-devel
On Mon, Mar 22, 2021 at 06:28:51PM +, Leif Lindholm wrote: .. > > > diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c > > > index 0cdb063bb..abf8772bc 100644 > > > --- a/grub-core/kern/efi/mm.c > > > +++ b/grub-core/kern/efi/mm.c > > > @@ -677,7 +677,8 @@ grub_efi_get_ram_base(grub

Re: [PATCH] arm/efi: fix ram base detection

2021-03-22 Thread Leif Lindholm
On Mon, Mar 22, 2021 at 17:00:15 +0100, Daniel Kiper wrote: > On Fri, Mar 12, 2021 at 05:54:55PM +0100, Vincent Stehlé via Grub-devel wrote: > > On 32b Arm platforms, grub allocates memory for the initrd in the first > > 512MB of DRAM. To do so, the grub_efi_get_ram_base() function will be > > call

Re: [PATCH] arm/efi: fix ram base detection

2021-03-22 Thread Daniel Kiper
On Fri, Mar 12, 2021 at 05:54:55PM +0100, Vincent Stehlé via Grub-devel wrote: > On 32b Arm platforms, grub allocates memory for the initrd in the first > 512MB of DRAM. To do so, the grub_efi_get_ram_base() function will be > called to compute the DRAM base. Currently this function returns the low

[PATCH] arm/efi: fix ram base detection

2021-03-12 Thread Vincent Stehlé via Grub-devel
On 32b Arm platforms, grub allocates memory for the initrd in the first 512MB of DRAM. To do so, the grub_efi_get_ram_base() function will be called to compute the DRAM base. Currently this function returns the lowest start address of all memory regions with attribute write-back. However, if for e