From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::442; helo=mail-wr1-x442.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (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 DF29821184E8B for ; Wed, 31 Oct 2018 13:43:10 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j26-v6so3789195wre.1 for ; Wed, 31 Oct 2018 13:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZmFXicKazNcyZZDbNHDydVYYdH3mM/UyZE0VlqqOthM=; b=QAOUX2an6YBA0Za0hNm8OXJyQ7Mc0CIsbI9xF+SU6Y5XOi+E8LOou5vwhiLCoC/OdA RBzwj/nFNvH3XzRO0n1LE/cShM8deLso6stsM1ZlgjhKLuloP6dRkotgTNwhIabGt2xv +4PRQGdnDah50BCMoKG7b60pPhIj/0mRCtmdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZmFXicKazNcyZZDbNHDydVYYdH3mM/UyZE0VlqqOthM=; b=gGuLD0htEmYDeFR+Ys4RPNVIKlRgC2fYYggOwLdGP9llAn5giTvzfiyq23NjQhabG9 9C6BujtJI1c52k4DGc5JA5L4BeJtNr7xAaMtb/Huu/w7B/v687gUxmTMZKAT9Q0Grl8g PmQu1+zmZ4OxcD18/G6znqcDseUsYJV9xYMoe9P3+a6Orr+AXZrqhlXZuNLgdbvsBx2G BvzxTGtwteIrtY7Dy1jRuLhkQdWUJRKjZPE1flbLxDqV8dPUGIxMP2TkN45w0zTPZaU2 /9cV5MO+ztVyKS5kTAnRO9gGl59fRTtxWg+2hMY9bzdTKphxcOo3e9R2wLiRlMRd6LaD QB4w== X-Gm-Message-State: AGRZ1gIn38ZlVbjnvV/AX5mSIlfTuqoIzPvCkaWN7dtjJ1GQlsd0+nb3 TwFu+bosTNG7QONPZl0cLo5d4Q== X-Google-Smtp-Source: AJdET5c7ehgoq/Pz1ZR4XgudBK88mPuzp0b36YflZ+KDzoXt4cbtTHWBA5x50i+VaVJUwcrd2MFujA== X-Received: by 2002:adf:bd0f:: with SMTP id j15-v6mr3968429wrh.267.1541018589063; Wed, 31 Oct 2018 13:43:09 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id r1sm3217300wrx.15.2018.10.31.13.43.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Oct 2018 13:43:07 -0700 (PDT) Date: Wed, 31 Oct 2018 20:43:05 +0000 From: Leif Lindholm To: Chris Co Cc: "edk2-devel@lists.01.org" , Ard Biesheuvel , Michael D Kinney , Sumit Garg Message-ID: <20181031204305.mkivnbhnna4niy2g@bivouac.eciton.net> References: <20180921082542.35768-1-christopher.co@microsoft.com> <20180921082542.35768-2-christopher.co@microsoft.com> MIME-Version: 1.0 In-Reply-To: <20180921082542.35768-2-christopher.co@microsoft.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [PATCH edk2-platforms 01/27] Platform/Microsoft: Add OpteeClientPkg dec 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: Wed, 31 Oct 2018 20:43:11 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline +Sumit (just to loop you two together). Is there anything Microsoft platform specific about what will go in here? / Leif On Fri, Sep 21, 2018 at 08:25:53AM +0000, Chris Co wrote: > On Windows IoT Core devices with ARM TrustZone capabilities, > EDK2 runs in normal world and we use OP-TEE to execute > secure world operations. The overall package will contain > client-side support to invoke EDK2 services implemented as > OP-TEE trusted applications that run in secure world. > > This commit adds the initial dec file to add some PCD settings > needed by other packages. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Christopher Co > Cc: Ard Biesheuvel > Cc: Leif Lindholm > Cc: Michael D Kinney > --- > Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec | 49 ++++++++++++++++++++ > 1 file changed, 49 insertions(+) > > diff --git a/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec b/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec > new file mode 100644 > index 000000000000..4752eab39ce3 > --- /dev/null > +++ b/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec > @@ -0,0 +1,49 @@ > +## @file > +# > +# OP-TEE client package > +# > +# OP-TEE client package contains the client-side interface to invoke OP-TEE TAs. > +# Certain EDKII services are implemented in Trusted Applications running in > +# the secure world OP-TEE OS. > +# > +# Copyright (c) 2018 Microsoft Corporation. All rights reserved. > +# > +# This program and the accompanying materials > +# are licensed and made available under the terms and conditions of the BSD License > +# which accompanies this distribution. The full text of the license may be found at > +# http://opensource.org/licenses/bsd-license.php > +# > +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, > +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. > +# > +## > + > +[Defines] > + DEC_SPECIFICATION = 0x0001001A > + PACKAGE_NAME = OpteeClientPkg > + PACKAGE_GUID = 77416fcb-10ec-4693-bdc0-1bdd74ec9595 > + PACKAGE_VERSION = 0.01 > + > +[Includes] > + > +[LibraryClasses] > + > +[Guids] > + gOpteeClientPkgTokenSpaceGuid = { 0x04ad34ca, 0xdd25, 0x4156, { 0x90, 0xf5, 0x16, 0xf9, 0x40, 0xd0, 0x49, 0xe3 }} > + > +[PcdsFixedAtBuild] > + gOpteeClientPkgTokenSpaceGuid.PcdTpm2AcpiBufferBase|0|UINT64|0x00000005 > + gOpteeClientPkgTokenSpaceGuid.PcdTpm2AcpiBufferSize|0|UINT32|0x00000006 > + > + ## The base address of the Trust Zone OpTEE OS private memory region > + # This memory is manager privately by the OpTEE OS. > + gOpteeClientPkgTokenSpaceGuid.PcdTrustZonePrivateMemoryBase|0xDEAD1|UINT64|0x00000001 > + > + ## The size of the Trust Zone OpTEE OS private memory region > + gOpteeClientPkgTokenSpaceGuid.PcdTrustZonePrivateMemorySize|55|UINT64|0x00000002 > + > + ## The base address of the Trust Zone OpTEE OS shared memory region > + gOpteeClientPkgTokenSpaceGuid.PcdTrustZoneSharedMemoryBase|0xDEAD2|UINT64|0x00000003 > + > + ## The size of the Trust Zone OpTEE OS shared memory region > + gOpteeClientPkgTokenSpaceGuid.PcdTrustZoneSharedMemorySize|0xAA|UINT64|0x00000004 > -- > 2.16.2.gvfs.1.33.gf5370f1 >