Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4125368rwl; Mon, 10 Apr 2023 06:36:33 -0700 (PDT) X-Google-Smtp-Source: AKy350blRirGIgtHFRweDcRnueJLDqkrHP45m/uXHwl6iMIkML0tcrf1gW0KXcoLAtrRFEWg2AWF X-Received: by 2002:a17:906:19c:b0:949:148d:82c1 with SMTP id 28-20020a170906019c00b00949148d82c1mr6447197ejb.0.1681133793512; Mon, 10 Apr 2023 06:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681133793; cv=none; d=google.com; s=arc-20160816; b=gm2HLmyZAuqicFJL+N9+edlys3ANX5NUqTBLFPB71gKin5kAHCujLXjXbhCApBZ2L1 rH9afeExKC946xPsMzjL7YicCPKhJtEB796lK/5hdyIfsQralZuJ3C2Snsq8nP95AunQ I1DOPaNOuS1IdpJ2zebVdoAt8/2TW8nBuzhi7UIIhe0Iwk3qjZdPx6brSZy8zKI6PCf+ UcLAVFSMLWySRB8DeTpOwnHtEjcs73PF6UMfZnnrnB2SBpljeGRFXRFBPpJC6f1v9zLN SmCq96LnIn9izaEdeT/J62l7f1piH3Up6A+Zd/J/3t9gn8Ym4m4FsPw0KuKUirT6iI14 +W6g== 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=SkGFImrbLbol0F0z7ztLjmyr69xBMEC+4FKNpmc8nos=; b=hy5habyBi0s8mxxZQegNjZWIBrK7UQMzhJ2Cj0iIcy7V21X+bSeqxOVQkInsEV5fZ1 eB4Y++WnNKKqzraOYdKRLCqFribAbU/qUhDYt89AhvyGmd/2B6fIS+kvKRcUM1Fzutpu lQbPzpjdjpFlF12JviiJhIxROQohx2di+8r6M5iEN/HjExN60FiuTTkCo6GKuR2vvX+Y 4z7+YR+cTK9cudk/qXUJ2BYhhu3A6/hi0nKL7MI48ZPn6P4Q+LdQBShBJ1Sye3w+BpeE 159sz7+GfnUldt9vwuXECILgiVata9pz1xQYYDWtAK6FFQdY5WPQd6ahsWUSu6ZIuUNC F9Qg== 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 bg24-20020a170906a05800b0093bf7925981si8136777ejb.982.2023.04.10.06.36.01; Mon, 10 Apr 2023 06:36:33 -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 S229707AbjDJN3z (ORCPT + 99 others); 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: 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 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