[PATCH v1 0/3] Miscellaneous PMU fixes

Atish Patra atishp at rivosinc.com
Fri Jan 7 10:54:06 PST 2022


This series contain several small fixes in PMU related code.
The first patches is a sanity check for counter mappings in DT while
rest of the patches updates mhpmevent correctly during init and counter
config matching.

Atish Patra (3):
lib: sbi: Map only the counters enabled in hardware
lib: sbi: Disable interrupt during config matching
lib: sbi: Disable interrupt and inhibit counting in M-mode during init

include/sbi/riscv_encoding.h |  3 ++-
lib/sbi/sbi_hart.c           | 18 ++++++++++++++++++
lib/sbi/sbi_pmu.c            | 16 ++++++++++++----
3 files changed, 32 insertions(+), 5 deletions(-)

--
2.30.2




More information about the opensbi mailing list