diff options
| author | Yue Du <daviddu@us.ibm.com> | 2018-01-09 21:59:00 -0600 |
|---|---|---|
| committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2018-02-05 15:36:35 -0600 |
| commit | e9a2a734e2ed716591a7afa7c1f98356899a54a8 (patch) | |
| tree | 9520506784ee3bca0ee9cf0e91c6a9bae81bcb31 | |
| parent | cd86832be034ccd5fd7ea385f6ad4674b310c147 (diff) | |
| download | talos-hcode-e9a2a734e2ed716591a7afa7c1f98356899a54a8.tar.gz talos-hcode-e9a2a734e2ed716591a7afa7c1f98356899a54a8.zip | |
STOP: Fix PLS deepest when stop4+ due to self restore wakeup
Key_Cronus_Test=PM_REGRESS
Change-Id: I072c51789e367c41f8bc5431c0cccec90adc2642
Original-Change-Id: I4cc1e50a848d627f0ec3917bb8ebd39f20dc9466
CQ: HW420338
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51719
Reviewed-by: YUE DU <daviddu@us.ibm.com>
Dev-Ready: YUE DU <daviddu@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Brian T. Vanderpool <vanderp@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: Gregory S. Still <stillgs@us.ibm.com>
| -rw-r--r-- | import/chips/p9/procedures/ppe_closed/lib/p9_stop_recovery_trigger.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/lib/p9_stop_recovery_trigger.c b/import/chips/p9/procedures/ppe_closed/lib/p9_stop_recovery_trigger.c index 34dddf79..c554e373 100644 --- a/import/chips/p9/procedures/ppe_closed/lib/p9_stop_recovery_trigger.c +++ b/import/chips/p9/procedures/ppe_closed/lib/p9_stop_recovery_trigger.c @@ -26,7 +26,10 @@ #include "stdint.h" #include "pk.h" #include "ppe42_scom.h" +#include "ppehw_common.h" #include "gpehw_common.h" +#include "ocb_register_addresses.h" +#include "p9_pm_hcd_flags.h" #include "p9_stop_recovery_trigger.h" // When an error occurs that affects the STOP portion of the PM subsystem, @@ -39,7 +42,7 @@ p9_stop_recovery_trigger() uint64_t scom_data = 0; PK_TRACE_INF("WARNING: STOP RECOVERY TRIGGER!"); - //1. Set ADU lock for exclusive use for a timeout of 500ms. + PK_TRACE("1. Set ADU lock for exclusive use for a timeout of 500ms."); do { @@ -50,12 +53,15 @@ p9_stop_recovery_trigger() } while (!(scom_data & 0x0010000000000000ull)); - //2. Cleanup/reset ADU + PK_TRACE("2. Cleanup/reset ADU"); GPE_PUTSCOM(0x90001, 0x1810000000000000ull); - //3. Setup PowerBus 'address' field for malf alert + PK_TRACE("3. Setup PowerBus 'address' field for malf alert"); GPE_PUTSCOM(0x90000, 0x0000100000000000ull); - //4. Setup PowerBus command type and launch malfunction + PK_TRACE("4. Setup PowerBus command type and launch malfunction"); GPE_PUTSCOM(0x90001, 0x2210A03104000000ull); + + PK_TRACE("5. Set OCCFLG2[28] PM Callout Active"); + out32(OCB_OCCFLG2_OR, BIT32(PM_CALLOUT_ACTIVE)); } |

