]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: marvell - Copy IV vectors by DMA transfers for acipher requests
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 21 Jun 2016 08:08:34 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:14:03 +0000 (18:14 +0800)
commitbac8e805a30dc2a29c3fdde9d822e59c75e710d7
tree0eb0fdc0a856f601eab7f627ffe10e5312d90a3b
parentb99acf79a17bf402ea5759ad9d44eba3ed837a59
crypto: marvell - Copy IV vectors by DMA transfers for acipher requests

Add a TDMA descriptor at the end of the request for copying the
output IV vector via a DMA transfer. This is a good way for offloading
as much as processing as possible to the DMA and the crypto engine.
This is also required for processing multiple cipher requests
in chained mode, otherwise the content of the IV vector would be
overwritten by the last processed request.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.c
drivers/crypto/marvell/cesa.h
drivers/crypto/marvell/cipher.c
drivers/crypto/marvell/tdma.c