[PATCH 0/5] Implement PMU enhancements in SBI v3.0
Atish Patra
atishp at rivosinc.com
Tue Nov 19 11:34:34 PST 2024
SBI v3.0 specification[1] added two new improvements to the PMU chaper.
1. Added an additional get_event_info function to query event availability
in bulk instead of individual SBI calls for each event. This improves the
supervisor OS boot time if implemented.
2. Raw event width allowed by the platform is widened to have 56 bits
with RAW event v2 as per new clarification in the priv ISA[2].
[1] https://github.com/riscv-non-isa/riscv-sbi-doc/releases/download/vv3.0-rc2/riscv-sbi.pdf
[2] https://github.com/riscv/riscv-isa-manual/issues/1578
To: opensbi at lists.infradead.org
Cc: apatel at ventanamicro.com
Signed-off-by: Atish Patra <atishp at rivosinc.com>
---
Atish Patra (5):
lib: sbi_pmu: PMU raw event v2 support
lib: sbi_pmu: Remove redundant check for fw events
lib: sbi_pmu: Add SBI PMU event info function details.
lib: sbi_pmu: Implement SBI PMU event info function
include: sbi: Change spec version to 3.0
include/sbi/sbi_ecall.h | 2 +-
include/sbi/sbi_ecall_interface.h | 11 +++++
include/sbi/sbi_pmu.h | 2 +
lib/sbi/sbi_ecall_pmu.c | 3 ++
lib/sbi/sbi_pmu.c | 95 ++++++++++++++++++++++++++++++++++-----
platform/generic/platform.c | 3 +-
6 files changed, 104 insertions(+), 12 deletions(-)
---
base-commit: 86d2c1797a44975e628bcf77e30e687fd6738e81
change-id: 20241111-pmu_event_info-ee78dfa947cc
--
Regards,
Atish patra
More information about the opensbi
mailing list