From mboxrd@z Thu Jan 1 00:00:00 1970 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 B3278C4332F for ; Sat, 5 Feb 2022 04:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379352AbiBEEav (ORCPT ); Fri, 4 Feb 2022 23:30:51 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:34020 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379317AbiBEEar (ORCPT ); Fri, 4 Feb 2022 23:30:47 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1nGCiU-00020B-0l; Sat, 05 Feb 2022 15:30:31 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 05 Feb 2022 15:30:29 +1100 Date: Sat, 5 Feb 2022 15:30:29 +1100 From: Herbert Xu To: Shijith Thotton Cc: Arnaud Ebalard , Boris Brezillon , Srujana Challa , linux-crypto@vger.kernel.org, jerinj@marvell.com, sgoutham@marvell.com, "David S. Miller" , Dan Carpenter , Jiapeng Chong , open list Subject: Re: [PATCH] crypto: octeontx2: CN10K CPT to RNM workaround Message-ID: References: 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-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 11:56:22PM +0530, Shijith Thotton wrote: > From: Srujana Challa > > When software sets CPT_AF_CTL[RNM_REQ_EN]=1 and RNM in not producing > entropy(i.e., RNM_ENTROPY_STATUS[NORMAL_CNT] < 0x40), the first cycle of > the response may be lost due to a conditional clocking issue. Due to > this, the subsequent random number stream will be corrupted. So, this > patch adds support to ensure RNM_ENTROPY_STATUS[NORMAL_CNT] = 0x40 > before writing CPT_AF_CTL[RNM_REQ_EN] = 1, as a workaround. > > Signed-off-by: Srujana Challa > Signed-off-by: Shijith Thotton > --- > .../marvell/octeontx2/otx2_cptpf_ucode.c | 43 ++++++++++++++++++- > 1 file changed, 42 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt