diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-12-15 13:57:16 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-12-17 11:06:43 +0530 |
commit | ff1c0b6a795bce744527bc10c8268127ed818b42 (patch) | |
tree | a6455ad084d6e1a927ad860605906852633d1246 /arch/arc/mm/init.c | |
parent | c512c6ba7ac41b8bc196f17a85ee52099a109146 (diff) |
ARC: [plat-sim] unbork non default CONFIG_LINUX_LINK_BASE
HIGHMEM support bumped the default memory size for nsim platform to 1G.
Thus total memory ended at the very edge of start of peripherals address
space. With linux link base shifted, memory started bleeding into
peripheral space which caused early boot bad_page spew !
Fixes: 29e332261d2 ("ARC: mm: HIGHMEM: populate high memory from DT")
Reported-by: Anton Kolesov <akolesov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/mm/init.c')
-rw-r--r-- | arch/arc/mm/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index a9305b5a2cd4..7d2c4fbf4f22 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c @@ -51,7 +51,9 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) int in_use = 0; if (!low_mem_sz) { - BUG_ON(base != low_mem_start); + if (base != low_mem_start) + panic("CONFIG_LINUX_LINK_BASE != DT memory { }"); + low_mem_sz = size; in_use = 1; } else { |