Skip to content

OpenSBI sparse HART id support

Anup Patel opensbi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8lib: sbi: Introduce HART index in sbi_scratchinclude/sbi/sbi_scratch.h lib/sbi/sbi_scratch.c+68 -154 replies
1/8lib: sbi: Introduce HART index in sbi_scratch+0 -02 replies
2/8lib: sbi: Remove sbi_platform_hart_index/invalid() functionsinclude/sbi/sbi_platform.h lib/sbi/sbi_domain.c lib/sbi/sbi_init.c +1 more+11 -510 replies
3/8lib: sbi: Extend sbi_hartmask to support both hartid and hartindexinclude/sbi/sbi_hartmask.h lib/sbi/sbi_domain.c lib/sbi/sbi_init.c +4 more+105 -600 replies
4/8lib: sbi: Use sbi_scratch_last_hartindex() in remote TLB managmentlib/sbi/sbi_tlb.c+3 -30 replies
5/8lib: sbi: Prefer hartindex over hartid in IPI frameworkinclude/sbi/sbi_ipi.h lib/sbi/sbi_hsm.c lib/sbi/sbi_init.c +6 more+44 -380 replies
6/8lib: sbi: Remove sbi_scratch_last_hartid() macroinclude/sbi/sbi_scratch.h lib/sbi/sbi_hsm.c lib/sbi/sbi_init.c +1 more+20 -290 replies
7/8lib: sbi: Maximize the use of HART index in sbi_domaininclude/sbi/sbi_domain.h lib/sbi/sbi_domain.c+33 -290 replies
8/8include: sbi: Remove sbi_hartmask_for_each_hart() macroinclude/sbi/sbi_hartmask.h lib/sbi/sbi_system.c+2 -140 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] OpenSBI sparse HART id support

Currently, we requires HART id to be less than SBI_HARTMASK_MAX_BITS because we use HART id as bit index in the sbi_hartmask. This is a very limiting requirement because RISC-V platforms can have sparse HART ids (with possibly large values).

This series addresses the above described limitation by adding sparse HART id support in OpenSBI.

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

Anup Patel (7):
lib: sbi: Introduce HART index in sbi_scratch
lib: sbi: Remove sbi_platform_hart_index/invalid() functions
lib: sbi: Use sbi_scratch_last_hartindex() in remote TLB managment
lib: sbi: Prefer hartindex over hartid in IPI framework
lib: sbi: Remove sbi_scratch_last_hartid() macro
lib: sbi: Maximize the use of HART index in sbi_domain
include: sbi: Remove sbi_hartmask_for_each_hart() macro

Xiang W (1):
lib: sbi: Extend sbi_hartmask to support both hartid and hartindex

 include/sbi/sbi_domain.h       |  6 +--
 include/sbi/sbi_hartmask.h     | 75 ++++++++++++++++++++++++-------
 include/sbi/sbi_ipi.h          | 14 +++---
 include/sbi/sbi_platform.h     | 28 ------------
 include/sbi/sbi_scratch.h      | 49 ++++++++++++++++----
 lib/sbi/sbi_domain.c           | 82 ++++++++++++++++------------------
 lib/sbi/sbi_hsm.c              | 30 ++++++-------
 lib/sbi/sbi_init.c             | 28 +++++++-----
 lib/sbi/sbi_ipi.c              | 28 ++++++------
 lib/sbi/sbi_platform.c         | 17 -------
 lib/sbi/sbi_scratch.c          | 37 +++++++++------
 lib/sbi/sbi_system.c           |  5 ++-
 lib/sbi/sbi_tlb.c              | 14 +++---
 lib/utils/fdt/fdt_domain.c     |  4 +-
 lib/utils/ipi/aclint_mswi.c    | 14 +++---
 lib/utils/ipi/andes_plicsw.c   |  8 +++-
 lib/utils/irqchip/imsic.c      |  4 +-
 platform/generic/andes/ae350.c |  2 +-
 18 files changed, 246 insertions(+), 199 deletions(-)
Signature · 1 line
2.34.1