From: Rahul Pathak <rahul.pathak@oss.qualcomm.com>
To: opensbi@lists.infradead.org
Cc: rahul.pathak@oss.qualcomm.com, rahul@summations.net,
Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>,
Ranbir Singh <ranbir.singh@oss.qualcomm.com>
Subject: [RFC PATCH v2 1/5] riscv: Add Smsdid and Smmpt hart extensions
Date: Mon, 27 Jul 2026 19:25:59 +0530 [thread overview]
Message-ID: <20260727135605.465309-2-rahul.pathak@oss.qualcomm.com> (raw)
In-Reply-To: <20260727135605.465309-1-rahul.pathak@oss.qualcomm.com>
Add hart extension identifiers for the RISC-V Smsdid (supervisor
domain ID) and Smmpt (supervisor domain memory protection) extensions.
Signed-off-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com>
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>
Reviewed-by: Ranbir Singh <ranbir.singh@oss.qualcomm.com>
---
include/sbi/sbi_hart.h | 4 ++++
lib/sbi/sbi_hart.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index 543393bb..cbad94d4 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -95,6 +95,10 @@ enum sbi_hart_extensions {
SBI_HART_EXT_F,
/** Hart has D extension */
SBI_HART_EXT_D,
+ /** Hart has SMMTT - SMSDID extension */
+ SBI_HART_EXT_SMSDID,
+ /** Hart has SMMTT - SMMPT extension */
+ SBI_HART_EXT_SMMPT,
/** Maximum index of Hart extension */
SBI_HART_EXT_MAX,
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c
index bee88557..4261fea8 100644
--- a/lib/sbi/sbi_hart.c
+++ b/lib/sbi/sbi_hart.c
@@ -360,6 +360,8 @@ const struct sbi_hart_ext_data sbi_hart_ext[] = {
__SBI_HART_EXT_DATA(v, SBI_HART_EXT_V),
__SBI_HART_EXT_DATA(f, SBI_HART_EXT_F),
__SBI_HART_EXT_DATA(d, SBI_HART_EXT_D),
+ __SBI_HART_EXT_DATA(smsdid, SBI_HART_EXT_SMSDID),
+ __SBI_HART_EXT_DATA(smmpt, SBI_HART_EXT_SMMPT),
};
_Static_assert(SBI_HART_EXT_MAX == array_size(sbi_hart_ext),
--
2.51.0
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next prev parent reply other threads:[~2026-07-27 13:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 13:55 [RFC PATCH v2 0/5] Add Smsdid and Smmpt supervisor domain protection Rahul Pathak
2026-07-27 13:55 ` Rahul Pathak [this message]
2026-07-27 13:56 ` [RFC PATCH v2 2/5] mpt: Add Smsdid and Smmpt supervisor domain core Rahul Pathak
2026-08-14 18:28 ` Pawandeep Oza
2026-08-22 12:18 ` Rahul Pathak
2026-07-27 13:56 ` [RFC PATCH v2 3/5] platform/generic: Initialise MPT at boot Rahul Pathak
2026-07-28 17:53 ` Pawandeep Oza
2026-07-29 2:37 ` Rahul Pathak
2026-07-27 13:56 ` [RFC PATCH v2 4/5] sbi: hsm: Activate MPT for domain on hart start/resume Rahul Pathak
2026-07-28 18:18 ` Pawandeep Oza
2026-07-27 13:56 ` [RFC PATCH v2 5/5] sbi: init: Print supervisor domains at boot 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=20260727135605.465309-2-rahul.pathak@oss.qualcomm.com \
--to=rahul.pathak@oss.qualcomm.com \
--cc=opensbi@lists.infradead.org \
--cc=pawandeep.oza@oss.qualcomm.com \
--cc=rahul@summations.net \
--cc=ranbir.singh@oss.qualcomm.com \
/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