]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: improve special ap message cmd handling
authorHarald Freudenberger <freude@linux.ibm.com>
Mon, 19 Nov 2018 10:36:13 +0000 (11:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 Nov 2018 06:22:05 +0000 (07:22 +0100)
commit44f97baa0276014bcf966228fe7631e238294a3c
treedebe169af123ff95c8ab9e03efb62c34bf1d81d3
parent7475c796bb02589da3b5fb340a88ceb7f48318c9
s390/zcrypt: improve special ap message cmd handling

There exist very few ap messages which need to have the 'special' flag
enabled. This flag tells the firmware layer to do some pre- and maybe
postprocessing. However, it may happen that this special flag is
enabled but the firmware is unable to deal with this kind of message
and thus returns with reply code 0x41. For example older firmware may
not know the newest messages triggered by the zcrypt device driver and
thus react with reject and the named reply code. Unfortunately this
reply code is not known to the zcrypt error routines and thus default
behavior is to switch the ap queue offline.

This patch now makes the ap error routine aware of the reply code and
so userspace is informed about the bad processing result but the queue
is not switched to offline state any more.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/uapi/asm/zcrypt.h
drivers/s390/crypto/zcrypt_error.h