diff options
author | Hari Bathini <hbathini@linux.ibm.com> | 2018-06-19 20:15:09 +0530 |
---|---|---|
committer | Kazuhito Hagio <k-hagio@ab.jp.nec.com> | 2018-06-25 14:48:16 -0400 |
commit | bd1ae9c61d951f76d657dfe309a2bd2849e3ea8d (patch) | |
tree | ae2a54fac735efec357906e1cf5c604f769cfbab /arch | |
parent | 8f1aafa1643532ece86cba22f2187d0f42fb7ca3 (diff) |
[PATCH] makedumpfile/ppc64: Increase the VA range
* 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@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc64.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |