]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/setup: fix novx parameter
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Aug 2015 11:20:28 +0000 (13:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:05:27 +0000 (10:05 -0700)
commit93f3257cb2a4f75e6d7ed3eb3d608639c708dd19
tree6bee64e56d3eab0925c0023a90cc4dc0e6c0e493
parent8613898412bb80464d201bc9af7a44e599e547e1
s390/setup: fix novx parameter

commit 89b1145e93771d727645c96e323539c029b63f1c upstream.

The novx parameter disables the vector facility but the HWCAP_S390_VXRS
bit in the ELf hardware capabilies is always set if the machine has
the vector facility. If the user space program uses the "vx" string
in the features field of /proc/cpuinfo to utilize vector instruction
it will crash if the novx kernel paramter is set.

Convert setup_hwcaps to an arch_initcall and use MACHINE_HAS_VX to
decide if the HWCAPS_S390_VXRS bit needs to be set.

Reported-by: Ulrich Weigand <uweigand@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/setup.c