boottime->efi_allocate_pages() returning EFI_NOT_FOUND

Ilias Apalodimas ilias.apalodimas at linaro.org
Thu Mar 13 10:35:43 CET 2025


Hi Ben,

On Tue, 11 Mar 2025 at 09:34, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> +CC Ard
>
> On Sat, 8 Mar 2025 at 19:36, Ben Schneider <ben at bens.haus> wrote:
> >
> > On Wednesday, March 5th, 2025 at 12:20 AM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> > >
> > > On 3/5/25 09:13, Sughosh Ganu wrote:
> > > >
> > > > Can you check what is the address being asked for in the
> > > > lmb_alloc_addr() function.
> > >
> > > maybe also add a call to lmb_dump_all_force()
> >
> > Thank you both! This was exactly what I needed. This appears to be
> > a kernel bug in randomalloc.c which always breaks out of a loop
> > after only one iteration[1] which is unlikely to be the intention.
> >
> > Ben
> >
> > [1] https://github.com/torvalds/linux/blob/master/drivers/firmware/efi/libstub/randomalloc.c#L133
>
> FWIW we discussed this in the kernel mailing list as well [0]. Ben can
> you apply [1] and see if it fixes your problem?
> [0] https://lore.kernel.org/linux-efi/CAC_iWj+9DNswD7qCc7V8UxsAOaBTzx7QTYA7Yo8py5pEuHdWDw@mail.gmail.com/T/#t
> [1] https://patchwork.ozlabs.org/project/uboot/list/?series=446790

Can you apply https://source.denx.de/u-boot/custodians/u-boot-tpm/-/commit/b04e708c615c15423ffc80d73430bf2d36fb7c21
and see if it fixes your problem?

Thanks
/Ilias
>
> Cheers
> /Ilias


More information about the U-Boot mailing list