linux-stable/drivers/s390/crypto
Harald Freudenberger 43cd68d700 s390/zcrypt: make sysfs reset attribute trigger queue reset
[ Upstream commit 42a87d4103 ]

Until now there is no way to reset a AP queue or card. Driving a card
or queue offline and online again does only toggle the 'software'
online state. The only way to trigger a (hardware) reset is by running
hot-unplug/hot-plug for example on the HMC.

This patch makes the queue reset attribute in sysfs writable.
Writing into this attribute triggers a reset on the AP queue's state
machine. So the AP queue is flushed and state machine runs through the
initial states which cause a reset (PQAP(RAPQ)) and a re-registration
to interrupts (PQAP(AQIC)) if available.

The reset sysfs attribute is writable by root only. So only an
administrator is allowed to initiate a reset of AP queues. Please note
that the queue's counter values are left untouched by the reset.

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>
2019-12-05 09:20:04 +01:00
..
ap_bus.c s390/zcrypt: enable AP bus scan without a valid default domain 2019-11-20 18:47:07 +01:00
ap_bus.h s390/zcrypt: reinit ap queue state machine during device probe 2019-09-16 08:21:57 +02:00
ap_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/zcrypt: make sysfs reset attribute trigger queue reset 2019-12-05 09:20:04 +01:00
Makefile
pkey_api.c s390/pkey: add one more argument space for debug feature entry 2019-05-16 19:41:22 +02:00
zcrypt_api.c s390: zcrypt: initialize variables before_use 2019-05-31 06:46:23 -07:00
zcrypt_api.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cca_key.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex2a.c s390/zcrypt: reinit ap queue state machine during device probe 2019-09-16 08:21:57 +02:00
zcrypt_cex2a.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex4.c s390/zcrypt: reinit ap queue state machine during device probe 2019-09-16 08:21:57 +02:00
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_error.h s390/zcrypt: improve special ap message cmd handling 2019-02-12 19:47:04 +01:00
zcrypt_msgtype6.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_pcixcc.c s390/zcrypt: reinit ap queue state machine during device probe 2019-09-16 08:21:57 +02:00
zcrypt_pcixcc.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00