Re: [PATCH] arm64: Force NO_BLOCK_MAPPINGS if crashkernel reservation is required
From: Nicolas Saenz Julienne <hidden>
Date: 2020-11-19 19:08:55
From: Nicolas Saenz Julienne <hidden>
Date: 2020-11-19 19:08:55
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@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Nicolas Saenz Julienne <redacted> ---
Reviewed-by: Nicolas Saenz Julienne <redacted> On RPi4: Tested-by: Nicolas Saenz Julienne <redacted> Regards, Nicolas