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 66863C00140 for ; Mon, 8 Aug 2022 13:37:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B5F3F84841; Mon, 8 Aug 2022 15:37:30 +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="RrLZZ9gU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0DFFA84841; Mon, 8 Aug 2022 15:37:29 +0200 (CEST) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (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 3551B84822 for ; Mon, 8 Aug 2022 15:37: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=trini@konsulko.com Received: by mail-qk1-x731.google.com with SMTP id a2so6430186qkk.2 for ; Mon, 08 Aug 2022 06:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=dhYpz+5HhcCb2Aq1Rf+AbaEfZEPMS/RZp4aAIWWslhg=; b=RrLZZ9gUpKKTa9aC6DinkUmX9Nrsd79/OYZvYT0ZuL6dkA1lsk21wVXwiBYe5pLiev Trq02aAiJnBCWo3n5kvwG2PbsnZru4NKLrZCs0073XEaes3QSgi8jyDVRH1vKwqQ4eaV 25xpxfeMmKQO3PuFVi6DQVb0BpK5FLXpX3nFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=dhYpz+5HhcCb2Aq1Rf+AbaEfZEPMS/RZp4aAIWWslhg=; b=qJc88/zo8ftCXo/7Ve0nBTR8Tyz8VNKb1olA/o5XlSy1PM954D5qGouQH+nAw8ZtoP QFpwDiM59VEo/pAGqqvOeFjXh2u6J0hzcrFCW07Wr7dcbWD8Yfn8Ag8T4cuvPlp7Occl wNhsFdporN5hsq5Xs8arOqOG62xuaf3khRutYrZbPWL+YmG/ITBABtUJsJyjvb7Px0Eg tf80LpGl3RSN/GAMhL/rR85voREPGCZ3zqGW6I1HJK84dK8Z88FlsfADRlKdGAnFBMbS zlBDx61KU6OgUavZJjUA1Ksq6Ku8FQpJyX5DJ4QNEbNfru5FZLLn4xxu4oVrdqzr/H7w KgyA== X-Gm-Message-State: ACgBeo1P6UqfeTYzMnehfqBploDx8O7i2P7BdnrKKT140KEfAgghy9QS paA7HQYD3RpxL5myy74OVBiFt5+aW5Wm3d0Y X-Google-Smtp-Source: AA6agR5lxtcQKVUR8jl4Z3W8uXP6mpsaq4muHfIM8oMz50Y12X96vrVnMV/ziJ8TZK83cgRlxziiig== X-Received: by 2002:a05:620a:27ce:b0:6b9:402c:54b1 with SMTP id i14-20020a05620a27ce00b006b9402c54b1mr5849964qkp.27.1659965844914; Mon, 08 Aug 2022 06:37:24 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id t1-20020a05620a450100b006b59f02224asm9887848qkp.60.2022.08.08.06.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 06:37:23 -0700 (PDT) Date: Mon, 8 Aug 2022 09:37:22 -0400 From: Tom Rini To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , u-boot@lists.denx.de Subject: Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d Message-ID: <20220808133722.GM1146598@bill-the-cat> References: <20220805144731.GV1146598@bill-the-cat> <20220805145935.xumynhjbih3nekjq@pali> <20220805150340.GX1146598@bill-the-cat> <20220805151259.hdftfa3utfiq4i3w@pali> <20220805154400.GA1146598@bill-the-cat> <20220805155135.r5dctspg2oohzdev@pali> <20220805155453.GC1146598@bill-the-cat> <20220805201701.7t37kxn64qaiye3n@pali> <20220805222019.GE1146598@bill-the-cat> <20220808095149.2e0ed3ff@thinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="N5LWkbuPdxKa4hs6" Content-Disposition: inline In-Reply-To: <20220808095149.2e0ed3ff@thinkpad> 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.6 at phobos.denx.de X-Virus-Status: Clean --N5LWkbuPdxKa4hs6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 08, 2022 at 09:51:49AM +0200, Marek Beh=FAn wrote: > On Fri, 5 Aug 2022 18:20:19 -0400 > Tom Rini wrote: >=20 > > On Fri, Aug 05, 2022 at 10:17:01PM +0200, Pali Roh=E1r wrote: > > > On Friday 05 August 2022 11:54:53 Tom Rini wrote: =20 > > > > On Fri, Aug 05, 2022 at 05:51:35PM +0200, Pali Roh=E1r wrote: =20 > > > > > On Friday 05 August 2022 11:44:00 Tom Rini wrote: =20 > > > > > > On Fri, Aug 05, 2022 at 05:12:59PM +0200, Pali Roh=E1r wrote: = =20 > > > > > > > On Friday 05 August 2022 11:03:40 Tom Rini wrote: =20 > > > > > > > > On Fri, Aug 05, 2022 at 04:59:35PM +0200, Pali Roh=E1r wrot= e: =20 > > > > > > > > > On Friday 05 August 2022 10:47:31 Tom Rini wrote: =20 > > > > > > > > > > On Fri, Aug 05, 2022 at 04:21:24PM +0200, Pali Roh=E1r = wrote: =20 > > > > > > > > > > > On Wednesday 03 August 2022 12:13:18 Tom Rini wrote: = =20 > > > > > > > > > > > > On Wed, Aug 03, 2022 at 06:00:13PM +0200, Pali Roh= =E1r wrote: =20 > > > > > > > > > > > > > On Tuesday 02 August 2022 06:58:26 Tom Rini wrote= : =20 > > > > > > > > > > > > > > On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali = Roh=E1r wrote: > > > > > > > > > > > > > > =20 > > > > > > > > > > > > > > > Hello Tom! > > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > > Your commit de47ff536363289f92f85ed1e4901724d= 238432d ("Convert > > > > > > > > > > > > > > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") s= eems to be broken. =20 > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > I thought I had managed to mirror the TPL/SPL/f= ull usage that was there > > > > > > > > > > > > > > prior, but apparently some got missed. =20 > > > > > > > > > > > > >=20 > > > > > > > > > > > > > Yea, conversion to Kconfig seems that was incorre= ct. =20 > > > > > > > > > > > >=20 > > > > > > > > > > > > As the config files were just unclear, but you seem= to understand what > > > > > > > > > > > > it's supposed to be, a patch to clean it up would b= e most appreciated, > > > > > > > > > > > > thanks. > > > > > > > > > > > >=20 > > > > > > > > > > > > --=20 > > > > > > > > > > > > Tom =20 > > > > > > > > > > >=20 > > > > > > > > > > > Broken is also commit d433c74eecdce1e4952ef4e8c712a92= 89c0dfcc2. Seems > > > > > > > > > > > that all kconfig migration changes done after that co= mmit are broken. > > > > > > > > > > >=20 > > > > > > > > > > > I really do not have energy to investigate what and h= ow was broken due > > > > > > > > > > > to incorrect kconfig migration. > > > > > > > > > > >=20 > > > > > > > > > > >=20 > > > > > > > > > > > I did simple test. Applied following change: > > > > > > > > > > >=20 > > > > > > > > > > > diff --git a/include/configs/p1_p2_rdb_pc.h b/include= /configs/p1_p2_rdb_pc.h > > > > > > > > > > > index a6523753d5ca..489f24df0ab1 100644 > > > > > > > > > > > --- a/include/configs/p1_p2_rdb_pc.h > > > > > > > > > > > +++ b/include/configs/p1_p2_rdb_pc.h > > > > > > > > > > > @@ -624,3 +624,7 @@ __stringify(__PCIE_RST_CMD)"\0" > > > > > > > > > > > "bootm $norbootaddr - $norfdtaddr" > > > > > > > > > > > =20 > > > > > > > > > > > #endif /* __CONFIG_H */ > > > > > > > > > > > + > > > > > > > > > > > +#ifdef CONFIG_SDCARD > > > > > > > > > > > +#error > > > > > > > > > > > +#endif > > > > > > > > > > >=20 > > > > > > > > > > > And then called: > > > > > > > > > > >=20 > > > > > > > > > > > make CROSS_COMPILE=3Dpowerpc-linux-gnuspe- P2020RDB-P= C_defconfig u-boot.bin > > > > > > > > > > >=20 > > > > > > > > > > > And it failed, even when this defconfig file is not S= D card builds. =20 > > > > > > > > > >=20 > > > > > > > > > > Where is PBL in that case even then? =20 > > > > > > > > >=20 > > > > > > > > > P2020 (and older) are pre-PBL boards, they do not support= NXP PBL > > > > > > > > > header. =20 > > > > > > > >=20 > > > > > > > > Ah, OK, then it should just be removing TARGET_P2020RDB fro= m the choice > > > > > > > > on "Freescale PBL load location". > > > > > > > >=20 > > > > > > > > --=20 > > > > > > > > Tom =20 > > > > > > >=20 > > > > > > > I just do not understand. > > > > > > >=20 > > > > > > > P10** and P20** do not support NXP PBL. They support only pre= -PBL and > > > > > > > for SD card pre-PBL support I added option FSL_PREPBL_ESDHC_B= OOT_SECTOR. > > > > > > >=20 > > > > > > > But CONFIG_SDCARD is automatically set when SYS_EXTRA_OPTIONS= contains > > > > > > > "SDCARD" string and CONFIG_SDCARD is used then also in P10** = and P20** > > > > > > > SD-card version of SPL to load proper U-Boot. =20 > > > > > >=20 > > > > > > So CONFIG_SDCARD was over-loaded? That's very frustrating. That= 's what > > > > > > needs to be corrected then. =20 > > > > >=20 > > > > > But it was correct, no? CONFIG_SDCARD ensures that U-Boot is comp= iled in > > > > > mode in which can be booted from SD card. Or what do you have in = mind as > > > > > purpose of this symbol? > > > > >=20 > > > > > The issue is that your Kconfig migration changes enabled CONFIG_S= DCARD > > > > > also when building (parallel) NOR version of U-Boot. =20 > > > >=20 > > > > To me, the biggest issue is that "CONFIG_SDCARD" exists. It's very = much > > > > non-descriptive and that for some platforms it means "we have NXP P= BL" > > > > and others means "we're booting from SDCARD". The former should be > > > > renamed to be descriptive, and the latter should re-use CONFIG_SD_C= ARD > > > > which is still a bad name, but what everyone else uses, so makes > > > > renaming it later to something less bad easier. =20 > > >=20 > > > So I hope that you will do something with it. I already spent lot of > > > time to fix and improve powerpc support, but the result is that my > > > patches are on the list, mostly ignored; but changes which are breaki= ng > > > powerpc support are happily merging. In this state I'm loosing any > > > motivation to continue development as it is needed to do again to find > > > out what new is broken. =20 > >=20 > > I'm not planning to try and further fiddle with those symbols. A > > simple revert is not possible as CONFIG_SYS_EXTRA_OPTIONS is gone. I > > assume that Marek will be picking up your PowerPC patches at this point, > > so any further work you're doing in that area shouldn't be delayed. > > I'll put re-examining this on my TODO list, but it's below finishing my > > CONFIG_SYS_* audit, and then renaming stuff to CFG_SYS. > >=20 > > You should fix whatever platforms you have access to and ignore the > > rest, I feel likely to be removing most of them shortly at this point. > >=20 >=20 > I shall try to fix this on our platform by "reverting" these to > different names, so that there are no new CONFIG_ macros. OK, thanks. I'll "fix" the corenet_ds platforms with a removal patch soon, since they've been orphaned for a long while. --=20 Tom --N5LWkbuPdxKa4hs6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLxEZEACgkQFHw5/5Y0 tyxTlQv/QU8rQrRXxl3AGwbfC8RAXGNm1nlP9mIhlGe0lKQe6Uji2+tJB66ZhoBT vgb6FBPKz0WqvVkp03A6S/SGyE6ukrLy1k2ri27y5eXGZY/jGG+t4x8o2i3sAQoC uH8iPi28mAq1G+fwoyZohNr8WCskXzAg1Zma429fiSMO9n+t/5+KtnYpN4oiTGQr 7F+QhshdyZrtmecSiYDo0Zfa4LLNyMCI9C0XnlLi/aqOVk/ePsmf3NxTZrGRgX5K ULz6QVcZG1GeUcbiuz5o443rpiJLdNnTYgzK8rsWsimj0r1xdQt6zPShrf06eelm JWWs5tsUDFDF7fDVy7dvFQ3uQmIcO9RHF9BReGtO3dw4PxuMSzFUC6HMKrzk7rLB g602nd6Xfni/wNVRQ9ryW+5eVXxjv89T56S6FbXlcWoj9Er6CAaZ4lDFYM2d2UW9 pt8LYGprP4Ab4AytvHNq9qBYxe5kgXxf57QAlYAb8PSzU2n/rpFwIG3xXKpMBzjT d8rKVtaM =sAHq -----END PGP SIGNATURE----- --N5LWkbuPdxKa4hs6--