OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] OpenSBI sparse HART id support
@ 2023-09-04  4:03 Anup Patel
  2023-09-04  4:03 ` [PATCH 1/8] lib: sbi: Introduce HART index in sbi_scratch Anup Patel
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Anup Patel @ 2023-09-04  4:03 UTC (permalink / raw)
  To: opensbi

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(-)

-- 
2.34.1



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

end of thread, other threads:[~2023-09-24  6:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-04  4:03 [PATCH 0/8] OpenSBI sparse HART id support Anup Patel
2023-09-04  4:03 ` [PATCH 1/8] lib: sbi: Introduce HART index in sbi_scratch Anup Patel
2023-09-20 17:54   ` Xiang W
2023-09-22  5:44     ` Anup Patel
2023-09-22  7:56       ` Xiang W
2023-09-22  8:23         ` Anup Patel
2023-09-22  8:38         ` Anup Patel
2023-09-22 12:58           ` Xiang W
2023-09-24  6:06             ` Anup Patel
2023-09-04  4:03 ` [PATCH 2/8] lib: sbi: Remove sbi_platform_hart_index/invalid() functions Anup Patel
2023-09-04  4:03 ` [PATCH 3/8] lib: sbi: Extend sbi_hartmask to support both hartid and hartindex Anup Patel
2023-09-04  4:03 ` [PATCH 4/8] lib: sbi: Use sbi_scratch_last_hartindex() in remote TLB managment Anup Patel
2023-09-04  4:03 ` [PATCH 5/8] lib: sbi: Prefer hartindex over hartid in IPI framework Anup Patel
2023-09-04  4:03 ` [PATCH 6/8] lib: sbi: Remove sbi_scratch_last_hartid() macro Anup Patel
2023-09-04  4:03 ` [PATCH 7/8] lib: sbi: Maximize the use of HART index in sbi_domain Anup Patel
2023-09-04  4:03 ` [PATCH 8/8] include: sbi: Remove sbi_hartmask_for_each_hart() macro Anup Patel
2023-09-24  6:34 ` [PATCH 0/8] OpenSBI sparse HART id support Anup Patel

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