From patchwork Wed Jun 28 19:39:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 9815261 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A27A4603F2 for ; Wed, 28 Jun 2017 19:40:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 925862856E for ; Wed, 28 Jun 2017 19:40:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86DBE28574; Wed, 28 Jun 2017 19:40:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 857BF1FFAD for ; Wed, 28 Jun 2017 19:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbdF1TkH (ORCPT ); Wed, 28 Jun 2017 15:40:07 -0400 Received: from mail-dm3nam03on0073.outbound.protection.outlook.com ([104.47.41.73]:54208 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751505AbdF1TkF (ORCPT ); Wed, 28 Jun 2017 15:40:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6mqnXjEWWh/KydmLTCwhLlLPmOLrgfo96P79u1V/bWE=; b=LgrWlerRmrEub96h+1RpOihOjwsGv8UoAEr4js2Osq0fCcvlVZU+1PMYuQzKQTxEBHwbq6Oq5YUif9XaOSzseGvGZgmWrVA3ppsu09X0Z+sl030AIrUCY0AUk30N/UOJP42Sf95UPqWV056GupHdgihYQ8+jYP+Mg8DUQaRcX+k= Authentication-Results: davemloft.net; dkim=none (message not signed) header.d=none; davemloft.net; dmarc=none action=none header.from=amd.com; Received: from [10.236.136.62] (165.204.77.1) by SN1PR12MB0160.namprd12.prod.outlook.com (10.162.3.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Wed, 28 Jun 2017 19:40:02 +0000 Cc: brijesh.singh@amd.com, gary.hook@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net Subject: Re: [PATCH v2 2/3] crypto: ccp - Introduce the AMD Secure Processor device To: Tom Lendacky , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170623160630.63292-1-brijesh.singh@amd.com> <20170623160630.63292-3-brijesh.singh@amd.com> <047bd869-675c-33de-d454-7773a711266d@amd.com> From: Brijesh Singh Message-ID: <7f88d0bd-daa8-5ab0-ae73-80432d2c791d@amd.com> Date: Wed, 28 Jun 2017 14:39:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <047bd869-675c-33de-d454-7773a711266d@amd.com> Content-Language: en-US X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR17CA0013.namprd17.prod.outlook.com (10.173.147.23) To SN1PR12MB0160.namprd12.prod.outlook.com (10.162.3.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca46a6fd-78d5-42a4-4b56-08d4be5d7863 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1PR12MB0160; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0160; 3:MyN4qrCJiP5g8qjLBPMQfF43RrmM70NAng4Exn+m/hz2q2dT0sJBvrL0uAesoUzdocw/SSA1KIleXfncAR+fV6I+sUvdjV34sqN2uYyGtnr7b0jBSXRxTRYAXaj8PzaEcpq5eYXsa+67EfP5XdL2wdplKgjKEljlysO7pCuIw+MHNIiJn5Ieeqk+dI4GfH2KTKanjt0Jsm4timPOiXFdO+/BGbuLRw5rHcHkPhcU8mhhqVTpWk77bUNknD1lMMhv3DCMSZAU4VA4js0hZ9IBfmIJh/bh9vi8eJSRx7KKjIXYV+kBc4npLmXM/Y15I4EpQ5O8b31cCZTldjT2XQq97Mbl7Xev/ZpSdRYsOtWNPfdqm0GeFMHxMZWjvMPwOyFqYbCdhIyMcA+WB7OVFAe7iD/zNdT6LkiX6HIIJ+PnZxuKq/I99FOUeV2WKN/zSqM6C1atADNX+3NxoFu/CMaREhXlywmlxS9zk+I1vj3S1KJj0Oafa5b4LEemi2UT3UhT7+slwt8sfRTGiv4mVv/MMrEWF0W5xN0s3kIASspdLmoLAcTLuI+p+5lNriAtM//ieJUSMIwENgdIxSnL74ytDSiXg6S4K0ThUdmFMczTPk/AB5tCQUbrMOPI/ql7rq3y9L9qHL69ZxUr/iYZMysICpYXpbA7d8qkr/m2V4VNPQhahcCWCmpfKdEr6+TCqpzWJ2mfxP7yc7RvV8M0JBPvfC/9koenmCyyEFxEWu5MoSSiZx/vxgh73XbETmzzXvlWeO01JF0tRHVtMtN5i57PVw== X-MS-TrafficTypeDiagnostic: SN1PR12MB0160: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0160; 25:XM1rFhYJJvfAmY+ygGt88/x+gt0M6Q1wDQvbSWu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soft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(133145235818549)(236129657087228)(192374486261705)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR12MB0160; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR12MB0160; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMTYwOzQ6OEFwQzl1Z3JWR0pVdWtKeEh5czFiY3dRU3Ry?= =?utf-8?B?WDB2TGYrdk5Jb0hSaHZvUmNXcEtZNDVQeHR6TWUwVEpXcG10eEtRU3B6bGY2?= =?utf-8?B?Tkt3eXZlakhFNGFHKzFBM1NtWDNSTXBML3c4c3Zxb1Ezakt3UDE5V0kxMGgr?= =?utf-8?B?V05ONHlPVmNDbFdua0xmb0s5Zk9nbEllaFF0SlBLWjIwb1NleEx0UU9rN0RJ?= =?utf-8?B?UXZmWjlKSENUdlVyNjF0a0l0eEpGT3dtaEtML2dZYnV3cDdSYVNtTUlUKytS?= =?utf-8?B?SHNScExqbzJBM2pPQVVuckd5RXBxY0FYYlRTb3lNQnpQSCs4WEROczBnQmdr?= =?utf-8?B?T3lEenhiSU8xMGFsUXQrQ0E2RjRQOEM3YXNrdnJQVVpmOEQwbFg1T0hKTnlN?= =?utf-8?B?UUxyb2JGa1pYYjVCQ1pmcjR5L3o2cUtEUjBrUDZ1REkzOFZ2NmFtNFVWWDVN?= =?utf-8?B?RWVYb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s?= =?utf-8?B?WEhoSkdBSEllRVpaR3A2OEtiMkxhQ1doY3JzajlaNGlMUUZCcHczUjhwMUR0?= =?utf-8?B?MkJHSEhSdjNzUTIvYTRzeGhHVk41OElLckVlRDJHVzdYNm5PNzJLVkZxNmp2?= =?utf-8?B?N050RVpzOG9rdTd0cE5pOHpINlNScHdwSkpjMGJKN3hIMHZqOXlCS0c3Szlz?= =?utf-8?B?UUp0TDdHU00rMmRPL1plTG5TL2hOL1VTdWI1Y2lYcXAvYjZuOUdnUTlCTW1X?= =?utf-8?B?bk1hQWRHUkNLWDM5QjJGS2p3R1J1RWJTRkJGWTR6SHJEL1p6aGxKVW5vckxl?= =?utf-8?B?RnZ5MkVNT0R1TmRjVHJQaENxcVhsMTE3RUR1bjNTeG9EOGI0ay9ZajhwQW5o?= =?utf-8?B?Z25yZkdHR0d5ZVZ2VnloSklNVVM5L1FGN1VYbFdlMmlOZ245R3hpY3dYaVVG?= =?utf-8?B?OVM5VHZ2TjRrZVgwY1Fxa3U2WnYrbEFmYUZOSDdTNWxMUT09?= X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(39860400002)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(377454003)(24454002)(229853002)(31686004)(189998001)(42186005)(305945005)(4326008)(25786009)(66066001)(86362001)(31696002)(81166006)(47776003)(5660300001)(65826007)(7736002)(65806001)(8676002)(65956001)(2950100002)(6666003)(50466002)(77096006)(2906002)(6486002)(6246003)(3846002)(6116002)(110136004)(478600001)(64126003)(23676002)(230700001)(36756003)(50986999)(76176999)(54356999)(83506001)(33646002)(38730400002)(4001350100001)(53936002)(90366009)(53546010); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0160; H:[10.236.136.62]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMTYwOzIzOkxMZ3kzY20wYVF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k9MQwSexapRPdK37jUF8lmoHeevMv31EGt+FRMABjmU= X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0160; 20:40vfSujfNDnQeTdOJ8M7h74aiZwIM8Xz8HIRehz6r2aeIldE2tCrKt/UjCEGmcfN4BaSXZdgZ8/rp8UiwSsjfqw69LPkATY99qL8j+x7NYRd9y0/34wzRce0nD0UGVG/AtHpgDiVJQLKdE7mnk1r8HY5rQfVSIn9j/+FgngjOax3Tm1sIuGRaIuZYE1DQ5G68u5+xawFm41yzFwGBjx5B2pdk/4S9aIN4dybhhQr5aZjtvv6Ak5/yz9C0upuY7Wv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2017 19:40:02.0656 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0160 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 06/28/2017 12:47 PM, Tom Lendacky wrote: >> >> diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig >> index 0528a62..418f991 100644 >> --- a/drivers/crypto/Kconfig >> +++ b/drivers/crypto/Kconfig >> @@ -512,14 +512,14 @@ config CRYPTO_DEV_ATMEL_SHA >> To compile this driver as a module, choose M here: the module >> will be called atmel-sha. >> -config CRYPTO_DEV_CCP >> - bool "Support for AMD Cryptographic Coprocessor" >> +config CRYPTO_DEV_SP >> + bool "Support for AMD Secure Processor" >> depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM >> help >> - The AMD Cryptographic Coprocessor provides hardware offload support >> - for encryption, hashing and related operations. >> + The AMD Secure Processor provides hardware offload support for memory >> + encryption in virtualization and cryptographic hashing and related operations. >> -if CRYPTO_DEV_CCP >> +if CRYPTO_DEV_SP >> source "drivers/crypto/ccp/Kconfig" >> endif >> diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig >> index 2238f77..bc08f03 100644 >> --- a/drivers/crypto/ccp/Kconfig >> +++ b/drivers/crypto/ccp/Kconfig >> @@ -1,26 +1,37 @@ >> -config CRYPTO_DEV_CCP_DD >> - tristate "Cryptographic Coprocessor device driver" >> - depends on CRYPTO_DEV_CCP >> - default m >> - select HW_RANDOM >> - select DMA_ENGINE >> - select DMADEVICES >> - select CRYPTO_SHA1 >> - select CRYPTO_SHA256 >> - help >> - Provides the interface to use the AMD Cryptographic Coprocessor >> - which can be used to offload encryption operations such as SHA, >> - AES and more. If you choose 'M' here, this module will be called >> - ccp. >> - >> config CRYPTO_DEV_CCP_CRYPTO >> tristate "Encryption and hashing offload support" >> - depends on CRYPTO_DEV_CCP_DD >> + depends on CRYPTO_DEV_SP_DD >> default m >> select CRYPTO_HASH >> select CRYPTO_BLKCIPHER >> select CRYPTO_AUTHENC >> + select CRYPTO_DEV_CCP >> help >> Support for using the cryptographic API with the AMD Cryptographic >> Coprocessor. This module supports offload of SHA and AES algorithms. >> If you choose 'M' here, this module will be called ccp_crypto. >> + >> +config CRYPTO_DEV_SP_DD >> + tristate "Secure Processor device driver" >> + depends on CRYPTO_DEV_SP >> + default m >> + help >> + Provides the interface to use the AMD Secure Processor. The >> + AMD Secure Processor support the Platform Security Processor (PSP) >> + and Cryptographic Coprocessor (CCP). If you choose 'M' here, this >> + module will be called ccp. >> + >> +if CRYPTO_DEV_SP_DD >> +config CRYPTO_DEV_CCP >> + bool "Cryptographic Coprocessor interface" >> + default y >> + select HW_RANDOM >> + select DMA_ENGINE >> + select DMADEVICES >> + select CRYPTO_SHA1 >> + select CRYPTO_SHA256 >> + help >> + Provides the interface to use the AMD Cryptographic Coprocessor >> + which can be used to offload encryption operations such as SHA, >> + AES and more. >> +endif > > I think the Kconfig changes need to be looked at a bit closer. The > hierarchy of original version is changed and the number of entries > might be able to be reduced. > Thanks Tom, how about the below patch? In this I am leaving the top level config as-is and adding CONFIG_CRYPTO_DEV_SP_CCP to enable the CCP device support inside the SP device driver. [*] Support for AMD Secure Processor Secure Processor device driver Encryption and hashing offload support -*- Cryptographic Coprocessor device diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 0528a62..148b516 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -513,11 +513,11 @@ config CRYPTO_DEV_ATMEL_SHA will be called atmel-sha. config CRYPTO_DEV_CCP - bool "Support for AMD Cryptographic Coprocessor" + bool "Support for AMD Secure Processor" depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM help - The AMD Cryptographic Coprocessor provides hardware offload support - for encryption, hashing and related operations. + The AMD Secure Processor provides hardware offload support for memory + encryption in virtualization and cryptographic hashing and related operations. if CRYPTO_DEV_CCP source "drivers/crypto/ccp/Kconfig" diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index 2238f77..ef3a5fb 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -1,26 +1,34 @@ config CRYPTO_DEV_CCP_DD - tristate "Cryptographic Coprocessor device driver" - depends on CRYPTO_DEV_CCP + tristate "Secure Processor device driver" default m - select HW_RANDOM - select DMA_ENGINE - select DMADEVICES - select CRYPTO_SHA1 - select CRYPTO_SHA256 help - Provides the interface to use the AMD Cryptographic Coprocessor - which can be used to offload encryption operations such as SHA, - AES and more. If you choose 'M' here, this module will be called - ccp. + Provides AMD Secure Processor device driver. + If you choose 'M' here, this module will be called ccp. + +if CRYPTO_DEV_CCP_DD config CRYPTO_DEV_CCP_CRYPTO tristate "Encryption and hashing offload support" - depends on CRYPTO_DEV_CCP_DD default m select CRYPTO_HASH select CRYPTO_BLKCIPHER select CRYPTO_AUTHENC + select CRYPTO_DEV_SP_CCP help Support for using the cryptographic API with the AMD Cryptographic Coprocessor. This module supports offload of SHA and AES algorithms. If you choose 'M' here, this module will be called ccp_crypto. + +config CRYPTO_DEV_SP_CCP + bool "Cryptographic Coprocessor device" + default y + select HW_RANDOM + select DMA_ENGINE + select DMADEVICES + select CRYPTO_SHA1 + select CRYPTO_SHA256 + help + Provides the support for AMD Cryptographic Coprocessor (CCP) device + which can be used to offload encryption operations such as SHA, AES + and more. +endif diff --git a/drivers/crypto/ccp/Makefile b/drivers/crypto/ccp/Makefile index 59493fd..d2f1b52 100644 --- a/drivers/crypto/ccp/Makefile +++ b/drivers/crypto/ccp/Makefile @@ -1,9 +1,9 @@ obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o -ccp-objs := ccp-dev.o \ +ccp-objs := sp-dev.o ccp-platform.o +ccp-$(CONFIG_CRYPTO_DEV_SP_CCP) += ccp-dev.o \ ccp-ops.o \ ccp-dev-v3.o \ ccp-dev-v5.o \ - ccp-platform.o \ ccp-dmaengine.o \ ccp-debugfs.o ccp-$(CONFIG_PCI) += ccp-pci.o