Messages in this thread | | | Date | Sat, 5 Feb 2022 15:30:29 +1100 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: octeontx2: CN10K CPT to RNM workaround |
| |
On Tue, Jan 25, 2022 at 11:56:22PM +0530, Shijith Thotton wrote: > From: Srujana Challa <schalla@marvell.com> > > 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@marvell.com> > Signed-off-by: Shijith Thotton <sthotton@marvell.com> > --- > .../marvell/octeontx2/otx2_cptpf_ucode.c | 43 ++++++++++++++++++- > 1 file changed, 42 insertions(+), 1 deletion(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |