Skip to content

Rework cpacf_kma() function

Harald Freudenberger linux-crypto linux-s390 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 7 repliesSuperseded

Changelog from the cover letter

v1: initial version
v2: Added Holger's RB - no code changes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390/cpacf: Rework cpacf_kma() to return condition codearch/s390/include/asm/cpacf.h+18 -60 replies
2/2s390/crypto: Handle cpacf_kma() return codearch/s390/crypto/aes_s390.c+7 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHolger Dengler
1/2R-b
2/2R-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/2] Rework cpacf_kma() function

The CPACF inline function cpacf_kma() has return type void thus indicating no direct information about success or failure. The majori of the other CPACF inline functions do return either failure/success or the number of bytes processed.

Rework the CPACF inline function cpacf_kma() and the only caller - the AES GCM implementation in arch/s390/crypto/aes_s390.c to return the value of the condition code set on completion of the instruction.

@Herbert Xu, @Heiko Carstens: As the main change is in cpacf.h and the slight rework in aes_s390.c is petty simple I would go with delivering this patches via s390 subsystem.

Changelog:
v1: initial version
v2: Added Holger's RB - no code changes.

Harald Freudenberger (2):
s390/cpacf: Rework cpacf_kma() to return condition code s390/crypto: Handle cpacf_kma() return code

 arch/s390/crypto/aes_s390.c   | 11 +++++++----
 arch/s390/include/asm/cpacf.h | 24 ++++++++++++++++++------
 2 files changed, 25 insertions(+), 10 deletions(-)

base-commit: df2908090cda368b01ff43709f51890076c56157 --
2.43.0