All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Rename sbi_domain functions and per-domain data
@ 2026-08-20 12:13 Rahul Pathak
  2026-08-20 12:13 ` [PATCH 1/2] lib: sbi: Rename map_range/unmap_range functions Rahul Pathak
  2026-08-20 12:13 ` [PATCH 2/2] lib: sbi_domain: Rename per-domain data to per-domain state Rahul Pathak
  0 siblings, 2 replies; 4+ messages in thread
From: Rahul Pathak @ 2026-08-20 12:13 UTC (permalink / raw)
  To: opensbi; +Cc: rahul.pathak, rahul

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/20260805183839.2576691-1-rahul.pathak@oss.qualcomm.com/

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

-- 
2.53.0


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

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

end of thread, other threads:[~2026-08-25  7:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 12:13 [PATCH 0/2] Rename sbi_domain functions and per-domain data Rahul Pathak
2026-08-20 12:13 ` [PATCH 1/2] lib: sbi: Rename map_range/unmap_range functions Rahul Pathak
2026-08-25  7:56   ` Ranbir Singh
2026-08-20 12:13 ` [PATCH 2/2] lib: sbi_domain: Rename per-domain data to per-domain state Rahul Pathak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.