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: 2172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3325456wrr; Thu, 24 Nov 2022 03:08:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Bwd9BwOPLj+L25WXadjauZvFjygVopMAhplXsDZUeX3jSeD+MPI3o3exSG7P4hD18lkYO X-Received: by 2002:a17:903:1203:b0:189:30cd:8fa4 with SMTP id l3-20020a170903120300b0018930cd8fa4mr14738198plh.103.1669288118881; Thu, 24 Nov 2022 03:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669288118; cv=none; d=google.com; s=arc-20160816; b=RIIMjUsQYIum+GIThj12u7N3aKPZu4OLxlLUcMvDDh/p2hrGj1aHmyYIK0OST9+u20 By+43wZChrW9XIqL1koVOvap8EL1VekaAhwhPwxOcWL8vcviDnMaEE2tmRcREOPRwiu7 hH7mTus9zfbB7Ve2y8A/zdbMZPA3q+O7UY/FJZuG9pi+lKL7tmQGQyfH38lAelippMgS 7USgFk8W5cjzwn7hfZYeQqlr1+MOn+1ZymMJEhmVJYkK0nkXuq01wgNjRWDekcAH7TdB 1TlL8s4P+wELOW8RbFpjdg3hoJDTZh5/lSUJBwmKzujZYr4s4Qg30OCBl82fUvOo9jff GlQg== 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=Gs3/2IdgjTtX0ei35/dLMq8EmIiav5tg1v0gxZMY9aM=; b=N5nZNjVnEgS0dBDCzWKlPWqi3C3bwvs5MHiwYefXqfaiCkWaO1Vw4MLYrkn3HnLgZe r/Y3psBecpwDRBy2U0T2J8iWoiWeiTiKfduVcISjmzVoRjHQziN6Lnd5vhLM0+Qc5rA8 NDd7OFthX/sL5bWA/Av3mcgVQ20Z+QWBkgIp30VLtsXpB5i361ICGHE2lGmg8p37tPj3 U0CibtyPrqX0OHGC+uVJ6IhlP3QZXImen1Fj/CRVnIrQ8nVLQbWxsVLSpyDjiZkL5vF8 aTjovV06EDUEFYyq8dgcmJywc5WSy9lt2M8JpP01UJgiSfoKOr6jzWp/gzZZTkxM9oV1 +13A== 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 jg13-20020a17090326cd00b001887a1ffb17si754531plb.223.2022.11.24.03.08.25; Thu, 24 Nov 2022 03:08:38 -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 S229835AbiKXK4J (ORCPT + 99 others); Thu, 24 Nov 2022 05:56:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbiKXK4I (ORCPT ); Thu, 24 Nov 2022 05:56:08 -0500 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E64179A9C for ; Thu, 24 Nov 2022 02:56:07 -0800 (PST) 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-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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750375458579342882?= X-GMAIL-MSGID: =?utf-8?q?1750375458579342882?= 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