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 2B773C433EF for ; Fri, 22 Oct 2021 06:48:19 +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 67EB260EE3 for ; Fri, 22 Oct 2021 06:48:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 67EB260EE3 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 4E12A834A9; Fri, 22 Oct 2021 08:48:16 +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=1634885297; bh=mZL+72O83Ct8BTKt7jvdlhBbdvCJDlJiFuv2lpUXE+k=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ERYa60dFt6DojbVQB7TeclLLA/4X+86xvvlt1k/tP8t/nQNJo176i59l1lDd6s4f4 OoHSeWiZNWCwVxy6lH9/djpz5J8Pgopq0xitvXw8KG+HgT1MRfVizYmllE32mm9xF9 sdLRwhL69VL3k0o9VNsOi1zN+MwkI2H9V7XMdsT6NbJpDHhmq6uusCIPQQqZhZXW49 mvAlqG010H4tzBtLdhrvS2oW0XpcamAWurrv2AKY2+neHw88xnA9fKELnI/Pd38lg4 p52Xe84/nrHRoaM1ie6ebSUmuWn7+SbQNVAZZRAnZrKY/2UWG34ugqEy/n9PIvUI+G q2i1+DpMK2oYg== Received: by phobos.denx.de (Postfix, from userid 109) id 3E8F683459; Fri, 22 Oct 2021 08:48:15 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3024A834A9 for ; Fri, 22 Oct 2021 08:48:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4HbFKm0f7tzQk98; Fri, 22 Oct 2021 08:48:12 +0200 (CEST) Subject: Re: [PATCH 4/4] arm: mvebu: Remove dummy BIN header arguments for SPL binary To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de References: <20211021144609.9319-1-pali@kernel.org> <20211021144609.9319-5-pali@kernel.org> From: Stefan Roese Message-ID: <49124d64-d527-fb14-d155-7fa7de1025c9@denx.de> Date: Fri, 22 Oct 2021 08:48:08 +0200 MIME-Version: 1.0 In-Reply-To: <20211021144609.9319-5-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6666522F 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 21.10.21 16:46, Pali Rohár wrote: > U-Boot SPL binary does not read BIN header arguments, so passing some dummy > values 0000005b and 00000068 has no effect for U-Boot SPL code. > > Probably these two values comes from old Marvell DDR training code which > was separated from U-Boot and used it for some configuration. > > Seems that two 32-bit values were specified here to ensure SPL code > alignment to 128-bit boundary as it is required e.g. for A370 or AXP > processors. Main kwbimage header is 64-byte long which is aligned to > 128-bit boundary. Optional kwbheader is 32-bit long, number of BIN header > arguments is stored in 32-bit number. So for alignment to 128-bit boundary > is needed 64-bit padding which exactly these two 32-bit dummy arguments > provided. > > Now when mkimage correctly aligns start of executable code in BIN header to > 128-bit boundary, there is no requirement to put dummy argument values into > kwbimage. So remove them. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/kwbimage.cfg.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-mvebu/kwbimage.cfg.in b/arch/arm/mach-mvebu/kwbimage.cfg.in > index 72e67d75c325..049d23c6ef08 100644 > --- a/arch/arm/mach-mvebu/kwbimage.cfg.in > +++ b/arch/arm/mach-mvebu/kwbimage.cfg.in > @@ -9,4 +9,4 @@ VERSION 1 > #@BOOT_FROM > > # Binary Header (bin_hdr) with DDR3 training code > -BINARY spl/u-boot-spl.bin 0000005b 00000068 > +BINARY spl/u-boot-spl.bin > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de