From patchwork Tue May 16 07:57:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 9388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp254887vqo; Tue, 16 May 2023 01:05:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61HliAzgDnVxrTCKTZc3WfME3RY+YtcsecBhvTZMl9YqFLjIlaq2ao1wFDeVTn2ivn82Oo X-Received: by 2002:a05:6a20:8f23:b0:106:4e09:151f with SMTP id b35-20020a056a208f2300b001064e09151fmr6541986pzk.60.1684224332908; Tue, 16 May 2023 01:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684224332; cv=none; d=google.com; s=arc-20160816; b=A+XF406QCUe3n2URBtp8/wd6ijPlzvFAijJOYKWoUNU+BT4w7xBrVFEbgnXiRqfY3T OVPa0UYBVqKEJ8oOe5iv3Q8d7mL08NAB/R/IFn+HnbiM1R3QovTr0aMV2qBbJELRIDQd vF7ulcpDS+tcpq5B9WCAFhb0IlIxZ0JiHn55Gnb7bYXeMCc5AC+4EnnSj/8sBaqy1ydu 0UljpiwCTINH82rAG/XPhdECJpVnHfgHiwiYrQjXTR7kPoRWflSdurOod5hRWmKlsjkz 90yNWGqFgUdq9ZGBEMqXoU5Y21GVXDhrBi3BrIJrfExhBtV107F18/+qvEsqW+CEV1pt ryhw== 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=K9Peo7KcJsRAAIjGLEi2pzORQVfJWBvYmJ4OuQHp5h4=; b=qygb3J50Kioz8M19PSa5bMaSsFNtnzDSiKZz1Uee3R3kRkDPEoFvqvLoez5MnoO3Ob Pyoan8xMSmONSm++zDKA7hsv1rSEHN+wTZlDSSIPcX7MKw6jvB0eG6Hbq0a2kpTjs2Yu muxxPzMsBNCWPZKAstdIJuNeoJ/8splabpvlCa2ZqrOspUL1fJC8RmuSWRWgS4KigJFG IKAZdZH7RlxVg3SgOYv4viu4JtptbSpSaBnuBnJ1LUDcOX8heS8+Dd+ZscGGCi68+xQK RinRGmE0XEISFQAdeCv4tn2b7g0Kez23+exrP3753x0mHITw1bNFxGEkuh4imXfv6com s4gA== 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 m67-20020a633f46000000b00528617ab3ddsi18066960pga.133.2023.05.16.01.05.20; Tue, 16 May 2023 01:05:32 -0700 (PDT) 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 S230484AbjEPH6D convert rfc822-to-8bit (ORCPT + 99 others); Tue, 16 May 2023 03:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjEPH6C (ORCPT ); Tue, 16 May 2023 03:58:02 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30A72F1; Tue, 16 May 2023 00:58:00 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 9A4F324DC6D; Tue, 16 May 2023 15:57:57 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 16 May 2023 15:57:57 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 16 May 2023 15:57:55 +0800 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" CC: , Subject: [PATCH 0/2] crypto: starfive - Add RSA algo to drivers Date: Tue, 16 May 2023 15:57:50 +0800 Message-ID: <20230516075752.659287-1-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1766037214161439869?= X-GMAIL-MSGID: =?utf-8?q?1766037214161439869?= This patch series adds RSA support to VisionFive 2 SoCs. Patch 1 updates current irq handling of hash module to prevent conflict among other crypto modules. Patch 2 adds RSA algo to crypto engine drivers. This patch series needs to be applied on: https://patchwork.kernel.org/project/linux-crypto/cover/20230515125355.624250-1-jiajie.ho@starfivetech.com/ Jia Jie Ho (2): crypto: starfive - Update hash module irq handling crypto: starfive - Add RSA algo support drivers/crypto/starfive/Kconfig | 1 + drivers/crypto/starfive/Makefile | 2 +- drivers/crypto/starfive/jh7110-cryp.c | 20 +- drivers/crypto/starfive/jh7110-cryp.h | 45 ++ drivers/crypto/starfive/jh7110-hash.c | 9 +- drivers/crypto/starfive/jh7110-rsa.c | 618 ++++++++++++++++++++++++++ 6 files changed, 692 insertions(+), 3 deletions(-) create mode 100644 drivers/crypto/starfive/jh7110-rsa.c