Message ID | 20221214070114.3966155-1-neal_liu@aspeedtech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp53564wrn; Tue, 13 Dec 2022 23:06:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YHq3insCppWrS8fZicVwc2UO4E1ZSteOmgS7ck+LUH27jEliHTo8nUEfrzlk95+m7/7aM X-Received: by 2002:a05:6402:4147:b0:45c:835c:3686 with SMTP id x7-20020a056402414700b0045c835c3686mr20584450eda.15.1671001572329; Tue, 13 Dec 2022 23:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671001572; cv=none; d=google.com; s=arc-20160816; b=xLhsZJwlaNIQxw/W53MCg9+5dqmVhVdBZn1uILrir6XMGfcYikD+AZ/60NUoT+448d +clKVvHtzIOj2YUNUzv2bK2C9VCnf6hja7YMUSG1QTLM0ZJ9RfeJAHDB/zod3TIur6Qe 6aqVsUGrPjVwliptpjNNciqLSc8ncz76NRWQ3SMdYgt1SG7zSssFKjjvqBbkIoAqAMtE Y+Q8/ikM5+XeI67oMHzKRxEDRyJccf8XWeM/vGn65cWBbrC5U5AarjIwNzLh4BXRzzoV rQMEMXRe5jO8kkVNQTVyn1FHxxktMQSt78k4tUoPdycXiGGDb/CU0xT2o4TVcu0zdAbh tR2w== 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=jNtGSkEkLOWZX7GL8T+mLH3/jMekdTnzhF3/IDWzjOM=; b=vU51G+uqN4R+RrbnDWM7uR3kHR7WqKu7GgdjDMn7PN6O9rbks2FhnA4yIOVPS9TOwu jpdys4KeLGEzu3sq5fU+4Vo4abogEgeyBU6GzIRk06lstJ6TtpU/TPIt+Ip/5uSObur6 oJ4ZnCuscBpm9hQQWlGjnZcqXqRn5Po1KVy12eL6WtxxfP4efYRDdNlav0pgDIe0ltRy ybEkx9G3JtFa39rxJm0VYk9APxLK1XblJ85nzBX41MUSpXhVHEEqfkJ+4uOvrd7zZgCq Sfc4wDhoEz3q97oB+MbT5YL3ARKkzEn7FPMwmgrpBOOT8Phw+l+/7b0lzoVRV6I8+bdP xXUQ== 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 c16-20020aa7df10000000b0046c33d9ea8csi10077621edy.599.2022.12.13.23.05.48; Tue, 13 Dec 2022 23:06:12 -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 S237533AbiLNHCw (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 14 Dec 2022 02:02:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237346AbiLNHCe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Dec 2022 02:02:34 -0500 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BDFD20BE6; Tue, 13 Dec 2022 23:02:32 -0800 (PST) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2BE6qVmK081807; Wed, 14 Dec 2022 14:52:31 +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, 14 Dec 2022 15:01:19 +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 v4 0/4] Add Aspeed ACRY driver for hardware acceleration Date: Wed, 14 Dec 2022 15:01:10 +0800 Message-ID: <20221214070114.3966155-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 2BE6qVmK081807 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?1752172144650810533?= X-GMAIL-MSGID: =?utf-8?q?1752172144650810533?= |
Series |
Add Aspeed ACRY driver for hardware acceleration
|
|
Message
Neal Liu
Dec. 14, 2022, 7:01 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 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