]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/zcrypt: Introduce QACT support for AP bus devices.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Mon, 16 Oct 2017 10:28:35 +0000 (12:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 Oct 2017 07:07:14 +0000 (09:07 +0200)
commit9a5641080bf433e195730e47a13de58dcd70f47f
tree22b37ce4146323f1d39b7e911f302e7558ce3aa7
parent0acb1665aa9929e5334bc7359ee3cecb6ece3604
s390/zcrypt: Introduce QACT support for AP bus devices.

This patch introduces a new ap_qact() function which
exploits the PQAP(QACT) subfunction. QACT is a new
interface to Query the Ap Compatilibity Type based
on a given AP qid, type, mode and version.

Based on this new function the AP bus scan code is
slightly reworked to use this new interface for
querying the compatible type for each new AP queue
device detected. So new and unknown devices can
get automatically mapped to a compatible type and
handled without the need for toleration patches
for every new hardware.

The currently highest known hardware is CEX6S.
With this patch a possible successor can get
queried for a combatible type known by the device
driver without the need for an toleration patch.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_asm.h
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h
drivers/s390/crypto/ap_card.c
drivers/s390/crypto/ap_queue.c