Re: [PATCH v6 1/7] arm64: mm: Move reserve_crashkernel() into mem_init()
From: Catalin Marinas
Date: Thu Nov 19 2020 - 12:25:34 EST
On Thu, Nov 19, 2020 at 05:10:49PM +0000, Catalin Marinas wrote:
> diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
> index ed71b1c305d7..acdec0c67d3b 100644
> --- a/arch/arm64/mm/mmu.c
> +++ b/arch/arm64/mm/mmu.c
> @@ -469,6 +469,21 @@ void __init mark_linear_text_alias_ro(void)
> PAGE_KERNEL_RO);
> }
>
> +static bool crash_mem_map __initdata;
> +
> +static int __init enable_crash_mem_map(char *arg)
> +{
> + /*
> + * Proper parameter parsing is done by reserve_crashkernel(). We only
> + * need to know if the linear map has to avoid block mappings so that
> + * the crashkernel reservations can be unmapped later.
> + */
> + crash_mem_map = false;
It should be set to true.
--
Catalin