]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01b0e7fbc44e7a3f8f7fadd383ccbc9fbafbcc3a
tree5ecd9ac93b4b7e5f0308e6a04956a68daf338be7
parentc475c6d4e2ac6b244a3d5819f94ff93b7ac2ca07
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