Skip to content

crypto: atmel-sha: fix registration issue and other bugs

Cyrille Pitchen linux-arm-kernel linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: atmel-sha: fix crash when computing digest on empty messagedrivers/crypto/atmel-sha.c+1 -00 replies
2/5crypto: atmel-sha: fix a race between the 'done' tasklet and the crypto clientdrivers/crypto/atmel-sha.c+13 -60 replies
3/5crypto: atmel-sha: add support of sama5d2x SoCsdrivers/crypto/atmel-sha.c+6 -00 replies
4/5crypto: atmel-sha: fix context switchesdrivers/crypto/atmel-sha-regs.h drivers/crypto/atmel-sha.c+84 -250 replies
5/5crypto: atmel-sha: fix algorihtm registrationdrivers/crypto/atmel-sha.c+54 -11 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolas Ferre
SeriesA-b
1/5
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] crypto: atmel-sha: fix registration issue and other bugs

Hi all,

This series of patches fixes many issues such as the algo registration failure or the broken support of context switches.

This series was applied to linux-next and tested on a sama5d2 xplained ultra board. We now pass the tcrypt tests in the following modes:
- 2: sha1
- 6: sha256
- 11: sha384
- 12: sha512
- 33: sha224

The context switch fix was tested with a userspace program using the cryptodev module. This single thread program computes the SHA256 hashes of many files by splitting then into fixed size chunks. The chunks of each file are processed by calling 'update' operations using a round robin algorithm.

However, the .import() / .export() implementation was NOT tested! Nonetheless the last patch is needed to fix the registration issue, otherwise atmel_sha_probe() would still fail.

Best regards,

Cyrille

Cyrille Pitchen (5):
crypto: atmel-sha: fix crash when computing digest on empty message
crypto: atmel-sha: fix a race between the 'done' tasklet and the
crypto client
crypto: atmel-sha: add support of sama5d2x SoCs
crypto: atmel-sha: fix context switches
crypto: atmel-sha: fix algorihtm registration

 drivers/crypto/atmel-sha-regs.h |   4 +
 drivers/crypto/atmel-sha.c      | 186 +++++++++++++++++++++++++++++++++-------
 2 files changed, 158 insertions(+), 32 deletions(-)
Signature · 1 line
1.8.2.2