riscv: print hartid on bringup
authorYunhui Cui <cuiyunhui@bytedance.com>
Mon, 3 Mar 2025 08:34:24 +0000 (16:34 +0800)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 1 Apr 2025 07:03:03 +0000 (07:03 +0000)
commita3313375e88e0075b9048eba15e5eb4dbf93f60e
tree6d5e538134193e4c66dff10f00df73bf4f1a84e8
parent74f4bf9d15ad1d6862b828d486ed10ea0e874a23
riscv: print hartid on bringup

Firmware randomly releases cores, so CPU numbers don't linearly map
to hartids. When the system has an exception, we care more about hartids.
Adding "dyndbg="file smpboot.c +p" loglevel=8" to the cmdline can output
the hartid.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250303083424.14309-1-cuiyunhui@bytedance.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
arch/riscv/kernel/smp.c
arch/riscv/kernel/smpboot.c