Re: [PATCH] of/fdt: move elfcorehdr reservation early for crash dump kernel

From: Rob Herring
Date: Fri Jan 28 2022 - 10:33:15 EST


On Thu, Jan 27, 2022 at 10:23 PM <nikhil.gupta@xxxxxxx> wrote:
>
> From: Nikhil Gupta <nikhil.gupta@xxxxxxx>
>
> elfcorehdr_addr is fixed address passed to Second kernel which may be conflicted
> with potential reserved memory in Second kernel,so fdt_reserve_elfcorehdr() ahead
> of fdt_init_reserved_mem() can relieve this situation.

How does changing the order help exactly? If you have an overlap, that
seems bad no matter what. What if the overlapping reserved area is
used by another core or firmware?

Rob