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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73317C433F5 for ; Mon, 25 Oct 2021 01:49:56 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B58F60F6F for ; Mon, 25 Oct 2021 01:49:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7B58F60F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2B66482E7D; Mon, 25 Oct 2021 03:49:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UArNcg6E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF23682EBB; Mon, 25 Oct 2021 03:49:50 +0200 (CEST) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4CAEF8169E for ; Mon, 25 Oct 2021 03:49:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rickchen36@gmail.com Received: by mail-io1-xd2c.google.com with SMTP id y67so13412489iof.10 for ; Sun, 24 Oct 2021 18:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eOO28g7PCCnqkjpgVZ6e22wUmEzvhrxwDGD1OBMqG1w=; b=UArNcg6EhjhQFucz0dLS4uEHWTS6dbD9ViWvamoy8B1Vz+9y4uEhMtEuHd6YWfr1eR qaV2m6nKivSyGUZLN71mZidO4kfwRdBBYwrQSOuXeWDYiJaR/YU72OZJcF+du+UaosVa 7vMIgeofh63jqWOHxVMvWT+CVsyd+QvylU3ge7j0GZpIEPqcKzmI3SJ9OAiNfBS018dN CN6AyrHj61W6CzbcUynmR4GEP73A6v4JLY1cWu6IdXYVK90dbpp9Qke887SZN9Lu++9W 7iNSWNEZBaM0q9Uo3GyAoKu7xwQ4rmMEJPe9JQPLjv/kSvefh1jS2hb8Xg0QX6KFHFUU YVJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eOO28g7PCCnqkjpgVZ6e22wUmEzvhrxwDGD1OBMqG1w=; b=uNEB99atKUOCXCMP/TXJCWHfnCpObEkKpOOZZWJWa4/AQcls3h3ADYcD4uBYt4BF6o TqosZRrfc4Ynjz8pYliEch9zD15TCsYjH2SBXBy3PnIo6HTMKwBYg1LrdKF7yhz+WMSY Zt/deM6e2P0p6lIeuEsYp/nSCWxykhkyLSibe8KyQ05+Pbi2BD4RPfYWxdXZNjU2ONKa Mbu5OeDLVegwaRpkQCpczQPWLO7ysdU7igZtUg6leTrEPVB9FrNYVAja4NEn4Wez4jUk jDmrHRGW3o6VJsARmEAZyG37l/jTFB4zUSr6wVDh3GcIXVrLeViJFlZ/pvjT9LMqIBxZ t7hQ== X-Gm-Message-State: AOAM531TtRktQw1x3WjAfIM0WTK5MmMzeCqwo2+cq3yEvx0eFENzZclS 8POynvPQG3fF75HnHRdOJVAqiiZqQtOQde6Go5k= X-Google-Smtp-Source: ABdhPJx+RDU25CmQjAtDPPsX2Xdr/uLIUGl4gwMb5sLElDwV6zYOajtMpfzaUrBZiPDN5SQ9bfhbUPI/xropetVwd1Y= X-Received: by 2002:a02:9f07:: with SMTP id z7mr727899jal.86.1635126584824; Sun, 24 Oct 2021 18:49:44 -0700 (PDT) MIME-Version: 1.0 References: <20211001113745.52797-1-heinrich.schuchardt@canonical.com> In-Reply-To: From: Rick Chen Date: Mon, 25 Oct 2021 09:49:33 +0800 Message-ID: Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL_MALLOC_SIZE To: Bin Meng Cc: U-Boot Mailing List , alexandre.ghiti@canonical.com, Tom Rini , Leo Liang , rick , Pragnesh Patel , dimitri.ledkov@canonical.com, zong.li@sifive.com, Green Wan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Bin, > From: Bin Meng > Sent: Tuesday, October 19, 2021 4:55 PM > To: Alexandre Ghiti > Cc: Heinrich Schuchardt ; Tom Rini ; Leo Yu-Chi Liang(=E6=A2=81=E8=82=B2=E9=BD=8A) ; Rick Jian-Zhi Chen(=E9=99=B3=E5=BB=BA=E5=BF=97) ; Pragnesh Patel ; Dimitri John Ledkov <= dimitri.ledkov@canonical.com>; Zong Li ; Green Wan ; U-Boot Mailing List > Subject: Re: [PATCH 1/1] board: sifive: unmatched: enlarge CONFIG_SYS_SPL= _MALLOC_SIZE > > On Tue, Oct 19, 2021 at 4:32 PM Alexandre Ghiti wrote: > > > > Hi, > > > > On Fri, Oct 1, 2021 at 5:35 PM Bin Meng wrote: > > > > > > Hi Heinrich, > > > > > > On Fri, Oct 1, 2021 at 7:37 PM Heinrich Schuchardt > > > wrote: > > > > > > > > Avoid an error like > > > > > > > > Could not get FIT buffer of 1725952 bytes > > > > check CONFIG_SYS_SPL_MALLOC_SIZE > > > > No device tree specified in SPL image > > > > ### ERROR ### Please RESET the board ### > > > > > > > > Signed-off-by: Heinrich Schuchardt > > > > > > > > --- > > > > include/configs/sifive-unmatched.h | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/include/configs/sifive-unmatched.h > > > > b/include/configs/sifive-unmatched.h > > > > index f8ad2cce1f..8d3deabdd3 100644 > > > > --- a/include/configs/sifive-unmatched.h > > > > +++ b/include/configs/sifive-unmatched.h > > > > @@ -18,7 +18,7 @@ > > > > #define CONFIG_SPL_BSS_MAX_SIZE 0x00100000 > > > > #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SPL_BSS_START_ADDR = + \ > > > > CONFIG_SPL_BSS_MAX_SIZE) > > > > -#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00100000 > > > > +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00200000 > > > > > > > > #define CONFIG_SPL_STACK (0x08000000 + 0x001D0000 - \ > > > > GENERATED_GBL_DATA_SIZE) > > > > > > What caused this? > > > > > > Last time this was seen on Ax25-AE350, CONFIG_SPL_SYS_MALLOC_F_LEN > > > was increased, instead of CONFIG_SYS_SPL_MALLOC_SIZE which the error > > > messages point to > > > > > > https://lists.denx.de/pipermail/u-boot/2021-May/449447.html > > > > > > > I fell into the same issue this morning and increasing > > CONFIG_SYS_SPL_MALLOC_SIZE fixed it, though I had to increase it even > > more than Heinrich. > > Is this default build that caused Unmatched boot failure? > > @Rick Chen can you comment on why CONFIG_SPL_SYS_MALLOC_F_LEN was needed= on AE350? It is needed for limited memory cases on AE350 platforms. Thanks, Rick > > Regards, > Bin