Message ID | 20190328200719.31274-5-simon.k.r.goldschmidt@gmail.com |
---|---|
State | Superseded, archived |
Delegated to: | Marek Vasut |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O+14gjQP"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44VbYG49H3z9sR7 for <incoming@patchwork.ozlabs.org>; Fri, 29 Mar 2019 07:09:06 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 4233DC21E60; Thu, 28 Mar 2019 20:08:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B073BC21E6A; Thu, 28 Mar 2019 20:07:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9BBAFC21E6C; Thu, 28 Mar 2019 20:07:38 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id 86AAFC21E42 for <u-boot@lists.denx.de>; Thu, 28 Mar 2019 20:07:35 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id j9so645328wrn.6 for <u-boot@lists.denx.de>; Thu, 28 Mar 2019 13:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cEdN29bl0rnGe68PB357XJb5plUr88NdI+hCFsbdNn8=; b=O+14gjQPxSlr4ss9JKYYUmdB22J97u0KDfU+1jkhqVaXXt1UP3gBpP9uK2HmOUG8er NCKkZOJ2y26zuaDVtBnLsBZhKrGJz7s/Tee5lsnwcEZBJMvYfTmlE3arGhLa3Orh+3wR hHNweLzRo0R0+vPCnD/F+USyPbrCmAnbSvdWHQCcV5v1raFabDLz5GBmyJ2i1w+wFnoP EZQm8+Z/qKGge9cduTbNK6ZDVXrpas4cIbeOoAXrRub0/+rNHcipwXFs6wYWX5duz5iH D2Y+9tUYo9Wh1e+DCNoaQFcZTaNrjiW7DjKMhpenY/biL2KJ9Wv0qDbRoumgCGeAM6CC 9a2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cEdN29bl0rnGe68PB357XJb5plUr88NdI+hCFsbdNn8=; b=De0PjxEtQ3/3uAAFuZwajF+vWLXnL7wcoQYL9ycYmi6CN8NTCZxw3jpbhSw6Cgfrqm 3PvYzHdajl1qML9hg/659ZSEQhuLPg73uOOQjqJm5aDYsojLhNMHrzHUlIwfiV5ZPFXP dJ/EUebFgUpTG5GA14HDc7FCy8caFo1xWiFnWREw0MSIQG7PZQvl5cTg/OnMuYtXjUJm SWiRBVXHaUStOfiv/CFFrop1n027IDNdqT9C6H+aPBpMgHELkvD39uZK15IRvWNh3V2D G8DN25Jy3DVfsu2xaJF10PVa5/vK7pPl2gMQXdoMCGie6ccHO1/UMhIbG6racxDMz+xk JLpQ== X-Gm-Message-State: APjAAAWBbGU6YTNJkaakJSDpXNqMzEyAgSx5dWjeZbqaIqYzBXWWnUZt UDrr5MLwBzW6di1o7u3XK7Y= X-Google-Smtp-Source: APXvYqzGxY6ZJ+qpdDd9goUUcO9CoZ+4VYdbkOV+Txa89P7//jYEEADANl1RC9SNmouUZz4hvDf/Vw== X-Received: by 2002:adf:ed86:: with SMTP id c6mr29286438wro.146.1553803655276; Thu, 28 Mar 2019 13:07:35 -0700 (PDT) Received: from localhost.localdomain ([2a02:8071:6a3:700:7912:36eb:f322:e6c2]) by smtp.gmail.com with ESMTPSA id 204sm196224wmc.1.2019.03.28.13.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 13:07:34 -0700 (PDT) From: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> To: Marek Vasut <marex@denx.de>, u-boot@lists.denx.de Date: Thu, 28 Mar 2019 21:07:19 +0100 Message-Id: <20190328200719.31274-5-simon.k.r.goldschmidt@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190328200719.31274-1-simon.k.r.goldschmidt@gmail.com> References: <20190328200719.31274-1-simon.k.r.goldschmidt@gmail.com> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH v3 4/4] arm: socfpga: gen5: reduce SPL pre-reloc malloc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
arm: socfpga: stack and Kconfig cleanups
|
expand
|
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index 518bf9e821..1ebcfe6a64 100644 --- a/arch/arm/mach-socfpga/Kconfig +++ b/arch/arm/mach-socfpga/Kconfig @@ -8,6 +8,7 @@ config SPL_STACK_R_ADDR config SPL_SYS_MALLOC_F_LEN default 0x10000 if TARGET_SOCFPGA_ARRIA10 + default 0x800 if TARGET_SOCFPGA_GEN5 config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE default 0xa2
By enabling debug prints in malloc_simple, we can see that SPL for socfpga gen5 does by far not need the 8 KiB malloc pool currently allocated for SPL in pre-reloc phase. On socfpga_socrates, 1304 bytes are currently used (and this increases by ~200 bytes only for the sdram/reset fixes in socfpga-next). To prevent wasting precious SRAM space, let's reduce the initial heap used for SPL to 2 KiB. This is still some hundred bytes more than currently used. Also, the gen5 SPL enables stack and heap in DDR memory pretty early. Only the initial uclass/dm parsing, serial console and DDR initialization is done in the initial heap, so these 2 KiB should be enough for all boards. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> --- Changes in v3: None Changes in v2: - added patch to reduce gen5 SPL initial malloc pool to 2 KiB arch/arm/mach-socfpga/Kconfig | 1 + 1 file changed, 1 insertion(+)