Message ID | 20170413164657.11624.3790.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 C096460383 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 13 Apr 2017 16:47:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B262A28249 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 13 Apr 2017 16:47:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A739F28447; Thu, 13 Apr 2017 16:47:14 +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 1880B28249 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 13 Apr 2017 16:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898AbdDMQrN (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Thu, 13 Apr 2017 12:47:13 -0400 Received: from mail-dm3nam03on0086.outbound.protection.outlook.com ([104.47.41.86]:22688 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752689AbdDMQrM (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Thu, 13 Apr 2017 12:47:12 -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=OSOlL8aTINQ3Caqi54TR2I3l7KzkgtgZdsNryX7W5sw=; b=5qjnec7Ta2oyC1dR4nrI+iv5yr8ssiG626Tlro/9eCdt6JVY2pmjjaHSCI/EKHg2h+PCYiYCWDU5TTBECINgRF5owsLQHPtjtE+hQh0WKEZHMQhHgAWO34wsO8ZzmJfo6eIqYozjq0dYJ6c9sKVPleGQ/o3O6rVKG+/bUtYr6tA= 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 SN1PR12MB0477.namprd12.prod.outlook.com (10.162.105.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Thu, 13 Apr 2017 16:47:09 +0000 Subject: [PATCH V2 2/2] crypto: ccp - Disable interrupts early on unload 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: Thu, 13 Apr 2017 11:46:57 -0500 Message-ID: <20170413164657.11624.3790.stgit@taos> In-Reply-To: <20170413164352.11624.84058.stgit@taos> References: <20170413164352.11624.84058.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: BN6PR17CA0014.namprd17.prod.outlook.com (10.173.147.24) To SN1PR12MB0477.namprd12.prod.outlook.com (10.162.105.146) X-MS-Office365-Filtering-Correlation-Id: 3ce68855-b10b-4022-a086-08d4828cba73 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:SN1PR12MB0477; X-Microsoft-Exchange-Diagnostics: 1; S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bYnhGCbALVIV8XH1l1teR4R0V3SHz9IluFIs4+QLr1tqJ+eaTfY2mrxHzpGmyREQ9HwU=; 20:fkRYitRWVDJ4lZ7GpEtj1EsT6omZPANwJ67iQbNwKpB5P6/0HJj4cWMcstZKBXu0tvxywe3rfNnUEtuywTQCASqXwcFjUNjDOdZj2jkxwD7X+s5CfMlYwGbdWKCMLXtw50y2FQFOu+CNa4XGmgLuKi/LH1stxkZJn4BSsr1xWVlKiM9kguB0QyzuTsviSZP2vz6e7oDrmjdocZAa0bjNvCMBV8QJpJ7eZ05IYxPJvUL7KgIZJsCzMlNWDj0tbSv/ze0nqDAFXJlcoymisrEFhJj8d7uwDUIKZwdWgkiUOjKxZw7amXsHiBHMv8rvWaLWLJ9AVATBtJ0LIJpYuZvhq8vmy0wVf+Ia9hN0p2pkgjEqELUmV+IvmCArYOaKiEJ8VP9F3NPeIdIgX8vVJRpIPzLyXlXjQdABzya5aCHzA0u2X3mhGBBD5NtD+hElP5KcQXB8d32POaqgGIeih8Y3foY4c6gbTB3wxAb/Spl4Rnsu7CcuA1/VJiIWQLcSJLys X-Microsoft-Antispam-PRVS: <SN1PR12MB0477FF1ADB663F65A9959967FD020@SN1PR12MB0477.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(6072148); SRVR:SN1PR12MB0477; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0477; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0477; 4:KrbhkxRo080Jf3+j8fjv7aVb3MLxk+m85HwuY2qfjiS3JIQLzCIjtvFHWYfVH0jbd0Ohkh6mw3h978J+jNPiOwcdQb8O0cXy4tnYJ+/yGP8bndWt4sKmgoKaL4TzhwWpLcpZNc5EYbfd6/f0u0oixVocSP99Ec56iA3Xl/HYejlf2uWoGm1KfzfYlzIt287LpxA3bxIza7wIBO0T9R48VMm307gHNRzalDHWfpRy6JV+6qa6jxbQSN+oUs5jxkJMbTfnjkS8N89ugybIyjVLI4y+CFAxEBuqIQs2OlxGUw4YpTCHE4iPwAgwwITnDvcJkwD0sm57OuvWLiGHCHE/hnwBPmUp7V2gnNn/z1ZXHl0BuSVjoHKbX7IghOObuMEm9iTu4W6cS/YpVmJIDmnN73lSuZc57RMHe4OlwMTjZRDxSgLdl0D21zSAARfYeVSv1D19mtEg6jUqlI0tg9KM6G2IaMLDtgreE5QU91Bcoehl2e5KjAwiD5o6euVfYaWGfiwuzACz6X1nYG7Val+HHB3p/TsjdE5ZJr4cP+/PtThnqF2aPsSr7gfrlanRcXN5E+oQpp9ffHTiQ8kkpuHDBH9/0OBg8SkihxOZzMv/2YYH5fBldl8ttWnN6cB/k1ODm7ACpsLxLS/TllNG3ELeJtCn2Avh0RWOWp6YTBprx0wFPP7WZdtVjB0dOWT8z9H0sdhJDwEBrRDygFCbsBF/QJinOKWjOcQMMDNbDAnRWpKUZhZVpIxykGRc61yfn1zkHAEkv5u6C8aSfEOcsnyQKA== X-Forefront-PRVS: 02760F0D1C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(39840400002)(39860400002)(39850400002)(39410400002)(39450400003)(9686003)(1076002)(53936002)(83506001)(6116002)(3846002)(33716001)(76176999)(50986999)(54356999)(4326008)(6916009)(6666003)(230700001)(38730400002)(110136004)(54906002)(25786009)(5660300001)(6486002)(2950100002)(77096006)(90366009)(189998001)(66066001)(8676002)(7736002)(103116003)(86362001)(2351001)(4001350100001)(33646002)(81166006)(50466002)(23676002)(42186005)(97746001)(305945005)(47776003)(71626007); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0477; H:[10.236.19.42]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-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ceNLIpG3k76Qzx4RR+AzuxAzoP0/cuaE0uI920HdszViwJdFhjA5LlSER1U17NIAPlzNG1v71rz/lue6SekJHTyMUriFcvDfnRisrdfjfX77lPSD1XcDSCWUmwFnpWrkkC5lNKbd60ONWeeDCiTMYOFNJfiiHZ8w2t9bUiRkUN19gt17xxIVrcZLYbu57VCMSrh4uUXmMqLHJUs7V2uvJ2MdIZi3U3nBrwDKR7fow+nr46LcZ7EaWLIazlefV X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2017 16:47:09.5785 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0477 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 c7972e7..13b81a1 100644 --- a/drivers/crypto/ccp/ccp-dev-v5.c +++ b/drivers/crypto/ccp/ccp-dev-v5.c @@ -942,10 +942,10 @@ static void ccp5_destroy(struct ccp_device *ccp) iowrite32(cmd_q->qcontrol & ~CMD5_Q_RUN, cmd_q->reg_control); /* Disable the interrupts */ - iowrite32(SUPPORTED_INTERRUPTS, cmd_q->reg_interrupt_status); + iowrite32(0x00, cmd_q->reg_int_enable); /* Clear the interrupt status */ - iowrite32(0x00, cmd_q->reg_int_enable); + iowrite32(SUPPORTED_INTERRUPTS, cmd_q->reg_interrupt_status); ioread32(cmd_q->reg_int_status); ioread32(cmd_q->reg_status); }