From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Mon, 24 Sep 2012 15:16:54 +0100 Subject: [PATCH v3 RESEND 12/17] ARM: LPAE: define ARCH_LOW_ADDRESS_LIMIT for bootmem In-Reply-To: <1348242975-19184-13-git-send-email-cyril@ti.com> References: <1348242975-19184-1-git-send-email-cyril@ti.com> <1348242975-19184-13-git-send-email-cyril@ti.com> Message-ID: <20120924141654.GH23298@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Sep 21, 2012 at 04:56:10PM +0100, Cyril Chemparathy wrote: > This patch adds an architecture defined override for ARCH_LOW_ADDRESS_LIMIT. > On PAE systems, the absence of this override causes bootmem to incorrectly > limit itself to 32-bit addressable physical memory. > > Signed-off-by: Cyril Chemparathy > Signed-off-by: Vitaly Andrianov > --- > arch/arm/include/asm/memory.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h > index f3e8f88..19221c2 100644 > --- a/arch/arm/include/asm/memory.h > +++ b/arch/arm/include/asm/memory.h > @@ -315,6 +315,8 @@ static inline __deprecated void *bus_to_virt(unsigned long x) > #define arch_is_coherent() 0 > #endif > > +#define ARCH_LOW_ADDRESS_LIMIT PHYS_MASK It looks like mm/bootmem.c casts this to unsigned long anyway, so the patch doesn't have any effect on its own. -- Catalin