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 8F9FCC4332F for ; Thu, 22 Dec 2022 18:23:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34CD88535C; Thu, 22 Dec 2022 19:22:59 +0100 (CET) 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="Bx5Qsw/T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 999848500F; Thu, 22 Dec 2022 19:22:57 +0100 (CET) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (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 ABDEC8118B for ; Thu, 22 Dec 2022 19:22:54 +0100 (CET) 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-qv1-xf2c.google.com with SMTP id u10so1756097qvp.4 for ; Thu, 22 Dec 2022 10:22:54 -0800 (PST) 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:subject:date:message-id:reply-to; bh=QHnnB82c6ODETppaYsR0N9NEsYy0DyXFjSt9GuXxpAE=; b=Bx5Qsw/TNfSexRwsYHjUFrbXpA0sqXyOotHpK1A7J3pbysqmSfHUHPeuOpTvhWWNo5 7PoCM0qc4oPa797eFBB1D+Iupfb/B/VjDuFydjN5FaEUZumanrVF2HNSYMFtnHQleWRA VJef30HOf/9gVyMa7mmLHRJqdTM/ky/9TCQBQ= 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:subject:date :message-id:reply-to; bh=QHnnB82c6ODETppaYsR0N9NEsYy0DyXFjSt9GuXxpAE=; b=p+JaqeJt3dEehhZaqciifeqqZ+qJerX2RvebFF0Y+ieI3G7UGf1of8HHhzU486POD6 XyVytzUX4qX5qPyOCAzdRiyuwB82EymyBtkBKO5aVAhpqamYWcPZQI+ZXAfqozh+abcr XNTyhw14bii92AJeer1kYCTETBo5OiV3fsE6uR+gZs9cG2w0tRTL1XslMuJvrJopgw84 AfN6bAME/0ai5zLM+M8FQbL+cYapOI9tDc+kBjFwIzLgrghZrjCEVhBNCPEib0GNMou6 B0Q2vjFoM3xrKAVBe2Hb5lfltm5AEqhLYqI/K+dfZzZ8hu2j4RWGw2hjthLIV5HO/TWu Mzsg== X-Gm-Message-State: AFqh2kpjTLBAV8k0cGlPWNsp98iSpO3QZkJTMwKv07QxoynjkicZzd3P lrb8Xgf1xE2012RLYrsA1NS0bw== X-Google-Smtp-Source: AMrXdXu10cI0cyTIrmDzx++yd+9uDY5MlVlRiPL5lFKSpWwDxmaNF28dTnGxKz/3sPY8snB5cLFZ3Q== X-Received: by 2002:a05:6214:2d43:b0:4c7:1c72:58f3 with SMTP id na3-20020a0562142d4300b004c71c7258f3mr10188360qvb.43.1671733373367; Thu, 22 Dec 2022 10:22:53 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0489-d0bf-dcad-62f5.res6.spectrum.com. [2603:6081:7b00:6400:489:d0bf:dcad:62f5]) by smtp.gmail.com with ESMTPSA id q188-20020ae9dcc5000000b006cbc00db595sm710430qkf.23.2022.12.22.10.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 10:22:52 -0800 (PST) Date: Thu, 22 Dec 2022 13:22:50 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: u-boot@lists.denx.de Subject: Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 Message-ID: <20221222182250.GO3787616@bill-the-cat> References: <20220803160013.4oh6x4glh2thtcog@pali> <20220803161318.GS1146598@bill-the-cat> <20220805142124.6swsha6aj62f33e3@pali> <20221216215639.vj4kffhcresvamqp@pali> <20221222025415.GH3787616@bill-the-cat> <20221222074947.iqulzr3s77j5jbva@pali> <20221222142927.GK3787616@bill-the-cat> <20221222171306.2nzlippi6zcyhpiz@pali> <20221222173332.GM3787616@bill-the-cat> <20221222175640.kqtofoxaupfchfby@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WaKLOOB10zAPZY4V" Content-Disposition: inline In-Reply-To: <20221222175640.kqtofoxaupfchfby@pali> 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 --WaKLOOB10zAPZY4V Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 22, 2022 at 06:56:40PM +0100, Pali Roh=E1r wrote: > On Thursday 22 December 2022 12:33:32 Tom Rini wrote: > > I'm sorry you're frustrated here. I'm also frustrated here because the > > #ifdef games that PowerPC used, in a number of places have been very > > hard to un-wrap so that we can have something other than a home-grown > > build system. >=20 > I was already trying to reduce it too, some patches I sent, some other I > was preparing and some other are part of turris 1.x platform, which is > waiting there for 6 months. I planned to apply removal of MMC symbols to > other P1/P2 boards, like it is in turris patch, but after turris patch > is merged... which did not happen yet. Right, and thanks for what you've done already. > > And I've tried to take your other feedback in to > > consideration, which has resulted in a large number of symbols being > > moved to CFG_... instead of Kconfig, as you're right, it wasn't the > > right mechanism for them. > >=20 > > So, is it really just the 3 platforms that use p1_p2_rdb.h that need > > neither SDCARD nor SPIFLASH for the NAND and no extra suffix defconfigs? > > Or is it the P1010RDB ones too? >=20 > It applies for e500 v1/v2 cores, which is cpu/mpc85xx in u-boot and > predates P3 platform. If there are not some suspicious symbol names then > it should match any board which uses ARCH_MPC85??? or ARCH_P1?? or > ARCH_P2020 symbol. >=20 > P2040 and T???? do not have e500 v1/v2 cores (they have e500mc or e5500 > or e6500), so you can ignore these. OK. > Is there any tool which can list all defconfig files which defines some > of those symbols, including transitionally? With the caveat of only symbols in Kconfig, tools/moveconfig.py -b will make a database that you can consult with -f. That takes both SYMBOL and ~SYMBOL to list configs with SYMBOL enabled or disabled, respectively. And you can chain them together. For example: $ ./tools/moveconfig.py -f ARCH_P1010 SDCARD 8 matches P1010RDB-PB_36BIT_NOR P1010RDB-PA_NOR P1010RDB-PB_SDCARD P1010RDB-PB_36BIT_= SDCARD P1010RDB-PA_36BIT_NOR P1010RDB-PA_36BIT_SDCARD P1010RDB-PB_NOR P1010= RDB-PA_SDCARD $ ./tools/moveconfig.py -f ARCH_P1010 ~SDCARD 8 matches P1010RDB-PA_NAND P1010RDB-PB_SPIFLASH P1010RDB-PB_36BIT_SPIFLASH P1010RDB-P= A_36BIT_NAND P1010RDB-PA_36BIT_SPIFLASH P1010RDB-PA_SPIFLASH P1010RDB-PB_NA= ND P1010RDB-PB_36BIT_NAND > It looks like that there are other boards just than P1010RDB which are > affected. For example I see there: TARGET_SOCRATES TARGET_QEMU_PPCE500. > Default boot source is FLASH and just few boards can have multiple boot > source (which means that have multiple defconfig files with those > suffixes). And obviously SD card boot source must not be enabled when > (default) FLASH is used. >=20 > Note that u-boot for qemu e500 board can be started in qemu and hence > tested if works without need a real HW. There is also documentation for > it, recently I sent a small doc patch. >=20 > Seems that similar CI test like test/nokia_rx51_test.sh could be useful > here. Note that we run qemu-ppce500 as part of CI normally. What makes nokia_rx51 special is (a) the specific QEMU required and then (b) the Linux boot testing. qemu-ppce500 starts up and runs our pytests only. Any updates to doc/board/emulation/qemu-ppce500.rst with more useful information would of course be appreciated too. We configure how qemu is fired off here is https://source.denx.de/u-boot/u-boot-test-hooks/-/blob/master/bin/travis-ci= /conf.qemu-ppce500_na and I suspect that how we fire up QEMU means that the issue you're noting isn't triggered since we don't boot it from flash but instead pass the binary. --=20 Tom --WaKLOOB10zAPZY4V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOkoHcACgkQFHw5/5Y0 tyxuXAv7BPkyRCPDZnRnWp9URYRuRaP65/NCNdgRt+mhMGoJNVK3zPJ3YYmQOv/x zbMEexCDnF9FLdaJCa3aI+U3XYPOYzhl1nH0ruoDvJE0ggpG7kTXWlCvDGgAmIVy Y9VtnQgGelPYlfdjE3mcHEWToYbJYZq/oFYZZgt15EendrTqS6q7/+zapQ8k51ZA cmjsoxrYs4VJvaGVidH3QqJs7K4Dd8zNTdCdlbVclJbM985GLhM6kumAMEuG5Jk1 Fv0uIYRjhc7Mvw0SrrDQsZlokxar2YzwBv/R354QSTBNxo4bWn0s1wPPbjxFk5p2 UJCwAHRXj25nVxbw/7+4rYaWhVob7WvMSfkcGdNrcePmgDR6paxyHIuG2CF3079N eGtO1+EHKVF8Qx9K5qx4Is6yveU15mmvDdHKQOCSonx3Tf/PSIhQJCGjYHMJdLNO LUO0CSDlt6fZ35PkqcoSllNTukFj5YR5NY5XCQiIndPMFl+lAc7I3W7Sip7HHrOb GAr/tgYv =16Fp -----END PGP SIGNATURE----- --WaKLOOB10zAPZY4V--