original_kernel/arch/arm64/kernel
Wei Li 14951beaec arm64: armv8_deprecated: Fix warning in isndep cpuhp starting process
The function run_all_insn_set_hw_mode() is registered as startup callback
of 'CPUHP_AP_ARM64_ISNDEP_STARTING', it invokes set_hw_mode() methods of
all emulated instructions.

As the STARTING callbacks are not expected to fail, if one of the
set_hw_mode() fails, e.g. due to el0 mixed-endian is not supported for
'setend', it will report a warning:

```
CPU[2] cannot support the emulation of setend
CPU 2 UP state arm64/isndep:starting (136) failed (-22)
CPU2: Booted secondary processor 0x0000000002 [0x414fd0c1]
```

To fix it, add a check for INSN_UNAVAILABLE status and skip the process.

Signed-off-by: Wei Li <liwei391@huawei.com>
Tested-by: Huisong Li <lihuisong@huawei.com>
Link: https://lore.kernel.org/r/20240423093501.3460764-1-liwei391@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
2024-06-05 11:16:55 +01:00
..
pi
probes
vdso
vdso32
.gitignore
Makefile
acpi.c
acpi_numa.c
acpi_parking_protocol.c
alternative.c
armv8_deprecated.c arm64: armv8_deprecated: Fix warning in isndep cpuhp starting process 2024-06-05 11:16:55 +01:00
asm-offsets.c
cacheinfo.c
compat_alignment.c
cpu-reset.S
cpu_errata.c
cpu_ops.c
cpufeature.c
cpuidle.c
cpuinfo.c
crash_dump.c
debug-monitors.c
efi-header.S
efi-rt-wrapper.S
efi.c
elfcore.c
entry-common.c
entry-fpsimd.S
entry-ftrace.S
entry.S
fpsimd.c arm64/fpsimd: Avoid erroneous elide of user state reload 2024-05-22 12:46:39 +01:00
ftrace.c
head.S
hibernate-asm.S
hibernate.c
hw_breakpoint.c
hyp-stub.S
idle.c
image-vars.h
image.h
io.c
irq.c
jump_label.c
kaslr.c
kexec_image.c
kgdb.c
kuser32.S
machine_kexec.c
machine_kexec_file.c
module-plts.c
module.c
mte.c
paravirt.c
patching.c arm64: patching: fix handling of execmem addresses 2024-05-24 11:55:06 -07:00
pci.c
perf_callchain.c
perf_regs.c
pointer_auth.c
process.c
proton-pack.c
psci.c
ptrace.c
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S
return_address.c
sdei.c
setup.c
signal.c
signal32.c
sigreturn32.S
sleep.S
smccc-call.S
smp.c
smp_spin_table.c
stacktrace.c
suspend.c
sys.c
sys32.c
sys_compat.c
syscall.c
time.c
topology.c
trace-events-emulation.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
traps.c
vdso-wrap.S
vdso.c
vdso32-wrap.S
vmcore_info.c
vmlinux.lds.S
watchdog_hld.c