Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3912254rwl; Mon, 10 Apr 2023 03:12:30 -0700 (PDT) X-Google-Smtp-Source: AKy350adf6yPbHjcaY5yl8tou2umhUeRRZ9sR0fboMBatgsegbwjalbCT/KLiDbb/DtczpCVSUd7 X-Received: by 2002:a05:6a20:3c8b:b0:e9:1dd:dafc with SMTP id b11-20020a056a203c8b00b000e901dddafcmr11655466pzj.4.1681121550664; Mon, 10 Apr 2023 03:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681121550; cv=none; d=google.com; s=arc-20160816; b=gae7XMpyqMi2kd3N7J2xK4Oo0tzLSPBrRlx8ja2duGZhgxQCPF+hXsRzF4nRJgsSbj IkfzYnLjJWLYusou+DSa5AQMtSUwTmvCr2fgKoxdcVbKWRr4L8i28DaA80/O5pNxVr6l 5Ih+HZg6HT/tr+Q3j85FZXqan4iKQzfyes+5ESSB0ehRmkWOhL7pndcBnbvZejUY21CE f+OYM66baVqDky9ad9i9BlV/fcmqZ+CJVEMsflGdocdkAzGf7QQsLsyo+QAFAuArikP3 vUtgXCgfxZKSKZo3p0u5HpJcSxpu4Sx33imnlErj04bxRUJGc6fmPN3M4UYsMHgXLjkr 1pXA== 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=eOyVEycZcpOKhzCUQyqkXNdiInKANeeFMt/aotvMl3M=; b=c/7FSga74EDbUGd4UY+aCl+/EUJH6uYRTgndp9iLPj9fw/ceMW/cHdJdIUMIqmJqNO 5r04/U3AMRgYWWiQbWN4WdYzGbjhBJIQ7wXouGrlPB7bC6Cv18s83loJe4r9/FU5TwQs N8PyR9LZrKjRy/hZb/ajsmGVWpx7Kblm2nA0T+KJyFfhtIRij38DbSsnc3qpUXJrPsFf vRWBMFOzpuc4PBzr4ZTICcPefi3p3VJtTdkEnTfMIExy2QmC2/AqXly9bYT4ZplPjUn9 HQC3dO5KKB52DyTEwu0Tlz8/tWGHWwnOYaCDytJcJJOi56BNRolWNgGmvH5yvfgtRBC7 XiWQ== 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 c15-20020a63ef4f000000b004fb9330dcfcsi10429870pgk.323.2023.04.10.03.12.13; Mon, 10 Apr 2023 03:12:30 -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 S229780AbjDJKKT (ORCPT + 99 others); Mon, 10 Apr 2023 06:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbjDJKKS (ORCPT ); Mon, 10 Apr 2023 06:10:18 -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 0857B49D8; Mon, 10 Apr 2023 03:10:14 -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 1ploSt-00EGwm-Fy; Mon, 10 Apr 2023 18:09:36 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 10 Apr 2023 18:09:35 +0800 Date: Mon, 10 Apr 2023 18:09:35 +0800 From: Herbert Xu To: Jia Jie Ho Cc: "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , 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 v4 4/4] crypto: starfive - Add hash and HMAC support Message-ID: References: <20230410073752.39506-1-jiajie.ho@starfivetech.com> <20230410073752.39506-5-jiajie.ho@starfivetech.com> <6df549e9-d0f6-23ca-882f-527c4e40b553@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6df549e9-d0f6-23ca-882f-527c4e40b553@starfivetech.com> X-Spam-Status: No, score=4.3 required=5.0 tests=HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP 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, Apr 10, 2023 at 04:43:37PM +0800, Jia Jie Ho wrote: > > The hardware requires user to set a 'final' bit after data transfer completed. > This completion is to wait for the interrupt signal from device that the final digest > has been populated to the read registers. > > I'll do the finalize_request call directly in the next version. Instead of the IRQ performing a completion, it could instead schedule a tasklet and do the callback directly from the tasklet. Actually, the ordering between the IRQ and DMA callback is a bit confusing. Which one is supposed to occur first and how does it interact with the other event? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt