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

Nicolas Saenz Julienne nsaenzjulienne at suse.de
Thu Nov 19 14:08:17 EST 2020


On Thu, 2020-11-19 at 17:55 +0000, 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.
> 
> Signed-off-by: Catalin Marinas <catalin.marinas at arm.com>
> Cc: James Morse <james.morse at arm.com>
> Cc: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>

On RPi4:
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>

Regards,
Nicolas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201119/700426e8/attachment.sig>


More information about the linux-arm-kernel mailing list