Here are a couple of tweaks for MIPS memory setup, primarily in order to handle memory which extends right up to the end of physical memory on 32-bit systems with 32-bit phys_addr_t. More specifically we omit the final page of physical memory to avoid the overflow (see patch 1 for details). Patch 2 improves the rounding in the MAAR setup, so as to include the first full page of an already aligned region, and to avoid a BUG_ON for regions with non 64-KByte aligned end addresses (which I happened to hit while working on a different version of patch 1 which wasn't correctly merging the kernel data section into the main RAM region). Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Paul Burton <paul.burton@xxxxxxxxxx> Cc: linux-mips@xxxxxxxxxxxxxx James Hogan (2): MIPS: Allow memory reaching top of physical MIPS: MAAR: Fix address alignment arch/mips/kernel/setup.c | 7 +++++++ arch/mips/mm/init.c | 13 ++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) -- git-series 0.8.7