summaryrefslogtreecommitdiffstats
path: root/drivers/s390/crypto/ap_bus.h
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2020-07-02 15:56:15 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-10-07 21:50:00 +0200
commit2ea2a6099ae3d1708f90f43c81a98cba3d4bb74c (patch)
tree6d717f8afe74dd70f6943839a98bd1cec3913943 /drivers/s390/crypto/ap_bus.h
parent0b641cbd24445e56073c69dd046be488dcf1965b (diff)
downloadlinux-stable-2ea2a6099ae3d1708f90f43c81a98cba3d4bb74c.tar.gz
linux-stable-2ea2a6099ae3d1708f90f43c81a98cba3d4bb74c.tar.bz2
linux-stable-2ea2a6099ae3d1708f90f43c81a98cba3d4bb74c.zip
s390/ap: add error response code field for ap queue devices
On AP instruction failures the last response code is now kept in the struct ap_queue. There is also a new sysfs attribute showing this field (enabled only on debug kernels). Also slight rework of the AP_DBF macros to get some more content into one debug feature message line. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/ap_bus.h')
-rw-r--r--drivers/s390/crypto/ap_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/crypto/ap_bus.h b/drivers/s390/crypto/ap_bus.h
index 2d4558b5abaf..0b66e8866a2c 100644
--- a/drivers/s390/crypto/ap_bus.h
+++ b/drivers/s390/crypto/ap_bus.h
@@ -190,6 +190,7 @@ struct ap_queue {
struct list_head requestq; /* List of message yet to be sent. */
struct ap_message *reply; /* Per device reply message. */
enum ap_sm_state sm_state; /* ap queue state machine state */
+ int last_err_rc; /* last error state response code */
};
#define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)