[Skiboot] [PATCH 4/5] ipmi: Message Linux to perform graceful shutdown
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Mon Feb 9 20:00:27 AEDT 2015
On 01/30/2015 06:01 AM, Joel Stanley wrote:
> This sends the previously unused OPAL_MSG_SHUTDOWN using opal_queue_msg
> to initiate a graceful shutdown.
>
> The message provides a single parameter indicating weather the shutdown
> is will result in a power-off, or a reboot.
>
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> ---
> hw/ipmi/ipmi-sel.c | 22 ++++++++++++++++++++++
> include/opal.h | 2 +-
> 2 files changed, 23 insertions(+), 1 deletion(-)
>
> diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
> index 301e559..291f279 100644
> --- a/hw/ipmi/ipmi-sel.c
> +++ b/hw/ipmi/ipmi-sel.c
> @@ -21,6 +21,7 @@
> #include <lock.h>
> #include <errorlog.h>
> #include <pel.h>
> +#include <opal-msg.h>
>
> /* OEM SEL fields */
> #define SEL_OEM_ID_0 0x55
> @@ -37,6 +38,9 @@
> #define CMD_AMI_POWER 0x04
> #define CMD_AMI_PNOR_ACCESS 0x07
>
> +#define SOFT_OFF 0x00
> +#define SOFT_REBOOT 0x01
Better define these macros in include/opal.h as its part of OPAL API?
Rest looks good.
-Vasant
More information about the Skiboot
mailing list