linux_dsm_epyc7002/drivers/s390
Harald Freudenberger 8f9aca0c45 s390/zcrypt: fix specification exception on z196 during ap probe
The older machines don't have the QCI instruction available.
With support for up to 256 crypto cards the probing of each
card has been extended to check card ids from 0 up to 255.
For machines with QCI support there is a filter limiting the
range of probed cards. The older machines (z196 and older)
don't have this filter and so since support for 256 cards is
in the driver all cards are probed. However, these machines
also require to have the card id fit into 6 bits. Exceeding
this limit results in a specification exception which happens
on every kernel startup even when there is no crypto configured
and used at all.

This fix limits the range of probed crypto cards to 64 if
there is no QCI instruction available to obey to the older
ap architecture and so fixes the specification exceptions
on z196 machines.

Cc: stable@vger.kernel.org # v4.17+
Fixes: af4a72276d ("s390/zcrypt: Support up to 256 crypto adapters.")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2019-01-28 15:43:17 +01:00
..
block s390/dasd: fix using offset into zero size array error 2019-01-28 15:43:17 +01:00
char s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-01-11 17:12:02 +01:00
cio vfio-ccw update: 2018-12-13 10:44:18 +01:00
crypto s390/zcrypt: fix specification exception on z196 during ap probe 2019-01-28 15:43:17 +01:00
net cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
scsi scsi: flip the default on use_clustering 2018-12-18 23:13:12 -05:00
virtio virtio: don't allocate vqs when names[i] = NULL 2019-01-14 20:15:19 -05:00
Makefile kbuild: rename built-in.o to built-in.a 2018-03-26 02:01:19 +09:00