diff options
author | Prem Shanker Jha <premjha2@in.ibm.com> | 2018-03-28 06:38:37 -0500 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2018-06-25 11:09:48 -0400 |
commit | cfa7304f5d6a12f59805477e7498635c67578dd6 (patch) | |
tree | 3e65f2b3e2360baa665817d20d77bcc48bbd86d6 /src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H | |
parent | e95497ee0e43afa23b012ff4b1c400ef0dc0ace7 (diff) | |
download | talos-hostboot-cfa7304f5d6a12f59805477e7498635c67578dd6.tar.gz talos-hostboot-cfa7304f5d6a12f59805477e7498635c67578dd6.zip |
STOP API: API conditionally supports 255 SCOM restore entries for each 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 <cronushw-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56390
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H')
-rwxr-xr-x | src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H b/src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H index 2201021ec..940f4057f 100755 --- a/src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H +++ b/src/import/chips/p9/procedures/utils/stopreg/p9_stop_data_struct.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2017 */ +/* Contributors Listed Below - COPYRIGHT 2015,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -35,10 +35,6 @@ #ifndef __STOP_DATA_STRUCT_ #define __STOP_DATA_STRUCT_ -#ifndef _AIX - #include <endian.h> -#endif - #include "p9_hcd_memmap_base.H" #ifdef __SKIBOOT__ @@ -49,6 +45,15 @@ #include <fapi2.H> #endif +#ifdef PPC_HYP + + #define STATIC + +#else + + #define STATIC static + +#endif #ifdef __cplusplus extern "C" { @@ -140,6 +145,13 @@ enum ((StopCacheSection_t *)(((uint8_t *)(io_image)) + QUAD_SCOM_RESTORE_HOMER_OFFSET +\ ((i_chipletId - CACHE_CHIPLET_ID_MIN) * \ QUAD_SCOM_RESTORE_SIZE_PER_QUAD))); + +#define CACHE_SCOM_ADDR(io_image,\ + i_chipletId,\ + i_maxScomEntry)\ +((ScomEntry_t *)(((uint8_t *)(io_image)) + QUAD_SCOM_RESTORE_HOMER_OFFSET +\ + ((i_chipletId - CACHE_CHIPLET_ID_MIN) * \ + ((i_maxScomEntry + 1) * 16 )))); #ifdef __cplusplus } // extern "C" |