Skip to content

OpenSBI debug console support

Anup Patel opensbi 7 versions – New

Get series with b4
b4 am CAK9=C2WKqySwZJoB9kgNqenQ42AAeLkz=uGuraAa5Pif33u1TA@mail.gmail.com

Versions newest first · linked by author and title

  1. v6 Latest posting 2/20 of 8 patches 0 repliesNew
  2. v6 posting 1/28 patches 0 repliesSuperseded
  3. v58 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v47 patches0 repliesSuperseded
v36 patches0 repliesSuperseded
v26 patches0 repliesSuperseded
v1 RFC3 patches0 repliesSuperseded

Patches in v6 posting 2/2 No applies recorded yet

None of the 8 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/8] OpenSBI debug console support
Quoted 42 lines · Anup Patel

The latest proposal of SBI debug console extension can be found at:
https://lists.riscv.org/g/tech-prs/message/96

This series implements SBI debug console support in OpenSBI as-per above draft proposal.

To test these patches corresponding Linux patches can be found in riscv_sbi_dbcn_v1 branch at: https://github.com/avpatel/linux.git

These patches can also be found in riscv_sbi_dbcn_v6 branch at:
https://github.com/avpatel/opensbi.git

Changes since v5:
- Rebased on latest OpenSBI sources
- Updated Reviewed-by tags
- Addressed Drew's comments in all patches
- Updated SBI debug console implementation as-per latest proposal where console write() is non-blocking.

Changes since v4:
- Rebased on latest OpenSBI sources
- Updated Reviewed-by tags
- Added new PATCH8 to speed-up sbi_printf() using nputs()

Changes since v3:
- Rebased on OpenSBI v1.2 release
- Updated Reviewed-by tags
- Added new PATCH3 for sbi_ngets() function
- Updated SBI debug console implementation in PATCH5 as-per latest proposal having both console write() and read() functions.

Changes since v2:
- Reworked sbi_domain_check_addr_range() in PATCH3 to make it work for overlapping regions.

Changes since v1:
- New PATCH3 to implement sbi_domain_check_addr_range() function
- Added checks in PATCH4 for location and size of string to print
- New PATCH5 to add console_puts() callback in the console device
- New PATCH6 to implement console_puts() for semihosting

Quoted 9 lines

Anup Patel (8):
include: Add defines for SBI debug console extension
lib: sbi: Add sbi_nputs() function
lib: sbi: Add sbi_ngets() function
lib: sbi: Add sbi_domain_check_addr_range() function
lib: sbi: Implement SBI debug console extension
lib: sbi: Add console_puts() callback in the console device
lib: utils/serial: Implement console_puts() for semihosting
lib: sbi: Speed-up sbi_printf() and friends using nputs()

Applied this series to the riscv/opensbi repo.

Regards,
Anup

Quoted 16 lines
 include/sbi/sbi_console.h         |  7 +++
 include/sbi/sbi_domain.h          | 15 ++++++
 include/sbi/sbi_ecall_interface.h |  6 +++
 lib/sbi/Kconfig                   |  4 ++
 lib/sbi/objects.mk                |  3 ++
 lib/sbi/sbi_console.c             | 88 ++++++++++++++++++++++++++++---
 lib/sbi/sbi_domain.c              | 69 ++++++++++++++++++++++++
 lib/sbi/sbi_ecall_dbcn.c          | 72 +++++++++++++++++++++++++
 lib/utils/serial/semihosting.c    | 37 +++++++++++++
 9 files changed, 294 insertions(+), 7 deletions(-)
 create mode 100644 lib/sbi/sbi_ecall_dbcn.c

--
2.34.1