Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4603378pxb; Tue, 22 Feb 2022 02:19:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+du3lBGZl9gONtXXHQOrXn4rIT8NLxaeZRLc5HpUjvcHP4irnnXjxd03Ug5OEalkSX2O5 X-Received: by 2002:a17:90a:f3cf:b0:1bc:6732:3db7 with SMTP id ha15-20020a17090af3cf00b001bc67323db7mr3336226pjb.199.1645525178750; Tue, 22 Feb 2022 02:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645525178; cv=none; d=google.com; s=arc-20160816; b=jZrAbLxNaDP67YuHAiASNfVak4eUmnnGrJC47NMqJy/ZUI0AV8w/pftvRp+CPNs6gj 805voCj2fms4q7SOEUB1fuob2JiOdaYtvj8U7bHwk++xx5C+pWjvuZFrnr7RAAwQJYS9 PxmQOWfJ2kUsW0yUa20ixkYEqUK/Rb+v29UAqCNQgpBZregYPEiX33ZEEBLYZwJ9k3kQ cMox6dclVQwQflBAK1oDittkCn6gi+6JJ8GLzUhJERSwGuBna68vF1xJmItuI/no1GxS OnTedDJFiLX1OqPCYVwRC7WcF+LQ0fpy/4FBZOTJI2c5cBJakOqKv6GePTNXOYDabPb9 BT3g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BmCM771/H8fMGA2TM9vIMuFjbF0aY9kc+ryD8RCZwDs=; b=jz5sjJ3Ybroerxwd0i8VF2cGOPcYCWclDAxBavCI+kSFn3Q+uD0qiIWLBhJil6+CtF FrYz79G3B4VDmwt3592NgK4G806mOzTPHq5eiVwjqYZBsoDewcj88qtfCpwvTZ5Gf6hD ypm7Hs1I5oHGaKUsOfq0vqwh4e7oxXRzZ/k5BJFMXNHFbWXGa+t4zM0Ht6fli4vBdy0V W0hVwAcDJuaV4j3p8ds4ImB7N8LpVzpTeX1y95P78DhOY0XpDhavoxRdq7CaOtFd7CVC o55re35FEzoTcqCBa7MkPYmRx9iQYC5aZr30ouUtb5VTKULhhaJ3XPBP4KhIt79v5HAF 9O0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=idzQPKZo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14si33801310plg.436.2022.02.22.02.19.23; Tue, 22 Feb 2022 02:19:38 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=idzQPKZo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbiBVJre (ORCPT + 99 others); Tue, 22 Feb 2022 04:47:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiBVJrc (ORCPT ); Tue, 22 Feb 2022 04:47:32 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B9E8BE33; Tue, 22 Feb 2022 01:47:07 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id h6so31943507wrb.9; Tue, 22 Feb 2022 01:47:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=BmCM771/H8fMGA2TM9vIMuFjbF0aY9kc+ryD8RCZwDs=; b=idzQPKZoLATAZxfyuZGOcDY/2sUODvMOnd/QV1CEQCDccF+PWPrqBdSJUbkutKn6uq Lzp/jKHgQ6uQXsauKGJ2KAztiFzZ8Fj6mQ8lwRKK/oRT5BpMwabXVRzhKN1dxscDWNNw 6R7+qhb78rincI66EA87GH3lUlbKWdm/gddbv385b+2n8uXNbk0ZBRWf89UqfwMJJbAD cH13YFUDCxt9gYdAvmiR5cJgEeQjPwoYsEDSHA4SdHGigQShR5b4qHOhGrR+fMVDkbFN F9W1M/atDfXtUuu4X5VwAJiKOe8nd0SXdTiMZmlpuj5n9fT4Y7O7kYqlLIrLEuIyez3f Y2AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=BmCM771/H8fMGA2TM9vIMuFjbF0aY9kc+ryD8RCZwDs=; b=E9qyPCB4zifrNujkwkft5jus8lrw8HA7hZTN0yX6q16+ZwpoA3QuF4pEeQkemvF0fk ZNs2LZof0Yzklvfa6HGyBkEm1HF1+5m+oT101J85CpxAEqDrHh3BaSNSROOl0ee6nzgn YWioVkKW+s7d+LoVlijWoEe4PXHGveQwiwkYnbEzHlqtzjiDq7C2iKkoN/XvWpnHQNJH 82dk9VhyjRFgII46eEwRQ/xanGXCLHYzb7YC7a/h3UmXzH5/I7XlEECmJKGwk+GJ+Oxv bXMFutEyHeLs/Tp2+GBwyzwbf8+23RKBPnSAbztG9USGu3YBBvVQGhOXfRmVsC27fCZy iTmQ== X-Gm-Message-State: AOAM532JtjfhOtvO+hmSrxPAa39oEuL4qLSYrc2P53ONOsqhhwbZ1K+N vrZ08hSMSl2oB2oHGfokUyCDXmpX+FY= X-Received: by 2002:a5d:5888:0:b0:1ea:118f:4a82 with SMTP id n8-20020a5d5888000000b001ea118f4a82mr8365095wrf.502.1645523226065; Tue, 22 Feb 2022 01:47:06 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id x17sm43745672wrv.107.2022.02.22.01.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 01:47:05 -0800 (PST) Date: Tue, 22 Feb 2022 10:47:03 +0100 From: Corentin Labbe To: Harsha Harsha Cc: "herbert@gondor.apana.org.au" , "davem@davemloft.net" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Michal Simek , Sarat Chand Savitala , Harsh Jain , git Subject: Re: [PATCH V2 2/4] firmware: xilinx: Add ZynqMP SHA API for SHA3 functionality Message-ID: References: <1645125264-11033-1-git-send-email-harsha.harsha@xilinx.com> <1645125264-11033-3-git-send-email-harsha.harsha@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org Le Mon, Feb 21, 2022 at 12:17:02PM +0000, Harsha Harsha a ?crit : > > > > -----Original Message----- > > From: Corentin Labbe > > Sent: Friday, February 18, 2022 3:13 PM > > To: Harsha Harsha > > Cc: herbert@gondor.apana.org.au; davem@davemloft.net; linux-crypto@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- > > kernel@lists.infradead.org; Michal Simek ; Sarat Chand Savitala ; Harsh Jain > > ; git > > Subject: Re: [PATCH V2 2/4] firmware: xilinx: Add ZynqMP SHA API for SHA3 functionality > > > > Le Fri, Feb 18, 2022 at 12:44:22AM +0530, Harsha a ?crit : > > > This patch adds zynqmp_pm_sha_hash API in the ZynqMP firmware to compute > > > SHA3 hash of given data. > > > > > > Signed-off-by: Harsha > > > Acked-by: Michal Simek > > > --- > > > > Hello > > > > Your signed-off should contain your real name. > > My complete name is Harsha which I have mentioned in the signed-off section. I am sorry, I believed it was your pseudo. If it is your real name, no change are needed. > > > Furthermore why did you drop copyright from previous poster ? > > See https://patchwork.kernel.org/project/linux-crypto/cover/1556793282-17346-1-git-send-email-kalyani.akula@xilinx.com/ for > > reference. > > I did not understand the comment. Do you want me to add Kalyani's name also in the Signed of section? > > > > > Furthermore, the previous poster didnt answered my questions about parallel processing and tests. > > Since SHA3 HW engine in ZynqMPSoC does not support parallel processing of 2 hash requests, so we have changed our approach. > Now to support parallel processing of 2 hash requests, software fallback is being used for init, update, final, export and import in the ZynqMP SHA driver. > For digest, the calculation of SHA3 hash is done by the hardened SHA3 accelerator in Xilinx ZynqMP SoC. > I asked for parallel processing since I didnt see any locking or way to prevent hardware to be used in the same time. But the final work is done by a firmware call, so my knowledge stop here. > Following tests have been done for the driver: > - Enabled kernel self tests and extra run-time crypto self tests > - Tested SHA hash computation for different sizes of data using userspace application > - Tested SHA hash computation using multiple updates of data using userspace application > - Tested parallel hash computation > - Tested using the tcrypt module > This should be in the cover letter. Regards