linux-yocto/arch/riscv/kernel
Mayuresh Chitale 7b090e7b91 riscv: sbi: Prefer SRST shutdown over legacy
Currently, the sbi_init() always attempts to register the legacy shutdown
function as the sys-off handler which is fine when RISCV_SBI_V01 is not
enabled. However, if RISCV_SBI_V01 is enabled in the kernel and the SBI
v0.1 is not supported by the underlying SBI implementation then the
legacy shutdown fails. Fix this by not registering the legacy shutdown
when SRST shutdown is available.

Fixes: 70ddf86d76 ("riscv: sbi: Switch to new sys-off handler API")
Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://patch.msgid.link/20251114065808.304430-1-mchitale@ventanamicro.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2025-11-16 10:37:27 -07:00
..
compat_vdso
pi riscv: pi: use 'targets' instead of extra-y in Makefile 2025-09-18 08:20:56 -06:00
probes riscv: kprobes: Fix probe address validation 2025-10-09 19:36:45 -06:00
tests riscv: tests: Make RISCV_KPROBES_KUNIT tristate 2025-10-27 18:49:34 -06:00
vdso riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot 2025-10-17 22:23:11 -06:00
vendor_extensions riscv: hwprobe: Add MIPS vendor extension probing 2025-09-19 10:33:56 -06:00
.gitignore
acpi_numa.c
acpi.c RISC-V: ACPI: enable parsing the BGRT table 2025-09-18 08:21:45 -06:00
alternative.c riscv: errata: Fix the PAUSE Opcode for MIPS P8700 2025-09-19 10:33:56 -06:00
asm-offsets.c arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c 2025-09-25 09:57:15 +02:00
bugs.c
cacheinfo.c
cfi.c
compat_signal.c
compat_syscall_table.c
copy-unaligned.h
copy-unaligned.S
cpu_ops_sbi.c
cpu_ops_spinwait.c
cpu_ops.c
cpu-hotplug.c RISC-V: clear hot-unplugged cores from all task mm_cpumasks to avoid rfence errors 2025-10-09 19:36:45 -06:00
cpu.c RISC-V: Don't print details of CPUs disabled in DT 2025-10-17 22:02:21 -06:00
cpufeature.c riscv: cpufeature: avoid uninitialized variable in has_thead_homogeneous_vlenb() 2025-10-18 09:36:11 -06:00
crash_dump.c
crash_save_regs.S
efi-header.S
efi.c
entry.S riscv: entry: fix typo in comment 'instruciton' -> 'instruction' 2025-10-09 19:36:45 -06:00
fpu.S
ftrace.c
head.h
head.S
hibernate-asm.S
hibernate.c
image-vars.h
irq.c
jump_label.c
kernel_mode_fpu.c
kernel_mode_vector.c
kexec_elf.c
kexec_image.c
kexec_relocate.S
kgdb.c riscv: KGDB: Replace deprecated strcpy in kgdb_arch_handle_qxfer_pkt 2025-10-27 23:30:01 -06:00
machine_kexec_file.c
machine_kexec.c
Makefile kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI 2025-09-24 14:29:14 -07:00
Makefile.syscalls
mcount-dyn.S
mcount.S
module-sections.c riscv: Fix memory leak in module_frob_arch_sections() 2025-10-27 11:40:44 -06:00
module.c
paravirt.c
patch.c
perf_callchain.c
perf_regs.c
process.c
ptrace.c
reset.c
return_address.c
riscv_ksyms.c
sbi_ecall.c
sbi-ipi.c
sbi.c riscv: sbi: Prefer SRST shutdown over legacy 2025-11-16 10:37:27 -07:00
setup.c riscv: acpi: avoid errors caused by probing DT devices when ACPI is used 2025-10-09 19:36:45 -06:00
signal.c
smp.c riscv: Register IPI IRQs with unique names 2025-10-17 22:00:29 -06:00
smpboot.c
soc.c
stacktrace.c riscv: stacktrace: Disable KASAN checks for non-current tasks 2025-10-27 11:40:43 -06:00
suspend_entry.S
suspend.c
sys_hwprobe.c riscv: hwprobe: avoid uninitialized variable use in hwprobe_arch_id() 2025-10-18 09:36:36 -06:00
sys_riscv.c riscv: mmap(): use unsigned offset type in riscv_sys_mmap 2025-09-18 08:19:47 -06:00
syscall_table.c
time.c
traps_misaligned.c
traps.c
unaligned_access_speed.c riscv: hwprobe: Fix stale vDSO data for late-initialized keys at boot 2025-10-17 22:23:11 -06:00
vdso.c
vec-copy-unaligned.S
vector.c
vendor_extensions.c riscv: Add xmipsexectl as a vendor extension 2025-09-18 20:36:00 -06:00
vmcore_info.c
vmlinux-xip.lds.S
vmlinux.lds.S