RISC-V: Add sscofpmf extension support
The sscofpmf extension allows counter overflow and filtering for programmable counters. Enable the perf driver to handle the overflow interrupt. The overflow interrupt is a hart local interrupt. Thus, per cpu overflow interrupts are setup as a child under the root INTC irq domain. Signed-off-by:Atish Patra <atish.patra@wdc.com> Signed-off-by:
Atish Patra <atishp@rivosinc.com> Signed-off-by:
Palmer Dabbelt <palmer@rivosinc.com>
Showing
- arch/riscv/include/asm/csr.h 7 additions, 1 deletionarch/riscv/include/asm/csr.h
- arch/riscv/include/asm/hwcap.h 1 addition, 0 deletionsarch/riscv/include/asm/hwcap.h
- arch/riscv/kernel/cpu.c 1 addition, 0 deletionsarch/riscv/kernel/cpu.c
- arch/riscv/kernel/cpufeature.c 2 additions, 0 deletionsarch/riscv/kernel/cpufeature.c
- drivers/perf/riscv_pmu_sbi.c 217 additions, 5 deletionsdrivers/perf/riscv_pmu_sbi.c
- include/linux/perf/riscv_pmu.h 2 additions, 0 deletionsinclude/linux/perf/riscv_pmu.h
Loading
Please register or sign in to comment