From: Rahul Pathak <rpathak@ventanamicro.com>
To: opensbi@lists.infradead.org
Cc: rpathak@ventanamicro.com, rahul@summations.net,
Anup Patel <apatel@ventanamicro.com>
Subject: [PATCH] lib: utils/reset: Hang the hart after RPMI system reset message
Date: Wed, 3 Sep 2025 20:13:23 +0530 [thread overview]
Message-ID: <20250903144323.251270-1-rpathak@ventanamicro.com> (raw)
RPMI system reset is a posted message which
does not wait for acknowledgement after sending
the RPMI message to PuC. Call the sbi_hart_hang()
to hang the hart after performing the system reset
via RPMI message.
Fixes: 6a26726e08e4 ("lib/utils: reset: Add RPMI System Reset driver")
Reported-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
---
lib/utils/reset/fdt_reset_rpmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/utils/reset/fdt_reset_rpmi.c b/lib/utils/reset/fdt_reset_rpmi.c
index edc53932ccc0..c29715d329c4 100644
--- a/lib/utils/reset/fdt_reset_rpmi.c
+++ b/lib/utils/reset/fdt_reset_rpmi.c
@@ -7,6 +7,7 @@
* Rahul Pathak <rpathak@ventanamicro.com>
*/
+#include <sbi/sbi_hart.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_system.h>
#include <sbi/sbi_console.h>
@@ -56,6 +57,8 @@ static void rpmi_do_system_reset(u32 reset_type)
if (ret)
sbi_printf("system reset failed [type: %d]: ret: %d\n",
reset_type, ret);
+
+ sbi_hart_hang();
}
/**
--
2.48.1
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next reply other threads:[~2025-09-03 19:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 14:43 Rahul Pathak [this message]
2025-09-10 5:32 ` [PATCH] lib: utils/reset: Hang the hart after RPMI system reset message Samuel Holland
2025-09-10 6:47 ` Rahul Pathak
2025-09-16 4:24 ` 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=20250903144323.251270-1-rpathak@ventanamicro.com \
--to=rpathak@ventanamicro.com \
--cc=apatel@ventanamicro.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