]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: marvell - Add load balancing between engines
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 21 Jun 2016 08:08:38 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:29:51 +0000 (18:29 +0800)
commitbf8f91e711926c1fb57629338e30164ecfba9700
treee5345b85b87e7cd67606458368a2c96b3d10d370
parent2786cee8e50bb4b4303dc22665f391b72318fa84
crypto: marvell - Add load balancing between engines

This commits adds support for fine grained load balancing on
multi-engine IPs. The engine is pre-selected based on its current load
and on the weight of the crypto request that is about to be processed.
The global crypto queue is also moved to each engine. These changes are
required to allow chaining crypto requests at the DMA level. By using
a crypto queue per engine, we make sure that we keep the state of the
tdma chain synchronized with the crypto queue. We also reduce contention
on 'cesa_dev->lock' and improve parallelism.

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/hash.c