]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - set RDB bit in security configuration register
authorVakul Garg <vakul@freescale.com>
Tue, 12 Mar 2013 08:25:21 +0000 (13:55 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Mar 2013 10:13:54 +0000 (18:13 +0800)
commitbc4c48846d0a1190aedc828f87dcf4171eacd734
tree79f614dd0c7d6c62140cd199352ac37222ac8ffb
parentfb3f879fd0769d351ac80163780b7f0a93d21c0f
crypto: caam - set RDB bit in security configuration register

This change is required for post SEC-5.0 devices which have RNG4.
Setting RDB in security configuration register allows CAAM to use the
"Random Data Buffer" to be filled by a single request. The Random Data
Buffer is large enough for ten packets to get their IVs from a single
request. If the Random Data Buffer is not enabled, then each IV causes a
separate request, and RNG4 hardware cannot keep up resulting in lower
IPSEC throughput if random IVs are used.

Signed-off-by: Vakul Garg <vakul@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/regs.h