[PATCH] arm64: Force NO_BLOCK_MAPPINGS if crashkernel reservation is required

James Morse james.morse at arm.com
Thu Nov 19 13:18:25 EST 2020


Hi Catalin, Nicolas,

On 19/11/2020 17:55, Catalin Marinas wrote:
> mem_init() currently relies on knowing the boundaries of the crashkernel
> reservation to map such region with page granularity for later
> unmapping via set_memory_valid(..., 0). If the crashkernel reservation
> is deferred, such boundaries are not known when the linear mapping is
> created. Simply parse the command line for "crashkernel" and, if found,
> create the linear map with NO_BLOCK_MAPPINGS.

Looks good to me!

Acked-by: James Morse <james.morse at arm.com>


Thanks,

James



More information about the linux-arm-kernel mailing list