original_kernel/drivers/crypto/caam
Gaurav Jain 087e1d715b crypto: caam - save caam memory to support crypto engine retry mechanism.
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: 2d653936eb ("crypto: caam - enable crypto-engine retry mechanism")
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-12-03 15:56:17 +11:00
..
Kconfig
Makefile
caamalg.c crypto: caam - save caam memory to support crypto engine retry mechanism. 2021-12-03 15:56:17 +11:00
caamalg_desc.c
caamalg_desc.h
caamalg_qi.c
caamalg_qi2.c
caamalg_qi2.h
caamhash.c crypto: caam - save caam memory to support crypto engine retry mechanism. 2021-12-03 15:56:17 +11:00
caamhash_desc.c
caamhash_desc.h
caampkc.c crypto: caam - save caam memory to support crypto engine retry mechanism. 2021-12-03 15:56:17 +11:00
caampkc.h
caamrng.c
compat.h
ctrl.c
ctrl.h
debugfs.c
debugfs.h
desc.h
desc_constr.h
dpseci-debugfs.c
dpseci-debugfs.h
dpseci.c
dpseci.h
dpseci_cmd.h
error.c
error.h
intern.h
jr.c
jr.h
key_gen.c
key_gen.h
pdb.h
pkc_desc.c
qi.c
qi.h
regs.h
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h