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 CB850C433F5 for ; Mon, 23 May 2022 21:13:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E047684255; Mon, 23 May 2022 23:13:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="BELrlXh3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3728784258; Mon, 23 May 2022 23:13:26 +0200 (CEST) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CE5F184278 for ; Mon, 23 May 2022 23:13:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x531.google.com with SMTP id er5so20648526edb.12 for ; Mon, 23 May 2022 14:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=0HiqC5vZ7CElauREH61p84D8ZlzBGfgTsLDlCGm8X2E=; b=BELrlXh3qxT15RnlR/gemHoPNKSQIKvLhxU2WT7Or+vDt+a2rUOSEeS/FOCSpRZ3wR Kvga/KqsjtpFY5aaoJojaWrp375AqP/dAJdFwNBu3uT7xeFypwUaO2XjKU9+t2AndAQ8 tTVMO6tTBvupGj4kAdzT25QLwNQqPHzxxIubKrOBvLv5DOlSFjio5/SeMxxqD7yA0z2B KjVMmD2OUwnPcMjgOkeC8Z+Q5p7+Uj7DBVx8WufTbJCTKyA6Fv8s4EpaSzge07PLNLI0 /hS6rkduwt0o2k6X6SWC6LBkxruc1DfTViKF5UmM+9Xa5xUv8tCdrUg+fWYO/4SceLS0 VSag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=0HiqC5vZ7CElauREH61p84D8ZlzBGfgTsLDlCGm8X2E=; b=TznmcIMN+Z6MFAyRnCBBNV5vN2ks54Bj+J2mG/KAGDR8TMmK1MLIcqcutZ5sj8svIc QrC6+mwUVjyhvKOzCuZzcINEuYPzqPskG3NkNfyCqHgyNZ3r0qoEeGcu8ExCv6nPkcRc RGb3mWFK0dsQsyOJ1rN6FAh0m3zgi6QOkxCObp7Efz3IxVvafxRrVuZgtp03JxkmBVO+ PvF/3AKR08ALljLKCb1LxndFgJv/sgYrjNQyUZRdvudKAA9hKTqZ0UAaVYlbXuSYTPAV GasI1fDayFk8x7rxkueTZ2aJK+x9zR0/JxYqUADkb2KGlVJstdUBg2+s9798nNNNNIhI Sfmg== X-Gm-Message-State: AOAM530mJN+s6XX4tl/QXXljhj3c4yM09lYSG/QTr2IViOpFI1lagAR4 AyuXWXmj11ql6rFb/L5vxAI= X-Google-Smtp-Source: ABdhPJynELFyiU1Wr+wIO5Be4BYpOxE0BQjaNG14LX+pefQ+JvVwUgF3NXq3CEgNVZhG527rrUPhHw== X-Received: by 2002:a05:6402:274c:b0:42b:394e:c7b2 with SMTP id z12-20020a056402274c00b0042b394ec7b2mr15201398edd.338.1653340398224; Mon, 23 May 2022 14:13:18 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id sa24-20020a170906edb800b006fe8ac6bc69sm3893431ejb.140.2022.05.23.14.13.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 14:13:17 -0700 (PDT) Message-ID: <5c513376-5f99-0686-a40e-f538bae5c6df@gmail.com> Date: Tue, 24 May 2022 00:12:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Alper Nebi Yasak Subject: Re: [PATCH V4 7/8] arm: dts: imx8m: shrink ddr firmware size to actual file size To: "Peng Fan (OSS)" Cc: u-boot@lists.denx.de, Peng Fan , sbabic@denx.de, festevam@gmail.com, ariel.dalessandro@collabora.com, michael@amarulasolutions.com, tharvey@gateworks.com, sjg@chromium.org, marek.behun@nic.cz, pali@kernel.org, sr@denx.de, ricardo@foundries.io, patrick.delaunay@foss.st.com, trini@konsulko.com, "NXP i.MX U-Boot Team" References: <20220520141048.20034-1-peng.fan@oss.nxp.com> <20220520141048.20034-8-peng.fan@oss.nxp.com> Content-Language: en-US In-Reply-To: <20220520141048.20034-8-peng.fan@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 20/05/2022 17:10, Peng Fan (OSS) wrote: > From: Peng Fan > > After we switch to use BINMAN_SYMBOLS, there is no need to pad > the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, > the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. > > Tested-by: Tim Harvey #imx8m[m,n,p]-venice > Signed-off-by: Peng Fan > --- > arch/arm/dts/imx8mm-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mn-evk-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mn-venice-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mp-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mq-cm-u-boot.dtsi | 8 ++++---- > arch/arm/dts/imx8mq-u-boot.dtsi | 8 ++++---- Probably can be done for 'imx8mn-bsh-smm-s2-u-boot-common.dtsi' as well. > 9 files changed, 36 insertions(+), 36 deletions(-) > > diff --git a/arch/arm/dts/imx8mm-u-boot.dtsi b/arch/arm/dts/imx8mm-u-boot.dtsi > index 5de55a2d80b..19a2da30f51 100644 > --- a/arch/arm/dts/imx8mm-u-boot.dtsi > +++ b/arch/arm/dts/imx8mm-u-boot.dtsi > @@ -41,25 +41,25 @@ > > imem_1d: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_1d: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > > imem_2d: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_2d: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > }; > diff --git a/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi > index eb1dd8debba..e1740fa31a6 100644 > --- a/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi > +++ b/arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi > @@ -149,22 +149,22 @@ > > blob_1: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_2: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > > blob_3: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_4: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > }; > > diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi > index 4d0ecb07d4f..1fe2d0fd507 100644 > --- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi > +++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi > @@ -157,22 +157,22 @@ > > blob_1: blob-ext@1 { > filename = "ddr4_imem_1d_201810.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_2: blob-ext@2 { > filename = "ddr4_dmem_1d_201810.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > > blob_3: blob-ext@3 { > filename = "ddr4_imem_2d_201810.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_4: blob-ext@4 { > filename = "ddr4_dmem_2d_201810.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > }; > > diff --git a/arch/arm/dts/imx8mn-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-evk-u-boot.dtsi > index 3db46d4cbcb..4f6dcf307b2 100644 > --- a/arch/arm/dts/imx8mn-evk-u-boot.dtsi > +++ b/arch/arm/dts/imx8mn-evk-u-boot.dtsi > @@ -38,22 +38,22 @@ > > blob_1: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_2: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > > blob_3: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_4: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > }; > > diff --git a/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi b/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi > index 001e725f568..32ef7929288 100644 > --- a/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi > +++ b/arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi > @@ -132,25 +132,25 @@ > > blob_1: blob-ext@1 { > filename = "ddr4_imem_1d.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > blob_2: blob-ext@2 { > filename = "ddr4_dmem_1d.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > > blob_3: blob-ext@3 { > filename = "ddr4_imem_2d.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > blob_4: blob-ext@4 { > filename = "ddr4_dmem_2d.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > }; > diff --git a/arch/arm/dts/imx8mn-venice-u-boot.dtsi b/arch/arm/dts/imx8mn-venice-u-boot.dtsi > index 67922146963..e3a0b170347 100644 > --- a/arch/arm/dts/imx8mn-venice-u-boot.dtsi > +++ b/arch/arm/dts/imx8mn-venice-u-boot.dtsi > @@ -128,25 +128,25 @@ > > imem_1d: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_1d: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > > imem_2d: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_2d: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > }; > diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-u-boot.dtsi > index 20edd90cfad..274515a010e 100644 > --- a/arch/arm/dts/imx8mp-u-boot.dtsi > +++ b/arch/arm/dts/imx8mp-u-boot.dtsi > @@ -63,22 +63,22 @@ > > blob_1: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem_202006.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_2: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem_202006.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > > blob_3: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem_202006.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_4: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem_202006.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > }; > > diff --git a/arch/arm/dts/imx8mq-cm-u-boot.dtsi b/arch/arm/dts/imx8mq-cm-u-boot.dtsi > index e2f4b0e740d..9538a04ed97 100644 > --- a/arch/arm/dts/imx8mq-cm-u-boot.dtsi > +++ b/arch/arm/dts/imx8mq-cm-u-boot.dtsi > @@ -30,22 +30,22 @@ > > blob_1: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_2: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > > blob_3: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > }; > > blob_4: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > }; > }; > > diff --git a/arch/arm/dts/imx8mq-u-boot.dtsi b/arch/arm/dts/imx8mq-u-boot.dtsi > index 389414ad26f..1495869fcd2 100644 > --- a/arch/arm/dts/imx8mq-u-boot.dtsi > +++ b/arch/arm/dts/imx8mq-u-boot.dtsi > @@ -48,25 +48,25 @@ > > imem_1d: blob-ext@1 { > filename = "lpddr4_pmu_train_1d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_1d: blob-ext@2 { > filename = "lpddr4_pmu_train_1d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > > imem_2d: blob-ext@3 { > filename = "lpddr4_pmu_train_2d_imem.bin"; > - size = <0x8000>; > + align-end = <4>; > type = "blob-ext"; > }; > > dmem_2d: blob-ext@4 { > filename = "lpddr4_pmu_train_2d_dmem.bin"; > - size = <0x4000>; > + align-end = <4>; > type = "blob-ext"; > }; > };