]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Malta: Detect and fix bad memsize values
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 27 Feb 2015 07:51:32 +0000 (07:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:03:40 +0000 (22:03 +0200)
commit0668432d35a9e96ee500cbe1b3f7df6c4fe29b09
treea7209fc5665bea0aaa24ee07007cb26b0773f3e1
parentfacbd0f25d07e3448d472d679aafefe7580990b2
MIPS: Malta: Detect and fix bad memsize values

commit f7f8aea4b97c4d48e42f02cb37026bee445f239f upstream.

memsize denotes the amount of RAM we can access from kseg{0,1} and
that should be up to 256M. In case the bootloader reports a value
higher than that (perhaps reporting all the available RAM) it's best
if we fix it ourselves and just warn the user about that. This is
usually a problem with the bootloader and/or its environment.

[ralf@linux-mips.org: Remove useless parens as suggested bei Sergei.
Reformat long pr_warn statement to fit into 80 column limit.]

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9362/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/mti-malta/malta-memory.c