KSPU API + AES offloaded to SPU + testing module
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | t add cast to regain ablkcipher_request from private ctxinclude/ | +6 | 1 reply | |
| 2/10 | crypto: retrieve private ctx alignedinclude/ | +5 | 0 replies | |
| 3/10 | spufs: kspu documentationDocumentation/ | +243 | 0 replies | |
| 4/10 | spufs: kspu doc skeletonDocumentation/ Documentation/ Documentation/ | +126 | 0 replies | |
| 5/10 | spufs: kspu add required declarationsarch/ arch/ | +6 | 0 replies | |
| 6/10 | spufs: add kspu_alloc_context()arch/ arch/ | +35 | 0 replies | |
| 7/10 | spufs: add kernel support for spu taskarch/ arch/ arch/ +4 more | +741 | 1 reply | |
| 8/10 | spufs: SPE side implementation of kspuarch/ arch/ arch/ +2 more | +246 | 0 replies | |
| 9/10 | spufs: SPU-AES support (kernel side)arch/ arch/ arch/ +9 more | +1504 | 3 replies | |
| 10/10 | cryptoapi: async speed testcrypto/ crypto/ crypto/ | +198 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 00/10] KSPU API + AES offloaded to SPU + testing module
This is a complete submission of $subject against current git. Content:
1 - required casting to retrieve private struct out of crypto API 2 - function to retrieve private crypto struct. Herbert queued this
already for 2.6.24.
3 - KSPU doc
4 - KSPU skeleton
5 - exporting required symbols within spufs.ko
6 - allocation of KSPU context
7 - KSPU, PPU side implementation
8 - KSPU, SPE side implementation
9 - AES as KSPU & Crypto user. Providing ECB+CBC block mode
10 - testing module for AES crypto.
Herbert, I've put you on CC to consider patch 1 for inclusion. As I noticed earlier, KSPU is a general purpose interface so it is not clever to use crypto's infrastructure since KSPU may be used for non-crypto related tasks. However, I included a soft limit.
Figure [1] shows performance of aes-spu in ECB mode with a transfer size of 16 KiBb. Generic is crypto/aes.c compiled for SPU, sync means it is there is no queue process just copy data and start the SPU, async is what is provided by the patch series.
Figure [2] shows the performance with different DMA transfer sizes (smaller chunks = more transfers). Async benefits from double buffering and more requests at a time but slower at 16 KiB due to more communication.
The pdfs are 4.6 KiB each but scalable :)
[1] http://download.breakpoint.cc/spu/spu_code_async.pdf
[2] http://download.breakpoint.cc/spu/spu_async_blocksize_aligned.pdf
sleepy Sebastian