Skip to content

KSPU API + AES offloaded to SPU + testing module

Sebastian Siewior linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10t add cast to regain ablkcipher_request from private ctxinclude/linux/crypto.h+6 -01 reply
2/10crypto: retrieve private ctx alignedinclude/crypto/algapi.h+5 -00 replies
3/10spufs: kspu documentationDocumentation/powerpc/kspu.txt+243 -00 replies
4/10spufs: kspu doc skeletonDocumentation/powerpc/kspu_ppu_skeleton.c Documentation/powerpc/kspu_spu_skeleton.c Documentation/powerpc/kspu_spu_skeleton.h+126 -00 replies
5/10spufs: kspu add required declarationsarch/powerpc/platforms/cell/spufs/run.c arch/powerpc/platforms/cell/spufs/spufs.h+6 -30 replies
6/10spufs: add kspu_alloc_context()arch/powerpc/platforms/cell/spufs/context.c arch/powerpc/platforms/cell/spufs/spufs.h+35 -20 replies
7/10spufs: add kernel support for spu taskarch/powerpc/platforms/cell/Kconfig arch/powerpc/platforms/cell/spufs/Makefile arch/powerpc/platforms/cell/spufs/inode.c +4 more+741 -01 reply
8/10spufs: SPE side implementation of kspuarch/powerpc/platforms/cell/spufs/Makefile arch/powerpc/platforms/cell/spufs/spu_main.c arch/powerpc/platforms/cell/spufs/spu_runtime.c +2 more+246 -20 replies
9/10spufs: SPU-AES support (kernel side)arch/powerpc/platforms/cell/Makefile arch/powerpc/platforms/cell/crypto/Makefile arch/powerpc/platforms/cell/crypto/aes_spu_glue.c +9 more+1504 -23 replies
10/10cryptoapi: async speed testcrypto/Kconfig crypto/Makefile crypto/limi-speeda.c+198 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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