linux_dsm_epyc7002/drivers/s390
Harald Freudenberger 42a87d4103 s390/zcrypt: make sysfs reset attribute trigger queue reset
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>
2018-12-13 10:42:26 +01:00
..
block s390/drivers: fix proc/debugfs file permissions 2018-12-13 10:42:24 +01:00
char s390/drivers: fix proc/debugfs file permissions 2018-12-13 10:42:24 +01:00
cio s390/drivers: fix proc/debugfs file permissions 2018-12-13 10:42:24 +01:00
crypto s390/zcrypt: make sysfs reset attribute trigger queue reset 2018-12-13 10:42:26 +01:00
net s390/qeth: fix length check in SNMP processing 2018-11-28 11:16:54 -08:00
scsi s390/dasd,zfcp: fix gcc 8 stringop-truncation warnings 2018-07-02 11:24:52 +02:00
virtio mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00