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 8AD8BC77B61 for ; Thu, 27 Apr 2023 14:38:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16D30862A0; Thu, 27 Apr 2023 16:38:26 +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="mvqwXfQR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A6007862CD; Thu, 27 Apr 2023 16:38:24 +0200 (CEST) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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 253A485859 for ; Thu, 27 Apr 2023 16:38:22 +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-yw1-x1135.google.com with SMTP id 00721157ae682-54fb89e1666so67800147b3.3 for ; Thu, 27 Apr 2023 07:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1682606301; x=1685198301; 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=+1gjRaaTjJRE51FHwAffvyLdxaG7ArRaUHwY0kqCXek=; b=mvqwXfQRIGtTJsZ8rlr98ZzjmHWESyx4m9NCkUga+vlZ3CByJSgtzagdBo+ncGcl7f h8IxH3AYU182D6C7FOf08Z4ePIJ9lvs1nAiBXTXVSveS4gkuFvw+H9a49yk5otn4SkgT hD6B8+gH/MhEBTolvT0z39rKkJtn3fmH/O9QI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682606301; x=1685198301; 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=+1gjRaaTjJRE51FHwAffvyLdxaG7ArRaUHwY0kqCXek=; b=f/VCD6PhjzqvMbJSy12VZn8dgA/WhUeibZMJRSQ6Stc4Rcd3q6eo2TMQrrcALqJzKw ZNlYEIMBret2ZOW1LJRFPOvUTlL1oNH9TicRJrdcm+Le1EGXligrZF/W67g4npd7kcsp sjSNKXelPTOhgU2sub3kTv3JOXRXwbtnSw7PHMVX9Xz6xM5Fm99lWzYvz960bBldhY/P Lm7j1IRUIxh2sBDHBziJsKPiY1FuQWGSm1eRq/N3Hzbk9QTqPeJU7ldUrysO+7V/UMwq cYFnp+F90F6HzgX+eoog+lIl6HUX6KDzkZ2CtxDKsZAE2tMrauDx6QSdQ+ahRGwWNawv MVSA== X-Gm-Message-State: AC+VfDxp4v6rrUfyMTM5SNj7GaX3EEh1Dd3mLwwJYivBxZgC/AwmY5jj 3tS+vnaMQOFC8ErQnMMQ2YXD0w== X-Google-Smtp-Source: ACHHUZ7pOY7G0nt9ZD1133kViecoseAjanN9/UfAoUZzuxtREbf2e5K6YBnSkefc5cLbYazhJUTvbA== X-Received: by 2002:a0d:d944:0:b0:54e:a6e3:4f28 with SMTP id b65-20020a0dd944000000b0054ea6e34f28mr1530990ywe.20.1682606300917; Thu, 27 Apr 2023 07:38:20 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-67eb-5daf-6f91-70b5.res6.spectrum.com. [2603:6081:7b00:6400:67eb:5daf:6f91:70b5]) by smtp.gmail.com with ESMTPSA id g137-20020a81528f000000b00545a081847esm4843638ywb.14.2023.04.27.07.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 07:38:20 -0700 (PDT) Date: Thu, 27 Apr 2023 10:38:18 -0400 From: Tom Rini To: Stefan Roese Cc: Eugen Hristev , u-boot@lists.denx.de, Eugen Hristev , Pali =?iso-8859-1?Q?Roh=E1r?= , Nicolas Ferre , cristian.birsan@microchip.com Subject: Re: [PATCH] configs: at91: sama5d2_icp_mmc: Enable CONFIG_LTO Message-ID: <20230427143818.GC1134230@bill-the-cat> References: <20230427085945.475619-1-sr@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dd52H2dl90hOJAkL" Content-Disposition: inline In-Reply-To: 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 --dd52H2dl90hOJAkL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 27, 2023 at 11:26:46AM +0200, Stefan Roese wrote: > Hi Eugen, >=20 > On 4/27/23 11:19, Eugen Hristev wrote: > > Hi Stefan, > >=20 > > Thank you for the patch. > >=20 > > This I guess is a workaround such that you can add a bit more of code. > > In the end, it's not scalable, and we have to find a better way, > > probably by removing some of the code to make the SPL smaller. >=20 > U-Boot image size increase resulting in overflowing some limits is > a common problem, especially in SPL. Enabling LTO gives quite some good > improvements in image size decrease. So I don't think it's an > workaround. >=20 > > How does this impact the size? How much we are gaining ? >=20 > I did not measure this. I just checked that this target compiles clean > again with LTO enabled and the MMC related patches applied. Note that buildman already has flags to tell you how much the size changed and in what functions between commits. --=20 Tom --dd52H2dl90hOJAkL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmRKiNcACgkQFHw5/5Y0 tyy1nwv/SRby19k6PhJnmyUr00BP7SppCQdT4HC41M34ViF2F+GdQRMwwif3gbUb h10BcmdIfbeNsLqePJ7tGlgN7837GDBtite5ROjMqac6Uouu6mKBGrjFZebuwEf1 z5VweRHy/68noSdWQfYvj/zmafFAm4pdLPG9xylxUOwazELFX8rhTt9m2gH5mV1m x8uPFqRK8C+CFbbFTeW5F6uZktwfvUake60T2Jsq81haTau2A613JU1iqqKQOo24 rz7dgT1Dvx/dMw1o/R0JU9uict/kSLF66PTBaDGRBuHZ+yrygWOlmeis9ICgUzaw S4hoUJaPUv0X1HH8j9o0I4cooJOqyr2Rfod2Kw606mlIGTH5bsFoUyxLQHba8CLo vZ89SwtvOh5bRZx3f6LTrAxLdHFlT0sfDzmnfoggs9LbSVAMQGAFFeu/RXksTOuk K5A8y9rsnF3Zj5W1uJPEe6wBRkT7ku1PBrCteFQfsoOm2txJxnYfvvP9F3INt8mc PKDuigZs =lQdF -----END PGP SIGNATURE----- --dd52H2dl90hOJAkL--