linux/drivers/crypto/amcc
Christian Lamparter 778f81d6cd crypto: crypto4xx - increase context and scatter ring buffer elements
If crypto4xx is used in conjunction with dm-crypt, the available
ring buffer elements are not enough to handle the load properly.

On an aes-cbc-essiv:sha256 encrypted swap partition the read
performance is abyssal: (tested with hdparm -t)

/dev/mapper/swap_crypt:
 Timing buffered disk reads:  14 MB in  3.68 seconds =   3.81 MB/sec

The patch increases both PPC4XX_NUM_SD and PPC4XX_NUM_PD to 256.
This improves the performance considerably:

/dev/mapper/swap_crypt:
 Timing buffered disk reads: 104 MB in  3.03 seconds =  34.31 MB/sec

Furthermore, PPC4XX_LAST_SD, PPC4XX_LAST_GD and PPC4XX_LAST_PD
can be easily calculated from their respective PPC4XX_NUM_*
constant.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-10-12 22:55:11 +08:00
..
crypto4xx_alg.c crypto: crypto4xx - wire up hmac_mc to hmac_muting 2017-10-12 22:55:07 +08:00
crypto4xx_core.c crypto: crypto4xx - fix off-by-one AES-OFB 2017-10-12 22:55:08 +08:00
crypto4xx_core.h crypto: crypto4xx - increase context and scatter ring buffer elements 2017-10-12 22:55:11 +08:00
crypto4xx_reg_def.h crypto: crypto4xx - rename ce_ring_contol to ce_ring_control 2017-04-24 18:11:06 +08:00
crypto4xx_sa.h crypto: crypto4xx - fix type mismatch compiler error 2017-10-12 22:55:10 +08:00
crypto4xx_trng.c crypto4xx: integrate ppc4xx-rng into crypto4xx 2016-04-20 17:50:02 +08:00
crypto4xx_trng.h crypto4xx: integrate ppc4xx-rng into crypto4xx 2016-04-20 17:50:02 +08:00
Makefile crypto: crypto4xx - move and refactor dynamic_contents helpers 2017-09-22 17:43:18 +08:00