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)
commit575c1bd549ff6bc097b3669b086e54e01169379f
tree79f614dd0c7d6c62140cd199352ac37222ac8ffb
parenta80c5422b1426699c279b74fe8d3e8a4e3c902de
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