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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 7E8C1C433B4 for ; Tue, 18 May 2021 11:04:10 +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 07E7F61209 for ; Tue, 18 May 2021 11:04:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07E7F61209 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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=+43PwZqi/BRJ+KswoMEs1T2z+TGc+Uz4YfJz/t97eBU=; b=aVY5KYjXq3Bm42lcx4jRMpBq0 EniNk9rWwSaZ8bcJ3RgkmCd2O8d0tdYuXos7x8SEVTdfz3qKc8JOTipHHlob0RMTqvb6oW2C/rShg Xw9TMul2IZ+ifwwgTRjp09VV9b4PToJA7aFfBEQyaNCSVVqlU3i0Y1a0jWYn0brXrNT8aOpzslB+Q 8oQzLeE6XmF7e56ypvlSEFpZK15ZHkuw3W/zCyktDgDTnxkYrqGqf4EZJ/GPih18rCdRY3oGumAt9 1i1lTUJLr4zZ/WUdld7J87JMpo6i92JJ0ChJ/EqXf/wm5IsQ2F4pgEsNdwy+YX3wQN/MSgXkiUQzv 4IbZ9+SJQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lixUR-000TxT-TW; Tue, 18 May 2021 11:02:20 +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 1lixUP-000Twm-L2 for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 11:02:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ODZu957DIFm73DXjmBGOo+SbGeoYd9t83KWfjWOGESQ=; b=g145Z7yJ6FgpBuw6ZpyucArMYF KH5Ds1VKqWLxlCfeu7J7IjMmesSq7ly62VouJ6yfkAw6u6nvWZqKFk+Itq9FhADUNe5Eww79uHhHM QkcoAAl7Ka01ywzeiYkwMMz/SlrnimhOBlqQVdzLXrgS138TMf6kEZ+cBYKoTTSh1s9OKFLnvoI4v 5XB2YVub49QNquta0ghlNj/8VwnCgbF7Ggvuatbu9EdkBefAAY6vIDLWMaw9P3RF6TsEbMYZyfOgW QST7CeWxC0z+YV9t1yxtkkdVQsORQgMUPtNuKpflM3asTpo9l710a39iyFTIbOhXYn64h3CDU3yfU Hr2rFQiA==; Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lixUM-00EaUA-Ph for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 11:02:16 +0000 Received: by mail-wm1-x332.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so1269160wmk.1 for ; Tue, 18 May 2021 04:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=ODZu957DIFm73DXjmBGOo+SbGeoYd9t83KWfjWOGESQ=; b=OV46vw/Xw5rivr9umOBpPJm9zaA9HHctDjUUllafzLDjhAuA5PcEccaW9c6Q5ClqPs fNT/nOe8gckSrdGB7KfKVCAtLLew8cIH7wLxLYjvxb89wmWAoZ1u+ri+fzR7c6yvIhc0 fAk43nQOBH6CsbszJGH/bIr8vpsDl3RsC6gsVrauYWLzWJDc0z+APIoobWA3u9pM8DLD BI29lUFSx5DeTfe+gvEostr5aoPNk2Hf0QesEB01CQF27heU8Qx81+i0VUdEp96h32SR g5wYeoIpOet2O8HlBXx/uRe4jQKCVYfRxKSeLFpIXsdE728qETrPKIKCOgLW5goPMdAA GIrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=ODZu957DIFm73DXjmBGOo+SbGeoYd9t83KWfjWOGESQ=; b=iC30zMp/kPnZFHjirV+tYM2kqT9MUCvYhudExGlWCNUFp2hbArRAs0XBLs7CSeciCl NgV7fnNAs/3YGvOzYBPV1k2ApaxUByT3g84ZjpXbMbOGYjgEr3HofW4JqZFFNKkS2+w1 Fs4mCGC4b7lLmGa6mw0msdtm2ncatwpF4Z2zmhZjdphu5Jc6W+nTX7kxSoE7SiBCKMu+ ByV4fW27MzutOOpk4F7oxOt7jKCwVGD4MoRyjNA5lMFzdqcKmi9/JFwkeEHMlsFvQW3y Tll4F6JQVgm+DBM0FrCnD+VDppAT1uEfD3EKZPsjluWvAj8UVOVFq0kpVosjlX1Jhqq/ OCRA== X-Gm-Message-State: AOAM530Kso/7lOWq23Anlp1PPIzh+MRgcLoHDHY4ODwB2QYqFInbzZIh OpsxX/Pf+l5oRgyXeE/zyQ8= X-Google-Smtp-Source: ABdhPJwqU6ufHu2UL0u33Va3Xm9VL1RKmLQC2sNIOoYdvXeOIsllaX56eDnAnywRbKrV/3vM8K1opg== X-Received: by 2002:a1c:f404:: with SMTP id z4mr4375215wma.39.1621335732861; Tue, 18 May 2021 04:02:12 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id p10sm19453141wrr.58.2021.05.18.04.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 04:02:12 -0700 (PDT) Date: Tue, 18 May 2021 13:02:10 +0200 From: Corentin Labbe To: "Russell King (Oracle)" Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: REGRESSION: initrd is disabled due to memory overlap Message-ID: References: <20210518103546.GU12395@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210518103546.GU12395@shell.armlinux.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_040214_873266_9855633D X-CRM114-Status: GOOD ( 22.37 ) 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Tue, May 18, 2021 at 11:35:46AM +0100, Russell King (Oracle) a =E9crit : > On Tue, May 18, 2021 at 12:24:12PM +0200, Corentin Labbe wrote: > > Hello > > = > > On my SSI1328 gemini board, I use initrd=3D0x800000,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-l= inux-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=3D0000397f > > 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=3DttyS0,19200n8 initrd=3D0x800000,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, 1508= K 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. > = Thanks, moving initrd to 0x90000 made it works. next: cat /proc/iomem = 00000000-07ffffff : System RAM 00008000-006f8fff : Kernel code 00726000-00818edb : Kernel data v5.12: # cat /proc/iomem = 00000000-07ffffff : System RAM 00008000-006d5fff : Kernel code 00704000-007ee2b3 : Kernel data So yes, it seems getting bigger. Thanks for your help. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel