OSDN Git Service

s390/zcrypt: Fixed reset and interrupt handling of AP queues
authorIngo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Wed, 17 Jun 2015 14:19:15 +0000 (16:19 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Jun 2015 07:39:23 +0000 (09:39 +0200)
commitc50a160c176aadfbbbeed69a55caf1040b22692e
tree0393d666fc350cdae2734e6ae84ab6a0adb55e83
parent3c8e5105e759e7b2d88ea8a85b1285e535bc7500
s390/zcrypt: Fixed reset and interrupt handling of AP queues

In case of request timeouts an AP queue reset will be triggered to
recover and reinitialize the AP queue. The previous behavior was an
immediate reset execution regardless of current/pending requests.
Due to newly changed firmware behavior the reset may be delayed, based
on the priority of pending request. The device driver's waiting time
frame was limited, hence it did not received the reset response. As a
consequence interrupts would not be enabled afterwards.

The RAPQ (queue reset) and AQIC (interrupt control) commands will be
treated fully asynchronous now. The device driver will check the reset and
interrupt states periodically, thus it can handle the reinitialization
properly.

Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h
drivers/s390/crypto/zcrypt_cex4.c