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 0FC45C433EF for ; Wed, 30 Mar 2022 12:32:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4BED78409D; Wed, 30 Mar 2022 14:32:42 +0200 (CEST) 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="MHPfn7C8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 715E28409D; Wed, 30 Mar 2022 14:32:39 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 AC45384093 for ; Wed, 30 Mar 2022 14:32:35 +0200 (CEST) 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 48DF7617EA; Wed, 30 Mar 2022 12:32:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0FF9C340EC; Wed, 30 Mar 2022 12:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648643548; bh=fOWKjaxSFVdyuI02YBeAkS6wUNiuzbPHT2fEUNlDvEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MHPfn7C8IU2BEZlvp7HtVwsTpm159XosIm+Ma058Mbk3h/molDMHmzceB3cR+G3QS GmaYG3JUOQSmAws4ZnRDj8ugI+ftK6cxXFqqUh2mQbn6oAebVZUgur3WoTNwxxspR2 cuoBHeMwnmqoekSCdI79hN1U+RQiDx/7Ru5sHh9y2GuGVkKAdCPW3cFs6NoAXB4Es6 J/Bsj7tQitWFYm1yOqOP/qCwCQa5QsQJFnhUZmB5aIoJwlJmVVQcRhsJBDUwxyERl/ MdwFceQy5nN5gAZSf0A3/XaOxvU1NyuofLazhudcCLb9jkR0EvIS1mwCD67pfQuGuH I0yXCqjZbLl6Q== Received: by pali.im (Postfix) id CCFC3CA9; Wed, 30 Mar 2022 14:32:24 +0200 (CEST) Date: Wed, 30 Mar 2022 14:32:24 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tom Rini Cc: Priyanka Jain , Wolfgang Denk , u-boot@lists.denx.de Subject: Re: Broken P2020 board since commit be7dbb60c5bf ("Convert CONFIG_SYS_IMMR to Kconfig") Message-ID: <20220330123224.akcgcmf3yuj3ukfn@pali> References: <20220330122028.jrcdywdg7j2g2usd@pali> <20220330122917.GP14476@bill-the-cat> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220330122917.GP14476@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.5 at phobos.denx.de X-Virus-Status: Clean On Wednesday 30 March 2022 08:29:17 Tom Rini wrote: > On Wed, Mar 30, 2022 at 02:20:28PM +0200, Pali Rohár wrote: > > Hello! > > > > In current master branch is U-Boot for P2020 board (powerpc mpc85xx > > based) built by P2020RDB-PC_SDCARD_defconfig completely broken. U-Boot > > does not work at all and on UART is nothing printed. > > > > I run git bisect and it found commit which broke this P2020 board: > > > > be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b is the first bad commit > > commit be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b > > Author: Tom Rini > > Date: Sun Dec 12 22:12:30 2021 -0500 > > > > Convert CONFIG_SYS_IMMR to Kconfig > > > > This converts the following to Kconfig: > > CONFIG_SYS_IMMR > > > > We do this by consolidating the SYS_IMMR options we have and providing > > defaults. > > > > We also, in the few places where M68K was also sharing code with these > > platforms, define it within the file to CONFIG_SYS_MBAR to match usage. > > This should be cleaned up longer term. > > > > Signed-off-by: Tom Rini > > > > :040000 040000 12f819284e85d64b7df5da65476038a542e587f5 ea3da4aefeee93f1566be6b7f85a43846f29aa8b M arch > > :040000 040000 afe083b1f22b57470532d2a2c3c37b6a5d4a68d4 302d04810c9449622ce43982f562d2e8400086ec M configs > > :040000 040000 411b7912fc83c8aaf25adf5647400625793cee38 0eff4a6f6e7b5f21bc3d533e1c5bc1cd2a5ed86b M drivers > > :040000 040000 b7d8b45f803b3619f76be355193d5c5645e76782 be2ac1c8506e99d1f9c615ad09477884f5ce1231 M include > > > > So it is relatively new change (Dec 2021). > > > > Tom, any idea how this commit could broke P2020 board which is mpc85xx > > platform? I do not see nothing suspicious in this commit. Before this > > commit BootROM can successfully boot SPL without any issues and SPL > > prints info on UART. This board use include/configs/p1_p2_rdb_pc.h > > config file and it was not touched at all. > > > > Priyanka, Wolfgang, you are marked as maintainers, do you know how to > > debug this issue? Or do you have some P2020 board or other mpc85xx > > based, so you could test if U-Boot is working on this platform? > > > > > > For reference I built U-Boot SPL by these commands: > > > > make CROSS_COMPILE=powerpc-linux-gnuspe- P2020RDB-PC_SDCARD_defconfig spl/u-boot-spl.bin > > boot_format config_sram_p2020rdb.dat spl/u-boot-spl.bin -spi u-boot.sdcard.bin > > > > boot_format and config_sram_p2020rdb.dat are taken from the upstream git > > repo from the latest branch nxp/sdk-v2.0.x: > > https://source.codeaurora.org/external/qoriq/qoriq-yocto-sdk/boot-format > > > > u-boot.sdcard.bin is then copied to SD card (starting from sector zero). > > The likely answer is that one of the sets of games PowerPC platforms > play so that "SPL", "TPL" and regular U-Boot to do redefine some symbols > / base addresses didn't get migrated correctly. Or, re-reading that > commit, maybe what I had worked out wasn't right, and > CONFIG_SYS_IMMR=0xff700000 is wrong? In include/mpc85xx.h you removed code: -#ifndef CONFIG_SYS_IMMR -#define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR -#endif And in include/configs/p1_p2_rdb_pc.h is: #define CONFIG_SYS_CCSRBAR 0xffe00000 So it looks like that CONFIG_SYS_IMMR needs to be set to 0xffe00000 value. I'm going to test this change.