OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Evgeny Voevodin <evvoevod@tenstorrent.com>
To: Anup Patel <anup@brainfault.org>
Cc: opensbi@lists.infradead.org, Nylon Chen <nylon.chen@sifive.com>,
	evvoevod@tenstorrent.com
Subject: [PATCH v3 0/6] Add RNMI handler infrastructure for Smrnmi extension
Date: Thu,  7 May 2026 18:08:01 +0000	[thread overview]
Message-ID: <cover.1778176768.git.evvoevod@tenstorrent.com> (raw)

This is v3 of the Smrnmi series. Based on upstream/master at commit
2257e9957103 ("lib: sbi_bitmap_test: add tests for bitmap_empty()").

v1 thread:
https://lore.kernel.org/opensbi/20260310183155.2186463-1-evvoevod@oss.tenstorrent.com/

v2 thread:
https://lore.kernel.org/opensbi/20260501211627.3293126-1-evvoevod@tenstorrent.com/

Changes vs v2:

- Split former patch 4 ("Create a spot ...") into two patches per
  Anup's review:
    * Patch 4 only moves sbi_platform_extensions_init() to the
      beginning of hart_detect_features().
    * Patch 5 moves Zkr stack-guard initialization out of fw_base.S
      into init_coldboot() in C, drops the asm
      __stack_chk_guard_init() helper.

Testing: Verified on Whisper SW system simulator and on HW emulator.

Evgeny Voevodin (6):
  include: sbi_scratch: Add tmp1 scratch space for RNMI context saving
  lib: sbi: Add Smrnmi extension macros for registers and bits
  firmware: Add RNMI handler infrastructure
  lib: sbi: hart: Move device tree features detection before trap-based
    checks
  lib: sbi: Move Zkr entropy initialization from fw_base.S to
    init_coldboot
  lib: sbi: hart: Detect and enable Smrnmi before trap-based feature
    detection

 firmware/fw_base.S           | 156 +++++++++++++++++++++++++++--------
 include/sbi/riscv_encoding.h |  10 +++
 include/sbi/sbi_hart.h       |   2 +
 include/sbi/sbi_platform.h   |   8 ++
 include/sbi/sbi_scratch.h    |  11 ++-
 include/sbi/sbi_trap.h       |   2 +
 lib/sbi/sbi_hart.c           |  37 +++++++--
 lib/sbi/sbi_init.c           |  31 +++++++
 lib/sbi/sbi_trap.c           |  39 +++++++++
 9 files changed, 254 insertions(+), 42 deletions(-)

-- 
2.43.0


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

             reply	other threads:[~2026-05-07 18:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 18:08 Evgeny Voevodin [this message]
2026-05-07 18:08 ` [PATCH v3 1/6] include: sbi_scratch: Add tmp1 scratch space for RNMI context saving Evgeny Voevodin
2026-05-07 18:08 ` [PATCH v3 2/6] lib: sbi: Add Smrnmi extension macros for registers and bits Evgeny Voevodin
2026-05-11  3:23   ` Nylon Chen
2026-05-07 18:08 ` [PATCH v3 3/6] firmware: Add RNMI handler infrastructure Evgeny Voevodin
2026-05-07 18:08 ` [PATCH v3 4/6] lib: sbi: hart: Move device tree features detection before trap-based checks Evgeny Voevodin
2026-05-08  4:53   ` Anup Patel
2026-05-07 18:08 ` [PATCH v3 5/6] lib: sbi: Move Zkr entropy initialization from fw_base.S to init_coldboot Evgeny Voevodin
2026-05-08  5:02   ` Anup Patel
2026-05-07 18:08 ` [PATCH v3 6/6] lib: sbi: hart: Detect and enable Smrnmi before trap-based feature detection Evgeny Voevodin
2026-05-09  6:50   ` Anup Patel
2026-05-12  6:44     ` Nylon Chen
2026-05-12  7:58       ` Anup Patel
2026-05-12  8:25         ` Nylon Chen
2026-05-12 15:40           ` Anup Patel
2026-05-14 20:27             ` Evgeny Voevodin
2026-05-09  7:34 ` [PATCH v3 0/6] Add RNMI handler infrastructure for Smrnmi extension Anup Patel

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=cover.1778176768.git.evvoevod@tenstorrent.com \
    --to=evvoevod@tenstorrent.com \
    --cc=anup@brainfault.org \
    --cc=nylon.chen@sifive.com \
    --cc=opensbi@lists.infradead.org \
    /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