From patchwork Fri Sep 2 06:00:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Liu X-Patchwork-Id: 12964087 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 7B22EECAAD5 for ; Fri, 2 Sep 2022 12:05:00 +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=f/WKVo9480Wa9R5/CgktWvOxx0Mrf6+TQSt9izfORJc=; b=2Z7Wsuv1oqcNBa wVU/c9F1gtQqyHMohxUTFL+2VCcXu+qwMJP0ZrWM41Ha3RKije3g9FlXXTCRZ5ovtzKituqKtnS2D 4XPsSEg/inCYoQJIzQkaQMS9WZ7ir60Vu+eEmO3+z3Ete10y6EQVbPbAWSH3gk2oAscrGsvkjtU3l 9pm3Zbzk0mRpInYH9gleBCij5QUccFGrJ/W+L1rG3Ed6t9HlkTdwNPCqceVHQfQUmi7bZPT8JTdnX WobleX0aJp4o2/wOZpDBuh07qbMYp+zbKQ2Ikv6rrEWI8khmS2qpoLuwwWxIrCACJ8WAjpKSdiN5q ZU5ujgFm63eJmJblRsxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU5Op-004KAT-Bi; Fri, 02 Sep 2022 12:03:51 +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 1oU5OK-004Jts-MU for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Sep 2022 12:03:20 +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=yAMR6kcPfpp0ZUxj5HqH3enjcDYdk4FzE5Kr6yTGlTQ=; b=athTwUGO2LUYTILDPO4NwO9dYV f/NmCXZBMvc+2VN2erQv8uL+tw2biaH/G06Na5C5iesCGLHF9Kl65WB+wAhDMdj/iMbsgydWANghz qOYrnez4jnKYqE2dlt/O/ZvJbysGGjbeCZ4HdCIu0kC+jb9y3oVD7Saoi2i8E7Rv+9FJOu8oePkly wOJFtap3xUypGEJhPAEWJn7x8P0Upk0kIcFhkcB7K4aQrnRZ0ohgh1YU69Fjj2ZF1LFLtao0LaQk8 T/Tgb76rfZepvcjuEoyASKSYIBs6tdmxc458aEvm9tc399VoxwrOR7p64sHa1V9j9dwQrqQfqXtAa PKIklRmw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTzk6-008am0-39 for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 06:01:29 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2825eWPB091012; Fri, 2 Sep 2022 13:40:32 +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; Fri, 2 Sep 2022 14:00:15 +0800 From: Neal Liu To: Dhananjay Phadke , 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 v1 0/4] Add Aspeed ACRY driver for hardware acceleration Date: Fri, 2 Sep 2022 14:00:08 +0800 Message-ID: <20220902060012.3758637-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 2825eWPB091012 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220902_070127_147587_99E74DB6 X-CRM114-Status: GOOD ( 11.71 ) 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 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 | 39 + .../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 | 5 +- drivers/crypto/aspeed/aspeed-acry.c | 848 ++++++++++++++++++ 7 files changed, 965 insertions(+), 2 deletions(-) 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