Commit 002ea9ee authored by Linus Walleij's avatar Linus Walleij Committed by Russell King
Browse files

ARM: 7113/1: mm: Align bank start to MAX_ORDER_NR_PAGES

The VM subsystem assumes that there are valid memmap entries from
the bank start aligned to MAX_ORDER_NR_PAGES.

On the Ux500 we have a lot of mem=N arguments on the commandline
triggering this bug several times over and causing kernel
oops messages.

Cc: Michael Bohan <>
Cc: Nicolas Pitre <>
Signed-off-by: default avatarJohan Palsson <>
Signed-off-by: default avatarRabin Vincent <>
Signed-off-by: default avatarLinus Walleij <>
Signed-off-by: default avatarRussell King <>
parent 47ea91b4
......@@ -496,6 +496,13 @@ static void __init free_unused_memmap(struct meminfo *mi)
bank_start = min(bank_start,
ALIGN(prev_bank_end, PAGES_PER_SECTION));
* Align down here since the VM subsystem insists that the
* memmap entries are valid from the bank start aligned to
bank_start = round_down(bank_start, MAX_ORDER_NR_PAGES);
* If we had a previous bank, and there is a space
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment