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