]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: provide apfs failure code on type 86 error reply
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 4 Oct 2018 13:37:49 +0000 (15:37 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:36 +0000 (11:21 +0200)
commit812945b84bf223d3101cda9739517c8c13269b3b
treefe171ccc8a64bc57172369c8683c9a3a6fab5b46
parentd2d265ffa221fe859874d1838b03417260e8c948
s390/zcrypt: provide apfs failure code on type 86 error reply

The apfs field (AP final status) is set on transport
protocol failures (reply code 0x90) for type 86 replies.
For CCA cprbs this value is copied into the xcrb status
field which gives userspace a hint for the failure reason.
However, for EP11 cprbs there is no such status field
in the xcrb struct. So now regardless of the request
type, if a reply type 86 with transport protocol failure
is seen, the apfs value is printed as part of the debug
message. So the user has a chance to see the apfs value
without using a special build kernel.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_error.h