[PATCH v3] arm: Support initrd with address in boot alias region

Arnd Bergmann arnd at arndb.de
Thu Aug 18 07:58:54 PDT 2022


On Thu, Aug 18, 2022 at 4:52 PM Matija Glavinic Pecotic
<matija.glavinic-pecotic.ext at nokia.com> wrote:
>
> When bootloader passes address of initrd in boot alias region, initrd
> will fail on memblock_is_region_memory as memblock with such address
> doesn't exist. Problem was uncovered by commit fe7db7570379 ("of/fdt:
> Populate phys_initrd_start/phys_initrd_size from FDT") which removed
> __virt_to_phys on the initrd physical address. Earlier, __virt_to_phys
> on our platform coincidentally sanitized address.
>
>
> Signed-off-by: Matija Glavinic Pecotic <matija.glavinic-pecotic.ext at nokia.com>
> ---
>
> v2: Rebased against current tree, update commit message to capture
> previous discussion (http://lists.infradead.org/pipermail/linux-arm-kernel/2020-September/605344.html)
> v3: moved implementation from generic code to arm's mm

Looks good to me now,

Acked-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-arm-kernel mailing list