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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6564C433F5 for ; Wed, 13 Oct 2021 09:31:07 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DCE1D60EB4 for ; Wed, 13 Oct 2021 09:31:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DCE1D60EB4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7574483571; Wed, 13 Oct 2021 11:31:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634117463; bh=DiiPAm42ZIv7/GG6GokrkGWDd8BtOutf42QgEdqQuwM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gN7ICah68qJUchJqPsFRNlq3hNBX3Gt5iX6aaqX/NRyk2acpPsuMi3Cd5v2cEEQAm 1NKsiN6FQTNcC0TN9d4IgfGrPFA58DWN69ap+ARh5ahJXAqZNx542apMq8CWeueu8+ rZQ6dEot5pc0tXiB/i/+dwY3dJhp1UbSVcpczIQEPhUqMcHsx5fX0rp4QdhLtnuMd3 jpur0ds3UkIGcxaALXLvGMuorWAfZknOkl/gp83hz3oQjMuGa64KAjsAUMDm4SklQv nMiPbBXbRZmONbB5wGXjyxP77gIzba47UedHrOfCVHVfhmxUZer2xsuykzPDwIW4He ltlOr0tXCDc0g== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D7522833C2; Wed, 13 Oct 2021 11:30:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634117459; bh=DiiPAm42ZIv7/GG6GokrkGWDd8BtOutf42QgEdqQuwM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VLkoPPE/GfHat0W5LophwxplaxbX2t2BTt6ViVEcMEQAAPmBGZevElql536pltrZV cKXddAhJWfZ7bx4TbEdbqiTjAGKoBWdf9x5lwALQk0l2iPISQx3fzZiq1ldIqiHwH2 xiD54t6eF4t4KqqsRjbq5HZWTsE0HV3zMyjIWwljugtINLJPV6V5/2FwNCkTUursoL 8aFG2W+s6cjeBSFA1Km8K04+yOr+cl4znMgKfni9s0KCziw040XBQTlzRhssMC/wAJ l7X93vWukg282xWLm1IBUzZEXSTk803RqrjPCEOs35sMJkoyl9c1DjUPvs24Tdx08A D0P1oXPtKUBNA== Subject: Re: [PATCH 1/2] board_f: fix use of GD_FLG_SKIP_RELOC To: "Peng Fan (OSS)" , sjg@chromium.org, trini@konsulko.com Cc: u-boot@lists.denx.de, hayashi.kunihiko@socionext.com, ovidiu.panait@windriver.com, bmeng.cn@gmail.com, xypron.glpk@gmx.de, dariobin@libero.it, rasmus.villemoes@prevas.dk, Peng Fan References: <20211013095445.18428-1-peng.fan@oss.nxp.com> From: Marek Vasut Message-ID: Date: Wed, 13 Oct 2021 11:30:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211013095445.18428-1-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 10/13/21 11:54 AM, Peng Fan (OSS) wrote: > From: Peng Fan > > When dtb is padded in the end of U-Boot binary, dtb should always be > relocated whether GD_FLG_SKIP_RELOC set or not, otherwise dtb > maybe corrupted. > > Need copy old gd contents to new_gd area, this may not needed on x86 or > arc, but needed for ARM64, because crt0_64.S points x18 to new_gd, > considering gd is a small area, and common/board_f.c also use new_gd, > so let's always copy it. Have a look at these patches: https://patchwork.ozlabs.org/project/uboot/patch/20211010215209.872181-1-marek.vasut@gmail.com/ https://patchwork.ozlabs.org/project/uboot/patch/20211010215209.872181-2-marek.vasut@gmail.com/ https://patchwork.ozlabs.org/project/uboot/patch/20211010214410.870766-1-marek.vasut+renesas@gmail.com/