linux-stable/drivers/s390
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
..
block s390/dasd: fix endless loop after read unit address configuration 2019-08-06 19:06:55 +02:00
char s390/kasan: avoid instrumentation of early C code 2019-11-24 08:20:44 +01:00
cio s390/cio: avoid calling strlen on null pointer 2019-10-11 18:21:08 +02:00
crypto s390/zcrypt: make sysfs reset attribute trigger queue reset 2019-12-05 09:20:04 +01:00
net s390/qeth: invoke softirqs after napi_schedule() 2019-11-20 18:46:51 +01:00
scsi scsi: zfcp: fix reaction on bit error threshold notification 2019-10-29 09:19:48 +01:00
virtio virtio/s390: fix race on airq_areas[] 2019-09-16 08:22:23 +02:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00