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 2C5FEC4332F for ; Fri, 23 Dec 2022 19:10:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F0EB85489; Fri, 23 Dec 2022 20:10:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="SQ4tLH2L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BFE28548C; Fri, 23 Dec 2022 20:10:24 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 C4C3285482 for ; Fri, 23 Dec 2022 20:10:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D40C861AF3; Fri, 23 Dec 2022 19:10:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA186C433D2; Fri, 23 Dec 2022 19:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671822618; bh=GIa+gx1TWRzWtEV4r+t0AexmWbYmCGb8nwo8PIiZSmU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SQ4tLH2LHF1iJWSaKNyH/LE+TuxMyPIgrhsC68DeEwaBhifjMj6owIcnUmULTXS07 1T+0mKMrpF7hST18zdDj1d+vd1kc/Do0S5AhxxEMEaItPu5QLQrhmUGCrdi7kgqqyr dUSlwug9eXzWyjQalW1tn3OLzjD6k1cNt6vBSDgh1iCkdMREtNW8RhJamrwcF60+Jn uEdLhSvS+PhhX0gUoaxWCFyiFQHfssAp/uO/ef7Sa+hsZlnuoLYDuPfjL698ZykaXl c75UkyoWRn4oPJekmhzJwOMC8FBw/PuQYv6wFrf+qHGsnaZKV3BW5kMPzM+HkuFMM0 JrcHOEhhQBm2A== Received: by pali.im (Postfix) id 107D360F; Fri, 23 Dec 2022 20:10:15 +0100 (CET) Date: Fri, 23 Dec 2022 20:10:14 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tom Rini Cc: u-boot@lists.denx.de Subject: Re: Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 Message-ID: <20221223191014.yqcwxlibn2kxfqn3@pali> References: <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> <20221222182250.GO3787616@bill-the-cat> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221222182250.GO3787616@bill-the-cat> User-Agent: NeoMutt/20180716 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 On Thursday 22 December 2022 13:22:50 Tom Rini wrote: > On Thu, Dec 22, 2022 at 06:56:40PM +0100, Pali Rohár 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. > > > > 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. > > > > > > 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? > > > > 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. > > > > 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 P1010RDB-PA_SDCARD > $ ./tools/moveconfig.py -f ARCH_P1010 ~SDCARD > 8 matches > P1010RDB-PA_NAND P1010RDB-PB_SPIFLASH P1010RDB-PB_36BIT_SPIFLASH P1010RDB-PA_36BIT_NAND P1010RDB-PA_36BIT_SPIFLASH P1010RDB-PA_SPIFLASH P1010RDB-PB_NAND P1010RDB-PB_36BIT_NAND Ok, I tried to build database and list of the affected defconfig files: (all except T, P3+ and P204x) $ for arch in `git grep 'config ARCH' arch/powerpc/cpu/mpc85xx/Kconfig | sed 's/.* //' | grep -v 'ARCH_T\|ARCH_P[345]\|ARCH_P204'`; do ./tools/moveconfig.py -f $arch SDCARD; done | grep -v ' matches\|^$' P1010RDB-PB_36BIT_NOR P1010RDB-PA_SDCARD P1010RDB-PB_NOR P1010RDB-PB_SDCARD P1010RDB-PA_36BIT_NOR P1010RDB-PB_36BIT_SDCARD P1010RDB-PA_NOR P1010RDB-PA_36BIT_SDCARD P1020RDB-PC P1020RDB-PD_SDCARD P1020RDB-PC_SDCARD P1020RDB-PC_36BIT P1020RDB-PD P1020RDB-PC_36BIT_SDCARD P2020RDB-PC_SDCARD P2020RDB-PC_36BIT P2020RDB-PC_36BIT_SDCARD P2020RDB-PC So it means that these defconfigs are broken and CONFIG_SDCARD for them must be turned off: P1010RDB-PB_36BIT_NOR P1010RDB-PB_NOR P1010RDB-PA_36BIT_NOR P1010RDB-PA_NOR P1020RDB-PC P1020RDB-PC_36BIT P1020RDB-PD P2020RDB-PC_36BIT P2020RDB-PC These defconfigs have already CONFIG_SDCARD turned off: $ for arch in `git grep 'config ARCH' arch/powerpc/cpu/mpc85xx/Kconfig | sed 's/.* //' | grep -v 'ARCH_T\|ARCH_P[345]\|ARCH_P204'`; do ./tools/moveconfig.py -f $arch ~SDCARD; done | grep -v ' matches\|^$' socrates MPC8548CDS MPC8548CDS_legacy MPC8548CDS_36BIT P1010RDB-PB_36BIT_NAND P1010RDB-PB_NAND P1010RDB-PA_36BIT_SPIFLASH P1010RDB-PB_SPIFLASH P1010RDB-PA_36BIT_NAND P1010RDB-PA_NAND P1010RDB-PB_36BIT_SPIFLASH P1010RDB-PA_SPIFLASH P1020RDB-PC_NAND P1020RDB-PC_36BIT_SPIFLASH P1020RDB-PD_SPIFLASH P1020RDB-PC_SPIFLASH P1020RDB-PD_NAND P1020RDB-PC_36BIT_NAND P2020RDB-PC_SPIFLASH P2020RDB-PC_36BIT_SPIFLASH P2020RDB-PC_NAND P2020RDB-PC_36BIT_NAND qemu-ppce500 And seems that no of them is sd card related (hopefully). > > 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. > > > > 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. > > > > 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. > > -- > Tom