Message ID | 20230612085230.193507-1-jiajie.ho@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2447516vqr; Mon, 12 Jun 2023 02:03:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7emUVtmP2AxA0k+91ZxC7PH4kqIUAVa8JSlnDeSWwT13LMneUDbmR3eA/KxrSwKi12cFbz X-Received: by 2002:a17:90a:738a:b0:256:831b:8f45 with SMTP id j10-20020a17090a738a00b00256831b8f45mr7531480pjg.16.1686560613381; Mon, 12 Jun 2023 02:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686560613; cv=none; d=google.com; s=arc-20160816; b=kumdzOL09e8mhK5CZTzxvwRV/iFx5NSenIBlH/4F8lXJnFgTIXI7SCXN8cC6kaxMwt bv+A0hJvBvx46zqrPkRqUqsrQhKLjKHZCycwq7/1PVCLfqqOcEcNOa/R/qIVAEZGgoZt s3KoJKm1jCH8u9Nl7tm5PaTIX2tFgufiPgOJ+BErZrf6eeah0OSWRPRY6OZG9Up4S9Sc vcxoNtXxlUt3mVdJ2OAhhLv96SDti5pQt2NugFQaMmVHALzS4umw1e+CB54dLwCOqfLB ieC9GAeRkxe1R28q6GUBzdc14Z910YdU4HPW/uMJcNXMbC/FaO6asjbs+7/frshC1KO4 rO/Q== 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=8hxPjUjoSpE2iOqf1Rotmxs0v3CbUDN1IRbrflf4YSA=; b=EBTNlhVWzO/vJHe0f7QhHLPA1vooy5KTsUIe7teTmWt54hzQlhEz4l/zhflKki6P9/ nPcK5cA606/bu0M9NB1fWTwUMjTb3iLhT1XeL1SMa2bmxZ4GYtwqfKZ+LzgE/WZuJohQ smWCWrliHJnq156NzQ12pXxyaZP5lt4VuLLY8ZsFCEyvEVIgWNhQCNUQizLA9fNkbTIM pndSKN/dvRrc4UJbLYSBT6RbTFW99auQJCIMd1NElLxVUhESeJaTUeaiovUNgsCn4Duf aHYW5oObxj3jU3PnJnWG2JPJnXfuK40U9qNJMuZ2zmzPh338ezCh+8qprflxBRxpXCGE DjBw== 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 2-20020a17090a018200b00256bc4aee2fsi3144597pjc.179.2023.06.12.02.03.20; Mon, 12 Jun 2023 02:03:33 -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 S234308AbjFLIyY convert rfc822-to-8bit (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 04:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbjFLIxl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 04:53:41 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729263A98; Mon, 12 Jun 2023 01:52:42 -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 ex01.ufhost.com (Postfix) with ESMTP id 904E824E26C; Mon, 12 Jun 2023 16:52:35 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 12 Jun 2023 16:52:35 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 12 Jun 2023 16:52:33 +0800 From: Jia Jie Ho <jiajie.ho@starfivetech.com> To: Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net> CC: <linux-kernel@vger.kernel.org>, <linux-crypto@vger.kernel.org> Subject: [PATCH v3 0/2] crypto: starfive - Add RSA algo to drivers Date: Mon, 12 Jun 2023 16:52:28 +0800 Message-ID: <20230612085230.193507-1-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768486981441188931?= X-GMAIL-MSGID: =?utf-8?q?1768486981441188931?= |
Series |
crypto: starfive - Add RSA algo to drivers
|
|
Message
JiaJie Ho
June 12, 2023, 8:52 a.m. UTC
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. Changes v2 -> v3: - Rearranged irq mask clear sequence to prevent spurious interrupt from completing pka_done prematurely (Herbert) Changes v1 -> v2: - Removed ASYNC flag (Herbert) 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 | 617 ++++++++++++++++++++++++++ 6 files changed, 691 insertions(+), 3 deletions(-) create mode 100644 drivers/crypto/starfive/jh7110-rsa.c
Comments
On Mon, Jun 12, 2023 at 04:52:28PM +0800, Jia Jie Ho wrote: > 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. > > Changes v2 -> v3: > - Rearranged irq mask clear sequence to prevent spurious interrupt > from completing pka_done prematurely (Herbert) > > Changes v1 -> v2: > - Removed ASYNC flag (Herbert) > > 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 | 617 ++++++++++++++++++++++++++ > 6 files changed, 691 insertions(+), 3 deletions(-) > create mode 100644 drivers/crypto/starfive/jh7110-rsa.c > > -- > 2.34.1 All applied. Thanks.