Jesse Taube
324021423d
lib: sbi: dbtr: Fix update_triggers to match SBI
...
OpenSBI implements sbi_dbtr_update_trig as
`sbi_dbtr_update_trig(unsigned long trig_idx_base,
unsigned long trig_idx_mask)`
yet SBI v3.0-rc7 Chapter 19. Debug Triggers Extension [0] declares it as
`sbi_debug_update_triggers(unsigned long trig_count)`
Change update_triggers to match SBI.
[0] https://github.com/riscv-non-isa/riscv-sbi-doc/tree/v3.0-rc7/src/ext-debug-triggers.adoc
Fixes: 97f234f15c
("lib: sbi: Introduce the SBI debug triggers extension support")
Signed-off-by: Jesse Taube <jesse@rivosinc.com >
Reviewed-by: Himanshu Chauhan <hchauhan@ventanamicro.com >
Tested-by: Charlie Jenkins <charlie@rivosinc.com >
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com >
Link: https://lore.kernel.org/r/20250528154604.571815-1-jesse@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-06-16 17:01:52 +05:30
Anup Patel
d4f5a16598
include: sbi: Change SBI spec version to 3.0
...
Now that SBI v3.0 specification is frozen, change runtime SBI version
implemented by OpenSBI to v3.0. Also, mark extensions defined by the
SBI v3.0 specification as non-experimental.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Reviewed-by: Clément Léger <cleger@rivosinc.com >
Reviewed-by: Atish Patra <atishp@rivosinc.com >
Link: https://lore.kernel.org/r/20250516122844.113423-1-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-05-20 13:47:34 +05:30
Anup Patel
06754612f3
lib: sbi: Print list of available SBI extensions at boot-time
...
Add boot-time prints for list of available standard and experimental
SBI extensions.
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
2024-12-22 11:16:13 +05:30
Himanshu Chauhan
76a2a15c40
lib: sbi: Implement SBI debug trigger extension
...
This patch adds functions to register ecalls for debug triggers
and handler to handle the debug trigger function IDs.
Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-01-10 10:55:50 +05:30