linux_dsm_epyc7002/arch/arm64/kernel
Mark Rutland 8051f4d16e arm64: report CPU number in bad_mode
If we take an exception we don't expect (e.g. SError), we report this in
the bad_mode handler with pr_crit. Depending on the configured log
level, we may or may not log additional information in functions called
subsequently. Notably, the messages in dump_stack (including the CPU
number) are printed with KERN_DEFAULT and may not appear.

Some exceptions have an IMPLEMENTATION DEFINED ESR_ELx.ISS encoding, and
knowing the CPU number is crucial to correctly decode them. To ensure
that this is always possible, we should log the CPU number along with
the ESR_ELx value, so we are not reliant on subsequent logs or
additional printk configuration options.

This patch logs the CPU number in bad_mode such that it is possible for
a developer to decode these exceptions, provided access to sufficient
documentation.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Al Grant <Al.Grant@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Martin <dave.martin@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2016-06-03 10:16:20 +01:00
..
vdso
.gitignore
acpi_parking_protocol.c
acpi.c
alternative.c
arm64ksyms.c
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
cpu_errata.c
cpu_ops.c
cpufeature.c
cpuidle.c
cpuinfo.c arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks 2016-05-31 17:50:30 +01:00
debug-monitors.c
efi-entry.S
efi.c
entry32.S
entry-fpsimd.S
entry-ftrace.S
entry.S
fpsimd.c
ftrace.c
head.S arm64 updates for 4.7: 2016-05-16 17:17:24 -07:00
hibernate-asm.S
hibernate.c
hw_breakpoint.c arm64 updates for 4.7: 2016-05-16 17:17:24 -07:00
hyp-stub.S
image.h arm64 updates for 4.7: 2016-05-16 17:17:24 -07:00
insn.c
io.c
irq.c
jump_label.c
kaslr.c
kgdb.c
kuser32.S
Makefile
module-plts.c
module.c
module.lds
paravirt.c
pci.c
perf_callchain.c perf core: Add a 'nr' field to perf_event_callchain_context 2016-05-16 23:11:51 -03:00
perf_event.c
perf_regs.c
process.c exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
psci.c
ptrace.c
return_address.c
setup.c
signal32.c
signal.c
sleep.S
smccc-call.S
smp_spin_table.c
smp.c
stacktrace.c
suspend.c
sys32.c
sys_compat.c
sys.c
time.c
topology.c
trace-events-emulation.h
traps.c arm64: report CPU number in bad_mode 2016-06-03 10:16:20 +01:00
vdso.c vdso: make arch_setup_additional_pages wait for mmap_sem for write killable 2016-05-23 17:04:14 -07:00
vmlinux.lds.S