Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1566185rwe; Thu, 1 Sep 2022 23:05:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kpIx0t72Aypz3fsDgNDUq8wjf5fNHr7mOD6eta30CkfdzJ/boJkjlqkTayP0BgYKDTLIz X-Received: by 2002:a05:6a00:cd:b0:535:d9e2:d137 with SMTP id e13-20020a056a0000cd00b00535d9e2d137mr16380954pfj.29.1662098708898; Thu, 01 Sep 2022 23:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662098708; cv=none; d=google.com; s=arc-20160816; b=YvDhuOTv63OQbDRe36SL05eMedFWFClzy7Yq7w+KP+ybZxiXKTuFKQz7yTcLDngSD3 MkUhoHp2DzNhaZsimIzdnHmfa24NygvAgiAx/c9dnorwpd4Xzx6CGeO0ZcY3nZQtmhx7 zceYIS5A4x8i4DpWNfeev2w/8/BAMpd4ELAmW8z8BSNmQjlD8/mTX9ChCpjLW9tTY9Nk Ddge2FUOejv6OIuUwUWzqnf4nnYKw6605hO4C7le3/+S7MpEBH0CD/g1Vpfh4lLhsB0l +VOb9oUg1EJW8wGAX2HoPsxM9/H3pH8bYL6K8UrPdwzF7ABmiEblHXeWOFfo6nHDyjaI e23g== 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=yAMR6kcPfpp0ZUxj5HqH3enjcDYdk4FzE5Kr6yTGlTQ=; b=K1bY8KCJ/vTJmClnz7FOiDeybhaGoJ9OQbe4+y3+TjH2nr9ea7knqVrIKm6QE1Vnjq Q6/VAzVjRkvl+rutvypq5odUdLzUX7dpBMHPN6nXxLjhwtCbKHfQur4rG45JkCR/kGBJ lPBGGO3Vymgd1sfay3PcyTtpLXIzmJCat1xfmcO97+TEjU+w9x3BOH36vp0DIWxTZaAm g2tD3HVpAIBupFV2FQps9NyoYZyoGXyoiIlDp0jRO3GitLc5bUO5+RGT+Z9YufBXN/qY m2x0VjMAUPOxOnEN1i/1sZFPHH0EfRY4Iu4kuUGj08mTY/nxWrPifTDoF6rUbyY7dd6t H28A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b001746ff6ee6dsi1253264plh.413.2022.09.01.23.04.56; Thu, 01 Sep 2022 23:05:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235322AbiIBGCD (ORCPT + 99 others); Fri, 2 Sep 2022 02:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235344AbiIBGBn (ORCPT ); Fri, 2 Sep 2022 02:01:43 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB76ABF1A; Thu, 1 Sep 2022 23:01:41 -0700 (PDT) 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 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 2825eWPB091012 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-crypto@vger.kernel.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 -- 2.25.1