All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Improve DMA chaining for ahash requests
@ 2016-10-04 12:57 ` Romain Perier
  0 siblings, 0 replies; 10+ messages in thread
From: Romain Perier @ 2016-10-04 12:57 UTC (permalink / raw)
  To: Boris Brezillon, Arnaud Ebalard
  Cc: David S. Miller, Herbert Xu, Thomas Petazzoni, Jason Cooper,
	Andrew Lunn, Sebastian Hesselbarth, Gregory Clement,
	Nadav Haklai, Ofer Heifetz, linux-crypto, linux-arm-kernel

This series contain performance improvement regarding ahash requests.
So far, ahash requests were systematically not chained at the DMA level.
However, in some case, like this is the case by using IPSec, some ahash
requests can be processed directly by the engine, and don't have
intermediaire partial update states.

This series firstly re-work the way outer IVs are copied from the SRAM
into the dma pool. To do so, we introduce a common dma pool for all type
of requests that contains outer results (like IV or digest). Then, for
ahash requests that can be processed directly by the engine, outer
results are copied from the SRAM into the common dma pool. These requests
are then allowed to be chained at the DMA level.


Benchmarking results with iperf throught IPSec
==============================================
		ESP			AH

Before		343 Mbits/s		492 Mbits/s
After		422 Mbits/s		577 Mbits/s
Improvement	+23%			+17%

Romain Perier (2):
  crypto: marvell - Use an unique pool to copy results of requests
  crypto: marvell - Don't break chain for computable last ahash requests

 drivers/crypto/marvell/cesa.c   |  4 ---
 drivers/crypto/marvell/cesa.h   |  5 ++-
 drivers/crypto/marvell/cipher.c |  8 +++--
 drivers/crypto/marvell/hash.c   | 79 +++++++++++++++++++++++++++++++++--------
 drivers/crypto/marvell/tdma.c   | 28 +++++++--------
 5 files changed, 85 insertions(+), 39 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-04 14:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 12:57 [PATCH v3 0/2] Improve DMA chaining for ahash requests Romain Perier
2016-10-04 12:57 ` Romain Perier
2016-10-04 12:57 ` [PATCH v3 1/2] crypto: marvell - Use an unique pool to copy results of requests Romain Perier
2016-10-04 12:57   ` Romain Perier
2016-10-04 13:17   ` Boris Brezillon
2016-10-04 13:17     ` Boris Brezillon
2016-10-04 12:57 ` [PATCH v3 2/2] crypto: marvell - Don't break chain for computable last ahash requests Romain Perier
2016-10-04 12:57   ` Romain Perier
2016-10-04 14:14   ` Boris Brezillon
2016-10-04 14:14     ` Boris Brezillon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.