mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-10-09 18:12:18 +01:00
lib: utils/reset: Hang the hart after RPMI system reset message
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: 6a26726e08
("lib/utils: reset: Add RPMI System Reset driver")
Reported-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Link: https://lore.kernel.org/r/20250903144323.251270-1-rpathak@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
* Rahul Pathak <rpathak@ventanamicro.com>
|
* Rahul Pathak <rpathak@ventanamicro.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sbi/sbi_hart.h>
|
||||||
#include <sbi/sbi_error.h>
|
#include <sbi/sbi_error.h>
|
||||||
#include <sbi/sbi_system.h>
|
#include <sbi/sbi_system.h>
|
||||||
#include <sbi/sbi_console.h>
|
#include <sbi/sbi_console.h>
|
||||||
@@ -56,6 +57,8 @@ static void rpmi_do_system_reset(u32 reset_type)
|
|||||||
if (ret)
|
if (ret)
|
||||||
sbi_printf("system reset failed [type: %d]: ret: %d\n",
|
sbi_printf("system reset failed [type: %d]: ret: %d\n",
|
||||||
reset_type, ret);
|
reset_type, ret);
|
||||||
|
|
||||||
|
sbi_hart_hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user