Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12601581rwl; Tue, 3 Jan 2023 17:36:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvo0nDb7GYn0SLAAbitwvm4QVPtfC3KVtXrKxmBXbvZD9K4/rKXqGBw8GYMhwjqOmoEot9P X-Received: by 2002:a17:907:d606:b0:84c:d34a:b4e7 with SMTP id wd6-20020a170907d60600b0084cd34ab4e7mr6140315ejc.75.1672796208626; Tue, 03 Jan 2023 17:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672796208; cv=none; d=google.com; s=arc-20160816; b=GmFxLtFH+QH/QwbKIbKeZyv7KM0PXhTMZQ+E//qKueBAJlQta5Gj/zXWWQ/1V+6ilW Piq4QJYWoBLKhMxQHEgFx3UNgpeArlTKylIaDMqrUECbet5u+2zqkMUOBCP5yYf1pj0i WluY36w13gIZWQRUVXSOfzlepx6r0BUvkax84bLZMsIYY5Nr1JNMeXSmrP/OFcrTZ8JV cZ5ukr/mG9AMf2+3A03p4ZpqUTS5OWvE1zOrO4tBMTVW0WwpE+7nE/LO0DUW9ZJqA28K r90Du2msTHA+s1zoeJs/xOo1zdN1Frye+iXhuRydrOCwXzwO02Vm1NJu54myZwphFV+T hXgg== 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=JIU5JYE+PDE7eZU88XJjadP+sQvdum5aCQqhlEHDC8BPPSkiJ5B6N/iY6eWOxCGy3W uHlyX5UbTWlyafq8zaLsZ0ZOvDlP1VwmZWU6a8X3Al++8hIxLInIAjMWoUBUcbkPzz14 KzSQFjjcwFxDx7ktnojRvBYMjDMherS0GFM1rq7Xv1ygjgd7aN5opvYu0hhpGhvuQsr0 /2YLKbkIiuquwmcivMavaY6gfeD6+jJzA18+Lisbly98zZYNtGomJHD58KtEx613VFJx WNV5XH9JuvqRdjGWvyUYX63+YZGgri+S9153LM8glmEsBSJNWUl1/cOyQUZGzqOkiPtz VXpg== 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 s1-20020a17090699c100b007c65bfa965csi30488317ejn.999.2023.01.03.17.36.19; Tue, 03 Jan 2023 17:36:48 -0800 (PST) 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 S238567AbjADBfB (ORCPT + 99 others); Tue, 3 Jan 2023 20:35:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238758AbjADBex (ORCPT ); Tue, 3 Jan 2023 20:34:53 -0500 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0157B60EA for ; Tue, 3 Jan 2023 17:34:49 -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 To: Rob Herring , Krzysztof Kozlowski , Joel Stanley , "Andrew Jeffery" , Neal Liu , Herbert Xu , "David S . Miller" , Chia-Wei Wang CC: , , , , 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=ham 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 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