From a4f8acbebb654ba5089ce8e50eed7e297878819a Mon Sep 17 00:00:00 2001 From: Prem Shanker Jha Date: Fri, 17 May 2019 01:28:47 -0500 Subject: Img Build: Updated STOP API version to reflect SPR self save availability. Commit version field of associated with self save restore and cpu save API. This is part of the solution identified to address version mismatch and missing commits pertaining to STOP on open power side. Change-Id: I462d84b13e93752813fc2e4bb32d0ee7753ed6ac Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77523 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: FSP CI Jenkins Tested-by: HWSV CI Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Reviewed-by: Gregory S Still Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77530 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M Crowell --- src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H | 7 +++++++ src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H b/src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H index 3d7547368..bb3f737d2 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H +++ b/src/import/chips/p9/procedures/hwp/lib/p9_hcd_memmap_base.H @@ -461,6 +461,13 @@ HCD_CONST(CME_QUAD_PSTATE_SIZE, HALF_KB) HCD_CONST(CME_REGION_SIZE, (64 * ONE_KB)) + +// HOMER compatibility + +HCD_CONST(STOP_API_CPU_SAVE_VER, 0x02) +HCD_CONST(SELF_SAVE_RESTORE_VER, 0x02) +HCD_CONST(SMF_SUPPORT_SIGNATURE_OFFSET, 0x1300) +HCD_CONST(SMF_SELF_SIGNATURE, (0x5f534d46)) // Debug HCD_CONST(CPMR_TRACE_REGION_OFFSET, (512 * ONE_KB)) diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C index b338c3e94..c40cf595c 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C @@ -1491,8 +1491,8 @@ void updateCpmrHeaderSR( Homerlayout_t* i_pChipHomer, uint8_t i_fusedState, uint if( SMF_SELF_SIGNATURE == i_smfSign ) { - pCpmrHdr->selfRestoreVer = 0x01; - pCpmrHdr->stopApiVer = 0x01; + pCpmrHdr->selfRestoreVer = SELF_SAVE_RESTORE_VER; + pCpmrHdr->stopApiVer = STOP_API_CPU_SAVE_VER; } else { -- cgit v1.2.1