Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2855756ybl; Thu, 19 Dec 2019 23:05:11 -0800 (PST) X-Google-Smtp-Source: APXvYqz4tx79SHKsNCe2AoqhxensHENUv2MRF4sGcKbCYqNPkW2b3TvCQNAJBuUislg40DVeiBzh X-Received: by 2002:a9d:222f:: with SMTP id o44mr769665ota.51.1576825511841; Thu, 19 Dec 2019 23:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576825511; cv=none; d=google.com; s=arc-20160816; b=oPjzH6sBzwiYS3fAvX744/SzzpguANSnlgW1qHY2C5KAPp5WjnaEdNm38ENVXNq9Pa 4l8YlDsB5RsngvYBgzng19Yb3WEdi9hnx+4Tg8Y5jyziQSrtKCTk3rjhghWqF5y4jUBH Z6Kv8IRVGRhpl2Xicak5KbuE5ONOXDr4jMo4924GCiUxqnElvcCrQFtAnPT241wDsW9h /pGV1FG+eoCTWwveoxezOp+eNDHQKBK9aKces9yC6NKR0lAw5gmvRQVqC5Tm+E01DkD2 1ZQxCB3ENFBNus2gXIxTj5qmV/rVFFlojbrwanumS4ruMW0Cckt30OaV7fJ4lcy3dMFj Vk3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KhoSL0qx6qhD1j9wp7A++cIX6SF1304OCiAt+WTy4U8=; b=ht2sfRgNtSONcWQnROibHsTNdrs6tZM2Vsc7iZiReg4HU49kxwQLwIdQm3ViZ8dqiL tPLFeQPjEc7mBYnFxZKegc0GAwdenljVSe7mOM8XC958LssLVCkQu6igcfo3cRlqrSgb AVXUwO+KZ/b/itzkwAtma+AVA1gjiVytI2f7BtNZKAMSw6d+LvzTzkTILTgeh9woB3ja mwmNzMR6HXCwij2DNiXVJbWAKdRRY1wBmhqnOUlCgZHO2shCxvtu+SjbovKwNXScKVn+ uyjFeY2BqFrmagnQPYydvYNMqtRinmSlZ6FSZOs16suybPZVdkGrSLOrVS60e7jccxC+ caKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si1624698oij.160.2019.12.19.23.04.47; Thu, 19 Dec 2019 23:05:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727197AbfLTHEq (ORCPT + 99 others); Fri, 20 Dec 2019 02:04:46 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:58640 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfLTHEq (ORCPT ); Fri, 20 Dec 2019 02:04:46 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iiCL6-0008PG-MV; Fri, 20 Dec 2019 15:04:44 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iiCL1-0007oZ-Fl; Fri, 20 Dec 2019 15:04:39 +0800 Date: Fri, 20 Dec 2019 15:04:39 +0800 From: Herbert Xu To: Rijo Thomas Cc: Tom Lendacky , Gary Hook , "David S . Miller" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Nimesh Easow , Devaraj Rangasamy , Jens Wiklander , Ard Biesheuvel Subject: Re: [RFC PATCH v3 0/6] Add TEE interface support to AMD Secure Processor driver Message-ID: <20191220070439.etvk73fedrijsrgm@gondor.apana.org.au> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Dec 04, 2019 at 11:48:57AM +0530, Rijo Thomas wrote: > The goal of this patch series is to introduce TEE (Trusted Execution > Environment) interface support to AMD Secure Processor driver. The > TEE is a secure area of a processor which ensures that sensitive data > is stored, processed and protected in an isolated and trusted > environment. The Platform Security Processor (PSP) is a dedicated > processor which provides TEE to enable HW platform security. It offers > protection against software attacks generated in Rich Operating System > (Rich OS) such as Linux running on x86. > > Based on the platform feature support, the PSP is capable of supporting > either SEV (Secure Encrypted Virtualization) and/or TEE. The first three > patches in this series is about moving SEV specific functions and data > structures from PSP device driver file to a dedicated SEV interface > driver file. The last two patches add TEE interface support to AMD > Secure Processor driver. This TEE interface will be used by AMD-TEE > driver to submit command buffers for processing in PSP Trusted Execution > Environment. > > v3: > * Rebased the patches onto cryptodev-2.6 tree with base commit > 4ee812f6143d (crypto: vmx - Avoid weird build failures) > > v2: > * Rebased the patches on cryptodev-2.6 tree with base commit > d158367682cd (crypto: atmel - Fix selection of CRYPTO_AUTHENC) > * Regenerated patch with correct diff-stat to show file rename > * Used Co-developed-by: tag to give proper credit to co-author > > Rijo Thomas (6): > crypto: ccp - rename psp-dev files to sev-dev > crypto: ccp - create a generic psp-dev file > crypto: ccp - move SEV vdata to a dedicated data structure > crypto: ccp - check whether PSP supports SEV or TEE before > initialization > crypto: ccp - add TEE support for Raven Ridge > crypto: ccp - provide in-kernel API to submit TEE commands > > drivers/crypto/ccp/Makefile | 4 +- > drivers/crypto/ccp/psp-dev.c | 1033 ++++------------------------------------ > drivers/crypto/ccp/psp-dev.h | 51 +- > drivers/crypto/ccp/sev-dev.c | 1068 ++++++++++++++++++++++++++++++++++++++++++ > drivers/crypto/ccp/sev-dev.h | 63 +++ > drivers/crypto/ccp/sp-dev.h | 17 +- > drivers/crypto/ccp/sp-pci.c | 43 +- > drivers/crypto/ccp/tee-dev.c | 364 ++++++++++++++ > drivers/crypto/ccp/tee-dev.h | 110 +++++ > include/linux/psp-tee.h | 73 +++ > 10 files changed, 1842 insertions(+), 984 deletions(-) > create mode 100644 drivers/crypto/ccp/sev-dev.c > create mode 100644 drivers/crypto/ccp/sev-dev.h > create mode 100644 drivers/crypto/ccp/tee-dev.c > create mode 100644 drivers/crypto/ccp/tee-dev.h > create mode 100644 include/linux/psp-tee.h All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt