----- Original Message -----
> 
> 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 <[email protected]>

Hari,

Thanks for the quick response -- queued for crash-7.2.4:
 
  
https://github.com/crash-utility/crash/commit/28fa7bd09013455b5ddc020dea4706278cda0d65

Dave


> ---
>  defs.h  |    1 +
>  ppc64.c |    5 ++++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/defs.h b/defs.h
> index 6e6f6be..e6e3850 100644
> --- a/defs.h
> +++ b/defs.h
> @@ -3977,6 +3977,7 @@ struct efi_memory_desc_t {
>  #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
> diff --git a/ppc64.c b/ppc64.c
> index 0dd8a2a..f5d0dac 100644
> --- a/ppc64.c
> +++ b/ppc64.c
> @@ -451,7 +451,10 @@ ppc64_init(int when)
>  
>                                       if (THIS_KERNEL_VERSION >= 
> LINUX(4,12,0)) {
>                                               m->l2_index_size = 
> PMD_INDEX_SIZE_L4_64K_4_12;
> -                                             m->l3_index_size = 
> PUD_INDEX_SIZE_L4_64K_4_12;
> +                                             if (THIS_KERNEL_VERSION >= 
> LINUX(4,17,0))
> +                                                     m->l3_index_size = 
> PUD_INDEX_SIZE_L4_64K_4_17;
> +                                             else
> +                                                     m->l3_index_size = 
> PUD_INDEX_SIZE_L4_64K_4_12;
>                                               m->l4_index_size = 
> PGD_INDEX_SIZE_L4_64K_4_12;
>                                       } else {
>                                               m->l2_index_size = 
> PMD_INDEX_SIZE_L4_64K_4_6;
> 

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to