Skip to content

Commit

Permalink
STOP API: API conditionally supports 255 SCOM restore entries for eac…
Browse files Browse the repository at this point in the history
…h quad.

This is first of the series of commits intended for incorporating
new mechanisms for SCOM restore. STOP API looks for a specific
version in QPMR header of HOMER. If version is greater than 2, it allows
 - 255 SCOM Restore entries per quad
 - doesn't divide quad restore region in to L2, L3 and EQ sub-region
If version is less than or equal to 2, API provideis legacy
functionality.
Key_Cronus_Test=PM_REGRESS

RTC: 188827
Change-Id: Iac6ee94619302f745fee0c77acc168eaba04c3da
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56385
Tested-by: Cronus HW CI <[email protected]>
Tested-by: Jenkins Server <[email protected]>
Tested-by: Hostboot CI <[email protected]>
Reviewed-by: Gregory S. Still <[email protected]>
Reviewed-by: AMIT J. TENDOLKAR <[email protected]>
Reviewed-by: Jennifer A. Stofer <[email protected]>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56390
Tested-by: Jenkins OP Build CI <[email protected]>
Tested-by: Jenkins OP HW <[email protected]>
Tested-by: FSP CI Jenkins <[email protected]>
Reviewed-by: Christian R. Geddes <[email protected]>
[stewart: Assume 15 entries if 0 are reported, maintains compat with old f/w]
Signed-off-by: Stewart Smith <[email protected]>
  • Loading branch information
premsjha authored and stewartsmith committed Jul 19, 2018
1 parent 68518e5 commit 1a4aa1c
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 108 deletions.
6 changes: 4 additions & 2 deletions libpore/p9_hcd_memmap_base.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -171,6 +171,7 @@ HCD_CONST(QPMR_STOP_FFDC_OFFSET_BYTE, 0x58)
HCD_CONST(QPMR_STOP_FFDC_LENGTH_BYTE, 0x5C)
HCD_CONST(QPMR_SGPE_BOOT_PROG_CODE, 0x60)
HCD_CONST(QPMR_SGPE_IMAGE_SIZE, 0x64)
HCD_CONST(QPMR_QUAD_MAX_SCOM_ENTRY_BYTE, 0x68)

/// SGPE Boot

Expand Down Expand Up @@ -284,7 +285,7 @@ HCD_CONST(QUAD_SCOM_RESTORE_SIZE_PER_QUAD,
(SCOM_RESTORE_ENTRY_SIZE* QUAD_SCOM_RESTORE_REGS_PER_QUAD))

HCD_CONST(QUAD_SCOM_RESTORE_SIZE_TOTAL, (6 * ONE_KB)) //rounded to 6KB

HCD_CONST(LEGACY_SCOM_RESTORE_VER, 0x02)
//---------------------------------------------------------------------------------------

/// CPMR Header
Expand All @@ -309,6 +310,7 @@ HCD_CONST(CPMR_CORE_SCOM_RESTORE_OFFSET_BYTE, 0x40)
HCD_CONST(CPMR_CORE_SCOM_RESTORE_LENGTH_BYTE, 0x44)
HCD_CONST(CPMR_SELF_RESTORE_OFFSET_BYTE, 0x48)
HCD_CONST(CPMR_SELF_RESTORE_LENGTH_BYTE, 0x4C)
HCD_CONST(CPMR_MAX_SCOM_REST_PER_CORE_BYTE, 0x50)

/// Self Restore

Expand Down
Loading

0 comments on commit 1a4aa1c

Please sign in to comment.