From patchwork Wed Apr 12 22:54:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary R Hook X-Patchwork-Id: 9678471 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 858D160382 for ; Wed, 12 Apr 2017 22:54:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7745128621 for ; Wed, 12 Apr 2017 22:54:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BF2F28648; Wed, 12 Apr 2017 22:54:51 +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 05D6D28621 for ; Wed, 12 Apr 2017 22:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755104AbdDLWyu (ORCPT ); Wed, 12 Apr 2017 18:54:50 -0400 Received: from mail-bn3nam01on0074.outbound.protection.outlook.com ([104.47.33.74]:27874 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754893AbdDLWyt (ORCPT ); Wed, 12 Apr 2017 18:54:49 -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=gZ2IXqqBtPCuUp2yK/3Ywh/jAnN34JczE22CC+pcXtw=; b=YPAwp3t0LxzP4JMua6puSx9Y0qyws96iyte128FwKkJjRoh04W3Yh0iT6oMS2STXDPaeTHafFilBsBQCfPJwMa/BC5BThTZVwWy+SKlEBH95ylo4RMkpWzs1zniWmuT51mnYa3kebLJsJvitR/r/MzgfabJySE5tFyztMedKhtI= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from [10.236.19.42] (165.204.77.1) by CY1PR12MB0475.namprd12.prod.outlook.com (10.163.91.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 12 Apr 2017 22:54:46 +0000 Subject: [PATCH 1/2] crypto: ccp - Use only the relevant interrupt bits From: Gary R Hook To: CC: , , Date: Wed, 12 Apr 2017 17:54:35 -0500 Message-ID: <20170412225435.17707.67228.stgit@taos> In-Reply-To: <20170412225324.17707.75176.stgit@taos> References: <20170412225324.17707.75176.stgit@taos> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR12CA0066.namprd12.prod.outlook.com (10.175.83.156) To CY1PR12MB0475.namprd12.prod.outlook.com (10.163.91.29) X-MS-Office365-Filtering-Correlation-Id: 117f3022-96b3-4ea0-466e-08d481f6eaf3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY1PR12MB0475; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0475; 3:t1YsLGU9aYljX0+mS9CSveUk2AE0Epe93fbQkfovB4jK/0vkV4G9fFk0ov16hjYFFhkEI9EEpHPJsDxKp9P/xZukZGhzr/iONX4jVUXBDa7Wxx8zQCYjZNWQp5sBilI7i/adBNAcPcLQog1BQlTEntxzi38YIgqEXheqatjFg4ydkJNRVHH/E8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L0JNO57S68WI+yri7NlnMMX2AXMMophKBLeugcNyFGDki02es6mWSNvNEKDDO5oE2ekYkRfoDW5ycA1/mE6WMCDDQ6bL+We4Bg/ReZHUSImd8wA4688s1E7fFBZKN9Fsg+y54Pxw1zQUO831ToC0Fis0R0UidrKazPQp0PyG3LZ1fqItDMkN8FnrefC0uG3NIE3X2H9l2d3/Yxb3d7/EcN11FeNpjbwAQiTxn9clWWU4vsA3aUHi0kYbcdKfRp91KxiNTJbKabrMigfaB0yrAuSBwVTcG97r5HkWguF/xzvNxV0PNppsKcy/h7b24pNK0JZcC0PESDWQvSndn3nYB24FdhqrzbrxwMwePOqb6/Au98fUxo6pzLiDibLIgHfLbmS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:CY1PR12MB0475; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0475; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0475; 4:SZ8nRXWot3giiegb4TNIunX3yki8h0q24VcboG7f88LhPEy3GB32Ixa2QU9u+Myk36S8AXvZ1V2QPokeh+MqDnsoNGXuEx9AdmtchXv0geeCieu4IRLoKGkC9+1e0YnJ/QptC6cLdmEU7nMvVymbGJKsjTE20g7JaBOANeQrarHVXgMVs6pJK35e+uzvBYVolOJgaNVK4Y82wobbI44tFJOOoK8BkYGX7cAmQ5TIsVESkehlzpiZ4c/aNRg+wWuYk+Rm/mvW+Ipf3gAR0lR91xBq75OzF7eJJ4czpaaOjZdv8UvSm9jQpgSeDm+6HsibrTv8FxEiNunSwt0eSHy0DhZTG6t4xTLU4a2MTGJS62/g5+fASiZoCCS/nNNEEAY3X9/Fxij/WOXEltRNaVquTeUjLDLtlHZWv2WF6Pt3qMlvvACZUQ2bT5jzBdP84KthBTEvMmM+nMb8Vc7jEpURKxozn7tGCYAByDj56fFRFlSFIjQcyj6TB3zXrM42ZpeDdQ0hKNaLx21zNKJzhnJu9T7IdR0ge63wFQwdwdLsDvMnomlgficSeepOp2Ej8qpQCScQ1KOMo71mz5Y4I2hSGB00R71kqCLg21ic/vWKh1qiTlReadMmoUFCj7iwYRe353DiGp5L/DW5XuqNleSr5PuSDcECJ20c2I/3w1BgD+peh/HeNeX6GOP6IZNBRl6tpAnGqgA3P8Aw+A2EDT3O1lFLb18Gl6Ec/w7KaSTSZpKu3PBecyoFgQS2iK/Di9rrdfM5hhDktH0zOnvVAQhR9w== X-Forefront-PRVS: 027578BB13 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(39450400003)(39400400002)(39850400002)(39840400002)(39410400002)(103116003)(23676002)(8676002)(5660300001)(110136004)(4326008)(1076002)(25786009)(305945005)(7736002)(77096006)(54906002)(6666003)(6486002)(2950100002)(6916009)(90366009)(9686003)(2906002)(86362001)(230700001)(38730400002)(97746001)(6116002)(33646002)(42186005)(33716001)(76176999)(54356999)(50986999)(50466002)(2351001)(189998001)(66066001)(47776003)(53936002)(3846002)(71626007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0475; H:[10.236.19.42]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjEyTUIwNDc1OzIzOmFsK0dWM1pSRGlhQjRXMzhTeEFvVVhTUGxn?= =?utf-8?B?TktLNFg2bDJRb1A1S3VYeTUzZTNVSEhaVjgweEZ3eU5WclBmMVNQREN2M2ZW?= =?utf-8?B?MXlNU2hzK3QyZTZuOFhxbXBZOEZOT2xJL3BZNGVzTFRURkR4cVhCRTM4Yldk?= =?utf-8?B?a2pON0xFNk5BcGZ5ZVdZb2M4c3FDWmlsM09mRzNZRGtsMmhwVVprajlNQ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Q5K/nQO3qD2pWU77zRzRosC3ataj4wnKCNaDSZtngjAbH3sE8LrWdmURjOhp3RY7tstpVw3mHAUTa7l6OD2Bm21jxonjclCWlHFSmjwFu5UjOCUmtHNqOoDlkJ0oCk4tsszeo2NA==; 24:CUf5IiSyBlEkf095Q8YnbeJzh+0hP7dkzjsTuN71GqsWmRKYMrmVpgrWbnSI2eo4aEbg5gJWptDwuZ3EjlYsvQLk+wuJ6g+rzvO/CthanWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0475; 7:uNwI5r8UCjZnbaVA+G2R5C6UAvN19KSJgNUFPLXR6CAj/rm/HXyb7I93G4ejnVprEM4lmR5+QpZ4phd9RkIFM0oWRFV/UjarBBemSmT6MkhSZIYOdo6I6PSkJePZpFfztxCbCC6mK3iKLSiKKQB1VOqWpsET8Jbh2LmU4oeeOZApr6NhKsNb4mQnQTKhfk1TJtvjJ+0Xne07K2o5/53BMSduGkom/yZfioPQ/xHr8m7kQa6mLmCD2AFar0EGnvkPB1oK9o4Vo/HBYd0walKoPs1GxNeqEiXhKJfAzo1K4mItZn+V3jSDmXg4k8jM0UcA9vTrJ2Kg9bYykZHLv0IxlA==; 20:1vMUWu3fbvyyAxt2v786xYVNjY22jJZ54qacYXs2e6Oyu7ienxR1AXmiI+FU6IBPWLVx/74aH/2mHvYkE1sRlpsGiQhGLd2Zk71NvTu9iAuudrsAHDBruHZ2SRrwHGF0efJH5kqGABBCgh3Vo/SfJhfdD4ILL4qw9Ig4q8UqPUSdgnYZqpeAA5+BrJiGJV5Q9tqoLruX3QPDf2u1c3AVPTxYz5/BnfneTQ6iN3UeZNdVIxxx8cXOAJ9wQAefcIZ3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 22:54:46.6919 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0475 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 Each CCP queue can product interrupts for 4 conditions: operation complete, queue empty, error, and queue stopped. This driver only works with completion and error events. Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 191274d..a60aac7 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -109,9 +109,8 @@ #define INT_COMPLETION 0x1 #define INT_ERROR 0x2 #define INT_QUEUE_STOPPED 0x4 -#define ALL_INTERRUPTS (INT_COMPLETION| \ - INT_ERROR| \ - INT_QUEUE_STOPPED) +#define INT_EMPTY_QUEUE 0x8 +#define ALL_INTERRUPTS (INT_COMPLETION | INT_ERROR) #define LSB_REGION_WIDTH 5 #define MAX_LSB_CNT 8