From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 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 A6463C4708F for ; Tue, 1 Jun 2021 16:22:38 +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 B103D6023F for ; Tue, 1 Jun 2021 16:22:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B103D6023F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nic.cz 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 924C382EA6; Tue, 1 Jun 2021 18:22:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz 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=nic.cz header.i=@nic.cz header.b="SJ492KQH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 583AA82EBA; Tue, 1 Jun 2021 18:22:34 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9EA282EA5 for ; Tue, 1 Jun 2021 18:22:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from dellmb (unknown [IPv6:2001:1488:fffe:6:8747:7254:5571:3010]) by mail.nic.cz (Postfix) with ESMTPSA id 20C0C140B21; Tue, 1 Jun 2021 18:22:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1622564551; bh=d42yQZHJn8zUQQEUn8M/5oimp8ykrfyuxnJWxIaXZsk=; h=Date:From:To; b=SJ492KQHfq6biXr0V4BTah5Ij5/0NiWcD0fS5x8oAUVdnJcWvrNjraMkpaV2MRT48 5Dtfy2BfPJPv+PjD1LXq6Rk6kq0kFhj82v5q0sfUCXAmL0Zt6KfIroUSsPF6jbjpsC UHhlimdHUQlTBiHk9ZI3RAx+prjEJWdL3vWJGtkQ= Date: Tue, 1 Jun 2021 18:22:30 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Patrick DELAUNAY Cc: , Simon Glass , Heiko Schocher , Patrick Delaunay , Patrice CHOTARD , Miquel Raynal , Tom Rini , Pali =?UTF-8?B?Um9ow6Fy?= , Stefan Roese , Heinrich Schuchardt , Alexander Graf , Marek Vasut , Neil Armstrong , "Ryder Lee" , Adam Ford , Bin Meng , Harald Seiler , Tim Harvey Subject: Re: [PATCH u-boot v4 00/36] U-Boot LTO (Sandbox + Some ARM boards) Message-ID: <20210601182230.113e8107@dellmb> In-Reply-To: References: <20210520112425.25166-1-marek.behun@nic.cz> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Tue, 1 Jun 2021 16:59:52 +0200 Patrick DELAUNAY wrote: > Hi Marek, >=20 > I am trying to activate CONFIG_LTO for STMicroelectronics stm32mp15=20 > platform >=20 > (stm32mp15_trusted_defconfig and stm32mp15_basic_defconfig). >=20 >=20 > The config stm32mp15_basic_defconfig, with SPL supported failed to > boot >=20 > with gcc-arm-9.2-2019.12. >=20 > because a weak function is not correctly handle between >=20 > 1/ ./arch/arm/lib/cache-cp15.c: 96 >=20 > =C2=A0=C2=A0=C2=A0 __weak void dram_bank_mmu_setup(int bank); >=20 > 2/ the stm32mp implementation in >=20 > =C2=A0=C2=A0 arch/arm/mach-stm32mp/cpu.c:62 >=20 > =C2=A0=C2=A0 void dram_bank_mmu_setup(int bank) >=20 > =3D> The used function in SPL is the cache library, not the stm32mp > function. =20 >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 and SPL boot it OK when I remove the func= tion in the cache > library... >=20 >=20 > And the issue is also solved with I use a more recent version >=20 > gcc-arm-10.2-2020.11 on my PC. >=20 >=20 > Do you see the same kind of issue for old version of gcc ? >=20 >=20 > Do you think CONFIG_LTO require a more recent version of gcc that >=20 > the minimal version required by U-Boot=C2=A0 because I don't see this=20 > information >=20 > 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