From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400c:c05::242; helo=mail-vk0-x242.google.com; envelope-from=sumit.garg@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-vk0-x242.google.com (mail-vk0-x242.google.com [IPv6:2607:f8b0:400c:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CFCA4210F4BBC for ; Fri, 24 Aug 2018 05:09:55 -0700 (PDT) Received: by mail-vk0-x242.google.com with SMTP id e139-v6so4158841vkf.6 for ; Fri, 24 Aug 2018 05:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MiKy3xWJS+2GCIWZ6EWfyxovRBL2ahRTFrdCMVAiHFQ=; b=gOQKQOQpUc1hEJ0nIMJuwbLTYiyxha4HilUofRvndPPOwAWQ6+j1BQ2Tmgo5QVmsQW uRWe7ydfqkTCB7soVg244K2GiGA9z+KdnTPBfvcJABHmCbbpcOGy/33pC2X3v4FGjyQe bFoWb7B7sDnxJauUzGMkywT9bF5+0gZUgriCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MiKy3xWJS+2GCIWZ6EWfyxovRBL2ahRTFrdCMVAiHFQ=; b=nGFMTrQeaGpchSd5JBeUDp8DnEkz0TEkZcBXgecjx7drTd4pV+CMrQ8dSCZC860rwc kgU+Ltoe24/6LhbwFbmcckuK0JsCO9vXMniuzsZtRyh0VlqSoLvHudvIDcwcdtNUwM3i o+4LYFbQcTxoxVGjz8s66vOttLIwAvbQ0SIizFCL5M+orIjMRf73noU/J6UNLxDI+tY+ ILaBKfTCrJD+koSqlVBZJN4tQpCHfhlssvudxu4ZWYFxi2UCiHLou/2blOJHBlLQte79 bg8R3k6ODj4YeZZ1BI8R3BGQLWO2+Og0VnShSPuZSfrLIZNqA6D/xBHW8TIh8AF1lRqu YfCg== X-Gm-Message-State: APzg51AbUuGIk9z6Ybb6161EYDhp2bKz/Fd4LJzSC5Qo9OrtjfkKsfl1 igiZ8KL2RuaNejpxsB3q4IO4DU5jx/Olai0sjZ1sqg== X-Google-Smtp-Source: ANB0VdZUSP3JvUA/vyvsKoEFhn3UhaJIViJhfevS5filI9HEwbQBcGY/BxkjTdFW0XzDrPr+65aQSdU46xSz/oADl1c= X-Received: by 2002:a1f:ae96:: with SMTP id x144-v6mr770480vke.130.1535112594339; Fri, 24 Aug 2018 05:09:54 -0700 (PDT) MIME-Version: 1.0 References: <1535102474-24383-1-git-send-email-sumit.garg@linaro.org> In-Reply-To: From: Sumit Garg Date: Fri, 24 Aug 2018 17:39:42 +0530 Message-ID: To: Jerome Forissier Cc: edk2-devel@lists.01.org, Daniel Thompson , Ard Biesheuvel , Leif Lindholm , tee-dev@lists.linaro.org Subject: Re: [Tee-dev] [PATCH 1/1] ArmPkg/OpteeLib: Add APIs to communicate with OP-TEE X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2018 12:09:56 -0000 Content-Type: text/plain; charset="UTF-8" On Fri, 24 Aug 2018 at 15:57, Jerome Forissier wrote: > > > > On 08/24/2018 11:21 AM, Sumit Garg wrote: > > Add following APIs to communicate with OP-TEE static TA: > > "static TAs" are now preferably called "pseudo TAs" [1], Sure will use "pseudo TAs" instead. > but it seems this API could be used to invoke "early TAs" as well. Agree this API could work with "early TAs" as well. > Or any kind of > Trusted Application as long as the non-secure infrastructure is > available (OP-TEE kernel driver and tee-supplicant daemon). > Current patch for UEFI doesn't provide non-secure infrastructure like support for RPC load TA command. I am not sure about usefulness of such infrastructure during boot. Anyhow this driver could be extended to provide non-secure infrastructure as well. -Sumit > [1] > https://github.com/OP-TEE/optee_os/blob/3.2.0/documentation/optee_design.md#12-trusted-applications > > > 1. OpteeInit > > 2. OpteeOpenSession > > 3. OpteeCloseSession > > 4. OpteeInvokeFunc > > > > Cc: Ard Biesheuvel > > Cc: Leif Lindholm > > Contributed-under: TianoCore Contribution Agreement 1.1 > > Signed-off-by: Sumit Garg > > --- > > ArmPkg/Include/Library/OpteeLib.h | 102 ++++++ > > ArmPkg/Library/OpteeLib/Optee.c | 358 +++++++++++++++++++++ > > ArmPkg/Library/OpteeLib/OpteeLib.inf | 2 + > > ArmPkg/Library/OpteeLib/OpteeSmc.h | 43 +++ > > .../Include/IndustryStandard/GlobalPlatform.h | 60 ++-- > > 5 files changed, 531 insertions(+), 34 deletions(-) > > create mode 100644 ArmPkg/Library/OpteeLib/OpteeSmc.h > > copy ArmPkg/Include/Library/OpteeLib.h => MdePkg/Include/IndustryStandard/GlobalPlatform.h (53%) > [...] >