summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipin K Parashar <vipin@linux.vnet.ibm.com>2015-07-29 23:29:32 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-07-31 15:32:43 +1000
commit4f6919b098f14a5f744b8ad3f0e66eb5ca4e5860 (patch)
tree87fa6822171edf03ef8c4e212989ae47afc2a3fe
parent36c213d95f971804388c336213d636277b0f40f5 (diff)
downloadtalos-skiboot-4f6919b098f14a5f744b8ad3f0e66eb5ca4e5860.tar.gz
talos-skiboot-4f6919b098f14a5f744b8ad3f0e66eb5ca4e5860.zip
doc/opal-api: Add OPAL_CEC_REBOOT2 OPAL call description
This patch adds doc/opal-api/opal-cec-reboot-6-116.txt file to add description for OPAL_CEC_REBOOT* OPAL call. Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com> Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--doc/opal-api/opal-cec-reboot-6-116.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/opal-api/opal-cec-reboot-6-116.txt b/doc/opal-api/opal-cec-reboot-6-116.txt
new file mode 100644
index 00000000..4d2b2cac
--- /dev/null
+++ b/doc/opal-api/opal-cec-reboot-6-116.txt
@@ -0,0 +1,54 @@
+OPAL_CEC_REBOOT and OPAL_CEC_REBOOT2
+------------------------------------
+
+#define OPAL_CEC_REBOOT 6
+#define OPAL_CEC_REBOOT2 116
+
+There are two opal calls to invoke system reboot.
+OPAL_CEC_REBOOT: Used for normal reboot by Linux host.
+
+OPAL_CEC_REBOOT2: Newly introduced to handle abnormal system reboots.
+The Linux kernel will make this OPAL call when it has to terminate
+abruptly due to an anomalous condition. The kernel will push some system
+state context to OPAL, which will in turn push it down to the BMC for
+further analysis.
+
+OPAL_CEC_REBOOT
+---------------
+Syntax:
+int64_t opal_cec_reboot(void)
+
+Input parameters:
+None.
+
+System reboots normally.
+
+OPAL_CEC_REBOOT2
+----------------
+Syntax:
+int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag)
+
+Input parameters:
+ @reboot_type Type of reboot. (see below)
+ @diag Null-terminated string.
+
+Depending on reboot type, this call will carry out additional steps
+before triggering reboot.
+
+Supported reboot types:
+----------------------
+OPAL_REBOOT_NORMAL = 0
+ Behavior is as similar to that of opal_cec_reboot()
+
+OPAL_REBOOT_PLATFORM_ERROR = 1
+ Log an error to the BMC and then trigger a system checkstop, using
+ the information provided by 'ibm,sw-checkstop-fir' property in the
+ device-tree. Post the checkstop trigger, OCC/BMC will collect
+ relevant data for error analysis and trigger a reboot.
+
+ In absence of 'ibm,sw-checkstop-fir' device property, this function
+ will return with OPAL_UNSUPPORTED and no reboot will be triggered.
+
+Unsupported Reboot type
+ For unsupported reboot type, this function will return with
+ OPAL_UNSUPPORTED and no reboot will be triggered.
OpenPOWER on IntegriCloud