summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2018-06-19 20:15:09 +0530
committerKazuhito Hagio <k-hagio@ab.jp.nec.com>2018-06-25 14:48:16 -0400
commitbd1ae9c61d951f76d657dfe309a2bd2849e3ea8d (patch)
treeae2a54fac735efec357906e1cf5c604f769cfbab /arch
parent8f1aafa1643532ece86cba22f2187d0f42fb7ca3 (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.c5
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;