[PATCH] makedumpfile/ppc64: Increase the VA range

Kazuhito Hagio k-hagio at ab.jp.nec.com
Mon Jun 25 12:41:11 PDT 2018


Hi Hari,

Sorry for the late response.
I'm taking over the maintainer role of makedumpfile from Tachibana-san.

This patch is queued for v1.6.4.

Thanks,
Kazu

On 6/19/2018 10:45 AM, Hari Bathini wrote:
> * Required for kernel 4.17
> 
> Since kernel commit c2b4d8b7417a ("powerpc/mm/hash64: Increase the VA
> range"), the max virtual (effective) address value has been increased
> to 4PB. Update page table index values accordingly.
> 
> Signed-off-by: Hari Bathini <hbathini at linux.ibm.com>
> ---
>  arch/ppc64.c   |    5 ++++-
>  makedumpfile.h |    1 +
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/ppc64.c b/arch/ppc64.c
> index 8bdbcc5..8b6f7d5 100644
> --- a/arch/ppc64.c
> +++ b/arch/ppc64.c
> @@ -248,7 +248,10 @@ ppc64_vmalloc_init(void)
>  
>  			if (info->kernel_version >= KERNEL_VERSION(4, 12, 0)) {
>  				info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_12;
> -				info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
> +				if (info->kernel_version >= KERNEL_VERSION(4, 17, 0))
> +					info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_17;
> +				else
> +					info->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
>  				info->l4_index_size = PGD_INDEX_SIZE_L4_64K_4_12;
>  			} else {
>  				info->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_6;
> diff --git a/makedumpfile.h b/makedumpfile.h
> index 121eab2..4960e43 100644
> --- a/makedumpfile.h
> +++ b/makedumpfile.h
> @@ -703,6 +703,7 @@ unsigned long get_kvbase_arm64(void);
>  #define PMD_INDEX_SIZE_L4_64K_4_12 10
>  #define PUD_INDEX_SIZE_L4_64K_4_12 7
>  #define PGD_INDEX_SIZE_L4_64K_4_12 8
> +#define PUD_INDEX_SIZE_L4_64K_4_17 10
>  #define PTE_INDEX_SIZE_RADIX_64K  5
>  #define PMD_INDEX_SIZE_RADIX_64K  9
>  #define PUD_INDEX_SIZE_RADIX_64K  9
> 
> 
> _______________________________________________
> kexec mailing list
> kexec at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
> 



More information about the kexec mailing list