4335b5
From 6b6187f546f0ddad8ea84d22c3f7ad72133dcfe3 Mon Sep 17 00:00:00 2001
4335b5
From: Sourabh Jain <sourabhjain@linux.ibm.com>
4335b5
Date: Thu, 15 Sep 2022 14:12:40 +0530
4335b5
Subject: [PATCH] ppc64: remove rma_top limit
4335b5
4335b5
Restricting kexec tool to allocate hole for kexec segments below 768MB
4335b5
may not be relavent now since first memory block size can be 1024MB and
4335b5
more.
4335b5
4335b5
Removing rma_top restriction will give more space to find holes for
4335b5
kexec segments and existing in-place checks make sure that kexec segment
4335b5
allocation doesn't cross the first memory block because every kexec segment
4335b5
has to be within first memory block for kdump kernel to boot properly.
4335b5
4335b5
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
4335b5
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
4335b5
Signed-off-by: Simon Horman <horms@kernel.org>
4335b5
---
4335b5
 kexec/arch/ppc64/kexec-ppc64.c | 2 --
4335b5
 1 file changed, 2 deletions(-)
4335b5
4335b5
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
4335b5
index 5b17740..611809f 100644
4335b5
--- a/kexec/arch/ppc64/kexec-ppc64.c
4335b5
+++ b/kexec/arch/ppc64/kexec-ppc64.c
4335b5
@@ -717,8 +717,6 @@ static int get_devtree_details(unsigned long kexec_flags)
4335b5
 			if (base < rma_base) {
4335b5
 				rma_base = base;
4335b5
 				rma_top = base + be64_to_cpu(((uint64_t *)buf)[1]);
4335b5
-				if (rma_top > 0x30000000UL)
4335b5
-					rma_top = 0x30000000UL;
4335b5
 			}
4335b5
 
4335b5
 			fclose(file);
4335b5
-- 
4335b5
2.38.1
4335b5