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=-2.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 B75E2C47092 for ; Tue, 1 Jun 2021 16:56:15 +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 C76F9610C9 for ; Tue, 1 Jun 2021 16:56:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C76F9610C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de 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 0690182EA5; Tue, 1 Jun 2021 18:56:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="Qe0LB/FM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9C37582EA6; Tue, 1 Jun 2021 18:56:09 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.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 0C04982CB2 for ; Tue, 1 Jun 2021 18:56:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622566555; bh=f8BjHEzRgxlvta2LSZQbjIpbkQ4fOPJgopHexexUIYs=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Qe0LB/FMj6utGM8Hegxq4sEFadogoiAcqr65xViMij5fvbolyVE/yZEAPfQ1UO1SO 7E6nlh1JpEnROmunM9kk6PfrZzy3gX0NWgouZ75nQYBLCapJismr7NLudkFUCf5rF/ 97frRABfAFKklbaludqJFjrBCldkXlVuGIbVgblM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.35] ([62.143.247.63]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMGNC-1m3zsD1hdm-00JHwT; Tue, 01 Jun 2021 18:55:55 +0200 Subject: Re: [PATCH u-boot v4 00/36] U-Boot LTO (Sandbox + Some ARM boards) To: =?UTF-8?Q?Marek_Beh=c3=ban?= , Patrick DELAUNAY Cc: u-boot@lists.denx.de, Simon Glass , Heiko Schocher , Patrick Delaunay , Patrice CHOTARD , Miquel Raynal , Tom Rini , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Stefan Roese , Alexander Graf , Marek Vasut , Neil Armstrong , Ryder Lee , Adam Ford , Bin Meng , Harald Seiler , Tim Harvey References: <20210520112425.25166-1-marek.behun@nic.cz> <20210601182230.113e8107@dellmb> From: Heinrich Schuchardt Message-ID: <35625d48-da6d-5f21-55fa-bd3972e38d3f@gmx.de> Date: Tue, 1 Jun 2021 18:55:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210601182230.113e8107@dellmb> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:3s/Tq5VuNxAsEBHqRFvMUnb1Rv194o5N5a7HPmlNsl/0V+lg3Qr cRf6Yr+1/SZSkm30iuTpln4Xtyje7+FIJ54onOr6y9EzBidsMMYergy71PLmno9IcI42peX r7xJXXj9Ablohk0cKPvXROmwmtb4tiF528aee/lzs+a0BVS53H/hdYG6US3wumzdxvmpj5s yeXbDwicWNp+JjIL8I8nw== X-UI-Out-Filterresults: notjunk:1;V03:K0:TIvxYNRYM7I=:vlbgIueo8SmmD21JbE99UC CrampW/jpiPWW+m9jTLd0uaaCDuiHgYHTY1a1auIxzBWiPS3fsk7hymeiT7CsPc+c4vDzXHcb A3ZZ/Ik8e7XEWaKJXk2OGYeVfSfKZlhviypvuRQ/vOJfMP2skQOTQhWj4aN7c2hlfM7WbOm8W ORVntG/a6QwjAeb+MlL6gfqg+dShM2McI/igenpQnMSceq8a2CaLcy/pef0IL543ThlINNL8V rbBziQNXDOd+Aiuaqq771OHiPPw0r1H6R3tGrt+UYlWSlwTanAd4L3tmRBmhs++CFSwgyK5DX XmZ4f5mli6S1tIf6Lr723NGpe3+m1BwH98bWh+KCt15dfWU9PE7PsrO34w/S3/09uIMmvEv6t KGLhMPOaDz3aDrsQK27Vfbruk8cmak+9ihNrs6HsMndyweCy434PATSdRCE9dhy8mKmrriOP+ EN2qww6saM7SjlwsLMXvNLvFpWJPDiBjlwXCcU/fWV14WqpLc1kxnO9/SUrOnzOJet/EC5rHM rUGujVQ+9RXm8Qg/wdOTx2ts4SGjelogKpcX8K42bjTQHTHLa02D1RI5YxR54B4Z1fzkAGLKe tnXO5jPEhsImWkoCzpacmGSufGUev9n9cln6S/MDRGtwHwiAVAsOoS8NYHrMpKmmrOI5d4+Cd RrucHy49NCeoG+xb2AOs/m5Xp6/tDpexMdJGeZ+T4THH5CHj4MyNRsx1w//UF0/kgBGPU15Fl l9BcBAS8Thzm2xHwV5wVuaTB9UoHgn6L9iC5zdMgdPau+Ek1zObeMGQCljISJXAsP521cRdBt Y+wwq2C1vBXCxFqEOl32ePyfebzymdg5j2kEB2M3qATWIg2yXRmUx9C/R1FV7G8GksKp5wOra TKw40CKnGv4cmINLefSkRDm8RDjCiMXbSdOEJBqxjjJvPXgvOabmvzAhujPE4xnJ+iJAXC8x5 cN5afepllUumkBTDlHehWPO9dHaV7gcGG0KhevjUcGUFjlZQZGTXTIVA0iycd7Eud0PzqGZI1 wsQ8MRbIaCZuWRCAyb5Xd0W1WHyog8VS6SF1oyzzM9WpKR+6hS7bbSiSbCs3VYQ2GIpWgNpfO M0dmzLS5Nf513Tk8lgb4pkmMBHuQZVL2/D0 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.102.4 at phobos.denx.de X-Virus-Status: Clean On 6/1/21 6:22 PM, Marek Beh=C3=BAn wrote: > On Tue, 1 Jun 2021 16:59:52 +0200 > Patrick DELAUNAY wrote: > >> Hi Marek, >> >> I am trying to activate CONFIG_LTO for STMicroelectronics stm32mp15 >> platform >> >> (stm32mp15_trusted_defconfig and stm32mp15_basic_defconfig). >> >> >> The config stm32mp15_basic_defconfig, with SPL supported failed to >> boot >> >> with gcc-arm-9.2-2019.12. >> >> because a weak function is not correctly handle between >> >> 1/ ./arch/arm/lib/cache-cp15.c: 96 >> >> =C2=A0=C2=A0=C2=A0 __weak void dram_bank_mmu_setup(int bank); >> >> 2/ the stm32mp implementation in >> >> =C2=A0=C2=A0 arch/arm/mach-stm32mp/cpu.c:62 >> >> =C2=A0=C2=A0 void dram_bank_mmu_setup(int bank) >> >> =3D> The used function in SPL is the cache library, not the stm32mp >> function. >> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 and SPL boot it OK when I remove the f= unction in the cache >> library... >> >> >> And the issue is also solved with I use a more recent version >> >> gcc-arm-10.2-2020.11 on my PC. >> >> >> Do you see the same kind of issue for old version of gcc ? >> >> >> Do you think CONFIG_LTO require a more recent version of gcc that >> >> the minimal version required by U-Boot=C2=A0 because I don't see this >> information >> >> in the serie? > > I only tried compiling with older versions in the CI. > > On the devices for which I tested it I only compiled with newer gcc > (10.2.0) since it is the stable version on my system. > > But yeah, I suggest to use newer GCC for LTO. > > Marek > gcc (Debian 11-20210327-1) 11.0.1 compiles stm32mp15_basic_defconfig with CONFIG_LTO=3Dy. Best regards Heinrich