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 0DD71C001B0 for ; Thu, 10 Aug 2023 22:11:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F419B86898; Fri, 11 Aug 2023 00:11:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="E+ci0UQ2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 108F08689A; Fri, 11 Aug 2023 00:11:45 +0200 (CEST) Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (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 BB0588666E for ; Fri, 11 Aug 2023 00:11:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-d6265142e21so1290011276.2 for ; Thu, 10 Aug 2023 15:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1691705501; x=1692310301; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JQoss0l5ynfpyqFkNdejdfmGAoDHeThuyhOJZWjHdU4=; b=E+ci0UQ2rtWd35ijeVvhaDPg1jYjuxybxKV/uTHHkKSj1VFEHjqZz98dFi7vHYP3/q UcrIp7CKkcCXYECg/3RcDNo22vEEKq+RHPbMYrQ8mTzGzmKeDXD7igxprMD+Zu1pniKD jfnbca08SyIKHzBcw/y0UdNTq1j7p11aGZWZs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691705501; x=1692310301; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JQoss0l5ynfpyqFkNdejdfmGAoDHeThuyhOJZWjHdU4=; b=FfHDILjLQFdVd2wchjTWfalhMLf2Q+rE8bcPf0Mo1DKxZ3CNRUIqyN6I2DemcOix6q KEpR0PZCrLKe1yrBoMYWVfE2RCuVYBByP1A5AyfDx3DMaMBao5ECK7OK4i2P0YZpuMqE cGXyo6x0q5echEDFWIQ7DLWgryj6njU/a4XeyAZYFHFeSdxKHLowKbRKuTpyylXyU7Nc tkaIt680MuO/cyO6kwJpoSfgIEhs3VmWf9SM8czIfvWgFHG7TFghMdWbtUZGrPfyWUus S7JcuLd4UcUNZw3RJcY3sEEzeEFYVQA5n44r9JHnt/rloH/dVKcJNZjXMAHzKVWXFg4V a+yg== X-Gm-Message-State: AOJu0YzNhkTV6t0bpeLXyXW4uKGerq+fJJBMb1Usg8Mz34uBNJsZbtUu NlM4pEhzfk2nsl4kQqPCZJuZ/Q== X-Google-Smtp-Source: AGHT+IFIHgQtKKN0vMWDH63lpGE1/HEYJyGpAgc7gEitNYG1qs21eR/zN1pWnjp28WMMdI5ZHc0CHw== X-Received: by 2002:a25:cbc7:0:b0:d35:c50c:8ed7 with SMTP id b190-20020a25cbc7000000b00d35c50c8ed7mr33656ybg.24.1691705501322; Thu, 10 Aug 2023 15:11:41 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-ee99-caf6-403d-17d4.res6.spectrum.com. [2603:6081:7b00:6400:ee99:caf6:403d:17d4]) by smtp.gmail.com with ESMTPSA id s3-20020a25aa03000000b00d62ee7cd6fbsm584467ybi.20.2023.08.10.15.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 15:11:40 -0700 (PDT) Date: Thu, 10 Aug 2023 18:11:38 -0400 From: Tom Rini To: Sean Anderson Cc: u-boot@lists.denx.de, Simon Glass , Heinrich Schuchardt Subject: Re: [PATCH v2 3/4] malloc: Don't statically initialize av_ if using malloc_init Message-ID: <20230810221138.GY3630934@bill-the-cat> References: <20230808225320.310926-1-sean.anderson@seco.com> <20230808225320.310926-4-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sMvGfioK6Nh3VCNE" Content-Disposition: inline In-Reply-To: <20230808225320.310926-4-sean.anderson@seco.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --sMvGfioK6Nh3VCNE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 08, 2023 at 06:53:19PM -0400, Sean Anderson wrote: > When we enable malloc_init, there is no need to statically initialize > av_, since we are going to do it manually. This lets us move av_ to > .bss, saving around 1-2k of data (depending on the pointer size). >=20 > cALLOc must be adjusted to not access top before malloc_init. >=20 > While we're at it, rename/reword the Kconfig to better describe what > this option does. >=20 > Signed-off-by: Sean Anderson > Reviewed-by: Simon Glass As-is, this leads to a failure to build on ls1012aqds_tfa_SECURE_BOOT and a number of other platforms. For v3, please throw this at CI, either in Azure or GitLab via the clock tree, thanks. In specifics, I've thrown this and the fls/ffs series at my lab and it seems to cause mx6cuboxi to fail to boot (a Pi 3 in 32bit mode, and am335x_evm are booting fine as are the Pi 3 in 64bit mode, libretech-cc, pine64_plus, am65x_evm_a53, and j721e_evm_a72). I did a size comparison build again and the whole log is at: https://gist.github.com/trini/2e88e94743821586ef742a936c45c389 as there's some oddities again (like SPL growing). --=20 Tom --sMvGfioK6Nh3VCNE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTVYJcACgkQFHw5/5Y0 tyzU+wv/UKIkj+NTc3MXpNg0KPr45opl2k6PNDdcCIqrqokBzFfMcBRc6p0SD5hv VnRVNPuEUsKn+XIW4I5FS4ACkFV1y1nAsnhtuX6zj9q2C7646OPx2lez3Mtg6lcW Wq3d4olDEbtKAUoPgdl2x1sBMDSPIUfALQck+M8fxpjGimrmmC4jgK93GlCcNcYt Ee+c8C/eFgf/YyKugVSqDGyboVTMCLIz35TLICWKmv48MjknbHk6/hdbcpw/sh3+ OP8jgJbDApvmqMc/pkYbp5/rjF8/qp26DXyJMA8pJ0PJ+x4ODAd7k21H/PW705KO l5QRfiiNnnoSrNgb4RhjFUSiOssnwmnCnEuC0ciRfVxx7NdXISak7iuo/IxTNOs1 a9OJdQMqgA7AWxCBiZ4zvJ+soDTxxWwHpNERpxIZFI+/Cg/EK6h9+mvdbSNbycOl ukVLyKBQcVC+NEpAv9nfrC+4/o/+0thXAjeexU/7UVWBPYbDeUqtaUZvplBEWBRG 26ZQvKJg =TKcR -----END PGP SIGNATURE----- --sMvGfioK6Nh3VCNE--