projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5dfd99
)
lib: sbi: Add debug print when sbi_pmu_init fails
author
Tan En De
<ende.tan@starfivetech.com>
Fri, 14 Apr 2023 05:13:11 +0000
(13:13 +0800)
committer
Anup Patel
<anup@brainfault.org>
Thu, 20 Apr 2023 08:49:44 +0000
(14:19 +0530)
Since sbi_pmu_init is called after sbi_console_init,
the sbi_printf can be called when sbi_pmu_init fails.
Signed-off-by: Tan En De <ende.tan@starfivetech.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
lib/sbi/sbi_init.c
patch
|
blob
|
history
diff --git
a/lib/sbi/sbi_init.c
b/lib/sbi/sbi_init.c
index
a031336
..
5db8e7f
100644
(file)
--- a/
lib/sbi/sbi_init.c
+++ b/
lib/sbi/sbi_init.c
@@
-290,8
+290,11
@@
static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
sbi_hart_hang();
rc = sbi_pmu_init(scratch, true);
- if (rc)
+ if (rc) {
+ sbi_printf("%s: pmu init failed (error %d)\n",
+ __func__, rc);
sbi_hart_hang();
+ }
sbi_boot_print_banner(scratch);