mbox series

[v2,0/3] lib: sbi_pmu: SBI v3.0 PMU error code fixes

Message ID 20260818210023.466462-1-david.garcia@aheadcomputing.com
Headers show
Series lib: sbi_pmu: SBI v3.0 PMU error code fixes | expand

Message

David E. Garcia Porras Aug. 18, 2026, 9 p.m. UTC
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(-)