[PATCH] lib: utils/reset: Hang the hart after RPMI system reset message

Anup Patel anup at brainfault.org
Mon Sep 15 21:24:53 PDT 2025


On Thu, Sep 4, 2025 at 12:48 AM Rahul Pathak <rpathak at ventanamicro.com> wrote:
>
> 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 at ventanamicro.com>
> Signed-off-by: Rahul Pathak <rpathak at ventanamicro.com>

I assume no further concerns on this patch hence merging it.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

> ---
>  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 at 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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi



More information about the opensbi mailing list