Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
makedumpfile.14460
makedumpfile-ppc64-Increase-the-VA-range.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File makedumpfile-ppc64-Increase-the-VA-range.patch of Package makedumpfile.14460
From bd1ae9c61d951f76d657dfe309a2bd2849e3ea8d Mon Sep 17 00:00:00 2001 From: Hari Bathini <hbathini@linux.ibm.com> Date: Tue, 19 Jun 2018 20:15:09 +0530 Subject: [PATCH] [PATCH] makedumpfile/ppc64: Increase the VA range References: bsc#1118445 Patch-mainline: Released-1-6-4 Git-commit: bd1ae9c61d951f76d657dfe309a2bd2849e3ea8d * 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. [note: For upstream only. On SLE15 SP1 we have this change on 4.12] Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Acked-by: Michal Suchanek <msuchanek@suse.de> --- 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 8bdbcc583c47..8b6f7d5953ef 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 121eab28ef1d..4960e43194c5 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 -- 2.19.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor