From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by kanga.kvack.org (Postfix) with ESMTP id 424696B0031 for ; Mon, 23 Jun 2014 16:48:01 -0400 (EDT) Received: by mail-pb0-f41.google.com with SMTP id ma3so6331153pbc.28 for ; Mon, 23 Jun 2014 13:48:00 -0700 (PDT) Received: from smtp.codeaurora.org (smtp.codeaurora.org. [198.145.11.231]) by mx.google.com with ESMTPS id bu3si23463282pbb.98.2014.06.23.13.47.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jun 2014 13:48:00 -0700 (PDT) Message-ID: <53A8927B.3020409@codeaurora.org> Date: Mon, 23 Jun 2014 13:47:55 -0700 From: Laura Abbott MIME-Version: 1.0 Subject: Re: [PATCHv5 2/2] arm: Get rid of meminfo References: <1396544698-15596-1-git-send-email-lauraa@codeaurora.org> <1396544698-15596-3-git-send-email-lauraa@codeaurora.org> <20140623091754.GD14781@pengutronix.de> In-Reply-To: <20140623091754.GD14781@pengutronix.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= Cc: Nicolas Pitre , Andrew Lunn , Catalin Marinas , Will Deacon , Grant Likely , linux-mm@kvack.org, Daniel Walker , Marek Szyprowski , Kukjin Kim , Russell King , David Brown , Sebastian Hesselbarth , Grygorii Strashko , Jason Cooper , linux-arm-msm@vger.kernel.org, Haojian Zhuang , Leif Lindholm , Ben Dooks , linux-arm-kernel@lists.infradead.org, Courtney Cavin , Eric Miao , Ard Biesheuvel , linux-kernel@vger.kernel.org, Santosh Shilimkar , kernel@pengutronix.de, Andrew Morton Thanks for the report. On 6/23/2014 2:17 AM, Uwe Kleine-Konig wrote: > This patch is in 3.16-rc1 as 1c2f87c22566cd057bc8cde10c37ae9da1a1bb76 > now. > > Unfortunately it makes my efm32 machine unbootable. > > With earlyprintk enabled I get the following output: > > [ 0.000000] Booting Linux on physical CPU 0x0 > [ 0.000000] Linux version 3.15.0-rc1-00028-g1c2f87c22566-dirty (ukleinek@perseus) (gcc version 4.7.2 (OSELAS.Toolchain-2012.12.1) ) #280 PREEMPT Mon Jun 23 11:05:34 CEST 2014 > [ 0.000000] CPU: ARMv7-M [412fc231] revision 1 (ARMv7M), cr=00000000 > [ 0.000000] CPU: unknown data cache, unknown instruction cache > [ 0.000000] Machine model: Energy Micro Giant Gecko Development Kit > [ 0.000000] debug: ignoring loglevel setting. > [ 0.000000] bootconsole [earlycon0] enabled > [ 0.000000] On node 0 totalpages: 1024 > [ 0.000000] free_area_init_node: node 0, pgdat 880208f4, node_mem_map 00000000 > [ 0.000000] Normal zone: 3840 pages exceeds freesize 1024 This looks off. The number of pages for the memmap exceeds the available free size. Working backwards, I think the wrong bounds are being calculated in find_limits in arch/arm/mm/init.c . max_low is now calculated via the current limit but nommu never sets a limit unlike the mmu case. Can you try the following patch and see if it fixes the issue? If this doesn't work, can you share working bootup logs so I can do a bit more compare and contrast? Thanks, Laura ---8<----