git bisect good cfafe260137418d0265d0df3bb18dc494af2b43e is the first bad commit commit cfafe260137418d0265d0df3bb18dc494af2b43e Author: Atish Patra <atish.pa...@wdc.com> Date: Tue Mar 17 18:11:43 2020 -0700
RISC-V: Add supported for ordered booting method using HSM Currently, all harts have to jump Linux in RISC-V. This complicates the multi-stage boot process as every transient stage also has to ensure all harts enter to that stage and jump to Linux afterwards. It also obstructs a clean Kexec implementation. SBI HSM extension provides alternate solutions where only a single hart need to boot and enter Linux. The booting hart can bring up secondary harts one by one afterwards. Add SBI HSM based cpu_ops that implements an ordered booting method in RISC-V. This change is also backward compatible with older firmware not implementing HSM extension. If a latest kernel is used with older firmware, it will continue to use the default spinning booting method. Signed-off-by: Atish Patra <atish.pa...@wdc.com> Reviewed-by: Anup Patel <a...@brainfault.org> Signed-off-by: Palmer Dabbelt <palmerdabb...@google.com> arch/riscv/kernel/Makefile | 3 ++ arch/riscv/kernel/cpu_ops.c | 10 ++++- arch/riscv/kernel/cpu_ops_sbi.c | 81 +++++++++++++++++++++++++++++++++++++++++ arch/riscv/kernel/head.S | 26 +++++++++++++ arch/riscv/kernel/smpboot.c | 2 +- arch/riscv/kernel/traps.c | 2 +- 6 files changed, 121 insertions(+), 3 deletions(-) create mode 100644 arch/riscv/kernel/cpu_ops_sbi.c -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1894613 Title: risc-v 5.8 kernel oops on ftrace tests Status in ubuntu-kernel-tests: New Status in linux package in Ubuntu: In Progress Bug description: 5.8.0-1-generic (buildd@riscv64-qemu-lcy01-015) (gcc (Ubuntu 10.2.0-5ubuntu2) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35) #1-Ubuntu SMP Thu Aug 27 19:51:38 UTC 2020 (Ubuntu 5.8.0-1.1-generic 5.8.4 18:30:06 DEBUG| [stdout] # selftests: ftrace: ftracetest^M^M 18:30:07 DEBUG| [stdout] # === Ftrace unit tests ===^M^M 18:30:10 DEBUG| [stdout] # [1] Basic trace file check [PASS]^M^M [17433.113458] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.113533] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.113552] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.113573] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.113591] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.114290] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.114306] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.114315] Oops [#1]^M^M [17433.114630] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000^M^M [17433.114690] Modules linked in: virtio_rng binfmt_misc uio_pdrv_genirq uio drm sch_fq_codel drm_panel_orientation_quirks backlight ip_tables x_tables autofs4 virtio_net net_failover virtio_blk failover [last unloaded: signpost]^M^M [17433.115296] CPU: 1 PID: 15 Comm: migration/1 Tainted: G W OE 5.8.0-1-generic #1-Ubuntu^M^M [17433.115419] epc: 0000000000000000 ra : 0000000000000000 sp : ffffffe1f5c67d90^M^M [17433.115442] gp : ffffffe001722298 tp : ffffffe1f5c3ae00 t0 : 0000000000000000^M^M [17433.115459] t1 : 0000000000006000 t2 : 00000000000bbc00 s0 : 0000000000000022^M^M [17433.115475] s1 : ffffffe0002b7c12 a0 : ffffffe000963a64 a1 : 0000000000000022^M^M [17433.115491] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000^M^M [17433.115507] a5 : ffffffe1fec95580 a6 : 00000000000000ff a7 : 0000000000000001^M^M [17433.115523] s2 : 0000000000000001 s3 : ffffffe00009d580 s4 : ffffffe001724210^M^M [17433.115540] s5 : ffffffe1fec9a3b8 s6 : ffffffffffffffff s7 : 0000000000000001^M^M [17433.115556] s8 : ffffffe0016f07cb s9 : ffffffe1e909bb80 s10: ffffffe0002b7ba6^M^M [17433.115573] s11: ffffffe1e909bba8 t3 : 000000000000006c t4 : 00000000002c73ba^M^M [17433.115586] t5 : 00000000001f7fa8 t6 : ffffffe000c02d1c^M^M [17433.115603] status: 0000000000000120 badaddr: 0000000000000000 cause: 000000000000000c^M^M To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1894613/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp