diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2021-01-15 08:56:19 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-01-27 13:00:48 +0100 |
commit | 1daafea411f36cfa52eb58c2e7f9e2254fd42b28 (patch) | |
tree | 9f021fede408ef47a1d0988a5cc1782481c539be /.clang-format | |
parent | e1bff843cde62a45a287b7f9b4cd5e824e8e49e2 (diff) |
s390/crypto: improve retry logic in case of master key change
A master key change on a CCA card may cause an immediately
following request to derive an protected key from a secure
key to fail with error condition 8/2290. The recommendation
from firmware is to retry with 1 second sleep.
So now the low level cca functions return -EAGAIN when this
error condition is seen and the paes retry function will
evaluate the return value. Seeing EAGAIN and running in
process context results in trying to sleep for 1 s now.
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions