OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v2 0/2] lib: sbi: add support for debug triggers
@ 2022-12-03 21:39 Sergey Matyukevich
  2022-12-03 21:39 ` [PATCH RFC v2 1/2] include: sbi: endianness conversion macros Sergey Matyukevich
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sergey Matyukevich @ 2022-12-03 21:39 UTC (permalink / raw)
  To: opensbi

This is the second revision of the patches implementing SBI Debug
Trigger extension proposal posted at riscv tech-debug list:
https://lists.riscv.org/g/tech-debug/topic/92375492

The major changes include support for mcounter trigger type and
updates according to some of the review comments. 

As a part of endianness fixes, this revision includes a separate
patch for a header with endianness conversion macros. Depending
on the feedback, later on it can be reposted separately.

Regards,
Sergey

Changes v1 -> v2:
- add header with endianness conversion macros
- fix endinanness: keep possible big-endian support in mind
- do not mark shared structures as packed
- add support for type 2 (mcounter) triggers


Sergey Matyukevich (2):
  include: sbi: endianness conversion macros
  lib: sbi: add support for debug triggers

 include/sbi/riscv_dbtr.h          | 179 +++++++++++
 include/sbi/riscv_encoding.h      |   1 +
 include/sbi/riscv_endian.h        |  48 +++
 include/sbi/sbi_dbtr.h            |  80 +++++
 include/sbi/sbi_ecall_interface.h |  10 +
 lib/sbi/Kconfig                   |   4 +
 lib/sbi/objects.mk                |   4 +
 lib/sbi/sbi_dbtr.c                | 481 ++++++++++++++++++++++++++++++
 lib/sbi/sbi_ecall_dbtr.c          |  68 +++++
 lib/sbi/sbi_init.c                |   9 +
 10 files changed, 884 insertions(+)
 create mode 100644 include/sbi/riscv_dbtr.h
 create mode 100644 include/sbi/riscv_endian.h
 create mode 100644 include/sbi/sbi_dbtr.h
 create mode 100644 lib/sbi/sbi_dbtr.c
 create mode 100644 lib/sbi/sbi_ecall_dbtr.c

-- 
2.38.1



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

end of thread, other threads:[~2022-12-13 19:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-03 21:39 [PATCH RFC v2 0/2] lib: sbi: add support for debug triggers Sergey Matyukevich
2022-12-03 21:39 ` [PATCH RFC v2 1/2] include: sbi: endianness conversion macros Sergey Matyukevich
2022-12-03 21:39 ` [PATCH RFC v2 2/2] lib: sbi: add support for debug triggers Sergey Matyukevich
2022-12-04 11:56   ` Xiang W
2022-12-05 20:34     ` Sergey Matyukevich
2022-12-08 12:49   ` Himanshu Chauhan
2022-12-10 20:42     ` Sergey Matyukevich
2022-12-10 16:54   ` Xiang W
2022-12-10 19:15     ` Sergey Matyukevich
2022-12-11  1:40       ` Xiang W
2022-12-13 19:43         ` Sergey Matyukevich
2022-12-03 21:59 ` [PATCH RFC v2 0/2] " Sergey Matyukevich

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