From patchwork Mon Jun 23 09:17:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 4401041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4D80F9F1D6 for ; Mon, 23 Jun 2014 09:22:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E0A32021A for ; Mon, 23 Jun 2014 09:22:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B11A201E4 for ; Mon, 23 Jun 2014 09:22:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wz0PQ-0001uU-Sb; Mon, 23 Jun 2014 09:19:28 +0000 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wz0PJ-0001Z4-Of for linux-arm-kernel@lists.infradead.org; Mon, 23 Jun 2014 09:19:26 +0000 Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wz0O3-0006do-Th; Mon, 23 Jun 2014 11:18:03 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Wz0Nu-0001cY-65; Mon, 23 Jun 2014 11:17:54 +0200 Date: Mon, 23 Jun 2014 11:17:54 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Laura Abbott Subject: Re: [PATCHv5 2/2] arm: Get rid of meminfo Message-ID: <20140623091754.GD14781@pengutronix.de> References: <1396544698-15596-1-git-send-email-lauraa@codeaurora.org> <1396544698-15596-3-git-send-email-lauraa@codeaurora.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1396544698-15596-3-git-send-email-lauraa@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:5054:ff:fec0:8e10 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140623_021922_421295_481078A0 X-CRM114-Status: GOOD ( 24.13 ) X-Spam-Score: -0.0 (/) 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Apr 03, 2014 at 10:04:58AM -0700, Laura Abbott wrote: > memblock is now fully integrated into the kernel and is the prefered > method for tracking memory. Rather than reinvent the wheel with > meminfo, migrate to using memblock directly instead of meminfo as > an intermediate. 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 [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 1024 pages, LIFO batch:0 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1024 [ 0.000000] Kernel command line: console=ttyefm4,115200 init=/linuxrc ignore_loglevel ihash_entries=64 dhash_entries=64 earlyprintk uclinux.physaddr=0x8c400000 root=/dev/mtdblock0 [ 0.000000] PID hash table entries: 16 (order: -6, 64 bytes) [ 0.000000] Dentry cache hash table entries: 64 (order: -4, 256 bytes) [ 0.000000] Inode-cache hash table entries: 64 (order: -4, 256 bytes) [ 0.000000] Memory: 0K/4096K available (1156K kernel code, 83K rwdata, 316K rodata, 56K init, 43K bss, 212K reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0x00000000 - 0x00001000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0x00000000 - 0xffffffff (4095 MB) [ 0.000000] lowmem : 0x88000000 - 0x88400000 ( 4 MB) [ 0.000000] .text : 0x8c000000 - 0x8c170360 (1473 kB) [ 0.000000] .init : 0x8800a000 - 0x8800e000 ( 16 kB) [ 0.000000] .data : 0x88008000 - 0x88020f80 ( 100 kB) [ 0.000000] .bss : 0x88020f8c - 0x8802bf5c ( 44 kB) [ 0.000000] swapper: page allocation failure: order:0, mode:0x200000 [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.15.0-rc1-00028-g1c2f87c22566-dirty #280 [ 0.000000] [<8c002b95>] (unwind_backtrace) from [<8c001f0b>] (show_stack+0xb/0xc) [ 0.000000] [<8c001f0b>] (show_stack) from [<8c02e997>] (warn_alloc_failed+0x95/0xba) [ 0.000000] [<8c02e997>] (warn_alloc_failed) from [<8c02ff6b>] (__alloc_pages_nodemask+0x437/0x484) [ 0.000000] [<8c02ff6b>] (__alloc_pages_nodemask) from [<8c03b7b5>] (new_slab+0x51/0x184) [ 0.000000] [<8c03b7b5>] (new_slab) from [<8c03c1b5>] (__kmem_cache_create+0x5d/0x12c) [ 0.000000] [<8c03c1b5>] (__kmem_cache_create) from [<8c174667>] (create_boot_cache+0x23/0x3c) [ 0.000000] [<8c174667>] (create_boot_cache) from [<8c1751af>] (kmem_cache_init+0x23/0x88) [ 0.000000] [<8c1751af>] (kmem_cache_init) from [<8c17078b>] (start_kernel+0xfb/0x210) [ 0.000000] [<8c17078b>] (start_kernel) from [<8c000023>] (0x8c000023) [ 0.000000] Mem-info: [ 0.000000] Normal per-cpu: [ 0.000000] CPU 0: hi: 0, btch: 1 usd: 0 [ 0.000000] active_anon:0 inactive_anon:0 isolated_anon:0 [ 0.000000] active_file:0 inactive_file:0 isolated_file:0 [ 0.000000] unevictable:0 dirty:0 writeback:0 unstable:0 [ 0.000000] free:0 slab_reclaimable:0 slab_unreclaimable:0 [ 0.000000] mapped:0 shmem:0 pagetables:0 bounce:0 [ 0.000000] free_cma:0 [ 0.000000] Normal free:0kB min:0kB low:0kB high:0kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:4096kB managed:2776kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes [ 0.000000] lowmem_reserve[]: 0 0 [ 0.000000] Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB = 0kB [ 0.000000] 0 total pagecache pages [ 0.000000] [ 0.000000] Unhandled exception: IPSR = 00000003 LR = fffffff1 [ 0.000000] [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.15.0-rc1-00028-g1c2f87c22566-dirty #280 [ 0.000000] task: 88015950 ti: 88008000 task.ti: 88008000 [ 0.000000] PC is at show_mem+0x96/0x150 [ 0.000000] LR is at 0x880251e0 [ 0.000000] pc : [<8c00359a>] lr : [<880251e0>] psr: 0100000b [ 0.000000] sp : 88009e68 ip : 00088000 fp : 4100f101 [ 0.000000] r10: 00000080 r9 : f7ff0047 r8 : 00000001 [ 0.000000] r7 : 00000001 r6 : d0fb0f3f r5 : 00000000 r4 : 00000000 [ 0.000000] r3 : 00000060 r2 : 88025238 r1 : 00000004 r0 : 8801a2e4 [ 0.000000] xPSR: 0100000b [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.15.0-rc1-00028-g1c2f87c22566-dirty #280 [ 0.000000] [<8c002b95>] (unwind_backtrace) from [<8c001f0b>] (show_stack+0xb/0xc) [ 0.000000] [<8c001f0b>] (show_stack) from [<8c002547>] (__invalid_entry+0x4b/0x4c) (The -dirty is just: which is needed to make nommu machines boot.) Any idea? Best regards Uwe diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 2b751464d6ff..9536c9ec6f43 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -92,7 +92,7 @@ * Fortunately, there is no reference for this in noMMU mode, for now. */ #ifndef TASK_SIZE -#define TASK_SIZE (CONFIG_DRAM_SIZE) +#define TASK_SIZE UL(0xffffffff) #endif #ifndef TASK_UNMAPPED_BASE