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)
commita17b92e0487f0bfbb1c5d0bdf26c64dddfc31ac4
treefe171ccc8a64bc57172369c8683c9a3a6fab5b46
parentee410de890cdf8fc94f6235dd9ef323a101511ab
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