[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211203050606.GA20393@gondor.apana.org.au>
Date: Fri, 3 Dec 2021 16:06:06 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Gaurav Jain <gaurav.jain@....com>
Cc: Horia Geanta <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Varun Sethi <V.Sethi@....com>,
"David S . Miller" <davem@...emloft.net>,
Iuliana Prodan <iuliana.prodan@....com>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-imx@....com
Subject: Re: [PATCH v2] crypto: caam: save caam memory to support crypto
engine retry mechanism.
On Mon, Nov 22, 2021 at 05:02:34PM +0530, Gaurav Jain wrote:
> When caam queue is full (-ENOSPC), caam frees descriptor memory.
> crypto-engine checks if retry support is true and h/w queue
> is full(-ENOSPC), then requeue the crypto request.
> During processing the requested descriptor again, caam gives below error.
> (caam_jr 30902000.jr: 40000006: DECO: desc idx 0: Invalid KEY Command).
>
> This patch adds a check to return when caam input ring is full
> and retry support is true. so descriptor memory is not freed
> and requeued request can be processed again.
>
> Fixes: 2d653936eb2cf ("crypto: caam - enable crypto-engine retry mechanism")
> Signed-off-by: Gaurav Jain <gaurav.jain@....com>
> Reviewed-by: Horia Geantă <horia.geanta@....com>
> ---
> drivers/crypto/caam/caamalg.c | 6 ++++++
> drivers/crypto/caam/caamhash.c | 3 +++
> drivers/crypto/caam/caampkc.c | 3 +++
> 3 files changed, 12 insertions(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists