Re: [PATCH] crypto: octeontx2: CN10K CPT to RNM workaround

From: Herbert Xu
Date: Fri Feb 04 2022 - 23:30:53 EST


On Tue, Jan 25, 2022 at 11:56:22PM +0530, Shijith Thotton wrote:
> From: Srujana Challa <schalla@xxxxxxxxxxx>
>
> 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 <schalla@xxxxxxxxxxx>
> Signed-off-by: Shijith Thotton <sthotton@xxxxxxxxxxx>
> ---
> .../marvell/octeontx2/otx2_cptpf_ucode.c | 43 ++++++++++++++++++-
> 1 file changed, 42 insertions(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt