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 5F70CEB64DD for ; Mon, 24 Jul 2023 23:50:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 28B2A8674E; Tue, 25 Jul 2023 01:50:16 +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="Rj91zz2z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 959BC8674E; Tue, 25 Jul 2023 01:50:14 +0200 (CEST) Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) (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 65BC986708 for ; Tue, 25 Jul 2023 01:50:11 +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-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7948540a736so1374044241.1 for ; Mon, 24 Jul 2023 16:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690242610; x=1690847410; 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=ULGmECpqxw1vJQEtq/eAArgi+CW46VBm9j/0TXfJ9m0=; b=Rj91zz2zgO7LrH9ymBiL+WjHCfD95QT7d3BN8/yl0fTRfyc5OLbWCKJUEn9bkYAO5h S1rfYGi+CqWmwEjL4ATLOgv1dt4adYpaFMNEiR+i7rbUdyZs8Sdrbyjbb11PmDm+CpAZ hi8/v1fQygY3zdsAYIWQPXrSeGTb+XauxSvbE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690242610; x=1690847410; 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=ULGmECpqxw1vJQEtq/eAArgi+CW46VBm9j/0TXfJ9m0=; b=H3su08dOx+HT8vkfFO2AoHLAspOsWS81zSH6t3prj2Z4JJ+yMDrGCkLgBJbvxku4CT wkr7CThn+R+ncFcTQyTTSaTNWAbiHXmm2yK89dwl6KsAPpq+ANASk0KKo8TaL70R4JBt U257Qcoxhu4I4rbCdKRzF3aDFJs3jVq4KMPaI0sQExoUauw8I0BgKkhVCQhdB5wdFDgt BQdr+ubfAZPel7SFjeOEQdiiszQwhWIaRAiMtJ4J0nomemkmJM1pbfzLwQEiC8O69Om5 1p14LU21YhTA1eYLr8s2HRkuSuNcSfDuUdBaUosFCkd6zosRcozUaINRjBLYmc+nTOEe 7jNA== X-Gm-Message-State: ABy/qLbJy7hxPhglgKkDfjny/byReSiZOu/rSN0e65qtw94L72CFMHI8 3ocljb0FdxXsuH/l8wa5ZKwTKg== X-Google-Smtp-Source: APBJJlHPvlMslCyhOHltwdMNbYOuOZW6BCGJDNEhyhYIXtIaL6DOtYVHBW5OOKpPaIkW79/5BkNE+w== X-Received: by 2002:a67:be0f:0:b0:443:91a7:766c with SMTP id x15-20020a67be0f000000b0044391a7766cmr3817879vsq.27.1690242610083; Mon, 24 Jul 2023 16:50:10 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-4f8e-955d-9d50-cbb0.res6.spectrum.com. [2603:6081:7b00:6400:4f8e:955d:9d50:cbb0]) by smtp.gmail.com with ESMTPSA id f4-20020a67d884000000b00446d8ecae40sm1506763vsj.13.2023.07.24.16.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 16:50:09 -0700 (PDT) Date: Mon, 24 Jul 2023 19:50:07 -0400 From: Tom Rini To: Abdellatif El Khlifi Cc: nd@arm.com, sjg@chromium.org, u-boot@lists.denx.de, ilias.apalodimas@linaro.org, Rob Herring , Jens Wiklander , Achin Gupta , Drew Reed , Xueliang Zhong Subject: Re: [PATCH v15 00/10] introduce Arm FF-A support Message-ID: <20230724235007.GA3188301@bill-the-cat> References: <20230710161828.GS148062@bill-the-cat> <20230713132847.176000-1-abdellatif.elkhlifi@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dU0E05u+HA4CXhjg" Content-Disposition: inline In-Reply-To: <20230713132847.176000-1-abdellatif.elkhlifi@arm.com> 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 --dU0E05u+HA4CXhjg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 13, 2023 at 02:28:37PM +0100, Abdellatif El Khlifi wrote: > Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. >=20 > FF-A specifies interfaces that enable a pair of software execution enviro= nments aka partitions to > communicate with each other. A partition could be a VM in the Normal or S= ecure world, an > application in S-EL0, or a Trusted OS in S-EL1. >=20 > FF-A is a discoverable bus and similar to architecture features. > FF-A bus is discovered using ARM_SMCCC_FEATURES mechanism performed > by the PSCI driver. >=20 > =3D> dm tree >=20 > Class Index Probed Driver Name > ----------------------------------------------------------- > ... > firmware 0 [ + ] psci |-- psci > ffa 0 [ ] arm_ffa | `-- arm_ffa > ... >=20 > Clients are able to probe then use the FF-A bus by calling the DM class > searching APIs (e.g: uclass_first_device). >=20 > This implementation of the specification provides support for Aarch64. >=20 > The FF-A driver uses the SMC ABIs defined by the FF-A specification to: >=20 > - Discover the presence of secure partitions (SPs) of interest > - Access an SP's service through communication protocols > (e.g: EFI MM communication protocol) >=20 > The FF-A support provides the following features: >=20 > - Being generic by design and can be used by any Arm 64-bit platform > - FF-A support can be compiled and used without EFI > - Support for SMCCCv1.2 x0-x17 registers > - Support for SMC32 calling convention > - Support for 32-bit and 64-bit FF-A direct messaging > - Support for FF-A MM communication (compatible with EFI boot time) > - Enabling FF-A and MM communication in Corstone1000 platform as a us= e case > - A Uclass driver providing generic FF-A methods. > - An Arm FF-A device driver providing Arm-specific methods and reusin= g the Uclass methods. > - A sandbox emulator for Arm FF-A, emulates the FF-A side of the Secu= re World and provides > FF-A ABIs inspection methods. > - An FF-A sandbox device driver for FF-A communication with the emula= ted Secure World. > The driver leverages the FF-A Uclass to establish FF-A communicatio= n. > - Sandbox FF-A test cases. > - A new command called armffa is provided as an example of how to acc= ess the > FF-A bus >=20 > For more details about the FF-A support please refer to [B] and refer to = [C] for > how to use the armffa command. >=20 > Please find at [D] an example of the expected boot logs when enabling > FF-A support for a platform. In this example the platform is > Corstone1000. But it can be any Arm 64-bit platform. >=20 > Changelog of changes: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 > v15: So, this does not pass CI: https://source.denx.de/u-boot/u-boot/-/jobs/662303 https://source.denx.de/u-boot/u-boot/-/jobs/662304#L2234 And it's on me for merging this before letting the CI run I kicked complete, sorry. But I'm reverting this now. --=20 Tom --dU0E05u+HA4CXhjg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmS/DiYACgkQFHw5/5Y0 tyzmSAv/UPZxMEdMdsYdESQHU7ZTEGTUwouOe6mYvW4aBdkuvWvV5jewRgE7vUb4 /cJ+A7rxOAzXaq9L3tRqDkUfv1zivQoBPMX0Ybg0HAF/1/s5KL32rKW68yJjEe/L xtEjQmyC4AYjhRKYFnCXzGlZjaxkPXpi271D6+nRnGtrDXyGnFXkKnpGuxNkaxuy HZoaIz4/b86dbkNDdESGv3ppXyOwkTx07ZO+pnvaEtV0mEpHZDcnX8zi9hsjRDJl 6fimRFMaGnuGXe24iEH63mH6+OejogW6V0vDQhSa5bjD41XqbP8AIj//DiuNjaf/ RVvk9ANtU+7N9e/8lho58qT8oPq9zLaLPaylouIlzbFIuFSt7tHvPiX2b9d5yYtJ L/0Y4tEzZ4ajUhMM0FX2rDh+5Nk0ZMUHbcAUYXGcUdc+wnzrCUE18D7Sj5RAkiyB ddvsfxypQkrIfXzVifkZheJOlwW+BiNAo7+zXso8yjXq9e3Vx10jCSUhlBrkCDir npiVX+94 =Ezgg -----END PGP SIGNATURE----- --dU0E05u+HA4CXhjg--