linux/drivers/crypto/nx
Haren Myneni e52d484d98 crypto/NX: Set receive window credits to max number of CRBs in RxFIFO
System gets checkstop if RxFIFO overruns with more requests than the
maximum possible number of CRBs in FIFO at the same time. The max number
of requests per window is controlled by window credits. So find max
CRBs from FIFO size and set it to receive window credits.

Fixes: b0d6c9bab5 ("crypto/nx: Add P9 NX support for 842 compression engine")
CC: stable@vger.kernel.org # v4.14+
Signed-off-by:Haren Myneni <haren@us.ibm.com>

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-06-28 10:08:03 +08:00
..
Kconfig crypto/nx: Add P9 NX support for 842 compression engine 2017-09-01 16:42:51 +10:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx_csbcpb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx_debugfs.c crypto: nx - no need to check return value of debugfs_create functions 2019-06-20 14:19:55 +08:00
nx-842-powernv.c crypto/NX: Set receive window credits to max number of CRBs in RxFIFO 2019-06-28 10:08:03 +08:00
nx-842-pseries.c crypto: nx842 - remove set but not used variables 'dpadding' and 'max_sync_size' 2019-04-08 14:36:17 +08:00
nx-842.c crypto: nx842 - remove set but not used variables 'dpadding' and 'max_sync_size' 2019-04-08 14:36:17 +08:00
nx-842.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx-aes-cbc.c crypto: nx - Moving NX-AES-CBC to be processed logic 2014-11-06 23:15:00 +08:00
nx-aes-ccm.c crypto: nx - Fix timing leak in GCM and CCM decryption 2015-11-16 21:39:23 +08:00
nx-aes-ctr.c crypto: skcipher - remove remnants of internal IV generators 2018-12-23 11:52:45 +08:00
nx-aes-ecb.c crypto: nx - Moving NX-AES-ECB to be processed logic 2014-11-06 23:15:01 +08:00
nx-aes-gcm.c crypto: nx - Use GCM IV size constant 2017-09-22 17:43:10 +08:00
nx-aes-xcbc.c crypto: nx - don't abuse shash MAY_SLEEP flag 2019-04-25 15:38:12 +08:00
nx-sha256.c crypto: nx - don't abuse shash MAY_SLEEP flag 2019-04-25 15:38:12 +08:00
nx-sha512.c crypto: nx - don't abuse shash MAY_SLEEP flag 2019-04-25 15:38:12 +08:00
nx.c crypto: nx - no need to check return value of debugfs_create functions 2019-06-20 14:19:55 +08:00
nx.h crypto: nx - no need to check return value of debugfs_create functions 2019-06-20 14:19:55 +08:00