Skip to content

lib: sbi_pmu: SBI v3.0 PMU error code fixes

David E. Garcia Porras opensbi 2 versions – Applied

Status from this message: Applied this patch to the riscv/opensbi repo.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied
  2. v11 patch 0 repliesSuperseded

Changes in v2 from the cover letter

- 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.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3lib: sbi_pmu: Return invalid param error for reserved event_idx bitsinclude/sbi/sbi_ecall_interface.h lib/sbi/sbi_pmu.c+5 -01 reply
2/3lib: sbi_pmu: Match raw event selector only against raw event map entrieslib/sbi/sbi_pmu.c+9 -01 reply
3/3lib: sbi_pmu: Fix counter and event info error codes as per SBI v3.0 specinclude/sbi/sbi_ecall_interface.h lib/sbi/sbi_pmu.c+52 -211 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAnup Patel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 7 lines
2.43.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi