Message ID | 20170130142834.8459.15278.stgit@taos (mailing list archive) |
---|---|
State | Superseded |
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 D200D604A8 for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 30 Jan 2017 14:28:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C43992022B for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 30 Jan 2017 14:28:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B72A92811D; Mon, 30 Jan 2017 14:28:59 +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 921EC2022B for <patchwork-linux-crypto@patchwork.kernel.org>; Mon, 30 Jan 2017 14:28:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbdA3O2y (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Mon, 30 Jan 2017 09:28:54 -0500 Received: from mail-dm3nam03on0075.outbound.protection.outlook.com ([104.47.41.75]:33706 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753536AbdA3O2s (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Mon, 30 Jan 2017 09:28:48 -0500 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=kxAY6ldRLuelKVBAsFQHMeIbTh6qMc0ZBBHi1Cez2wM=; b=hhEjRG8JScXJuZSbbr/ooiJZOI1OAFdkhy7oRvBvMtjhGOHP+rm28i+Salrnf3DVy8pi6kHwtA94aQiMbzfV/FhOArEztvbpi5KBfKo6I2iuki758hEkeZaA02XdKE4lFWs2ZTo6qjUlhUsWX0GtOuGveDJh9ElvQE8NYEA5WC0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.19.42] (165.204.77.1) by MWHPR12MB1406.namprd12.prod.outlook.com (10.169.206.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 14:28:46 +0000 Subject: [PATCH 2/4] crypto: ccp - Set the start-of-command bit 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: Mon, 30 Jan 2017 08:28:34 -0600 Message-ID: <20170130142834.8459.15278.stgit@taos> In-Reply-To: <20170130142414.8459.71539.stgit@taos> References: <20170130142414.8459.71539.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: CY1PR08CA0011.namprd08.prod.outlook.com (10.163.94.149) To MWHPR12MB1406.namprd12.prod.outlook.com (10.169.206.17) X-MS-Office365-Filtering-Correlation-Id: 30cb0ddb-2199-44ba-fbc7-08d4491c4d06 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR12MB1406; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1406; 3:rIwrTWJo3g0cyLQMCi6mHMb+/VjiAH7qj1z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sP/j8FU5PKYNpWfGCh47bOxHarRaYiijQmZ7iMKa/lgDOpCmg/4ol+HcENm62bMwYwi6MQu9XXY/2N/GJVvGTRIR9xx4ubSANP2sDtqHKMr+U6G+wJXCuNYejT+DDB7r9xWAlqgSdND1MrlrrHYFfMN6xiX/xD5W5VnRZHKGJhLBKuKnCPQ1pw0XyV+r9qvjjkRUlH/RkgyB; 20:YCPmsVD7zhLsM3Rgt7mp//Zhz8M+vLX52157iOrE1frv5jxmxjry+e1O+KoKYRrT/tJFwprF8jdhlYDx1MtO48Xp5J6yIU/geaM7bR/DytD2Nt5XxAehLeJ2POf5LJwfD6TJ7WvN9XagAgFjJeVuNsex1hqfBWDMAtBb55o34ASoz/TDlBIykLso9I72xGsvxg9LIhYbDTf8l4iS6bUBujKD1QAEKqEsyEQK0FNipGYiYnK0EDlw+jGvE/I+ogfUU9ZMMbi6xQuVO0nhFewgV8B54lmna3ENIrR03q28QLNunddnxXSy1M6ZUOikCzLpkxXGHd0vz7Qzassey+/KxL/Itr3jeiyIY/XLSgng9FR2uvXMBu+t6MhulLbsNnK0rIASyUxJ9sEG7q0nhNHQ9siJUtPONPwhXe1yrrWz0gjVB/uCfrEpeDBp8OSgBJg8kMo97unNAe/+1TYnWn4Zsy2jw5cxSRXaYxUbLeFllHMJRMhrzOXI0jUcBZ0BJP5i X-Microsoft-Antispam-PRVS: <MWHPR12MB14068ED49843051635C17316FD4B0@MWHPR12MB1406.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6042181)(6072148); SRVR:MWHPR12MB1406; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1406; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1406; 4:WwdayQF6Iwb6zrzd8CFkhqUt0iCZwCpWX+r17BdTB5VkKPPvlkhwBCirtpizYACluoHuDF+TGXpWDva/sLUOrh0/1CCsxbZ9TzHwAxF3Cd44iWuiRCAWySYADPv3/etX9V5sihsrRL3w2A0/T14nWcjCSFwfvckl5Un14DzQpiNZWVrv3mGBniYIfvEbXxgn1RePNy+2C+iL2XEmLK9mWIocnfve/k/kYER46RrwyA5dZZKsUMBlTiJoqiHZcHo0VH7uzQCKv6cOqttJfVwWKGNjAGfS6iQ50nzmzWeJh4X98ZzP5dDjZFyiuxu+qgtwuTN9jey7VW57ODZGqsOM60Ze82WBzSyCI+J7YGyeK417rPtLQrh6NswC06+qm7UU13uYO7YLDvpZpp3o2ng1Z64Ew7F3xeQ8Dovk6bl9EuRsAmaDJGQYwkfNIDkYBd05mnYk6c5vr3iJQafzE7X7vER7/l+FyZ6GH8rah60tpMorNgjR0zK529NyHAq4EeJRxoXuALd025wnnflcxQ6LLCkHfnL/Iyd+mBP1IMr2esuP7gPNfSbcctCvFwpiM4++lcCJ0m9b/8G3w4pc7krTQ5j5Z2K1eS+PeScTFUxdjUjBdNtGRGjlj0VGFV6dON0qMr95nc1NJul1G/dOYrMaTQ== X-Forefront-PRVS: 0203C93D51 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(7736002)(25786008)(97736004)(38730400001)(189998001)(4001350100001)(6116002)(305945005)(110136003)(3846002)(50466002)(23676002)(9686003)(54906002)(68736007)(103116003)(230700001)(83506001)(66066001)(33716001)(1076002)(86362001)(92566002)(50986999)(105586002)(76176999)(54356999)(106356001)(97746001)(6916009)(81166006)(2950100002)(230783001)(8676002)(101416001)(53936002)(4326007)(90366009)(5660300001)(33646002)(2351001)(6486002)(77096006)(2906002)(81156014)(42186005)(47776003)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1406; 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?MTtNV0hQUjEyTUIxNDA2OzIzOmJKanFzeEMzRGV1azFDaXdDMFFER28wNFVI?= =?utf-8?B?N2tydzhLNWRoYzNMRHFZYVQwM2JZTjVLTFhZWURQK3d0b3l1eHZ6ejVmMkRO?= =?utf-8?B?bEVMUEEwOU5RdkFMNk9UdEZ0RXVhZlptbWlQRy8wd1dHOE40b2pQcXc1cjRi?= =?utf-8?B?ZmE0T05HY2FpRnN0Mk4xeS9mcXFERERLUmZhcjZXelRVZ3N6WGFaMkhRTlNn?= =?utf-8?B?R1ZqNGJiQkdmZWw0NUVKeDN3WUh1QzF1aTV2K202WVZ3QmNCNGZDUHhhazYz?= =?utf-8?B?RiswdWVDVUxtcmwrdXEvVWxFWDdMTGtxMlVjQ25NNlJkNEsyZUtUK2pKd3No?= =?utf-8?B?ZUl6VEorOWFKWGtUT25rU0RhREIvNGlNa29oYVE2My9RVWN2MkhMRm9kWEpH?= =?utf-8?B?elFsRVNid1U3MWU4OHZxUG5mOGlnU1A0UjhiM096LytMUnd4MWJPTTNaUUo1?= =?utf-8?B?RzhnTFUzTUV3Mis5WDdSUzJ6NEhqYjdFa1ZsL3RKUHQzeDJqL1I4OStkLy9B?= =?utf-8?B?dFg1eGZzMzhBSUNkamRNYndLbnhkbkQ0Nmd5M3h5NXRYUVpNZHdFRTdkQ3NS?= =?utf-8?B?ck9CMy9ROXJLVVc2VEI1aWJoYXdlRlFGQVlacHk1NDIxKzJ0ajYvY2R4dXdT?= =?utf-8?B?NW9XbTFsMXZXMGhsUUREdm5qTnFQVmV0V3NvTXkyL0pGQUJSZTZpV29oZEpa?= =?utf-8?B?RTVmNHpnbTExNURqTzJUWElIMmZsSWFERUtZRnlpSElWeWdqSFA0QXZNYUtQ?= =?utf-8?B?VDlLaXhsQWs4b09CVnRGY3AraXQ2RmJoeWdsQjdtcTJ4OXUveUZRV0xpUDJE?= =?utf-8?B?SCt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YiyjOX+p4e1qa8euTLDgtVnyiv9+DkWCpK0geUQUa5vdQM/A71IftIworDYY490HPZ8wA/kR3J70u8mONcyhGeOusf0D180JVxzH0SSRCXFlax+aoOaTqe5ZyctxSaUffyRkluVIE96EL0WwKY/u4YXV1KJdeMxqY+M88F8/PnkzkZRHA1W+/hz70bycNG9DzETnugAIQVofkiQ==; 20:pP5hOwAsuPOEfuYuqi74wObVfXiAO+dLWz+bZGTsjUZqo41VlonbInqHf63w/gjqwAr6qmDWAc8ASGxKT+Cl6ir0GESsCowjPVO9fnJasFGzYKIOi3JrnAWxyd5xDi8pqriypIV+Eb/Wz7jqxKGKiLm0bRskp1ClynQ4lWQEEVCAZIaq+NXCJtektZoZhrI/MSNvmXrJiwSTVz2jCyHORELgkjr5UIs5cQEM0WbKjPzcgXiOFR98cgPgq9gfHo6k X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2017 14:28:46.3225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1406 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 |
It turns out that this change will negatively impact performance. Please ignore. I will submit a V2 patch set. On 01/30/2017 08:28 AM, Gary R Hook wrote: > The start-of-command bit should be set for every sha > operation. > > Signed-off-by: Gary R Hook <gary.hook@amd.com> > --- > drivers/crypto/ccp/ccp-ops.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c > index 50fae44..1a27af3 100644 > --- a/drivers/crypto/ccp/ccp-ops.c > +++ b/drivers/crypto/ccp/ccp-ops.c > @@ -1077,6 +1077,7 @@ static int ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) > case CCP_SHA_TYPE_1: > case CCP_SHA_TYPE_224: > case CCP_SHA_TYPE_256: > + op.soc = 1; > memcpy(ctx.address + ioffset, init, ctx_size); > break; > default: > > -- > 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 >
diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c index 50fae44..1a27af3 100644 --- a/drivers/crypto/ccp/ccp-ops.c +++ b/drivers/crypto/ccp/ccp-ops.c @@ -1077,6 +1077,7 @@ static int ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) case CCP_SHA_TYPE_1: case CCP_SHA_TYPE_224: case CCP_SHA_TYPE_256: + op.soc = 1; memcpy(ctx.address + ioffset, init, ctx_size); break; default:
The start-of-command bit should be set for every sha operation. Signed-off-by: Gary R Hook <gary.hook@amd.com> --- drivers/crypto/ccp/ccp-ops.c | 1 + 1 file changed, 1 insertion(+) -- 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