[PATCH v2 0/3] lib: sbi_pmu: SBI v3.0 PMU error code fixes
David E. Garcia Porras
david.garcia at aheadcomputing.com
Tue Aug 18 14:00:20 PDT 2026
This series fixes several places where the PMU extension returns
error codes that do not match the SBI v3.0 specification, chapter 11.
Changes in v2:
- Added patch 3/3: reject reserved flag bits in counter start/stop,
propagate ALREADY_STARTED/ALREADY_STOPPED, and report firmware
events as supported in event_get_info.
- Patches 1/3 and 2/3 are unchanged from their v1 submissions.
This series supersedes the two standalone v1 patches.
David E. Garcia Porras (3):
lib: sbi_pmu: Return invalid param error for reserved event_idx bits
lib: sbi_pmu: Match raw event selector only against raw event map
entries
lib: sbi_pmu: Fix counter and event info error codes as per SBI v3.0
spec
include/sbi/sbi_ecall_interface.h | 14 ++++++++
lib/sbi/sbi_pmu.c | 55 ++++++++++++++++++++++++-------
2 files changed, 57 insertions(+), 12 deletions(-)
--
2.43.0
More information about the opensbi
mailing list