summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/common/pmlib/include
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2017-06-26 17:48:43 -0500
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 18:27:09 -0500
commit818fa721fdbaef1bba3a1df646f77330f78b342c (patch)
treefdd79e3ac323059606eba1dae75de15d40030265 /import/chips/p9/common/pmlib/include
parent60c0025989372512ba92a1c4445447390fb5f4ec (diff)
downloadtalos-hcode-818fa721fdbaef1bba3a1df646f77330f78b342c.tar.gz
talos-hcode-818fa721fdbaef1bba3a1df646f77330f78b342c.zip
PM: PGPE-SGPE Common Code Updates
Change-Id: I04ff2fd30c091dfa970a3a078dc4f50c69b4d86e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42459 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/chips/p9/common/pmlib/include')
-rw-r--r--import/chips/p9/common/pmlib/include/ipc_func_ids.h1
-rw-r--r--import/chips/p9/common/pmlib/include/wof_sgpe_pgpe_api.h43
2 files changed, 18 insertions, 26 deletions
diff --git a/import/chips/p9/common/pmlib/include/ipc_func_ids.h b/import/chips/p9/common/pmlib/include/ipc_func_ids.h
index e8d74dc2..e50d6003 100644
--- a/import/chips/p9/common/pmlib/include/ipc_func_ids.h
+++ b/import/chips/p9/common/pmlib/include/ipc_func_ids.h
@@ -69,7 +69,6 @@ IPC_FUNC_ID(IPC_MSGID_405_RESERVED_2)
IPC_FUNC_ID(IPC_MSGID_405_RESERVED_3)
IPC_FUNC_ID(IPC_MSGID_SGPE_PGPE_UPDATE_ACTIVE_CORES)
IPC_FUNC_ID(IPC_MSGID_SGPE_PGPE_UPDATE_ACTIVE_QUADS)
-IPC_FUNC_ID(IPC_MSGID_SGPE_PGPE_SUSPEND_PSTATE)
IPC_FUNCIDS_ST_END(OCCHW_INST_ID_GPE2)
//Functions that are only supported by GPE3 should be defined here
diff --git a/import/chips/p9/common/pmlib/include/wof_sgpe_pgpe_api.h b/import/chips/p9/common/pmlib/include/wof_sgpe_pgpe_api.h
index 9bd951fc..4d454fb7 100644
--- a/import/chips/p9/common/pmlib/include/wof_sgpe_pgpe_api.h
+++ b/import/chips/p9/common/pmlib/include/wof_sgpe_pgpe_api.h
@@ -58,12 +58,24 @@ enum CTRL_STOP_UPDATES_ACTION
CTRL_STOP_UPDT_DISABLE_CORE_QUAD = 0x7
};
-enum UPDATE_ACTIVE_TYPES
+
+enum UPDATE_ACTIVE
{
- UPDATE_ACTIVE_TYPE_ENTRY = 0,
- UPDATE_ACTIVE_TYPE_EXIT = 1
+ UPDATE_ACTIVE_CORES_TYPE_ENTRY = 0x0,
+ UPDATE_ACTIVE_CORES_TYPE_EXIT = 0x1,
+ UPDATE_ACTIVE_QUADS_TYPE_ENTRY = 0x0,
+ UPDATE_ACTIVE_QUADS_TYPE_EXIT = 0x1,
+ UPDATE_ACTIVE_QUADS_ENTRY_TYPE_DONE = 0x0,
+ UPDATE_ACTIVE_QUADS_ENTRY_TYPE_NOTIFY = 0x1
};
+//
+// Return Codes
+//
+#define SGPE_PGPE_IPC_RC_SUCCESS 0x01
+#define SGPE_PGPE_RC_REQ_WHILE_PENDING_ACK 0x10
+#define SGPE_PGPE_RC_PM_COMPLEX_SUSPEND 0x11
+
enum IPC_SGPE_PGPE_RETURN_CODES
{
IPC_SGPE_PGPE_RC_NULL = 0x00,
@@ -72,9 +84,7 @@ enum IPC_SGPE_PGPE_RETURN_CODES
IPC_SGPE_PGPE_RC_PM_COMPLEX_SUSPEND = 0x11
};
-
// Sgpe to Pgpe IPC message format
-
typedef union
{
uint64_t value;
@@ -96,7 +106,8 @@ typedef union
{
uint32_t msg_num : 4;
uint32_t update_type : 1;
- uint32_t reserved : 3;
+ uint32_t entry_type : 1;
+ uint32_t reserved : 2;
uint32_t return_code : 8;
uint32_t requested_quads : 6;
uint32_t reserved0 : 2;
@@ -106,26 +117,7 @@ typedef union
} fields;
} ipcmsg_s2p_update_active_quads_t;
-typedef union
-{
- uint64_t value;
- struct
- {
- uint32_t msg_num : 4;
- uint32_t update_type : 1;
- uint32_t reserved : 3;
- uint32_t return_code : 8;
- uint32_t requested_quads : 6;
- uint32_t reserved0 : 2;
- uint32_t return_active_quads : 6;
- uint32_t reserved1 : 2;
- uint32_t pad : 32;
- } fields;
-} ipcmsg_s2p_suspend_pstate_t;
-
-
// Pgpe to Sgpe IPC message format
-
typedef union
{
uint64_t value;
@@ -141,6 +133,7 @@ typedef union
} fields;
} ipcmsg_p2s_ctrl_stop_updates_t;
+
typedef union
{
uint64_t value;
OpenPOWER on IntegriCloud