Re: EFI memory allocation

2023-12-04 Thread Simon Glass
Hi Ilias, On Mon, 4 Dec 2023 at 05:05, Ilias Apalodimas wrote: > > Hi Simon > > On Sun, 3 Dec 2023 at 19:44, Simon Glass wrote: > > > > Hi Heinrich, Ilias, > > > > I had a bit of a look at how memory is allocated in EFI. > > > > I see that efi_memory_init() is called quite early in U-Boot. It >

Re: EFI memory allocation

2023-12-04 Thread Ilias Apalodimas
Hi Simon On Sun, 3 Dec 2023 at 19:44, Simon Glass wrote: > > Hi Heinrich, Ilias, > > I had a bit of a look at how memory is allocated in EFI. > > I see that efi_memory_init() is called quite early in U-Boot. It > sometimes allocates memory for a bounce buffer, placing it somewhere > in memory. Ho

EFI memory allocation

2023-12-03 Thread Simon Glass
Hi Heinrich, Ilias, I had a bit of a look at how memory is allocated in EFI. I see that efi_memory_init() is called quite early in U-Boot. It sometimes allocates memory for a bounce buffer, placing it somewhere in memory. How do we know that that memory is free and not being used by U-Boot? To a

Re: [U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-29 Thread Alexander Graf
exander Graf wrote: >>>>> Am 22.11.2018 um 11:42 schrieb Baruch Siach : >>>>> >>>>> EFI memory allocation code return values that are not mapped by U-Boot >>>>> MMU. This causes a crash when tftp calls efi_set_bootdev(). Fix this >>>>

Re: [U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-29 Thread Baruch Siach
Hi Stephen, Adding Heinrich Schuchardt. Stephen Warren writes: > On 11/22/18 8:19 AM, Baruch Siach wrote: >> Adding Stephen Warren to Cc. >> >> On Thu, Nov 22, 2018 at 02:30:34PM +, Alexander Graf wrote: >>>> Am 22.11.2018 um 11:42 schrieb Baruch Siach : >

Re: [U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-26 Thread Stephen Warren
On 11/22/18 8:19 AM, Baruch Siach wrote: Hi Alex, Adding Stephen Warren to Cc. On Thu, Nov 22, 2018 at 02:30:34PM +, Alexander Graf wrote: Am 22.11.2018 um 11:42 schrieb Baruch Siach : EFI memory allocation code return values that are not mapped by U-Boot MMU. This causes a crash when

Re: [U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-22 Thread Baruch Siach
Hi Alex, Adding Stephen Warren to Cc. On Thu, Nov 22, 2018 at 02:30:34PM +, Alexander Graf wrote: > > Am 22.11.2018 um 11:42 schrieb Baruch Siach : > > > > EFI memory allocation code return values that are not mapped by U-Boot > > MMU. This causes a crash when tf

Re: [U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-22 Thread Alexander Graf
> Am 22.11.2018 um 11:42 schrieb Baruch Siach : > > EFI memory allocation code return values that are not mapped by U-Boot > MMU. This causes a crash when tftp calls efi_set_bootdev(). Fix this > similarly to commit 0797f7f0b7e1 ("ARM: tegra: reserve unmapped RAM so

[U-Boot] [PATCH v2] arm64: mvebu: fix crash in EFI memory allocation

2018-11-22 Thread Baruch Siach
EFI memory allocation code return values that are not mapped by U-Boot MMU. This causes a crash when tftp calls efi_set_bootdev(). Fix this similarly to commit 0797f7f0b7e1 ("ARM: tegra: reserve unmapped RAM so EFI doesn't use it"). Signed-off-by: Baruch Siach

[U-Boot] [PATCH] arm64: mvebu: fix crash in EFI memory allocation

2018-11-22 Thread Baruch Siach
EFI memory allocation code return values that are not mapped by U-Boot MMU. This causes a crash when tftp calls efi_set_bootdev(). Fix this similarly to commit 0797f7f0b7e1 ("ARM: tegra: reserve unmapped RAM so EFI doesn't use it"). Signed-off-by: Baruch Siach --- arch/arm/m