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 48523C25B4E for ; Sun, 22 Jan 2023 21:15:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 769DF85479; Sun, 22 Jan 2023 22:15:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="BRpFvGdf"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="APpKEgPW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E60538569C; Sun, 22 Jan 2023 22:15:37 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8140884FD1 for ; Sun, 22 Jan 2023 22:15:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 2B00932004AE; Sun, 22 Jan 2023 16:15:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 22 Jan 2023 16:15:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1674422132; x=1674508532; bh=sC n+K89UYN4c0pRkrj016pqEgWZBksZlDiuOSgcBesk=; b=BRpFvGdfSt/8qfeAqE U0JyJoE57tA+2YxRW6Ommhph3BPisKoxXESSf+CDsxCOamCNpMAgcU9DwJgioEOh vtGmQ+TP3cfLKaLS/jI4noADF6ZbPtzORTXYV5ro8TxlL3LHygozQEGgVal8h6ei fKma2rPN1MIRYWQPF7OlNs0UK3ASkuCtMYnO53KK8sND1E3VdYW0MaxPWPfbAg7i KESojwM1A8HfPazUgZ2lKAJzRJyQNdOzqI6Lo5wOvk5ojmP+48VsjaxW8mN5xJlK b4gO+BCbHW/RFuco/M3dAdmmxMESRIRN5W8ttEUrCI+SP70zzv0Ua2p4Oa5wEczA l3Ug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1674422132; x=1674508532; bh=sCn+K89UYN4c0 pRkrj016pqEgWZBksZlDiuOSgcBesk=; b=APpKEgPWkLLXvnWpV0OSM6eIZzHI8 DfIG7B5lNMQ0T1bp3TQqQOMPT1SK93kj1h8mKEnYr0FI3rwPYkAEW16vH5972R2Q ozMKyLCKUohv6n52wdjXaQac2JQk/U4tMDl9DobizCbz1VVHnLwQSYyHt422/+mI UpYxPHru1kNWme5X88OSfjFbaYSQlSObjr2lsQOakeTI8s2pTp2jOp7AApJKqx7C ovt+Hh68LqLKMoENULTAN5mb5YBroCnXhvj8lrKcKZ7iy3YNfWT5zv4+TzMrkv9t 05j/R97YNfuN9NKJ66SFoNZcH+jEhvVLzMnCXyci4V/aRxFP4IsZDniWw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduiedgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Jan 2023 16:15:32 -0500 (EST) From: Samuel Holland To: Andre Przywara , Jagan Teki Cc: Jesse Taube , Icenowy Zheng , u-boot@lists.denx.de, Samuel Holland Subject: [PATCH v2 1/4] sunxi: spl: Disable padding from SPL_PAD_TO Date: Sun, 22 Jan 2023 15:15:27 -0600 Message-Id: <20230122211531.23181-2-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230122211531.23181-1-samuel@sholland.org> References: <20230122211531.23181-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean Starting with H6, Allwinner removed the artificial 32 KiB SPL size limit from the boot ROM. Now SPL size is only limited by the available SRAM. This limit ranges from 152 KiB on H6 to a whopping 2052 KiB on R329. To take advantage of this additional space, we must increase SPL_MAX_SIZE. Since we do not want to unnecessarily pad SPL out to these giant sizes, we must set SPL_PAD_TO to zero. This causes no problems because binman already takes care of appending the SPL payload at the right offset. Signed-off-by: Samuel Holland --- Changes in v2: - New patch for v2 common/spl/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 3c2af453ab..a7c55f8c4c 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -97,8 +97,7 @@ config SPL_PAD_TO default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB default 0x11000 if ARCH_MX7 || (ARCH_MX6 && !MX6_OCRAM_256KB) default 0x10000 if ARCH_KEYSTONE - default 0x8000 if ARCH_SUNXI && !MACH_SUN50I_H616 - default 0x0 if ARCH_MTMIPS + default 0x0 if ARCH_MTMIPS || ARCH_SUNXI default TPL_MAX_SIZE if TPL_MAX_SIZE > SPL_MAX_SIZE default SPL_MAX_SIZE help -- 2.37.4