From patchwork Thu Nov 24 10:55:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Liu X-Patchwork-Id: 13054984 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3CB3C433FE for ; Thu, 24 Nov 2022 13:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RN/yDJhDYj0dbmVuqHIzhgnWFwdnA5ddD09A4jhxZts=; b=D2H0p9IpWi11Wi HavxKzf7VshDg5wYESXjT1AqBw8dnTaig+khSqC2vbj05BNspF5GVT7+jK5GznAK+pEB0rk5x2GuI eZumFBcLLCncQWQXkf7m8oC6vDEgJH84r6QrOgfWnbAWgTJ9CxhxgoGkXAU+QclgqZtrP/lsGSGpV 4+l7PIsK+Ut52B9LCAXqOsfeCF9VS7yBuKbPQe5lW+2BrRE7qR9Xm17Nl5KXieX8pRMEuwEy262lu qB8FRH0X0+CBGYhfLTao/fsvZtHjk/mlJhKlyMphQjV3X4/zPJ+wd/4JIHt2a1Ago5EBUEpWvmZrB trnZ3OAiydRKrYDvbUqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyCHn-008mM7-0B; Thu, 24 Nov 2022 13:29:03 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyCHR-008mFJ-R6 for linux-arm-kernel@bombadil.infradead.org; Thu, 24 Nov 2022 13:28:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=Gs3/2IdgjTtX0ei35/dLMq8EmIiav5tg1v0gxZMY9aM=; b=Kl+v8sPjXQyQq+RkoBKZxlhne/ FPiB5rhLAicRYXYty0T0qXZHHzE2wRQwEaClpMTnU4iv0MjgHNXwuL4Z+TztUvkjqhA7Zbvq9Rv/e 0yGJ3okIC1PAQ5VzbuA1vBZWqzW8dOwY+9Kng3raCqENYbcvOfc4wpSkJayZGAPgmhoXcl5IdxqaV LtjTRSA8+6uPbikszAI49WXUWlSJ0hnyy3sjPY3f5utJfNcnl3ebB0FKd2OLKhIKOLSeX4XmDA6Io AOOxCPq3NDCpyTxza3SjTfNGJ8n6inuQYgKg+Ka/83LasCirE3dHIJCcWPVkyJnXNxm4iGucv6n2m aC3nWAGQ==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oy9ui-0048iU-Gh for linux-arm-kernel@lists.infradead.org; Thu, 24 Nov 2022 10:57:06 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2AOAVTZc039625; Thu, 24 Nov 2022 18:31:29 +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; Thu, 24 Nov 2022 18:55:55 +0800 From: Neal Liu To: Herbert Xu , "David S . Miller" , Joel Stanley , Andrew Jeffery , Rob Herring , Krzysztof Kozlowski , "Chia-Wei Wang --cc=linux-kernel @ vger . kernel . org" CC: , , , , Subject: [PATCH v3 0/4] Add Aspeed ACRY driver for hardware acceleration Date: Thu, 24 Nov 2022 18:55:48 +0800 Message-ID: <20221124105552.1006549-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 2AOAVTZc039625 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221124_105705_304078_123EE456 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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