Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 945CBC77B61 for ; Mon, 10 Apr 2023 13:29:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbjDJN3z (ORCPT ); Mon, 10 Apr 2023 09:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjDJN3z (ORCPT ); Mon, 10 Apr 2023 09:29:55 -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 099B34C09; Mon, 10 Apr 2023 06:29:50 -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 1plra8-00EJyK-RY; Mon, 10 Apr 2023 21:29:17 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 10 Apr 2023 21:29:16 +0800 Date: Mon, 10 Apr 2023 21:29:16 +0800 From: Herbert Xu To: JiaJie 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: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Apr 10, 2023 at 01:10:29PM +0000, JiaJie Ho wrote: > > The sequence of event would be: > 1. Wait for DMA transfer to complete. > 2. Set bit in device CSR to indicate final block has been transferred. OK, 2 should be done in the DMA callback function. > 3. Device will send IRQ once result is ready. > 4. Read out final digest value from device. 4 should be done from a tasklet scheduled from the IRQ handler. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt