From patchwork Fri Aug 25 13:47:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 9922061 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 9ED616022E for ; Fri, 25 Aug 2017 13:47:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 922DF2818A for ; Fri, 25 Aug 2017 13:47:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86D0528329; Fri, 25 Aug 2017 13:47:37 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 37C692818A for ; Fri, 25 Aug 2017 13:47:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932458AbdHYNrg (ORCPT ); Fri, 25 Aug 2017 09:47:36 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36244 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932465AbdHYNrd (ORCPT ); Fri, 25 Aug 2017 09:47:33 -0400 Received: by mail-wr0-f194.google.com with SMTP id p8so1525165wrf.3 for ; Fri, 25 Aug 2017 06:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=UXvBCLFFiymLKxAxtF5VkbMnpfaIX8P0uLTYZnc4xXA=; b=ixk8LBjZ9XHVIZ2vSQpYPNPFja0giX7nVJxg82o8JDbEXJLqvodyaN8UHgGxp/kQa4 t8eTjUtncR1CTt3CvZMYPFBIXg8+R94jHsWkygHw3IyQIQ5nTssmsMbio5GkCwWJewY4 icnwOKAsbmG94TxpRCjmGsaTg1v7/50xdTNE5O9vxP3J2TT8UWev615hT/qk57DlzLd5 wAU+5Ewdz44mlq783uXvKKY1e4i2DW4tyCp00a4g1axxHafivpktMBSOzvjQti2wH5uW gURomJVD8ea5FQZEMfFyq7NJ6v9Vm6Gh47zb+vtHXhgJ1g8FG8lAZZ6SZH6PFgWSsSq2 RcKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=UXvBCLFFiymLKxAxtF5VkbMnpfaIX8P0uLTYZnc4xXA=; b=i12BkAvxgmIM727Qg8mSjq7/ovFQCHqHeQzXWRmSg3IONnicTDNLbAq4J+85iz5QdB WSGF7CDSrXy91mrOU2AJAE4Bai9pMDL6ofg8NPWy9rPLtNo2BKwSogu7af/I8knnSMA5 1E79/S88F/IfHjUWwN+fAZG/Tic26dbpT99CC1kshdv60a2aoXGJzAbftbiw23eCAy7K 6J0p7EPnzMR+ITiRsJj+3PAs4Z/cyAtG9fR+yNjB8JJS+r0N+THB/m7QczWBtKWrwXY7 sUMcnBqf9hqjNio4Z/ly+BFN3SQQ7uN1aJV4pg6zPTILJ8YSvtnqOEHQ2e4Pwmmpaz8b vZXw== X-Gm-Message-State: AHYfb5iz3Mg4R3zqEFcwNGG3jNPVabC24NApjCD1Ius3naCTpHlpv+NP hZmIuAZ6IkK80X7j X-Received: by 10.223.135.12 with SMTP id a12mr5498154wra.253.1503668851838; Fri, 25 Aug 2017 06:47:31 -0700 (PDT) Received: from debian64.daheim (p200300D5FBC232FCD63D7EFFFEBDE96E.dip0.t-ipconnect.de. [2003:d5:fbc2:32fc:d63d:7eff:febd:e96e]) by smtp.gmail.com with ESMTPSA id n15sm6035006wrn.59.2017.08.25.06.47.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Aug 2017 06:47:28 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.89) (envelope-from ) id 1dlExJ-00029J-C0; Fri, 25 Aug 2017 15:47:25 +0200 From: Christian Lamparter To: linux-crypto@vger.kernel.org Cc: Herbert Xu , David Miller Subject: [RFC PATCH 03/12] crypto: crypto4xx: set CRYPTO_ALG_KERN_DRIVER_ONLY flag Date: Fri, 25 Aug 2017 15:47:16 +0200 Message-Id: <7f51944084eef13bebe5f052557533bf6ade4ebc.1503668705.git.chunkeey@googlemail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <71020bd2e3f4100c3c0668a13fdad9d22c8884a7.1503668705.git.chunkeey@googlemail.com> References: <71020bd2e3f4100c3c0668a13fdad9d22c8884a7.1503668705.git.chunkeey@googlemail.com> In-Reply-To: <85532949069735593f777489c6efcb6d1b08cdec.1503668705.git.chunkeey@googlemail.com> References: <71020bd2e3f4100c3c0668a13fdad9d22c8884a7.1503668705.git.chunkeey@googlemail.com> <85532949069735593f777489c6efcb6d1b08cdec.1503668705.git.chunkeey@googlemail.com> 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 The security offload function is performed by a cryptographic engine core attached to the 128-bit PLB (processor local bus) with builtin DMA and interrupt controllers. This, I think, satisfies the requirement for the CRYPTO_ALG_KERN_DRIVER_ONLY flag. Signed-off-by: Christian Lamparter --- drivers/crypto/amcc/crypto4xx_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/amcc/crypto4xx_core.c b/drivers/crypto/amcc/crypto4xx_core.c index 48215b8525a2..249d35ff3806 100644 --- a/drivers/crypto/amcc/crypto4xx_core.c +++ b/drivers/crypto/amcc/crypto4xx_core.c @@ -1114,7 +1114,9 @@ struct crypto4xx_alg_common crypto4xx_alg[] = { .cra_name = "cbc(aes)", .cra_driver_name = "cbc-aes-ppc4xx", .cra_priority = CRYPTO4XX_CRYPTO_PRIORITY, - .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC, + .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | + CRYPTO_ALG_ASYNC | + CRYPTO_ALG_KERN_DRIVER_ONLY, .cra_blocksize = AES_BLOCK_SIZE, .cra_ctxsize = sizeof(struct crypto4xx_ctx), .cra_type = &crypto_ablkcipher_type,