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 ECC78C433FE for ; Thu, 13 Oct 2022 12:07:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3920184EE6; Thu, 13 Oct 2022 14:07:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="w7UadRq3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD41A84F17; Thu, 13 Oct 2022 14:07:45 +0200 (CEST) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 7FB6283753 for ; Thu, 13 Oct 2022 14:07:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-ed1-x536.google.com with SMTP id z97so2284895ede.8 for ; Thu, 13 Oct 2022 05:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=2VMdN3VVic7cNxWp2KWq5qi/KA+Wyk9Y4+wQgNVIY60=; b=w7UadRq3tqc67CTZRGY7oQy+etw7GX2H1xeAQPk8alG/ArSb2fiKaUYuVhcE4m/8Ys ww1axPnYreUGle259+ysUbocORHGVc/0bNLzsSZIe+Xe3bL3hMUH1h+N7C4lZS8LH+AF 93kaAAbLMz6oOO/3ALnms53+sSlbIq59jVhjwDA2zc6xIcL3IQRWJ3OUkj46qKDfLecq zT/SrYcS20zZnHuMWx74QC3LKXrXFb/wijjCwnfpkdU1RLbNkcj6zsZcrX5ua7iJEBN6 FUB3b5VFxMijIjnLorPeccO5vGpAafNK9BDMF6l4S9BCbMo5gvu1GuSeuaFh51j/7VZ8 ch/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=2VMdN3VVic7cNxWp2KWq5qi/KA+Wyk9Y4+wQgNVIY60=; b=3zAeEeMzhPhjZ1lc+Xm+Eg65lrLVhV9+FbOY4qRDDblHsAi1SGke2VXfFvyzwAY+4A hBIWT1b22oA07Qn07vFTdYeTxjlggMYcSrKJPnmCK9/ZZ1pACaDv9jrMfzJxGSOo9RYP 8k7kjUjPrP5EpPkZ67+U1mJlnekIhWAfm7eGNc+VVLCoENn65VXOmCMlqbT2EcFGrrBn y5hrVdRuVqNRoVgNpHBqwtrrw+IzW6dFz3Jh+l8tjbnLCdwr/0xAWH6pYQaIAmeHxcNC 0fJ7HtON+luWFlr1uYR1zivJepLrul+JxMzNKR7Wub6ZxnhvRCg/0k9gzNF+/trWjVqa 6sqw== X-Gm-Message-State: ACrzQf0p5zJBBfZnWby8NB+oNoYoDiQFEgwCcGD9f75pyY2HPTAMHVvQ /Zu7bHkU0+V+Zz4Iq+/nDQwRoA== X-Google-Smtp-Source: AMsMyM7oFK+XPBUZLgQdPA0hjBduNpzHkfy2vW8hUNwxkCIcMBKVKaKhm5ld+d3g0rqO0iiUoW7M9A== X-Received: by 2002:a05:6402:4150:b0:44a:ec16:def4 with SMTP id x16-20020a056402415000b0044aec16def4mr31833209eda.21.1665662862128; Thu, 13 Oct 2022 05:07:42 -0700 (PDT) Received: from hera (ppp046103015185.access.hol.gr. [46.103.15.185]) by smtp.gmail.com with ESMTPSA id j18-20020a17090623f200b0078db18d7972sm1347572ejg.117.2022.10.13.05.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:07:41 -0700 (PDT) Date: Thu, 13 Oct 2022 15:07:39 +0300 From: Ilias Apalodimas To: Abdellatif El Khlifi Cc: achin.gupta@arm.com, jens.wiklander@linaro.org, nd@arm.com, sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de, vishnu.banavath@arm.com, xueliang.zhong@arm.com, Drew.Reed@arm.com Subject: Re: [PATCH v6 00/10] introduce Arm FF-A support Message-ID: References: <20220926140827.15125-1-abdellatif.elkhlifi@arm.com> <20221013103857.614-1-abdellatif.elkhlifi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221013103857.614-1-abdellatif.elkhlifi@arm.com> 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 Abdellatif, On Thu, Oct 13, 2022 at 11:38:47AM +0100, Abdellatif El Khlifi wrote: > Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [6]. > > FF-A describes interfaces (ABIs) that standardize communication > between the Secure World and Normal World. These interfaces enable a pair of > software sandboxes to communicate with each other. A sandbox aka partition could > be a VM in the Normal or Secure world, an application in S-EL0, or a > Trusted OS in S-EL1. > > The FF-A transport is implemented as a data bus and a core driver is provided. > > The FF-A driver uses the SMC ABIs defined by the FF-A specification to: > > - Discover the presence of secure partitions (SPs) of interest > - Access an SP's service through communication protocols > e.g. EFI MM communication protocol > > The FF-A support provides the following features: > > - Being generic by design and can be used by any Arm 64-bit platform > - The FF-A core driver > - The FF-A bus is discoverable on demand at runtime > - The driver provides callbacks to be used by clients to access the FF-A bus > - FF-A driver can be compiled and used without EFI > - Support for SMCCCv1.2 x0-x17 registers > - A new command called armffa is provided as an example of how to access the > FF-A bus > - An FF-A Sandbox driver is provided with test cases > - Support for FF-A MM communication > - Enabling FF-A and MM communication in Corstone1000 platform > > For more details about the FF-A core driver please refer to [7]. > > Please find at [8] 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. > > Changelog of the major changes: > =========================== > > v6: > > * remove clearing x0-x17 registers after SMC calls > * drop use of EFI runtime support for FF-A (We decided with Linaro to add this later) Thanks! This makes the whole process way way easier. I am bit overloaded atm but I'll try squeezing in reviewing these patches > * drop discovery from initcalls (discovery will be on demand by FF-A users) > * add FF-A runtime discovery at MM communication level > * update the documentation and move it to doc/arch/arm64.ffa.rst > > v5: [5] > > * move changelogs in each commit to the changes section > > v4: [4] > > * add FF-A support README (doc/README.ffa.drv) > * improving error handling by mapping the FF-A errors to standard errors > and logs > * replacing panics with an error log > * align sandbox driver and tests with the new FF-A driver interfaces > and new way of error handling [...] Thanks /Ilias