summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2019-01-18 12:08:16 -0500
committerhostboot <hostboot@us.ibm.com>2019-01-30 10:54:07 -0600
commit211c48c95e7dc5ed6f45a883fd6af7a39be09123 (patch)
tree831bc283d8ad3eed47ef15f832aee0ae0db54e92
parent2353468b6fb5ffaf2110bd42cd9edb9e18b246d6 (diff)
downloadtalos-hcode-211c48c95e7dc5ed6f45a883fd6af7a39be09123.tar.gz
talos-hcode-211c48c95e7dc5ed6f45a883fd6af7a39be09123.zip
PGPE: Write magic number in HcodeOCCShared struct
Key_Cronus_Test=PM_REGRESS Change-Id: I82e0953c766857b447d67e89aba3d987eb38d88b Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70643 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
-rw-r--r--import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h3
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_header.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h b/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h
index 75cd011a..953f05af 100644
--- a/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h
+++ b/import/chips/p9/common/pmlib/include/pstate_pgpe_occ_api.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2015,2018 */
+/* COPYRIGHT 2015,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -41,6 +41,7 @@
extern "C" {
#endif
+#define HCODE_OCC_SHARED_MAGIC_NUMBER 0x4F505330 //OPS0
//---------------
// IPC from 405
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_header.c b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_header.c
index 09b730c7..30f1f9cc 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_header.c
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_header.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2016,2018 */
+/* COPYRIGHT 2016,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -79,4 +79,6 @@ void p9_pgpe_header_init()
G_pgpe_header_data->g_pgpe_req_active_quad_address = (uint32_t)
&occ_shared_data->req_active_quads;//Requested Active Quads
+ //Write the magic number in the HcodeOCCSharedData struct
+ occ_shared_data->magic = HCODE_OCC_SHARED_MAGIC_NUMBER;
}
OpenPOWER on IntegriCloud