Message ID | 20230104013436.203427-1-neal_liu@aspeedtech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4909725wrt; Tue, 3 Jan 2023 17:38:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0g7wPF1E+6cdyj3aFVILxs8qJKNH3NRe8EgOWl6zkIkxEYGdUMiOGUgNSgR2BzohZzo5K X-Received: by 2002:a17:907:7f04:b0:7c0:a4e9:615b with SMTP id qf4-20020a1709077f0400b007c0a4e9615bmr50124406ejc.61.1672796309188; Tue, 03 Jan 2023 17:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672796309; cv=none; d=google.com; s=arc-20160816; b=0l4F0Sv7zmjzUfC7f2c44HkpggBMAPoR3waDsaPdLFqghB/UAyO/fxsepwmMxXSPWb 90CxyZAMsduJRFc6dfy/x2wLuCCQFEf+u6B/o5w9ux0mtENHz5uw5PBtGBz+ChLnZkYx +kbj8Mn+GzKiDPOnJgqyX2fa6S+xKdARYf8NXxJj/7JudrWAUC+oTmVzy5vsDA2dtSKi 5htGB+dTU/s3tvKOnCo0gLCpNKQ1QNIdOzw2hOJ7nNlDx1/AjY9LyVt0rbBR0K1faZll np0AZjMa6+I4ye30ge8hJmn/VHgrzsb3mcmrdGvqKOtnnviA3+yOIQjjL/7kMjLFyXyf rszA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+63jJOF0hAimDoXSFeFTtncwm++wjRG95BNrtAb8WHA=; b=if0RoK2zBpuq8DACVnawBtDIAC5Wmpx+gz+3nS20bJ9NAj/YSRsMXMWlvNx9JO3ynT NWHxc6Ke4jac+y3MxEzc2d3WPQKn/5m2+Qq32Buhp/92GR5C0DAKHPxHefdEelthPllD KznRgTHsurXcKuS0VGlQ34MuPHSjxXfg64/sx4xvotpuKV980qPEIziefAPI9Pu2Zsva I7ZxKjoVWOtD8PkL97N+cYY4uOqgs3Om8VW4JSzMLK5iosRQ7wRWuS40FDbnGR87qEDJ RLpsLaeLdyNIBHKBTK4djl/rzr1OcFSEhp/feRB9HVasuY87tPKFa54TU9jPe8LUDGE8 fu3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020a170906795600b007c137f5352asi29860893ejo.387.2023.01.03.17.38.05; Tue, 03 Jan 2023 17:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238737AbjADBgK (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Tue, 3 Jan 2023 20:36:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238758AbjADBfz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 3 Jan 2023 20:35:55 -0500 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8506F17428; Tue, 3 Jan 2023 17:35:54 -0800 (PST) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 3041OcIf076237; Wed, 4 Jan 2023 09:24:38 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 4 Jan 2023 09:34:41 +0800 From: Neal Liu <neal_liu@aspeedtech.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Joel Stanley <joel@jms.id.au>, "Andrew Jeffery" <andrew@aj.id.au>, Neal Liu <neal_liu@aspeedtech.com>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Chia-Wei Wang <chiawei_wang@aspeedtech.com> CC: <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-aspeed@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>, <linux-crypto@vger.kernel.org> Subject: [PATCH v5 0/4] Add Aspeed ACRY driver for hardware acceleration Date: Wed, 4 Jan 2023 09:34:32 +0800 Message-ID: <20230104013436.203427-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 3041OcIf076237 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754054062898801788?= X-GMAIL-MSGID: =?utf-8?q?1754054062898801788?= |
Series |
Add Aspeed ACRY driver for hardware acceleration
|
|
Message
Neal Liu
Jan. 4, 2023, 1:34 a.m. UTC
Aspeed ACRY engine is designed to accelerate the throughput of ECDSA/RSA signature and verification. These patches aim to add Aspeed ACRY RSA driver support. This driver also pass the run-time self tests that take place at algorithm registration on both big-endian/little-endian system in AST2600 evaluation board . Tested-by below configs: - CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set - CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y - CONFIG_DMA_API_DEBUG=y - CONFIG_DMA_API_DEBUG_SG=y - CONFIG_CPU_BIG_ENDIAN=y Change since v4: - Remove GFP_DMA flag since it's unnecessary. Change since v3: - Revise aspeed,ast2600-ahbc.yaml dt-bindings description. Change since v2: - Fix format and uninitialized warning. - Revise binding description. Change since v1: - Fix dt-bindings description. - Refine the Makefile which has been addressed. Neal Liu (4): crypto: aspeed: Add ACRY RSA driver ARM: dts: aspeed: Add ACRY/AHBC device controller node dt-bindings: crypto: add documentation for Aspeed ACRY dt-bindings: bus: add documentation for Aspeed AHBC .../bindings/bus/aspeed,ast2600-ahbc.yaml | 37 + .../bindings/crypto/aspeed,ast2600-acry.yaml | 49 ++ MAINTAINERS | 2 +- arch/arm/boot/dts/aspeed-g6.dtsi | 13 + drivers/crypto/aspeed/Kconfig | 11 + drivers/crypto/aspeed/Makefile | 2 + drivers/crypto/aspeed/aspeed-acry.c | 828 ++++++++++++++++++ 7 files changed, 941 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml create mode 100644 Documentation/devicetree/bindings/crypto/aspeed,ast2600-acry.yaml create mode 100644 drivers/crypto/aspeed/aspeed-acry.c
Comments
On Wed, Jan 04, 2023 at 09:34:32AM +0800, Neal Liu wrote: > Aspeed ACRY engine is designed to accelerate the throughput of > ECDSA/RSA signature and verification. > > These patches aim to add Aspeed ACRY RSA driver support. > This driver also pass the run-time self tests that take place at > algorithm registration on both big-endian/little-endian system > in AST2600 evaluation board . > > Tested-by below configs: > - CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set > - CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y > - CONFIG_DMA_API_DEBUG=y > - CONFIG_DMA_API_DEBUG_SG=y > - CONFIG_CPU_BIG_ENDIAN=y > > Change since v4: > - Remove GFP_DMA flag since it's unnecessary. > > Change since v3: > - Revise aspeed,ast2600-ahbc.yaml dt-bindings description. > > Change since v2: > - Fix format and uninitialized warning. > - Revise binding description. > > Change since v1: > - Fix dt-bindings description. > - Refine the Makefile which has been addressed. > > Neal Liu (4): > crypto: aspeed: Add ACRY RSA driver > ARM: dts: aspeed: Add ACRY/AHBC device controller node > dt-bindings: crypto: add documentation for Aspeed ACRY > dt-bindings: bus: add documentation for Aspeed AHBC > > .../bindings/bus/aspeed,ast2600-ahbc.yaml | 37 + > .../bindings/crypto/aspeed,ast2600-acry.yaml | 49 ++ > MAINTAINERS | 2 +- > arch/arm/boot/dts/aspeed-g6.dtsi | 13 + > drivers/crypto/aspeed/Kconfig | 11 + > drivers/crypto/aspeed/Makefile | 2 + > drivers/crypto/aspeed/aspeed-acry.c | 828 ++++++++++++++++++ > 7 files changed, 941 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/bus/aspeed,ast2600-ahbc.yaml > create mode 100644 Documentation/devicetree/bindings/crypto/aspeed,ast2600-acry.yaml > create mode 100644 drivers/crypto/aspeed/aspeed-acry.c > > -- > 2.25.1 All applied. Thanks.