Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 6fec72bd7264478c214169b0f30f649304bd39ea Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Quanyang Wang <quanyang.wang@windriver.com> |
| 3 | Date: Tue, 16 Jun 2015 12:59:57 +0800 |
| 4 | Subject: [PATCH] powerpc: change the memory size limit |
| 5 | |
| 6 | When run "kexec" in powerpc board, the kexec has a limit that |
| 7 | the kernel text and bss size must be less than 24M. But now |
| 8 | some kernel size exceed the limit. So we need to change the limit, |
| 9 | else will get the error log as below: |
| 10 | |
| 11 | my_load:669: do |
| 12 | Could not find a free area of memory of 0x12400 bytes... |
| 13 | Could not find a free area of memory of 0x13000 bytes... |
| 14 | locate_hole failed |
| 15 | |
| 16 | Upstream-Status: Pending |
| 17 | |
| 18 | Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 19 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | --- |
| 21 | kexec/arch/ppc/kexec-ppc.h | 2 +- |
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 23 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 24 | diff --git a/kexec/arch/ppc/kexec-ppc.h b/kexec/arch/ppc/kexec-ppc.h |
| 25 | index 04e728e..6bae9ec 100644 |
| 26 | --- a/kexec/arch/ppc/kexec-ppc.h |
| 27 | +++ b/kexec/arch/ppc/kexec-ppc.h |
| 28 | @@ -44,7 +44,7 @@ void dol_ppc_usage(void); |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | * During inital setup the kernel does not map the whole memory but a part of |
| 30 | * it. On Book-E that is 64MiB, 601 24MiB or 256MiB (if possible). |
| 31 | */ |
| 32 | -#define KERNEL_ACCESS_TOP (24 * 1024 * 1024) |
| 33 | +#define KERNEL_ACCESS_TOP (36 * 1024 * 1024) |
| 34 | |
| 35 | /* boot block version 17 as defined by the linux kernel */ |
| 36 | struct bootblock { |