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 A199BC43334 for ; Tue, 28 Jun 2022 14:08:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5F3F8448A; Tue, 28 Jun 2022 16:08:33 +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="KIe+PaSG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 14561844BB; Tue, 28 Jun 2022 16:08:33 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 C55EB83EA0 for ; Tue, 28 Jun 2022 16:08: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=alpernebiyasak@gmail.com Received: by mail-ej1-x634.google.com with SMTP id ge10so26024289ejb.7 for ; Tue, 28 Jun 2022 07:08:30 -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:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HHamAnEWcGcuZXzkcYhbNsE5Vc3Y0RRqqfHkGintWtA=; b=KIe+PaSGq2PmpW8W+8jFJ861Gv6ankToNtz0dDrRyjcG+bVnCXRItsvp0a2rHDp+TE C7Kh/VQFyb022e/6hUAYDfAz3T8a7EjtQxNhhojOLrDL09+Dw8R6eNSMWWA1GujrH1BY K/S7sQYPwD1RHzI5bbV9BJCy2NnzlEixVdTTJVsH2gtG3sKBpy4oE/oN5Nw9N4d1f5m2 e13c/TqUkF4kTSgD1V/4E+XK0WR9niBX1bMYgwKGrWyuOK85aaO8ko6DMDYvGN0lFwMi XFmxGcFof9bUKwhdPJBghiS1cgNNYJ3VXEBD3QilB0Gcgkd79H2eUSyL4FVE4Z4EPC74 YSmQ== 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:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HHamAnEWcGcuZXzkcYhbNsE5Vc3Y0RRqqfHkGintWtA=; b=3aNUxZzO10cYopW5JBhbeX4dYvpKOyBB06DiF5bmUoOdFVfj4zRq1Q0IK2HnlVL3IW 6b9v+sZ4EyFJGNplsU8g6pUZsK3K7aDPEV+1WhJd8dWmEPaFQXaOXnJB+D5E/xu0tTBG OyvfQSRytnMWGjP/OkN60qsuaBNf/yNgCL6vzssfz2/xi5oro/oW2uMHDsPCPJeIq+9+ jdCfqlKPYTVEmeBKx1ydHKjIJ0vUbDhel8lWxV9BiwntECXfSvX8zLITLG1+G+ksLBFo PJ4w6IM9/cosyDnpx41qlH4WqYZZUOdHh3HsY9IcFyLzVp/yA0MG28SsPZRmmljPHdhU q28A== X-Gm-Message-State: AJIora/K+FIJU1J37IW/DobqKgTcpWTrGpIfr2hO1JmXoSnkOq1GyOYZ crIUppKeG1BwMIrDSFLoH1Y= X-Google-Smtp-Source: AGRyM1vxM6qNEILqkAdi7+8FTLHy/cgtZHp78OrIQo/nzavx/hoffxUDrPZEqC7mQK2DRv2xF5HTjg== X-Received: by 2002:a17:907:3f9f:b0:726:39d8:4c8c with SMTP id hr31-20020a1709073f9f00b0072639d84c8cmr17430973ejc.241.1656425310279; Tue, 28 Jun 2022 07:08:30 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id k25-20020aa7d8d9000000b004356c18b2b9sm9663871eds.44.2022.06.28.07.08.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 07:08:29 -0700 (PDT) Message-ID: Date: Tue, 28 Jun 2022 17:08:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH V7 2/4] ddr: imx8m: helper: load ddr firmware according to binman symbols Content-Language: en-US To: Tom Rini , Simon Glass , "Peng Fan (OSS)" Cc: u-boot@lists.denx.de, Peng Fan , Tim Harvey , sbabic@denx.de, festevam@gmail.com References: <20220627034130.5892-1-peng.fan@oss.nxp.com> <20220627034130.5892-3-peng.fan@oss.nxp.com> From: Alper Nebi Yasak In-Reply-To: <20220627034130.5892-3-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.6 at phobos.denx.de X-Virus-Status: Clean Hi Tom, Simon, Peng, On 27/06/2022 06:41, Peng Fan (OSS) wrote: > From: Peng Fan > > By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after > we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. > > And that could save binary size for many KBs. > > Tested-by: Tim Harvey #imx8m[m,n,p]-venice > Signed-off-by: Peng Fan > Reviewed-by: Alper Nebi Yasak > [Alper: Check BINMAN_SYMS_OK instead] > Signed-off-by: Alper Nebi Yasak > --- > drivers/ddr/imx/phy/helper.c | 47 +++++++++++++++++++++++++++++++----- > 1 file changed, 41 insertions(+), 6 deletions(-) > > diff --git a/drivers/ddr/imx/phy/helper.c b/drivers/ddr/imx/phy/helper.c > index 60d650e3089..e9e0294f87d 100644 > --- a/drivers/ddr/imx/phy/helper.c > +++ b/drivers/ddr/imx/phy/helper.c > @@ -4,6 +4,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -24,15 +25,30 @@ DECLARE_GLOBAL_DATA_PTR; > #define DMEM_OFFSET_ADDR 0x00054000 > #define DDR_TRAIN_CODE_BASE_ADDR IP2APB_DDRPHY_IPS_BASE_ADDR(0) > > +binman_sym_declare(ulong, ddr_1d_imem_fw, image_pos); > +binman_sym_declare(ulong, ddr_1d_imem_fw, size); > + > +binman_sym_declare(ulong, ddr_1d_dmem_fw, image_pos); > +binman_sym_declare(ulong, ddr_1d_dmem_fw, size); > + > +#if !IS_ENABLED(CONFIG_IMX8M_DDR3L) > +binman_sym_declare(ulong, ddr_2d_imem_fw, image_pos); > +binman_sym_declare(ulong, ddr_2d_imem_fw, size); > + > +binman_sym_declare(ulong, ddr_2d_dmem_fw, image_pos); > +binman_sym_declare(ulong, ddr_2d_dmem_fw, size); > +#endif > + > [...] A terrible question popped into my head while thinking about binman symbols, and I feel obliged to ask. Would this be considered 'linking' these proprietary blobs to a GPL-licensed U-Boot SPL binary?