]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit609e066057d716dc37f4bd37360db116629a7495
treed7650bd76f244ec12114a99f008eeb612812df68
parentb7aefd7cb5b5f8aa6353e425c1ce914e069dbff1
s390/zcrypt: improve special ap message cmd handling

BugLink: https://bugs.launchpad.net/bugs/1837664
[ Upstream commit be534791011100d204602e2e0496e9e6ce8edf63 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/include/uapi/asm/zcrypt.h
drivers/s390/crypto/zcrypt_error.h