From: arm-kernel@ml.breakpoint.cc
To: linux-arm-kernel@lists.arm.linux.org.uk
Cc: linux-crypto@vger.kernel.org, nico@cam.org, herbert@gondor.apana.org.au
Subject: Add support for the crypto engine on Orion5X
Date: Thu, 11 Jun 2009 16:03:16 +0200 [thread overview]
Message-ID: <1244728999-8103-1-git-send-email-arm-kernel@ml.breakpoint.cc> (raw)
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
next reply other threads:[~2009-06-11 14:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 14:03 arm-kernel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1244728999-8103-1-git-send-email-arm-kernel@ml.breakpoint.cc \
--to=arm-kernel@ml.breakpoint.cc \
--cc=herbert@gondor.apana.org.au \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-crypto@vger.kernel.org \
--cc=nico@cam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.