Re: powerpc/pseries: add definitions for new H_SIGNAL_SYS_RESET hcall
From: Michael Ellerman <hidden>
Date: 2016-12-03 11:28:15
On Tue, 2016-11-08 at 06:08:06 UTC, Nicholas Piggin wrote:
This has not made its way to a PAPR release yet, but we have an hcall
number assigned.
H_SIGNAL_SYS_RESET = 0x380
Syntax:
hcall(uint64 H_SIGNAL_SYS_RESET, /* generate a system reset NMI on */
/* the threads indicated by target */
int64 target); /* thread target selection */
/* -1 = target all online threads including the caller */
/* -2 = target all online threads except for the caller */
/* All other negative values: reserved */
/* Positive values: The thread to be targeted, */
/* obtained from the value of the "ibm,ppc-interrupt-server#s" */
/* property of the CPU in the OF device tree */
Semantics:
- If the NMI handlers are not registered, terminate the partition.
- Invalid target: return H_Parameter.
- Otherwise: Generate a system reset NMI on target thread(s),
return H_Success.
This will be used by crash/debug code to get stuck CPUs into a known state.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/53ce299615e587e900548eb6b384c3 cheers