All of lore.kernel.org
 help / color / mirror / Atom feed
* Add support for the crypto engine on Orion5X
@ 2009-06-11 14:03 arm-kernel
  2009-06-11 14:03 ` [PATCH] arm/orion5x: add sram support for crypto arm-kernel
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: arm-kernel @ 2009-06-11 14:03 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-crypto, nico, herbert

This patch series contains support for crypto engine which can be found on
a few Marvell SoC. The crypto driver currently uses dmac_flush_range() to
flush the result back to phys mem. This hack goes away once I've implemented
DMA support. The alternative temporary solution  would be to use
flush_kernel_dcache_page().

The driver was tested against dm-crypt on my QNAP TS-209 with no problems
so far. Here are some numbers:

Native, no crypto at all
~~~~~~~~~~~~~~~~~~~~~~~~
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 5.67222 s, 18.5 MB/s

The crypto driver with flush_kernel_dcache_page()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|AES-ECB-128
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 31.3831 s, 3.3 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 30.6151 s, 3.4 MB/s
|
|AES-ECB-256
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 32.8273 s, 3.2 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 31.301 s, 3.3 MB/s
|
|AES-CBC-128
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 41.9262 s, 2.5 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 39.2683 s, 2.7 MB/s
|
|AES-CBC-256
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 37.599 s, 2.8 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 36.4306 s, 2.9 MB/s

The crypto driver with dmac_flush_range()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|AES-CBC-256
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 31.3163 s, 3.3 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 29.9738 s, 3.5 MB/s
|
|AES-ECB-128
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 23.6008 s, 4.4 MB/s
|
|# dd if=file bs=1048576 of=/dev/null
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 22.9579 s, 4.6 MB/s

Pure software
~~~~~~~~~~~~~
|AES-CBC-128
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 54.6493 s, 1.9 MB/s
|
|AES-CBC-256
|# dd if=/dev/zero of=file bs=1048576 count=100
|100+0 records in
|100+0 records out
|104857600 bytes (105 MB) copied, 64.3429 s, 1.6 MB/s


Sebastian

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

end of thread, other threads:[~2009-08-10  2:51 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 14:03 Add support for the crypto engine on Orion5X arm-kernel
2009-06-11 14:03 ` [PATCH] arm/orion5x: add sram support for crypto arm-kernel
2009-06-11 19:17   ` Nicolas Pitre
2009-06-11 20:15     ` Sebastian Andrzej Siewior
2009-06-11 20:36       ` Nicolas Pitre
2009-06-11 21:07         ` Sebastian Andrzej Siewior
2009-06-11 21:15           ` Russell King - ARM Linux
2009-06-12  1:02             ` Nicolas Pitre
2009-06-11 21:19           ` Nicolas Pitre
2009-06-12  3:35             ` Nicolas Pitre
2009-06-13 10:07             ` Sebastian Andrzej Siewior
2009-08-01  9:38             ` Sebastian Andrzej Siewior
2009-08-02 14:14               ` Nicolas Pitre
2009-08-03 16:57                 ` [PATCH v3] crypto: add support for Orion5X crypto engine Sebastian Andrzej Siewior
2009-08-03 19:03                   ` Nicolas Pitre
2009-08-05  7:24                     ` [PATCH v4] " Sebastian Andrzej Siewior
2009-08-10  2:50                       ` Herbert Xu
2009-06-11 14:03 ` [PATCH] " arm-kernel
2009-06-11 14:03 ` [PATCH] arm/ts209: init crypto arm-kernel
2009-06-11 19:22   ` Nicolas Pitre
2009-06-11 20:27     ` [PATCH] arm/orion5x: init the crypto device Sebastian Andrzej Siewior
2009-06-12 12:09 ` Add support for the crypto engine on Orion5X pascal
2009-07-26 15:25   ` Uri Yosef

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.