Skip to content

Assorted improvements

Anup Patel opensbi 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Addressed Samuel's comment on PATCH1
- Added new PATCH6 which enforces that previous booting stage does not enter OpenSBI with mseccfg.MML == 1 on platforms with Smepmp

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib: sbi_tlb: Reduce size of struct sbi_tlb_infoinclude/sbi/sbi_tlb.h lib/sbi/sbi_ecall_legacy.c lib/sbi/sbi_ecall_rfence.c +1 more+77 -570 replies
2/6platform: generic: Fine tune fw_platform_calculate_heap_size()platform/generic/platform.c+2 -10 replies
3/6lib: utils/irqchip: Add shared MMIO region for PLIC in root domaininclude/sbi_utils/irqchip/plic.h lib/utils/fdt/fdt_helper.c lib/utils/irqchip/plic.c +6 more+21 -10 replies
4/6lib: sbi: Allow ecall handlers to directly update register stateinclude/sbi/sbi_ecall.h include/sbi/sbi_platform.h lib/sbi/sbi_ecall.c +16 more+109 -1070 replies
5/6lib: sbi: Remove the SBI_ETRAP error codeinclude/sbi/sbi_error.h lib/sbi/sbi_ecall_legacy.c+14 -230 replies
6/6lib: sbi: Do not enter OpenSBI with mseccfg.MML == 1lib/sbi/sbi_hart.c+10 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/6] Assorted improvements

This series does various assorted improvements. The patch1 and patch2 improve heap usage by reducing size of struct sbi_tlb_info. The patch3 is fixes PLIC driver for use on platforms with Smepmp. The patch4 and patch5 improve ecall handlers.

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

Changes since v1:
- Addressed Samuel's comment on PATCH1
- Added new PATCH6 which enforces that previous booting stage does not enter OpenSBI with mseccfg.MML == 1 on platforms with Smepmp

Anup Patel (6):
lib: sbi_tlb: Reduce size of struct sbi_tlb_info
platform: generic: Fine tune fw_platform_calculate_heap_size()
lib: utils/irqchip: Add shared MMIO region for PLIC in root domain
lib: sbi: Allow ecall handlers to directly update register state
lib: sbi: Remove the SBI_ETRAP error code
lib: sbi: Do not enter OpenSBI with mseccfg.MML == 1

 include/sbi/sbi_ecall.h                      | 12 ++-
 include/sbi/sbi_error.h                      |  5 +-
 include/sbi/sbi_platform.h                   | 19 ++---
 include/sbi/sbi_tlb.h                        | 29 +++----
 include/sbi_utils/irqchip/plic.h             |  1 +
 lib/sbi/sbi_ecall.c                          | 13 +---
 lib/sbi/sbi_ecall_base.c                     | 27 ++++---
 lib/sbi/sbi_ecall_cppc.c                     | 13 ++--
 lib/sbi/sbi_ecall_dbcn.c                     |  9 +--
 lib/sbi/sbi_ecall_hsm.c                      |  7 +-
 lib/sbi/sbi_ecall_ipi.c                      |  5 +-
 lib/sbi/sbi_ecall_legacy.c                   | 59 ++++++++------
 lib/sbi/sbi_ecall_pmu.c                      | 17 ++--
 lib/sbi/sbi_ecall_rfence.c                   | 21 +++--
 lib/sbi/sbi_ecall_srst.c                     |  5 +-
 lib/sbi/sbi_ecall_susp.c                     |  7 +-
 lib/sbi/sbi_ecall_time.c                     |  5 +-
 lib/sbi/sbi_ecall_vendor.c                   |  8 +-
 lib/sbi/sbi_hart.c                           | 10 +++
 lib/sbi/sbi_tlb.c                            | 81 ++++++++++++--------
 lib/utils/fdt/fdt_helper.c                   |  1 +
 lib/utils/irqchip/plic.c                     |  6 +-
 platform/fpga/ariane/platform.c              |  3 +
 platform/fpga/openpiton/platform.c           |  3 +
 platform/generic/andes/andes_sbi.c           |  7 +-
 platform/generic/include/andes/andes_sbi.h   |  6 +-
 platform/generic/include/platform_override.h |  6 +-
 platform/generic/platform.c                  | 11 ++-
 platform/kendryte/k210/platform.c            |  1 +
 platform/kendryte/k210/platform.h            |  1 +
 platform/nuclei/ux600/platform.c             |  3 +
 platform/template/platform.c                 |  3 +
 32 files changed, 224 insertions(+), 180 deletions(-)
Signature · 1 line
2.34.1