Message ID | 20160727001040.24944.93400.stgit@taos (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> 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 CDAEE607D8 for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 27 Jul 2016 00:25:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDDC426A4D for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 27 Jul 2016 00:25:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0C8B276AE; Wed, 27 Jul 2016 00:25:25 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 1B03426A4D for <patchwork-linux-crypto@patchwork.kernel.org>; Wed, 27 Jul 2016 00:25:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758207AbcG0AZV (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Tue, 26 Jul 2016 20:25:21 -0400 Received: from mail-bl2nam02on0041.outbound.protection.outlook.com ([104.47.38.41]:3461 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757678AbcG0AZR (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Tue, 26 Jul 2016 20:25:17 -0400 X-Greylist: delayed 906 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Jul 2016 20:25:16 EDT 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=urwQD1NwNZcXMLJjBbUbCuMRLPqvtgrOHNdcD/XkKgw=; b=M2T8F5CKbxq5k5n9iVwyV2gqtiMWUyQubjxl5PjcZIkc2Ttp5iINLBWd8npUPZ62A4+JvV/rlpSGzDSwR5Vtw8IF6mRTV8Erso5NVh/Q8nNwTsLRuv4AO8T1+89PLsRLlIB0VdY3AtqfFGO2gHGDaahFFk6f7guB9Jbm0oPeXvE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.19.42] (165.204.77.1) by SN1PR12MB0350.namprd12.prod.outlook.com (10.162.4.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Wed, 27 Jul 2016 00:10:44 +0000 Subject: [PATCH 09/10] crypto: ccp - Enable DMA service on a v5 CCP From: Gary R Hook <gary.hook@amd.com> To: <linux-crypto@vger.kernel.org> CC: <thomas.lendacky@amd.com>, <herbert@gondor.apana.org.au>, <davem@davemloft.net> Date: Tue, 26 Jul 2016 19:10:40 -0500 Message-ID: <20160727001040.24944.93400.stgit@taos> In-Reply-To: <20160727000652.24944.44919.stgit@taos> References: <20160727000652.24944.44919.stgit@taos> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN2PR80CA034.lamprd80.prod.outlook.com (10.141.39.172) To SN1PR12MB0350.namprd12.prod.outlook.com (10.162.4.16) X-MS-Office365-Filtering-Correlation-Id: b67387f0-96c7-4abf-4aee-08d3b5b273e8 X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0350; 2:wH0e/l7vlfFCnr8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Wp80kh5PmxGuxZnnN/Qpvv9ocRrhc/8ovc0kzNLZgEDJZ/yyevBHm0TYEn2+sTz1GZMN+dk0eI32kGEPnocKwFAfQi7eKyyX2peK2hfuTbOQiXOnOqP+pZNc5SDVeJG3DgyDhsUJz3vBWrfRr9IbeI+EyGMNn1aZDlDKsEhUYrsGCCFBOer2PpvoSPj7WYmKC9oCHG+534 cRrGff/r1jmNf6BmwmFJRZBnro X-Microsoft-Antispam-PRVS: <SN1PR12MB0350477B1C682E9650653E0DFD0F0@SN1PR12MB0350.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:SN1PR12MB0350; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0350; X-Forefront-PRVS: 0016DEFF96 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(3846002)(7846002)(1076002)(6116002)(586003)(47776003)(2950100001)(7736002)(103116003)(230700001)(23676002)(68736007)(66066001)(4326007)(33716001)(101416001)(9686002)(8676002)(2906002)(106356001)(42186005)(105586002)(76176999)(54356999)(50986999)(86362001)(2351001)(4001350100001)(77096005)(50466002)(33646002)(110136002)(305945005)(189998001)(97746001)(229853001)(97736004)(19580405001)(81166006)(92566002)(83506001)(19580395003)(81156014)(71626007); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0350; H:[10.236.19.42]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMzUwOzIzOmg3V2pXcFlPZ3dtOEp3OTJTZXdLeWwxQVFX?= =?utf-8?B?UWFKYXg0WVBFQ3ZnTUpaY0NwTHRmZXU4clpHTmJ2dmJL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qXveWlpgDu5129GrIDENjDk+Qe//i5c6QiX5kdamVHdOFOQmDjmm3klV4MKUt+XYBD759f4NhaXMIEqFsaZCURWEjR/54tvLcJnaM7Bsrio/1KImGepXfbCHxfXzSnlK5AYg==; 5:oRHjzeaRZaz8QpvWu8GYs5E/Pd8fOYqmXtIzXwPmrSFyfHLb0Onb0PA4PDYixVhAlgfE9d0YypppoT553+OKdQrQaU/2wVawYBc4zph18oKM98VzjiGMnFRVwk1DmW/XTl+MJGIen7d4Ho0ik6GsFQ==; 24:25S38Cp3qc7m3EPgitCk7wMMELzMHrU8CZPJxhTEm7wLAOG+kwMvg5bPO5luAeMD+J+F+tdaR54lNAUCfPiDex8Xn0I39ym+bctlPnWpL+k=; 7:+GsQIybDvHK6W8CakwQlKPemW80+cWQGxBoFtlrQd3q58FXWYUhg9BK1PaqoisTEqxn/3Ee83Jz0l+fcWNWH1WYcSz6snVHrAIfAfwCJD4itZOz3UWu+WTsMelFbqrP5z0UQcMGMJI4ggBoHjLqZUrgjv6M1cQ9lv4NSUkfiIYUh7afC/6ulk4KlIK4j2oAnBPXzSpwyoB5E4ko0vSGXHdbmkshiEXMdfAgrgdaS40R0Ncg393R0AaniRilG2Cmi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0350; 20:qnvEcvMiMZVs6nmF4mQOaOs5xc8DUjaxe3h/Ngn9+MoF1IywsKgsbYQOqN834SJyWzS9BAbi6O56f+NJJQ7/h2uHExA0EtwrlxJnvuedsma8vOkUiJYxU1wO12pCB/Dj8Tw1tKC7Mc630Z3hYYLvNv8e2NwivFhP8sa2N7w1k9ddJl6POzX37nzch2KsvcmTxZ4doHdSabclVn85RiM1n5K+my2A+OcBlv3GMQQIZK2Bms/guE/oOfvIZRvmux3s X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2016 00:10:44.1540 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0350 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c index ddce220..4086714 100644 --- a/drivers/crypto/ccp/ccp-dev-v5.c +++ b/drivers/crypto/ccp/ccp-dev-v5.c @@ -832,6 +832,11 @@ static int ccp5_init(struct ccp_device *ccp) if (ret) goto e_kthread; + /* Register the DMA engine support */ + ret = ccp_dmaengine_register(ccp); + if (ret) + goto e_hwrng; + return 0; e_kthread: @@ -856,6 +861,9 @@ static void ccp5_destroy(struct ccp_device *ccp) struct ccp_cmd *cmd; unsigned int i; + /* Unregister the DMA engine */ + ccp_dmaengine_unregister(ccp); + /* Unregister the RNG */ ccp_unregister_rng(ccp);
Every CCP is capable of providing general DMA services. Register the device as a provider. Signed-off-by: Gary R Hook <gary.hook@amd.com> --- drivers/crypto/ccp/ccp-dev-v5.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html