From: Rahul Pathak <rahul.pathak@oss.qualcomm.com>
To: opensbi@lists.infradead.org
Cc: rahul.pathak@oss.qualcomm.com, rahul@summations.net
Subject: [PATCH 0/2] Rename sbi_domain functions and per-domain data
Date: Thu, 20 Aug 2026 17:43:07 +0530 [thread overview]
Message-ID: <20260820121309.2551296-1-rahul.pathak@oss.qualcomm.com> (raw)
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
next reply other threads:[~2026-08-20 12:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 12:13 Rahul Pathak [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260820121309.2551296-1-rahul.pathak@oss.qualcomm.com \
--to=rahul.pathak@oss.qualcomm.com \
--cc=opensbi@lists.infradead.org \
--cc=rahul@summations.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox