[PATCH] makedumpfile/ppc64: Increase the VA range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux