]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: SGI-IP22/28: Use PROM for memory detection
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Wed, 9 Oct 2019 13:27:17 +0000 (15:27 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 9 Oct 2019 21:55:57 +0000 (14:55 -0700)
commit009b9075ad59b6d9bdaa2b87f4aebc3f6b9394f2
treeafe10195df3371bcaf5ce2c67732aa5007c77d9a
parent37de31056e70256f7c36fbe4a1770bb8ba85b1c0
MIPS: SGI-IP22/28: Use PROM for memory detection

EARLY_PRINTK uses ArcWrite (via prom_putchar) on IP22/28, which needs
to not mess up PROMs data structures. ARC PROM gives out a list of
memory chunks, which are used and which are free. This fixes the
problem of not working early printk.

By using XKPHYS spaces more than 256MB memory on Indigo2 R4k machines
is working now, too.

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/Kconfig
arch/mips/fw/arc/memory.c
arch/mips/include/asm/bootinfo.h
arch/mips/include/asm/mach-ip22/spaces.h
arch/mips/sgi-ip22/ip22-mc.c