[PATCH v2 3/4] ARM: mm: truncate memory banks to fit in 4GB space for classic MMU
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Apr 11 11:52:32 EDT 2012
On Wed, Apr 11, 2012 at 10:44:22AM -0400, Nicolas Pitre wrote:
> On Wed, 11 Apr 2012, Will Deacon wrote:
>
> > If a bank of memory spanning the 4GB boundary is added on a !CONFIG_LPAE
> > kernel then we will hang early during boot since the memory bank will
> > have wrapped around to zero.
> >
> > This patch truncates memory banks for !LPAE configurations when the end
> > address is not representable in 32 bits.
> >
> > Cc: Nicolas Pitre <nico at fluxnic.net>
> > Signed-off-by: Will Deacon <will.deacon at arm.com>
>
> Acked-by: Nicolas Pitre <nico at linaro.org>
>
> Now what if start = 1G and size = 5G? The size variable is an unsigned
> long, meaning that right now the size might be truncated to 1G.
There's a solution to that which is quite easy to do: convert the bank
information to PFNs instead of addresses. That will probably eliminate
some corner cases with partial pages which would be desirable too.
More information about the linux-arm-kernel
mailing list