]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: init: Prevent adding memory before PHYS_OFFSET
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Tue, 24 Sep 2019 15:20:51 +0000 (17:20 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 2 Oct 2019 21:11:30 +0000 (14:11 -0700)
commitfac1e2dbc72cd4a72de33ad07acb7e7cd333c74f
tree035176c008e48d3b95a5dd25c4c0e84b7c1abea0
parent575e8a01e9d63adc9636feed8ebbd83ed9c4a632
MIPS: init: Prevent adding memory before PHYS_OFFSET

On some SGI machines (IP28 and IP30) a small region of memory is mirrored
to pyhsical address 0 for exception vectors while rest of the memory
is reachable at a higher physical address. ARC PROM marks this
region as reserved, but with commit 1f4f7deaef04 ("MIPS: init: Drop
boot_mem_map") this chunk is used, when searching for start of ram,
which breaks at least IP28 and IP30 machines. To fix this
add_region_memory() checks for start address < PHYS_OFFSET and ignores
these chunks.

Fixes: 1f4f7deaef04 ("MIPS: init: Drop boot_mem_map")
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/setup.c