Skip to content

Rename sbi_domain functions and per-domain data

Rahul Pathak opensbi 1 version Applied

Status from this message: Applied this patch to the riscv/opensbi repo.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lib: sbi: Rename map_range/unmap_range functionsinclude/sbi/sbi_hart_protection.h lib/sbi/sbi_dbtr.c lib/sbi/sbi_ecall_dbcn.c +5 more+60 -552 replies
2/2lib: sbi_domain: Rename per-domain data to per-domain stateinclude/sbi/sbi_domain.h include/sbi/sbi_domain_data.h include/sbi/sbi_domain_state.h +6 more+261 -2611 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAnup PatelPawandeep Oza
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Rename sbi_domain functions and per-domain data

This series changes the names of sbi domain callback functions and per-domain data structures and functions to represent what they actually do. There are no functional changes.

Patch 1 renames the hart protection map_range()/unmap_range() callbacks and their wrappers to temp_map_range()/temp_unmap_range(). These are not generic address-range mapping operations but they are only used by M-mode to get temporarily access to an S/U-mode address range.

Patch 2 renames the per-domain data mechanism to per-domain state. The areas registered through it hold various states associated with a domain - hart context in sbi_domain_context and MPXY state in sbi_mpxy today - which "data" does not convey.

Patch 1 earlier was part of SMMPT series but due to patch 2 making it a separate series and it will be removed from next version of SMMPT series.
https://lore.kernel.org/opensbi/[email protected]/

Rahul Pathak (2):
lib: sbi: Rename map_range/unmap_range functions
lib: sbi_domain: Rename per-domain data to per-domain state

 include/sbi/sbi_domain.h          |   6 +-
 include/sbi/sbi_domain_data.h     |  93 --------------------
 include/sbi/sbi_domain_state.h    |  93 ++++++++++++++++++++
 include/sbi/sbi_hart_protection.h |  27 +++---
 lib/sbi/objects.mk                |   2 +-
 lib/sbi/sbi_dbtr.c                |  26 +++---
 lib/sbi/sbi_domain.c              |   6 +-
 lib/sbi/sbi_domain_context.c      |  14 +--
 lib/sbi/sbi_domain_data.c         | 138 ------------------------------
 lib/sbi/sbi_domain_state.c        | 138 ++++++++++++++++++++++++++++++
 lib/sbi/sbi_ecall_dbcn.c          |   4 +-
 lib/sbi/sbi_hart_pmp.c            |  10 +--
 lib/sbi/sbi_hart_protection.c     |  12 +--
 lib/sbi/sbi_mpxy.c                |  56 ++++++------
 lib/sbi/sbi_pmu.c                 |   4 +-
 lib/sbi/sbi_sse.c                 |   8 +-
 16 files changed, 321 insertions(+), 316 deletions(-)
 delete mode 100644 include/sbi/sbi_domain_data.h
 create mode 100644 include/sbi/sbi_domain_state.h
 delete mode 100644 lib/sbi/sbi_domain_data.c
 create mode 100644 lib/sbi/sbi_domain_state.c
Signature · 7 lines
2.53.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi