s390/zcrypt: Support up to 256 crypto adapters.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Mon, 9 Apr 2018 14:18:37 +0000 (16:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 11 Apr 2018 08:36:27 +0000 (10:36 +0200)
commitaf4a72276d49da117dbc99799afee740a26f8f10
treebf702e269fde807e249f60346abc6b1a685ba419
parent71cbbff8c4fd1467b59b8c15a06093ac03cd11c7
s390/zcrypt: Support up to 256 crypto adapters.

There was an artificial restriction on the card/adapter id
to only 6 bits but all the AP commands do support adapter
ids with 8 bit. This patch removes this restriction to 64
adapters and now up to 256 adapter can get addressed.

Some of the ioctl calls work on the max number of cards
possible (which was 64). These ioctls are now deprecated
but still supported. All the defines, structs and ioctl
interface declarations have been kept for compabibility.
There are now new ioctls (and defines for these) with an
additional '2' appended which provide the extended versions
with 256 cards supported.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ap.h
arch/s390/include/uapi/asm/zcrypt.h
drivers/s390/crypto/ap_bus.h
drivers/s390/crypto/pkey_api.c
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_api.h