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 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 0B89DC433EF for ; Wed, 11 May 2022 19:43:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB82E83F20; Wed, 11 May 2022 21:43:20 +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="HJF1ibTE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1352884364; Wed, 11 May 2022 21:43:18 +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 265DE83EE8 for ; Wed, 11 May 2022 21:43:11 +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 0F32060FD1; Wed, 11 May 2022 18:59:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B9D9C340EE; Wed, 11 May 2022 18:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652295567; bh=xgF4/Zk5IpadHFR6sNCiio9MvWFvYrUPaOFUhdYOA0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HJF1ibTESL3sPWu7HeQtprRmFPNpplPq3ZsbyqHERyibVebJtuI/xJVYr4lqW9rhu ZZceHQ81MCbafntG9YIJ8NnnwWj2nb40fMNPiaOt/O8Hekgers/3Qv5MBigfX6P1rl rlWCsX6/hNJa9a6YnAYbxRcm3ZfiOlQ1OAZCmvmcxiKnn2nX0OU0IqCMqvopBx5RZ6 s5yw2TwmmVJCe/bZDMtXZsrUqQkKi9HkiOUZnbvgNC+Hlaz1CEh5oCqqdui5TFyM3r uGEV/XdDByz0J4HXngkjNr5Fq+12+L5IN0L7grvgvXCFULy2mjMl+6XS2ttZ6DLA+l M6zsZezIatiZA== Received: by pali.im (Postfix) id 104A821A6; Wed, 11 May 2022 20:59:25 +0200 (CEST) Date: Wed, 11 May 2022 20:59:24 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: "Priyanka Jain (OSS)" Cc: Qiang Zhao , Shengzhou Liu , Alexander Graf , Bin Meng , Wolfgang Denk , Sinan Akman , "u-boot@lists.denx.de" Subject: Re: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values Message-ID: <20220511185924.4eufzpdmntbcbccn@pali> References: <20220405131237.405-1-pali@kernel.org> <20220405131237.405-8-pali@kernel.org> <20220425123116.x5wsq3qiveks3y3h@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220425123116.x5wsq3qiveks3y3h@pali> 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 Monday 25 April 2022 14:31:16 Pali Rohár wrote: > On Monday 25 April 2022 04:27:51 Priyanka Jain (OSS) wrote: > > >-----Original Message----- > > >From: U-Boot On Behalf Of Pali Rohár > > >Sent: Tuesday, April 5, 2022 6:43 PM > > >To: Priyanka Jain ; Qiang Zhao ; > > >Shengzhou Liu ; Alexander Graf ; > > >Bin Meng ; Wolfgang Denk ; Sinan > > >Akman > > >Cc: u-boot@lists.denx.de > > >Subject: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base > > >values > > > > > >Currently CONFIG_SPL_TEXT_BASE and CONFIG_SYS_TEXT_BASE addresses are > > >manually increased by 0x1000 due to .bootpg section. This section has size of > > >0x1000 bytes and is manually put by linker script before .text section (and > > >therefore before base address) when CONFIG_SYS_MPC85XX_NO_RESETVEC is > > >set. Due to this fact lot of other config options are manually increased by > > >0x1000 value to make correct layout. Note that entry point is not on > > >CONFIG_SPL_TEXT_BASE (image+0x1000) but it is really on address > > >CONFIG_SPL_TEXT_BASE-0x1000 (means at the start of the image). > > > > > >Cleanup handling of .bootpg section when > > >CONFIG_SYS_MPC85XX_NO_RESETVEC is set. Put .bootpg code directly into .text > > >section and move text base address to the start of .bootpg code. And finally > > >remove +0x1000 value from lot of config options. With this removal custom > > >PHDRS is not used anymore, so remove it too. > > > > > >After this change entry point would be at CONFIG_SPL_TEXT_BASE and not at > > >address -0x1000 anymore. > > > > > >Tested on P2020 board with SPL and proper U-Boot. > > > > > >Signed-off-by: Pali Rohár > > >--- > > > > Kindly rebase to top of tree. There has been changed related configs. > > I am picking patches till 6/8. So just send next version of 7/8 and 8/8 > > Done! I rebased 7/8 on top of master and sent V2 to ML. 8/8 in current > version still cleanly applied on 7/8, so I did not resent it. If there > is some issue, please let me know. PING?