opensbi/lib/sbi
Heiko Stuebner e54cb3298b lib: sbi_pmu: move pmu irq information into pmu itself
Don't spread checking for pmu extensions through the code
but instead introduce a sbi-pmu function that other code can
call to get the correct information about the existence of the
pmu interrupt.

Add a sbi_pmu_device override function to allow overridung this
bit as well if needed.

Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2022-10-13 09:52:01 +05:30
..
objects.mk lib: sbi: Add a simple external interrupt handling framework 2022-02-28 09:43:12 +05:30
riscv_asm.c lib: sbi: Remove 's' and 'u' from misa_string() output 2022-05-07 10:02:28 +05:30
riscv_atomic.c lib: sbi: fix atomic_add_return 2021-04-09 18:51:02 +05:30
riscv_hardfp.S lib: Move sbi core library to lib/sbi 2019-06-19 09:48:51 +05:30
riscv_locks.c lib: sbi: Have spinlock checks return bool 2021-05-14 17:05:20 +05:30
sbi_bitmap.c lib: Simple bitmap library 2020-03-11 15:29:45 +05:30
sbi_bitops.c lib: fix compilation when strings.h is included 2022-02-04 11:04:19 +05:30
sbi_console.c lib: sbi: Fix printf handling of long long 2022-07-30 11:55:51 +05:30
sbi_domain.c lib: sbi: verbose sbi_domain_root_add_memregion 2022-02-15 20:59:38 +05:30
sbi_ecall.c lib: sbi: Implement SBI PMU extension 2021-07-11 10:38:02 +05:30
sbi_ecall_base.c lib: sbi: Replace args with trap registers in ecall handler 2021-01-07 09:53:14 +05:30
sbi_ecall_hsm.c lib: sbi: Implement SBI HSM suspend function 2021-03-03 13:51:15 +05:30
sbi_ecall_legacy.c lib: sbi: Rename sbi_hsm_hart_started_mask() function 2021-03-03 10:17:45 +05:30
sbi_ecall_pmu.c lib: sbi_pmu: Replace sbi_pmu_ctr_read() with sbi_pmu_ctr_fw_read() 2022-09-01 16:53:16 +05:30
sbi_ecall_replace.c lib: sbi: system reset with invalid parameters 2021-10-18 16:07:21 +05:30
sbi_ecall_vendor.c lib: sbi: Replace args with trap registers in ecall handler 2021-01-07 09:53:14 +05:30
sbi_emulate_csr.c lib: sbi: Remove MCOUNTEREN and SCOUNTEREN hart features 2022-05-07 10:04:54 +05:30
sbi_expected_trap.S lib: sbi_trap: Save mstatus[h].GVA in trap->gva 2022-08-22 08:49:39 +05:30
sbi_fifo.c lib: fix pointer of type 'void *' used in arithmetic 2022-01-21 21:58:12 +05:30
sbi_hart.c lib: sbi_pmu: move pmu irq information into pmu itself 2022-10-13 09:52:01 +05:30
sbi_hfence.S lib: sbi: Fix GPA passed to __sbi_hfence_gvma_xyz() functions 2021-11-02 16:02:08 +05:30
sbi_hsm.c lib: sbi: add check for ipi device for hsm start 2022-07-11 15:46:59 +05:30
sbi_illegal_insn.c lib: sbi_illegal_insn: Fix FENCE.TSO emulation infinite trap loop 2022-08-22 08:57:23 +05:30
sbi_init.c lib: sbi: Print platform PMU device at boot-time 2022-09-01 16:53:25 +05:30
sbi_ipi.c lib: sbi: add check for ipi device for hsm start 2022-07-11 15:46:59 +05:30
sbi_irqchip.c lib: sbi: Add a simple external interrupt handling framework 2022-02-28 09:43:12 +05:30
sbi_math.c lib: Create a separate math helper function file 2020-05-10 09:59:24 +05:30
sbi_misaligned_ldst.c lib: sbi_misaligned_ldst: Set GVA if not emulating 2022-09-13 16:43:07 +05:30
sbi_platform.c lib: sbi: Refine the way to construct platform features 2021-09-03 12:16:01 +05:30
sbi_pmu.c lib: sbi_pmu: move pmu irq information into pmu itself 2022-10-13 09:52:01 +05:30
sbi_scratch.c lib: sbi_scratch: zero out scratch memory on all harts 2021-06-11 13:59:48 +05:30
sbi_string.c lib: sbi: Fix sbi_strnlen wrong count decrement 2022-09-13 17:17:10 +05:30
sbi_system.c lib: sbi: add priority for reset handler 2021-10-11 10:32:26 +05:30
sbi_timer.c lib: sbi_timer: Added a conditional wait function which can timeout 2022-07-08 14:51:24 +05:30
sbi_tlb.c lib: sbi: Fix GPA passed to __sbi_hfence_gvma_xyz() functions 2021-11-02 16:02:08 +05:30
sbi_trap.c lib: sbi_trap: Add helper to get GVA in sbi_trap_regs 2022-09-13 16:42:59 +05:30
sbi_unpriv.c lib: sbi: Fix tval and tinst for sbi_get_insn() 2022-06-21 08:31:56 +05:30