]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Round of the carve out memory requested to section_size
authorR Sricharan <r.sricharan@ti.com>
Wed, 12 Sep 2012 07:14:13 +0000 (12:44 +0530)
committerTony Lindgren <tony@atomide.com>
Mon, 8 Oct 2012 21:04:50 +0000 (14:04 -0700)
commitd437ea2def10e7e6d471a2885c70422fc23d8e2c
tree5f54ff51f0f643448e8a7a79ed52fd59b1ff7bd3
parent4b44b054d12838dd25df2cb9964069e418204cbf
ARM: OMAP2+: Round of the carve out memory requested to section_size

memblock_steal tries to reserve physical memory during boot.
When the requested size is not aligned on the section size
then, the remaining memory available for lowmem becomes
unaligned on the section boundary. There is a issue with this,
which is discussed in the thread below.

https://lkml.org/lkml/2012/6/28/112

The final conclusion from the thread seems to
be align the memblock_steal calls on the SECTION boundary.
The issue comes out when LPAE is enabled, where the
section size is 2MB.

Boot tested this on OMAP5 evm with and without LPAE.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-secure.c