summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2016-06-29 10:34:22 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-26 14:12:11 +1000
commitb5e54375bdc424eb2e709d41d2306d854f7e07bb (patch)
tree57372ca141273947bf9cda55ee4fd68078eb9424 /include
parent583c8203dcb26b42cea81e4734ea926dae05dbb9 (diff)
downloadblackbird-skiboot-b5e54375bdc424eb2e709d41d2306d854f7e07bb.tar.gz
blackbird-skiboot-b5e54375bdc424eb2e709d41d2306d854f7e07bb.zip
occ/prd/opal-prd: Queue OCC_RESET event message to host in OpenPOWER
During an OCC reset cycle the system is forced to Psafe pstate. When OCC becomes active, the system has to be restored to its last pstate as requested by host. So host needs to be notified of OCC_RESET event or else system will continue to remian in Psafe state until host requests a new pstate after the OCC reset cycle. This patch defines 'OPAL_PRD_MSG_TYPE_OCC_RESET_NOTIFY' to notify OPAL when opal-prd issues OCC reset. OPAL will queue OCC_RESET message to host when it receives opal_prd_msg of type '*_OCC_RESET_NOTIFY'. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/opal-api.h1
-rw-r--r--include/opal-internal.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/opal-api.h b/include/opal-api.h
index f607a416..05ff51dd 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -923,6 +923,7 @@ enum opal_prd_msg_type {
OPAL_PRD_MSG_TYPE_ATTN_ACK, /* HBRT --> OPAL */
OPAL_PRD_MSG_TYPE_OCC_ERROR, /* HBRT <-- OPAL */
OPAL_PRD_MSG_TYPE_OCC_RESET, /* HBRT <-- OPAL */
+ OPAL_PRD_MSG_TYPE_OCC_RESET_NOTIFY, /* HBRT --> OPAL */
};
struct opal_prd_msg_header {
diff --git a/include/opal-internal.h b/include/opal-internal.h
index 2faaa468..583e9994 100644
--- a/include/opal-internal.h
+++ b/include/opal-internal.h
@@ -81,6 +81,7 @@ extern void opal_del_host_sync_notifier(bool (*notify)(void *data));
*/
struct OpalHMIEvent;
extern int handle_hmi_exception(__be64 hmer, struct OpalHMIEvent *hmi_evt);
+extern int occ_msg_queue_occ_reset(void);
extern unsigned long top_of_ram;
OpenPOWER on IntegriCloud