s390: add HWCAP_S390_PCI_MIO to ELF hwcaps
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 8 Jul 2021 13:43:13 +0000 (15:43 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:19 +0000 (09:39 +0200)
commit7e8403ecaf884f307b627f3c371475913dd29292
tree5ecd9ac93b4b7e5f0308e6a04956a68daf338be7
parent3322ba0d7bea1e24ae464418626f6a15b69533ab
s390: add HWCAP_S390_PCI_MIO to ELF hwcaps

In order to support the use of enhanced PCI instructions in both kernel-
and userspace we need both hardware support and proper setup in the
kernel. The latter can be toggled off with the pci=nomio command line
option.

Thus availability of this feature in userspace depends on all of kernel
configuration (CONFIG_PCI), hardware support and the current kernel
command line and can thus not rely solely on a facility bit. Instead
let's introduce a new ELF hardware capability bit HWCAP_S390_PCI_MIO to
tell userspace whether these PCI instructions can be used.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/elf.h
arch/s390/kernel/processor.c
arch/s390/kernel/setup.c