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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BDBA7C77B7C for ; Sun, 21 May 2023 06:47:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0CE3846FB; Sun, 21 May 2023 08:46:59 +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="L+hSziVx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F87A8476F; Sun, 21 May 2023 08:46:58 +0200 (CEST) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (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 A57F484670 for ; Sun, 21 May 2023 08:46:55 +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=ganboing@gmail.com Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d2c865e4eso1994860b3a.0 for ; Sat, 20 May 2023 23:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684651614; x=1687243614; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=7RbfC+l4vOrHBQ0Kh7BDb7C3Y7DlbKA4kbQ5Dt+i9rE=; b=L+hSziVxBj8CoWo/WiwyNgQaxgqn8KisXlTqYqAdc9fITUwBPpbj70NB6gYTk2vKoF E+IFL235KagdFqp3JXiPpD5K7r8iTQsuB0Fiki+SmG7jeNDezsRt/OwJ1sU4Ot8SB8au mdWiR5sIdssSJnW5lJPxhyyuhkaGe9PRSMDBzCUa0ewyWx0YT6xe8+7wxnT44mC///WX e36bQ0nps2Qp0DvO90oWxJODY354fkbWRbLoSzKJVz50Sw4LlOFQMYI1+cW/c+0Xt6iH oFhmz7Gsdy7YD04cIXKqSj5s9L+q2oE+hM1IIrUIXv4b10shnU512cPnA1mBGYB2Ah/1 rcdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684651614; x=1687243614; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7RbfC+l4vOrHBQ0Kh7BDb7C3Y7DlbKA4kbQ5Dt+i9rE=; b=iN8twy5R47v53p/vn8kqrIJOkTZeKMe+HMfvtrVPCknxL5XADmkBx9wD5jysuRWI33 0wB9c/emx3uoyYTINMm7Tl3ag5DhDDzmxpO4WHlJrhc88y4j1yGpaI0/LEMDyngnST7/ Lsc7ZuQU6B62UVfpxqXIRGhAb5FNCbnwUzIsd6mZ8z2zpypytyykMnuo2Cp3WdlatpB1 ls6z1TSz97ps2LFS6Cfq8e5yfQo17YbUZuArAfHsrkJwzvgSltbiiucZ4D58UgWRuJ5b hHkOomR40+tGIDyoScXyqMa4w4VYkzsFuRS47nEEbBVfWV5xMLFVJCjOziQ/Xi7MJP6k VixA== X-Gm-Message-State: AC+VfDzYeJ1xFcJGxuNeX9UuP0+1mzVcz7++1Nx0oNFqHk6T3uUmaiZN dtWHn+I/w65Bl5uuwACFnMI= X-Google-Smtp-Source: ACHHUZ5Q1AvMO8Rhfx/Ga/xR12Pfu70i0AQlOVBSCiUrH9mQnPsUAQrettz2Cobyd1pu2qqOy1dTww== X-Received: by 2002:a05:6a21:6811:b0:106:c9b7:c932 with SMTP id wr17-20020a056a21681100b00106c9b7c932mr2088115pzb.1.1684651613978; Sat, 20 May 2023 23:46:53 -0700 (PDT) Received: from [192.168.0.13] ([172.92.174.136]) by smtp.gmail.com with ESMTPSA id m26-20020a056a00165a00b0064cca73d911sm2104865pfc.103.2023.05.20.23.46.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 May 2023 23:46:53 -0700 (PDT) Subject: Re: [PATCH v1 2/2] configs: starfive_visionfive2_defconfig: Update CONFIG_SPL_STACK To: Yanhong Wang , u-boot@lists.denx.de, Rick Chen , Leo Cc: Sean Anderson , Lukasz Majewski , "samin . guo" References: <20230518064106.9082-1-yanhong.wang@starfivetech.com> <20230518064106.9082-2-yanhong.wang@starfivetech.com> From: Bo Gan Message-ID: <35c30408-cb74-e6b6-755e-7fdf06817bf8@gmail.com> Date: Sat, 20 May 2023 23:46:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20230518064106.9082-2-yanhong.wang@starfivetech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean On 5/17/23 11:41 PM, Yanhong Wang wrote: > SPL runs on the L2 LIM, which is 2M in size mapped at 0x8000000.This > region consists of 16 0x20000 sized regions, each one can be used as > either L2 cache way or SRAM (not both).From top to bottom, you have way > 0-15.The way 0 is always enabled, so SPL can only use at most 0x1e0000 > bytes of memory.So, update the value of the CONFIG_SPL_STACK to > 0x81CFFFF. > > Signed-off-by: Yanhong Wang > --- > configs/starfive_visionfive2_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig > index ffbc4b9476..fc3d27bbec 100644 > --- a/configs/starfive_visionfive2_defconfig > +++ b/configs/starfive_visionfive2_defconfig > @@ -13,7 +13,7 @@ CONFIG_SYS_PROMPT="StarFive #" > CONFIG_OF_LIBFDT_OVERLAY=y > CONFIG_DM_RESET=y > CONFIG_SPL_MMC=y > -CONFIG_SPL_STACK=0x8180000 > +CONFIG_SPL_STACK=0x81CFFFF > CONFIG_SPL=y > CONFIG_SPL_SPI_FLASH_SUPPORT=y > CONFIG_SPL_SPI=y > Hi Yanhong, Thanks for taking care of this. Would you mind refer my name if you want to directly copy-paste my previous response? (https://lists.denx.de/pipermail/u-boot/2023-May/518359.html) Regarding the patch itself, I don't quite understand it. If you want to fully utilize the L2 LIM, then we should have CONFIG_SPL_STACK=0x81e0000. Let me know if I missed anything. Thanks.