Skip to content

crypto: add gemini/sl3516 crypto driver

Corentin Labbe linux-arm-kernel linux-crypto linux-devicetree lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- reworded dt-binding subject patch
- fixed build with CRYPTO_DEV_SL3516_DEBUG

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: crypto: Add documentation for sl3516-ceDocumentation/devicetree/bindings/crypto/cortina,sl3516-crypto.yaml+50 -00 replies
2/5crypto: Add sl3516 crypto enginedrivers/crypto/Kconfig drivers/crypto/Makefile drivers/crypto/gemini/Makefile +4 more+1353 -00 replies
3/5ARM: dts: gemini: add crypto nodearch/arm/boot/dts/gemini.dtsi+8 -00 replies
4/5ARM: gemini_config: enable sl3516-ce cryptoarch/arm/configs/gemini_defconfig+1 -00 replies
5/5MAINTAINERS: add gemini crypto sl3516-ceMAINTAINERS+7 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijRob Herring
1/5R-b R-b
2/5A-b
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] crypto: add gemini/sl3516 crypto driver

The gemini SL3516 SoC has a crypto IP.
This serie had support for it.

It was tested with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.
Furthermore, it survives hours and gigs of write/read to a luks2 using xts(ecb-aes-sl3516).

Performance is quite good.
On a luks2 partition (2To with bs=4096), a fsck comes from 14m26(without CE) to 8m48(with CE). So it is really usefull.

With bs=512, the performance is similar with software.

Changes since v1:
- reworded dt-binding subject patch
- fixed build with CRYPTO_DEV_SL3516_DEBUG

Corentin Labbe (5):
dt-bindings: crypto: Add documentation for sl3516-ce
crypto: Add sl3516 crypto engine
ARM: dts: gemini: add crypto node
ARM: gemini_config: enable sl3516-ce crypto
MAINTAINERS: add gemini crypto sl3516-ce

 .../crypto/cortina,sl3516-crypto.yaml         |  50 ++
 MAINTAINERS                                   |   7 +
 arch/arm/boot/dts/gemini.dtsi                 |   8 +
 arch/arm/configs/gemini_defconfig             |   1 +
 drivers/crypto/Kconfig                        |  19 +
 drivers/crypto/Makefile                       |   1 +
 drivers/crypto/gemini/Makefile                |   2 +
 drivers/crypto/gemini/sl3516-ce-cipher.c      | 388 +++++++++++++
 drivers/crypto/gemini/sl3516-ce-core.c        | 535 ++++++++++++++++++
 drivers/crypto/gemini/sl3516-ce-rng.c         |  61 ++
 drivers/crypto/gemini/sl3516-ce.h             | 347 ++++++++++++
 11 files changed, 1419 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/crypto/cortina,sl3516-crypto.yaml
 create mode 100644 drivers/crypto/gemini/Makefile
 create mode 100644 drivers/crypto/gemini/sl3516-ce-cipher.c
 create mode 100644 drivers/crypto/gemini/sl3516-ce-core.c
 create mode 100644 drivers/crypto/gemini/sl3516-ce-rng.c
 create mode 100644 drivers/crypto/gemini/sl3516-ce.h
Signature · 1 line
2.31.1