kernel_optimize_test/arch/mips/mti-malta
Paul Burton 0051fc2e7b MIPS: Malta: Use all available DDR by default
Malta boards can have more than 256MB DDR available, but we have
previously only made use of up to 256MB (ie. the DDR accessible via
kseg0) by default, without the user manually specifying mem= kernel
parameters. This patch causes all available DDR, as reported by the
bootloader via the ememsize or memsize environment variables or
optionally on the command line, to be used when possible without the
user needing to manually provide the memory ranges.

Malta now has 2 subtly different memory maps which have to be taken into
account when setting this up. The original memory map (referred to by
the code as v1) has up to 2GB of DDR aliased in both the upper & lower
halves of the 32 bit physical address space, with a 256MB I/O region
obscuring 0x10000000-0x1fffffff only in the lower alias. The revised v2
memory map is flat with up to 4GB DDR starting from 0x0, and the I/O
region obscures 256MB of DDR which becomes inacessible. The memory map
in use is indicated by a register provided by the rocit2 system
controller, which is checked in order to set up the kernels memory
ranges accordingly.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14273/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-10-06 17:31:00 +02:00
..
Makefile MIPS: Malta: Setup RAM regions via DT 2015-11-11 08:35:47 +01:00
malta-amon.c
malta-display.c
malta-dt.c MIPS: Malta: Basic DT plumbing 2015-06-21 21:54:29 +02:00
malta-dtshim.c MIPS: Malta: Use all available DDR by default 2016-10-06 17:31:00 +02:00
malta-init.c MIPS: Malta: Allow PCI devices DMA to lower 2GB physical 2016-10-06 17:31:00 +02:00
malta-int.c MIPS: CM: Add support for reporting CM cache errors 2015-08-26 15:23:15 +02:00
malta-memory.c tree-wide: replace config_enabled() with IS_ENABLED() 2016-08-04 08:50:07 -04:00
malta-platform.c MIPS: Squash lines for simple wrapper functions 2016-10-04 16:13:57 +02:00
malta-pm.c
malta-reset.c
malta-setup.c MIPS: Malta: Fix IOCU disable switch read for MIPS64 2016-09-29 18:59:49 +02:00
malta-time.c MIPS: malta-time: Take seconds into account 2016-05-13 15:30:25 +02:00
Platform