From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCFCAC433B4 for ; Tue, 18 May 2021 10:37:45 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C59461353 for ; Tue, 18 May 2021 10:37:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C59461353 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=d1yqtRmcOemdclDP0yHyRF4O3UIxwCW9oAxpqv/AGfw=; b=FFcVgnM8k8nzk6t2SYAT+57lx MCcIj5e5resAB6tKc5/Mif8jXd6xdx29OMr3QTt5sG497uFwJf8OMRZYNN8kQV9sXUZOxAWKxTQHs 0xi46oypFLAc6FnLfy6rjgNXD8/ax4X+JAvIPi+0tccSFdhOZv6ilpef+A/gvumyJaoUdZNPnUYd5 Q7h9sUY4fJeCQF+GDzCDxek8QF+NJljaKN90lEYofY8U4Jo8A0tcduH5E2po18NY8LLz/q95KrUQm ld6EHujF4SsOo2i1jTlvD8+CIs8sOrKRNnWMOjBSJVaCIksMo/BQagOq9YrEgRCjbxuYZp9xMpG/8 H9ITtUcjg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lix51-000PNB-EN; Tue, 18 May 2021 10:36:03 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lix4q-000PLR-84 for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 10:35:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3HQnmJvFwnqakmh608DrvB8oicJK2URFyDw6ZWw2EkA=; b=UgJ3BGHO2P1yz+/wNF8+822XoU TCRf2j7+8VYZUozSIKtMqzry3SecwXLckWYY+i3lIDfhuRqXJvAfF5YdVIcawRg7EfcwiO07CQax4 GeBNt8jMbWo26RhObi3LOKFKhSLMqUP67bIobuHajv32s9HFIluZolvJ9xXIz38+L2/XuIXeDxbd2 MFUXGlbnSOCCpzQFj8latHvDkFCtdEHYhLoRaufE9jHXJW0Cqxwbp7Ogxd2mXG20xrjZUmodz6sH/ IJvp33rQdL5z5Pb1ebAVWTPZf/2vNzTqfYJ/p1fcZrkfXx0IHzi+y5mAFMC0T61KxVREQgx7WK+Rm ldRsve2w==; Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lix4n-00EZSm-Ho for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 10:35:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3HQnmJvFwnqakmh608DrvB8oicJK2URFyDw6ZWw2EkA=; b=o6ElVB+kFcGaqyBi9092RhjhL 60kc9eQ+86mSQ7mVJMtPDveI4AnsFmEEiVGOu4eq1+8DbDAxnb9S6mVDIPAE8ohxAsvI9/PyK8F3H hY6W7I4osHI7sGKwJ1AHfZs7VPdKxYOvTd+mHXD31V8ciE+qB8zuhToiKMvl4mX7meKzJaPuHxolV 45AS6sWxwin61jmmSi6k8NCcbcChnlbB6cTTGS2dqv32K8Zs7hko6Bg3MBUlwXHn0El9NvNUK8nuR wOp6IwMxbZ+2yO7hReWfnINstAq9/znYB1Ce8YTg+U/7LIvVLy8gSDtJ6SinlqvxxPujZiRCLAjL7 3WZ+LANFQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44128) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lix4k-00047c-Vq; Tue, 18 May 2021 11:35:47 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lix4k-0007oo-Kt; Tue, 18 May 2021 11:35:46 +0100 Date: Tue, 18 May 2021 11:35:46 +0100 From: "Russell King (Oracle)" To: Corentin Labbe Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: REGRESSION: initrd is disabled due to memory overlap Message-ID: <20210518103546.GU12395@shell.armlinux.org.uk> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_033549_610694_1DE09705 X-CRM114-Status: GOOD ( 15.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 18, 2021 at 12:24:12PM +0200, Corentin Labbe wrote: > Hello > > On my SSI1328 gemini board, I use initrd=0x800000,9M in cmdline. > On next-20210518 and 5.13-rc1 I got: > Booting Linux on physical CPU 0x0 > Linux version 5.13.0-rc2-next-20210518+ (compile@Red) (armv7a-unknown-linux-gnueabihf-gcc (Gentoo 10.2.0-r5 p6) 10.2.0, GNU ld (Gentoo 2.35.2 p1) 2.35.2) #77 PREEMPT Tue May 18 12:14:41 CEST 2021 > CPU: FA526 [66015261] revision 1 (ARMv4), cr=0000397f > CPU: VIVT data cache, VIVT instruction cache > OF: fdt: Machine model: SSI 1328 > Memory policy: Data cache writeback > INITRD: 0x00800000+0x00900000 overlaps in-use memory region - disabling initrd > Zone ranges: > Normal [mem 0x0000000000000000-0x0000000007ffffff] > HighMem empty > Movable zone start for each node > Early memory node ranges > node 0: [mem 0x0000000000000000-0x0000000007ffffff] > Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] > Built 1 zonelists, mobility grouping on. Total pages: 32512 > Kernel command line: console=ttyS0,19200n8 initrd=0x800000,9M > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) > mem auto-init: stack:off, heap alloc:off, heap free:off > Memory: 117480K/131072K available (5459K kernel code, 595K rwdata, 1508K rodata, 180K init, 376K bss, 13592K reserved, 0K cma-reserved, 0K highmem) > > On 5.12, initrd is used and works. I think this is caused by the normal growth of the size of the kernel. If you look in the System.map for the _end symbol, I think you'll find that its address is larger than PAGE_OFFSET + 0x800000, causing the overlap. If so, the only realistic thing to do is to move the initrd higher up in memory - I don't think you'll get much traction with the idea of reducing the kernel's memory footprint. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel