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 AF03DC001DF for ; Fri, 4 Aug 2023 18:36:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 854CF86688; Fri, 4 Aug 2023 20:35:51 +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="ViQzUraL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E675A86664; Fri, 4 Aug 2023 20:35:49 +0200 (CEST) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (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 A42B286688 for ; Fri, 4 Aug 2023 20:35:47 +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-yw1-x1133.google.com with SMTP id 00721157ae682-586bacac98aso1247807b3.2 for ; Fri, 04 Aug 2023 11:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1691174146; x=1691778946; 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=Xp8ONbjDxCiUgwsKjQqpqCo5ze7Xu+eNE7rY7lOQh14=; b=ViQzUraLWQATbGSYPB/D1Vbdi84VCwdOsMgrXF4yl+vblBwfpl5pkyxIsKNvBQA16A LaIaxp6PP47dTxm/GPmw7Y10KGvv2BFk07dezX12HgZmuuUIus51X16WgItmJy992FRV FoT/utZFVGger6OJXCek28X0S7xDzMHa66ZqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691174146; x=1691778946; 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=Xp8ONbjDxCiUgwsKjQqpqCo5ze7Xu+eNE7rY7lOQh14=; b=gfWo8jGofk6LZ2WDtKX+tpJr2X7tj35JKIVrfuGiCTol883MjMSecuKcHb+RBCBFoY pMyuLqEwiLqEvfCS4qsO6e0K+Q/MF0eJfF+wRwi+bDRLvHbKacdW8DGEQV+z574yVVts yA4K1grOFduBW80VuRa2fJNA+dAfXI/rId9kzPmMIUBLpZyfv/vqDW/gG4B72s5tOM7/ 9eC0kk6BMih9FFE2VYcN0er/Vvccs0SE8ueOp/gRwfF2sAN+p3sDNIaiJPWR2aD5hqe2 pg2Ek7tSACX5bbAbWLg7Ojt9A1VyxOHY0dbpRZAIYzt2r8XBPdIwfDYkq3sY8KQpNyLw GSAA== X-Gm-Message-State: AOJu0Yzm9e2u+6YUyV74JrFC4Stp3ub3HctybsnTVxWQ4tZnxBhgdxqn tX7NhX8kuM7PFhrwHl2T6Wp50A== X-Google-Smtp-Source: AGHT+IGjqnCeCP6O1mn1cHr5Ob7dwxd3Vf1Kc+NSeVQ9Om0GgpMWS9lvRX2YUHe4hfSHrxqI5kbqVw== X-Received: by 2002:a81:4f4f:0:b0:561:a123:1041 with SMTP id d76-20020a814f4f000000b00561a1231041mr2359258ywb.29.1691174146357; Fri, 04 Aug 2023 11:35:46 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-c37f-6e0c-fce7-d587.res6.spectrum.com. [2603:6081:7b00:6400:c37f:6e0c:fce7:d587]) by smtp.gmail.com with ESMTPSA id w2-20020a814902000000b00583b40d907esm892238ywa.16.2023.08.04.11.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 11:35:45 -0700 (PDT) Date: Fri, 4 Aug 2023 14:35:44 -0400 From: Tom Rini To: Abdellatif El Khlifi Cc: achin.gupta@arm.com, ilias.apalodimas@linaro.org, jens.wiklander@linaro.org, nd@arm.com, sjg@chromium.org, u-boot@lists.denx.de, Rob Herring , Drew Reed , Xueliang Zhong Subject: Re: [PATCH v19 0/9] introduce Arm FF-A support Message-ID: <20230804183544.GY3630934@bill-the-cat> References: <20230803171435.GV3630934@bill-the-cat> <20230804133345.246809-1-abdellatif.elkhlifi@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hWo7Cvq2xDCg1nDP" Content-Disposition: inline In-Reply-To: <20230804133345.246809-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 --hWo7Cvq2xDCg1nDP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 04, 2023 at 02:33:36PM +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. Depending on further feedback, I will pick this up but likely just after -rc2. Given how long this has been going I will take it for v2023.10 all the same, thanks. --=20 Tom --hWo7Cvq2xDCg1nDP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTNRQAACgkQFHw5/5Y0 tywMKgv/T25c86XEmP3FDIbY/7tfhyPbZ2Lp0ELgyq9VtR2NokcSM+uM5Y3rjDxI 0p9b5JnXbmfHzIExLl9/cyUwgDhKStGk++praqm2LnKB2y4cTavkT7D7jBCkJllr QlayAV2cMIuliEk7yf2qhzOzzQraqs54znKlvUYQphyGPAGW6FeaHFGaw4tPHph5 XfzbnV1iLduYy6XlgH5gBAtXZ645+Eo6dx54x5mYf10U/onV0No8t3PLzYYqy45u ZmNI8daGWqZStvjPvxhP5+qEfS7pPxhWtLjsp0Rsf34cNZ5DoVyMEz03P37Oy58F VVku72k/4PH1oveO+gDoosV9tMDcQcdMYD3QWwY4cif95GD0lWk55hRH4WMsRL42 qkoD3AcbS85yss4Nk9YPddbh0aWXPziz8g5habihBVGTguLog4OeEXh/TVez1+fO sbyquV5su6DgIaLJA5E3qskWJ/10UqbyqCZigsjSGI99ncSTLe5numtG6MptZNOE twKYYF4k =YaVG -----END PGP SIGNATURE----- --hWo7Cvq2xDCg1nDP--