Skip to content

lib: sbi: dbtr: per-slot trigger capability detection

David E. Garcia Porras opensbi 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3lib: sbi: dbtr: add platform device for per-slot trigger capabilitiesinclude/sbi/sbi_dbtr.h lib/sbi/sbi_dbtr.c+152 -201 reply
2/3lib: sbi: dbtr: return SBI_ERR_BAD_RANGE for invalid trigger index rangelib/sbi/sbi_dbtr.c+1 -11 reply
3/3lib: sbi: dbtr: return SBI_ERR_INVALID_PARAM for invalid trigger configurationlib/sbi/sbi_dbtr.c+1 -11 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 v1 thread

Cover letter [PATCH 0/3] lib: sbi: dbtr: per-slot trigger capability detection

Patch 1 adds an optional platform device (struct sbi_dbtr_device) reporting whether a trigger slot supports a given configuration -- WARL fields tied off inside an implemented trigger CSR are not discoverable via tinfo -- and makes trigger allocation configuration-aware instead of picking the first free slot.

Patches 2 and 3 fix error return codes: sbi_dbtr_read_trig() returns SBI_ERR_BAD_RANGE per SBI v3.0 section 19.3, and sbi_dbtr_install_trig() returns SBI_ERR_INVALID_PARAM for an invalid trigger configuration per section 19.4.

David E. Garcia Porras (3):
lib: sbi: dbtr: add platform device for per-slot trigger capabilities
lib: sbi: dbtr: return SBI_ERR_BAD_RANGE for invalid trigger index
range
lib: sbi: dbtr: return SBI_ERR_INVALID_PARAM for invalid trigger
configuration

 include/sbi/sbi_dbtr.h |  10 ++++
 lib/sbi/sbi_dbtr.c     | 166 ++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 154 insertions(+), 22 deletions(-)

--
2.43.0

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi