linux/arch/s390/kernel
Niklas Schnelle b050848bba s390: make PCI mio support a machine flag
[ Upstream commit 3322ba0d7bea1e24ae464418626f6a15b69533ab ]

Kernel support for the newer PCI mio instructions can be toggled off
with the pci=nomio command line option which needs to integrate with
common code PCI option parsing. However this option then toggles static
branches which can't be toggled yet in an early_param() call.

Thus commit 9964f396f1 ("s390: fix setting of mio addressing control")
moved toggling the static branches to the PCI init routine.

With this setup however we can't check for mio support outside the PCI
code during early boot, i.e. before switching the static branches, which
we need to be able to export this as an ELF HWCAP.

Improve on this by turning mio availability into a machine flag that
gets initially set based on CONFIG_PCI and the facility bit and gets
toggled off if pci=nomio is found during PCI option parsing allowing
simple access to this machine flag after early init.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:26:29 +02:00
..
syscalls
vdso32
vdso64
.gitignore
alternative.c
asm-offsets.c
audit.c
audit.h
base.S
cache.c
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
cpcmd.c s390/cpcmd: fix inline assembly register clobbering 2021-04-14 08:24:17 +02:00
crash_dump.c
debug.c s390/debug: fix debug area life cycle 2021-09-15 09:47:28 +02:00
diag.c
dis.c s390/disassembler: increase ebpf disasm buffer size 2021-05-11 14:04:01 +02:00
dumpstack.c
early_printk.c
early.c s390: make PCI mio support a machine flag 2021-09-22 12:26:29 +02:00
ebcdic.c
entry.h
entry.S s390/entry: save the caller of psw_idle 2021-04-28 13:19:15 +02:00
fpu.c
ftrace.c s390/ftrace: fix ftrace_update_ftrace_func implementation 2021-07-28 13:30:58 +02:00
guarded_storage.c
head64.S
idle.c
ima_arch.c
ipl_vmparm.c
ipl.c
irq.c
jump_label.c s390/jump_label: print real address in a case of a jump label bug 2021-09-22 12:26:29 +02:00
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes.c
lgr.c
machine_kexec_file.c
machine_kexec_reloc.c
machine_kexec.c
Makefile
mcount.S s390/ftrace: fix ftrace_update_ftrace_func implementation 2021-07-28 13:30:58 +02:00
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
os_info.c
perf_cpum_cf_common.c
perf_cpum_cf_diag.c
perf_cpum_cf_events.c
perf_cpum_cf.c
perf_cpum_sf.c
perf_event.c
perf_regs.c
pgm_check.S
process.c
processor.c
ptrace.c s390/ptrace: return -ENOSYS when invalid syscall is supplied 2021-04-28 13:19:14 +02:00
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c s390/sclp_vt220: fix console name to match device 2021-07-20 16:10:43 +02:00
signal.c
smp.c
stacktrace.c
sthyi.c
suspend.c
swsusp.S
sys_s390.c
sysinfo.c
time.c
topology.c
trace.c
traps.c
unwind_bc.c
uprobes.c
vdso.c
vmlinux.lds.S
vtime.c s390/vtime: fix increased steal time accounting 2021-03-24 11:26:35 +01:00