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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 389FDC07E96 for ; Tue, 6 Jul 2021 23:43:41 +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 1E260619AC for ; Tue, 6 Jul 2021 23:43:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E260619AC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 03D8582D92; Wed, 7 Jul 2021 01:43:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="AUIwAVPB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE27D82DA3; Wed, 7 Jul 2021 01:43:35 +0200 (CEST) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (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 CC8CA82BE9 for ; Wed, 7 Jul 2021 01:43:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ricardo@foundries.io Received: by mail-pj1-x1036.google.com with SMTP id d9-20020a17090ae289b0290172f971883bso1951827pjz.1 for ; Tue, 06 Jul 2021 16:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4C1a48031wyYyzZ/XnVaMbwb/uF90+Y6ijst+8U3F2k=; b=AUIwAVPBnp0ZqTfnDxSWfHo0NmXZwkpFAaE3MOBtH7ABpghlofuomL2vaDUkDbgNmG 5fuXgm+DhjgfCWoOj1FULBn/sBNpXXq1sF55DuQoSIVyOoLtixxyByOg8F7bsK2GJVw5 EsZVXt0b5HJfKiF6DxiZxc0GPHbdnwzqBzoztOdQbq0gtrQoZJvnWaKoHvPj5QPTAZRY voVm/HmSA4js3EAfJGEibSR9SVhi8XCeYsvl3DhFjLFW1gYC1P+N1oBgz9ti4bh3AIJL CIljGVo7RH4Ia2oUxcypIv8AbRpSe36M0h/ikhd+erqaFSXmpGUiWD+k1CoU1yS+9hhM WSKA== 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:mime-version :content-transfer-encoding; bh=4C1a48031wyYyzZ/XnVaMbwb/uF90+Y6ijst+8U3F2k=; b=thpSOGV38ySB0TJ4LOzcAmHC0Sd59oQwfEeKRgprMdOC6EJ2+ZQLiw7XFGblfS/q0o 4KBX4y20K94dWMfVCU1ANuCA7mXI2Y8D/6A8xUQFC+D45RV1PrgJrLcWwreTBNYg0vsf YO+tyzb+Kbx9hOZlePSCxeo6vBMRLRmZLLt739dbZ5zTme957wS3vX/QXUNl31LwoO/H 9qTAieX45jdP3uvMSdq2CHqMh5Ph5ly0bmesxwS2a7FVCFd4Vj5nKB64l24mGWhPVPDA oYMAI3ztorO0MAdhRIe6c00Tsr+XXmJM4n8HS2bTrUysD1eeYtM0N6c8H1rVJ/5N3SxE /daQ== X-Gm-Message-State: AOAM532UQ13Y2Z0Km7K84VO7sUVNrPhN7kM0iDVKLrl4aSMt8x9+I5lB 2y6+dpGx/ZWv8VTbkRKYvn32SOn1G419 X-Google-Smtp-Source: ABdhPJzold8I2srrJycV3KUCf6WSaXgxp/f2tZPVDdn+0nqFD7i66cwa2aFaGdd6XGIe8VAOxzOX9Q== X-Received: by 2002:a17:902:e744:b029:129:a87b:eb16 with SMTP id p4-20020a170902e744b0290129a87beb16mr5208794plf.44.1625615010406; Tue, 06 Jul 2021 16:43:30 -0700 (PDT) Received: from localhost.localdomain ([2804:7f5:f480:8245:dca9:3cd6:a870:11ae]) by smtp.gmail.com with ESMTPSA id cl14sm15439847pjb.40.2021.07.06.16.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 16:43:29 -0700 (PDT) From: Ricardo Salveti To: u-boot@lists.denx.de Cc: michal.simek@xilinx.com Subject: [PATCH] xilinx: zynqmp: increase CONFIG_SYS_SPL_MALLOC_SIZE to 16MB Date: Tue, 6 Jul 2021 20:43:01 -0300 Message-Id: <20210706234301.4039318-1-ricardo@foundries.io> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 commit 03f1f78a9b44 ("spl: fit: Prefer a malloc()'d buffer for loading images")' changed the way buffer allocation worked for SPL to a more flexible method. For xilinx zynqmp the 1MB buffer is not necessarily enough when dealing with complex fit images (e.g. containing FPGA/TF-A/OP-TEE/U-Boot proper), which can easily reach up to 10MB, so increase the default CONFIG_SYS_SPL_MALLOC_SIZE size to 16MB to cover more advanced scenarios. Signed-off-by: Ricardo Salveti --- include/configs/xilinx_zynqmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index cadaf1a9631..bfe8a204279 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -261,7 +261,7 @@ #endif #define CONFIG_SYS_SPL_MALLOC_START 0x20000000 -#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x1000000 #ifdef CONFIG_SPL_SYS_MALLOC_SIMPLE # error "Disable CONFIG_SPL_SYS_MALLOC_SIMPLE. Full malloc needs to be used" -- 2.32.0