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 88E39C001B0 for ; Wed, 26 Jul 2023 16:51:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19FE68686F; Wed, 26 Jul 2023 18:49:53 +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="oIxQtt9C"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D264B86859; Wed, 26 Jul 2023 18:49:49 +0200 (CEST) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (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 3759D86857 for ; Wed, 26 Jul 2023 18:49:46 +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-yb1-xb30.google.com with SMTP id 3f1490d57ef6-d13e0bfbbcfso1791762276.0 for ; Wed, 26 Jul 2023 09:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690390185; x=1690994985; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hBmMa0jmaEsPyBLQ1aEiAp/ia4CExHTQoVV4lLkZris=; b=oIxQtt9CMDIaRabCWTCm14zYY9IPF5vLUYCu7C5sn3IR2sOj3ZfEG1n233oEgIqud+ Xls39QmKHDu5Y3tGfuy0L5Y+pcOiVE1JUQciK9tEzcCdFt3dreIdUUsKabscsWRQREWz DB179zIkbZMRof+DtE0HfxE34HWdJA+IZIQbw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690390185; x=1690994985; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hBmMa0jmaEsPyBLQ1aEiAp/ia4CExHTQoVV4lLkZris=; b=cs9XgrGGoKvCuWICEg94fncsZ8BWRsyDoIA9BxJzAxcdVvfOwdtyCPd+6RTRQdNgKV Vp0jqg2qF5cpAGTut9259i9QlF+eyS8ox6Ie+/LOEe7UjNFnJ7AmlC3+yF3Et98VfuY/ BcuPTMHPxew42y4diSzCVWcW4mzQEEz7r+3x0hMY0MSwuFWo7q/A8XKStKY/oFuhlWQT 4XRwHmTf1u/u8WqbobI/Dtr/4BF7iUZTHyjKYzC7Va0gdfxj8ACFFSV/PG3iZ3PDODI0 CfFoQiFoUg+Sw+iLnghrPuBR1PBGnVeRAB8hOO/BIERRMShF78KEGRg1FokgXVozHAVm Vi7w== X-Gm-Message-State: ABy/qLayuO43WgqS5e3HCa2oPWO0VU2/5sbMOMmz3zizmU3JXbsxm5Me WzyQIr0+okhhBqGHO6ajEYV8AA== X-Google-Smtp-Source: APBJJlHKq3devEO9mkPZSgTwCsxAI539PcqfffnjzmKknr0V73F95FxTw8wN4vtvYlcCo1YiVjoBNg== X-Received: by 2002:a25:1687:0:b0:cfc:7239:fee2 with SMTP id 129-20020a251687000000b00cfc7239fee2mr82079ybw.17.1690390184949; Wed, 26 Jul 2023 09:49:44 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-08f6-b38b-1fda-25aa.res6.spectrum.com. [2603:6081:7b00:6400:8f6:b38b:1fda:25aa]) by smtp.gmail.com with ESMTPSA id m8-20020a056902004800b00c5ec980da48sm3455319ybh.9.2023.07.26.09.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 09:49:44 -0700 (PDT) Date: Wed, 26 Jul 2023 12:49:42 -0400 From: Tom Rini To: Andrew Davis Cc: Nishanth Menon , Neha Malcom Francis , Bryan Brattlof , Praneeth Bajjuri , Robert Nelson , Vignesh R , u-boot@lists.denx.de Subject: Re: [PATCH 6/6] doc: board: ti: Add beagleplay documentation Message-ID: <20230726164942.GW3630934@bill-the-cat> References: <20230725185253.2123433-1-nm@ti.com> <20230725185253.2123433-7-nm@ti.com> <20230725213552.GJ3630934@bill-the-cat> <20230725220015.i5dctounavfnsobg@wrinkle> <20230725224539.GM3630934@bill-the-cat> <20230726162147.GT3630934@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eHFnzb2Ofo9y3BBf" 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.8 at phobos.denx.de X-Virus-Status: Clean --eHFnzb2Ofo9y3BBf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 26, 2023 at 11:41:42AM -0500, Andrew Davis wrote: > On 7/26/23 11:21 AM, Tom Rini wrote: > > On Wed, Jul 26, 2023 at 09:59:16AM -0500, Andrew Davis wrote: > > > On 7/25/23 5:45 PM, Tom Rini wrote: > > > > On Tue, Jul 25, 2023 at 05:00:15PM -0500, Nishanth Menon wrote: > > > > > On 17:35-20230725, Tom Rini wrote: > > > > > > On Tue, Jul 25, 2023 at 01:52:53PM -0500, Nishanth Menon wrote: > > > > > >=20 > > > > > [...] > > > > >=20 > > > > > > > + > > > > > > > +Build procedure: > > > > > > > +---------------- > > > > > > > +1. Trusted Firmware-A: > > > > > > > + > > > > > > > +.. code-block:: bash > > > > > > > + > > > > > > > + $ make CROSS_COMPILE=3Daarch64-none-linux-gnu- ARCH=3Daarch= 64 PLAT=3Dk3 \ > > > > > > > + TARGET_BOARD=3Dlite SPD=3Dopteed > > > > > > > + > > > > > > > +2. OP-TEE: > > > > > > > + > > > > > > > +.. code-block:: bash > > > > > > > + > > > > > > > + $ make PLATFORM=3Dk3 CFG_ARM64_core=3Dy CROSS_COMPILE=3Darm= -none-linux-gnueabihf- \ > > > > > > > + CROSS_COMPILE64=3Daarch64-none-linux-gnu- > > > > > >=20 > > > > > > So, we have some generic wording on how to build TF-A and OP-TE= E up in > > > > > > doc/board/ti/k3.rst. It should be made clearer if needed that u= nless > > > > > > otherwise indicated, top of tree is expected to be used for TF-= A/OP-TEE > > > > > > and ti-linux-firmware for the ti-linux-firmware repo. Then just= state > > > > > > that TF-A should be which of {lite|generic|j784s4} as it is a $= family > > > > > > device. And we then drop much of the duplication here. > > > > >=20 > > > > > Also, Robert pointed out I missed K3_PM_SYSTEM_SUSPEND=3D1 :( > > > >=20 > > > > Ugh, how many platforms is that variable valid for? > > > >=20 > > > None soon :) > > >=20 > > > I'm getting rid of that flag in TF-A. There is a bug blocking me righ= t now, > > > but after that it will be automatic. Not sure if it is worth document= ing a > > > flag that is going away.. > >=20 > > OK. But, automatic how? What I'm getting at, from both a documentation > > standpoint and also how I run my labs standpoint, is that it seems like > > instead of having a set of TF-A and OP-TEE binaries for each TI K3 > > platform I have, I really need just 3 different TF-A builds (well, in > > reality I don't have the J784s4 stuff so just 2) and a single OP-TEE > > build. > >=20 >=20 > If you don't have the flag K3_PM_SYSTEM_SUSPEND=3D1 today then some > LPM modes in Linux will be unavailable, that would be the only > problem, not sure if that matters to your testing. >=20 > You will need one OP-TEE per platform, for TF-A we combine some > platforms into groups (generic: AM65,J7* ; lite: AM64*,AM62*). > Depending on features we add in the future, even this grouping > may also go away at some point, so it will match OP-TEE > (one TF-A build per platform). Ah right, there was more than one PLATFORM for OP-TEE, OK, so I do need to have a few groups of binaries, thanks. But then this also goes with what I'm talking a bit about on IRC with Nishanth about copy/pasteable build docs. Since there is a lot of re-use I really want to avoid every board having a literal copy/paste from another board as that makes it easier to gloss over minor important differences. Something about re-using via inserting blocks and setting environment variables first should help here. And I'll go so far as to say it should reside outside of doc/board/ti/ too as while I'm not going to ask TI to re-write every elses board docs, we have a lot of "build TF-A and OP-TEE" instructions today, with slight variations to them. We should improve that as much as we can. --=20 Tom --eHFnzb2Ofo9y3BBf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTBTqYACgkQFHw5/5Y0 tyxoMQv/VJAEZ4alWLz1o3+At4B18VffvJQRF84Xomv7RccZ9GeDSIo9eMR8xDWN 3A0u01aldM7gUyBz7cqdizAp1Zb1s0dd4+M31G0D4X6Siv9aCeYLdoCjWnZnYCNC 6c7aLfOQzc9qsPj+o72hwy7ogbf7n8beTyPusqQwPQg7Jn2AAkc7XlPwoFvor5L0 tlPZ/SghbBhp4NCJuDKV9iFXt+iNMT/PhQYCVm0NCIk0YXDIDda0T+zo8GmmTGYA hsMQ13gJCq5r/emgQYYt4EztuRh7KX8SUbC3XWmLB2drKikrhCAMMEg58+nwqjIq BKOVXMx+TmOIZ1JBu/tOUcZVFILbXjf9s/R7xZfQW/S7jCn+bTx1i861F0Cn7vRI mOoiAtv+A6CkdgjlvDVYogwb+YgCTIBAMFRDt+9WWVt+3Gl0O6g+d/su69pMm1pt WLbR1lOox3q87I41DaV0N/ygQBRKWOO4TbrSfTJKv92+mD6qw6pvk2wIFh7/H1Me 5u0LSO/K =9ALn -----END PGP SIGNATURE----- --eHFnzb2Ofo9y3BBf--