[PATCH 1/6 v14] ARM: Handle a device tree in lowmem

Linus Walleij linus.walleij at linaro.org
Mon Oct 5 09:30:29 EDT 2020


On Mon, Oct 5, 2020 at 3:27 PM Linus Walleij <linus.walleij at linaro.org> wrote:

> The contents are fine on my system, just the two section
> mappings get wiped.
>
> I hope my previous mail explains that, the code in
> prepare_page_table() simply just wipes the lowmem
> PMDs without any regard for any reserved memblocks being
> in that range.

Would it be a viable approach to make a patch to make
prepare_page_table() respect any reserved memblocks?

That would fix this bug.

Then I could make a separate patch to copy the device tree
and delete the memblock used by it as a separate optimization.
(Not that I know if memblock actually allows for disposal
of memblocks...)

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list