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 A84DBC43334 for ; Tue, 28 Jun 2022 15:09:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A058F83A9D; Tue, 28 Jun 2022 17:09:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="LsBPghqn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2180083A9D; Tue, 28 Jun 2022 17:09:34 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (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 ABB1D811A6 for ; Tue, 28 Jun 2022 17:09:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2f.google.com with SMTP id z1so3135203qvp.9 for ; Tue, 28 Jun 2022 08:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=T6aFuA8TN5bUQjyUjXl7KQp1ez0VrW9rqRpdFFT/Qt0=; b=LsBPghqn9yex1Op7wDcC3eVdTUu0adYCYU8R8WveMjwtBE+bTTEpZ8ONHCmAOXQx5X D7HhvgwFHKQ4PJMnLLhdkq3bi93B/e+9eWsbGKuW3NqyaDjpsKZAhHgj+2na27rp1omW wnPXdceQKwN8XzVAzdenLqqgqnneOqy3ZRXrU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=T6aFuA8TN5bUQjyUjXl7KQp1ez0VrW9rqRpdFFT/Qt0=; b=KOvsH3ev1J2d1j/rJZNyotcc1Jh3sLPb+1UiJ+oXxf8I/L9ntZq2dn8XYZfUDLXVTs fKIt0pqvtJAMU1cojxdFrCJUGcIT3HtRIaD8/I3sxZgcCXaiasMTzCQnI2JQGfxL2RJK TIwvLyjxNKnfG7uXGWmXkAOyoq9uDsWRzemkhW/aD963dGX6DfCoF2cYEAIZdU+cmHe0 9joWdOAR77PPUHlcqoymqGtc6PTqYYKCX8SPabGbDdc7XO9UR8hlIPD2xMY1f1NySNio oaWWiyLdo8imEnHPVjzjHAcYi8IgFRXRGHQ66+NOWbz9hDjWauVcxcsLRkJQPLefAnPv DwNA== X-Gm-Message-State: AJIora+7idhWEDBnNHlmM4AtMWlHfA4My9/DTujsTPELSABpzvXD/Kli vi2qNQD+2yWizkEJGicrDLifgg== X-Google-Smtp-Source: AGRyM1ulRI/7+kmAKNRTo7HCP+Du8la+QehQ4fyvP9dyLyl+ZlhcD7dd5wkHsx6tzh/jNF0l1jBelQ== X-Received: by 2002:a05:6214:27cc:b0:470:9aaa:94b5 with SMTP id ge12-20020a05621427cc00b004709aaa94b5mr2854163qvb.129.1656428969496; Tue, 28 Jun 2022 08:09:29 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id a20-20020a05620a16d400b0069fe1dfbeffsm11085520qkn.92.2022.06.28.08.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:09:28 -0700 (PDT) Date: Tue, 28 Jun 2022 11:09:26 -0400 From: Tom Rini To: Alper Nebi Yasak Cc: Simon Glass , "Peng Fan (OSS)" , u-boot@lists.denx.de, Peng Fan , Tim Harvey , sbabic@denx.de, festevam@gmail.com Subject: Re: [PATCH V7 2/4] ddr: imx8m: helper: load ddr firmware according to binman symbols Message-ID: <20220628150926.GM1146598@bill-the-cat> References: <20220627034130.5892-1-peng.fan@oss.nxp.com> <20220627034130.5892-3-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+2GlJm56SCtLHYlr" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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 --+2GlJm56SCtLHYlr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 28, 2022 at 05:08:26PM +0300, Alper Nebi Yasak wrote: > Hi Tom, Simon, Peng, >=20 > On 27/06/2022 06:41, Peng Fan (OSS) wrote: > > From: Peng Fan > >=20 > > 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. > >=20 > > And that could save binary size for many KBs. > >=20 > > 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(-) > >=20 > > 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 @@ > > */ > > =20 > > #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) > > =20 > > +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 > > + > > [...] >=20 > 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? No, I don't think so. This isn't any different than the other types of technical implementations done to allow for GPL things to start / find / load / get information back from non-GPL things. --=20 Tom --+2GlJm56SCtLHYlr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmK7GZwACgkQFHw5/5Y0 tyxplQwAs4sS6RRvOgQLe6Zhl8p8GLHfwwH6sOAAf8lVzNKXpcgwXwIxgePU6vQk jevT86BrJpWs4bPPCI/khhSq5lJ/nYn4kb7RxYskekDKia2WEbWyR/NPBoCEVsNz LYB4NePwtj+ariUlMmYU2hTBHQqc4ExxPd5lT8SK9zxNE1kzix8Ha/sxUejqVJ49 Ib1HyrLxtGBDnumNPLrT11RISP0EtYnJAtYWgvSdVTzPJLirhSle/BUuNAaWgtIz 5tG9FfRPYIl8xhMPPbzRWGdleu17UEydJ8IOc2+CIlsaEVu25bCD46TD19Ck4W+T Qp8rIYgsDSB0doAgRTuksAbHSE53f19+i0sY3QE+tXxJIS4TJlRmj8TRQVbYp0/m 1u0fZVldOTf5LiKgh9VuhhKbbk2WRV+XzEvXbA/mn6M2rB+EEoPah/FSbE8nQFtl IXJ2lZXJFhgZl1qa12DYYzOR0zMal4K+vgF/HHyhfg33kvompaVvQmA6ebprSjFy GvzFo5g6 =3yFM -----END PGP SIGNATURE----- --+2GlJm56SCtLHYlr--