Thomas Bogendoerfer bd848d1b92
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 a94e4f24ec83 ("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: a94e4f24ec83 ("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
2019-10-02 14:11:30 -07:00
..
2019-09-22 09:30:30 -07:00
2019-09-22 09:30:30 -07:00
2019-08-23 14:47:10 +01:00
2019-10-02 14:06:41 -07:00
2019-08-09 15:46:29 -07:00
2019-08-23 14:47:21 +01:00
2019-09-22 09:30:30 -07:00
2019-06-08 13:09:31 -07:00
2019-06-08 13:09:31 -07:00
2019-08-23 14:47:18 +01:00
2019-06-08 13:09:31 -07:00
2019-07-23 14:33:51 -07:00