[RESEND PATCH 4/8] makedumpfile/ppc64: address change in _PAGE_PRESNT flag for PowerISA v3.0

Hari Bathini hbathini at linux.vnet.ibm.com
Tue Sep 27 22:14:11 PDT 2016


PowerISA v3.0 CPUs expect _PAGE_PRESENT to be at 0x8000_0000_0000_0000
instead of 0x2 in radix mode. This is accomodated by changing the flag
_PAGE_PRESENT for 64-bit POWER server processors with kernel commit
849f86a6. This patch makes the corresponding change here.

Signed-off-by: Hari Bathini <hbathini at linux.vnet.ibm.com>
---
 makedumpfile.h |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/makedumpfile.h b/makedumpfile.h
index e45ad09..7f9dfb1 100644
--- a/makedumpfile.h
+++ b/makedumpfile.h
@@ -660,7 +660,10 @@ int get_va_bits_arm64(void);
 	((vaddr >> (info->l2_shift)) & (info->ptrs_per_l2 - 1))
 
 #define _PAGE_PRESENT		\
-	(info->kernel_version >= KERNEL_VERSION(4, 5, 0) ? 0x2UL : 0x1UL)
+	(info->kernel_version >= KERNEL_VERSION(4, 6, 0) ? \
+	(0x1UL << 63) : (info->kernel_version >= KERNEL_VERSION(4, 5, 0) ? \
+			0x2UL : 0x1UL))
+
 #endif
 
 #ifdef __powerpc32__




More information about the kexec mailing list