Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2169856rwd; Fri, 19 May 2023 01:52:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZgA8vXHlZiGNfGSq+SuRIMFf0h1WVaszfxcy+8mrHw/PQqGRtulbVL8i9UMUplI7bMbdr X-Received: by 2002:a17:90b:190d:b0:247:afed:6d62 with SMTP id mp13-20020a17090b190d00b00247afed6d62mr1555929pjb.46.1684486370489; Fri, 19 May 2023 01:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684486370; cv=none; d=google.com; s=arc-20160816; b=vY43bF2T0/R8ELXeouhqf9CJ9jOVUdVqk9lEHQkffCvxdYhQiA5bOP3timAuKy6+Kk ktmuuHmM3leogSqvyWrSBbcjzTZKj+VSGVIgK4KCj33Ek3prTiiYl4bTuvlRgL3dBZTa REGaxfKc8pxpm4z3bg71+6kMvcaEHlmemqRAtvEjSi5GOxr+dD8PXuybdj6CKjHhEwiV ZwajqmBhhLa4HlE+UJ5j4MLh8fJKLq/brFLcpYoxFlKzkmi4xZPwC+eG/ut3+7f6Dmxs IfV7F6Dl1jLO5Te5P6HHovAuqHj6rJInWUze1THUnQNZWuSAPG/At6Q9B0QUeqb5sgzj g0xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fySYu6d2tTXH+EJ7bTyBzZ60BkQGu357jXyNDbaxaok=; b=MgUf3rZcwXIdr4XCFq9NMwOS7gpT1Z2ECCUcJ9exX++FxQpupXz+poCTnVnE4QAWld 6z5bZ06VygLY0ws1nMsTacojnVdvlKkhsPLk+zel+4pQI/JLlBXXfWT7lWR9PvJSezH0 fzcVhL7U4SpeHGDdQ8YuUwoP0oKA581LjkllFCdoQatObx7WRJ2iHjuVN86NIbpR1tx3 1a1XwUHZbsVVSa4JIKgJK1+qk0shFAGrimWHvApR6XVdEUYBvyHVZhBXBBhx9pPPYHwD l5RJhrX1x0wHViT7GF1Mg4zji+0qvQci26XyHoxNzgoAwuvXlm78rhgs/J0TTDP3aZEA 8DRA== 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 d65-20020a633644000000b0051f17a517adsi309856pga.492.2023.05.19.01.52.36; Fri, 19 May 2023 01:52:50 -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 S229553AbjESIvE (ORCPT + 99 others); Fri, 19 May 2023 04:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjESIvE (ORCPT ); Fri, 19 May 2023 04:51:04 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61126EE; Fri, 19 May 2023 01:51:02 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pzvoo-00Anzi-Vn; Fri, 19 May 2023 16:50:36 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 19 May 2023 16:50:34 +0800 Date: Fri, 19 May 2023 16:50:34 +0800 From: Herbert Xu To: Jia Jie Ho Cc: "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v8 0/4] crypto: starfive - Add drivers for crypto engine Message-ID: References: <20230515125355.624250-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515125355.624250-1-jiajie.ho@starfivetech.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 On Mon, May 15, 2023 at 08:53:51PM +0800, Jia Jie Ho wrote: > This patch series adds kernel driver support for StarFive JH7110 crypto > engine. The first patch adds Documentations for the device and Patch 2 > adds device probe and DMA init for the module. Patch 3 adds crypto and > DMA dts node for VisionFive 2 board. Patch 4 adds hash/hmac support to > the module. > > Patch 3 needs to be applied on top of: > https://lore.kernel.org/lkml/20230424135409.6648-3-xingyu.wu@starfivetech.com/ > > Patch 4 needs to be applied on top of: > https://lore.kernel.org/linux-crypto/ZEEOXIHwqKblKfBJ@gondor.apana.org.au/T/#u > > Changes v7->v8 > - Enable COMPILE_TEST in Kconfig (Herbert) > - Fix compile_test warning on 'long unsigned int' to 'unsigned int' > conversion (Herbert) > > Changes v6->v7 > - Remove NULL assignment as struct is kzalloc()-ed (Christophe) > - Do clk_disable_unprepare and assert reset if probe failed (Christophe) > - Remove unnecessary null pointer check (Christophe) > - Update module name in Kconfig description (Christophe) > > Changes v5->v6 > - Remove set_crypt in export as request will have been created by > init/updated calls (Herbert) > - Use new helper to set statesize of crypto_ahash (Herbert) > - Use crypto_ahash_blocksize instead of crypto_ahash_tfm (Herbert) > - Switch to init_tfm/exit_tfm instead of cra_init/cra_exit (Herbert) > > Changes v4->v5 > - Schedule tasklet from IRQ handler instead of using completion to sync > events (Herbert) > > Changes v3->v4: > - Use fallback for non-aligned cases as hardware doesn't support > hashing piece-meal (Herbert) > - Use ahash_request_set_* helpers to update members of ahash_request > (Herbert) > - Set callbacks for async fallback (Herbert) > - Remove completion variable and use dma_callback to do the rest of > processing instead. (Herbert) > > Changes v2->v3: > - Only implement digest and use fallback for other ops (Herbert) > - Use interrupt instead of polling for hash complete (Herbert) > - Remove manual data copy from out-of-bound memory location as it will > be handled by DMA API. (Christoph & Herbert) > > Changes v1->v2: > - Fixed yaml filename and format (Krzysztof) > - Removed unnecessary property names in yaml (Krzysztof) > - Moved of_device_id table close to usage (Krzysztof) > - Use dev_err_probe for error returns (Krzysztof) > - Dropped redundant readl and writel wrappers (Krzysztof) > - Updated commit signed offs (Conor) > - Dropped redundant node in dts, module set to on in dtsi (Conor) > > Jia Jie Ho (4): > dt-bindings: crypto: Add StarFive crypto module > crypto: starfive - Add crypto engine support > riscv: dts: starfive: Add crypto and DMA node for VisionFive 2 > crypto: starfive - Add hash and HMAC support > > .../crypto/starfive,jh7110-crypto.yaml | 70 ++ > MAINTAINERS | 7 + > arch/riscv/boot/dts/starfive/jh7110.dtsi | 28 + > drivers/crypto/Kconfig | 1 + > drivers/crypto/Makefile | 1 + > drivers/crypto/starfive/Kconfig | 21 + > drivers/crypto/starfive/Makefile | 4 + > drivers/crypto/starfive/jh7110-cryp.c | 240 +++++ > drivers/crypto/starfive/jh7110-cryp.h | 127 +++ > drivers/crypto/starfive/jh7110-hash.c | 892 ++++++++++++++++++ > 10 files changed, 1391 insertions(+) > create mode 100644 Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml > create mode 100644 drivers/crypto/starfive/Kconfig > create mode 100644 drivers/crypto/starfive/Makefile > create mode 100644 drivers/crypto/starfive/jh7110-cryp.c > create mode 100644 drivers/crypto/starfive/jh7110-cryp.h > create mode 100644 drivers/crypto/starfive/jh7110-hash.c > > -- > 2.25.1 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt