OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] lib: sbi: dbtr: per-slot trigger capability detection
@ 2026-07-27 18:30 David E. Garcia Porras
  2026-07-27 18:30 ` [PATCH 1/3] lib: sbi: dbtr: add platform device for per-slot trigger capabilities David E. Garcia Porras
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David E. Garcia Porras @ 2026-07-27 18:30 UTC (permalink / raw)
  To: opensbi
  Cc: Anup Patel, Nicholas Piggin, Himanshu Chauhan,
	David E. Garcia Porras

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


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-27 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27 18:30 [PATCH 0/3] lib: sbi: dbtr: per-slot trigger capability detection David E. Garcia Porras
2026-07-27 18:30 ` [PATCH 1/3] lib: sbi: dbtr: add platform device for per-slot trigger capabilities David E. Garcia Porras
2026-07-27 18:30 ` [PATCH 2/3] lib: sbi: dbtr: return SBI_ERR_BAD_RANGE for invalid trigger index range David E. Garcia Porras
2026-07-27 18:30 ` [PATCH 3/3] lib: sbi: dbtr: return SBI_ERR_INVALID_PARAM for invalid trigger configuration David E. Garcia Porras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox