Skip to content

Commit b342ec7

Browse files
stillgsop-jenkins
authored andcommitted
SGPE and CME scanning integration
- Enable FAPI2 targets (move to .C) - Add/enhance hcode_image_build and wrapper tracing for debug - Fix CME boot to match the layout of CPMR with common scanning - Add internal target creation to initf for testing - Update p9_hcode_image_defines with realistic sizes. - Cleaned up some wrappers for better debug and tracing - Cleaned up some extraneous defines - Fixed vector constructor functionality. - Removed -gc-sections from stop_gpe.mk so that constructor code remained - Fixed hcode_image_build in its adding of scan rings to not overlay the Hcode data region. - Fix quad based creation of local target - Redid boot_loader to properly deal with scan ring sections - Fix boot copier header dependency - Moved SGPE Hcode space to 38KB to deal with present size; Made SGPE total OCC SRAM allocation 80KB for now. This growth is due to fapi2 required vector support (4 x 128KB) plus target init (1KB) plus scan ring allocation per latest assumptions. The FAPI2 elements will be readdressed later. - Remove skip arrayinit/scan0 from istep15_hack and into EPM_TUNING - Some bug fixes in hcode_image_defines to get proper common ring offsets in SGPE header as well as proper placement of common rings in image - Changes from Prasad with putrings updates - Removed break points to call broadside scans in CME and SGPE codes. - Added Prasad's changes for putring for CME and SGPE. - Increased thread stack size - Rebased and commented out memory faulting code for now - Removed call in p9_pm_stop_gpe_init to ppe_state due to HB strings (for now) - Fix SGPE_ALLOCATED_SIZE - Boot loader fix - Pulled in PK PBA context bug fix as this corrupts the PBASLVCTL0 and thus memory accesses - Make CPMR and CME Header values have maximums. Add check to not allow overrun - Hcode Image Wrapper update - CME header debug output Change-Id: Ia96972dc9cf7482903b4c454dcbb8f348842bbe4 Original-Change-Id: I71718485ff3192f3723fdfa03b8bc6f558ef120e RTC: 136960 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27421 Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Dev-Ready: Gregory S. Still <stillgs@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
1 parent 08ca175 commit b342ec7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
/// \brief header of p9_cme_stop_enter_thread.c and p9_cme_stop_exit.c
2828
///
2929

30+
#ifdef __cplusplus
31+
extern "C" {
32+
#endif
33+
3034
#include "pk.h"
3135
#include "ppe42.h"
3236
#include "ppe42_scom.h"
@@ -205,6 +209,7 @@ typedef struct
205209
PkSemaphore sem[2];
206210
} SgpeStopRecord;
207211

212+
208213
/// SGPE STOP Entry and Exit Prototypes
209214
void p9_sgpe_stop_pig_handler(void*, PkIrqId);
210215
void p9_sgpe_stop_enter_thread(void*);
@@ -226,3 +231,7 @@ int p9_hcd_cache_scominit(uint32_t);
226231
int p9_hcd_cache_scomcust(uint32_t);
227232
int p9_hcd_cache_ras_runtime_scom(uint32_t);
228233
int p9_hcd_cache_occ_runtime_scom(uint32_t);
234+
235+
#ifdef __cplusplus
236+
} // extern "C"
237+
#endif

0 commit comments

Comments
 (0)