summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
Commit message (Collapse)AuthorAgeFilesLines
* PM: Handle PIB Reset with data check handler on all GPEsYue Du2019-05-101-1/+4
| | | | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: I121aaf5efb579fde88829f2ef5354ad4c8b6d77b CQ:SW447494 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68622 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@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> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: CME/SGPE Hcode size reduction via global use of literalsYue Du2018-05-311-20/+20
| | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: Ic9ec56beff42f052e88bde98e90e01d44ac43e4f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58542 Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Jennifer A. Stofer <stofer@us.ibm.com>
* PM: Fixes for Livelock ScenariosRahul Batra2018-04-261-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | -Fixes DPLL Ownership issues during Pstate Start -Fixes WOF Enablement and Quad/Core Active Update(STOP11/5) livelock scenario -Fixes PM Complex Suspend and Quad/Core Active Update(STOP11/5) livelock scenario -Fixes VDM Droop Suspend STOP entries livelock scenario Key_Cronus_Test=PM_REGRESS Change-Id: I14a0dece4c74bc04618f7d1f3838dbe273bace94 CQ: SW425778 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57191 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix SGPE Active Core UpdatesYue Du2018-04-201-2/+7
| | | | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: I1aeb16c00c5d5d35488902305c1e57f135ea25a4 CQ: SW425355 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57386 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PGPE: Error Handling SupportRahul Batra2018-04-061-264/+264
| | | | | | | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: Ib6fb30d6b8c0cdc21002b34b708e724f54eac62b Original-Change-Id: I00aca629108aeaca88db34eec8e408f3cd48ff7f CQ: SW414842 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48635 Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@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>
* STOP: Support Suspend Entry/Exit and Fix Pig CollisionYue Du2018-03-221-187/+335
| | | | | | | | | | | | | | | | | | | | | | 1) also cleanup todos in Stop Hcode 2) make STOP3 complete trans in SSH Key_Cronus_Test=PM_REGRESS Change-Id: I91f89d647f8285f1ac153a8ea389f3c314f18f86 Original-Change-Id: I28a146e15e455f09f8d8ff588e122d5ecf34110a CQ: SW416550 CQ: HW437955 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54660 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Block Wakeup Mode Fixes for PhypYue Du2018-03-221-2/+2
| | | | | | | | | | | | | | | | | | | | | 1) fix L3 Purge Abort in Block Wakeup mode put quad in undefined state 2) fix stop11 wakeup being converted to stop5 wakeup during Block Wakeup 3) fix some bugs between Special Wakeup and Block Wakeup mode. 4) fix racing decrementor wakeup being serviced in Block Wakeup mode Key_Cronus_Test=PM_REGRESS Change-Id: Ia1d10cc9af14ecc592f42116f916deca3ae56b86 Original-Change-Id: I391e6f820c0e9842fc737a1aa5e2ece8e94105bc CQ: SW416538 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53514 Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix SGPE stop servicing wakeupsYue Du2018-03-221-7/+7
| | | | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: I09b37a6edbec10e5701998c7f4cf506b87cf0e5f Original-Change-Id: Icb6b9fcf030a9389bf4571c5b9b3c44d72a8cb3f CQ: SW413317 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51662 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP/PState: SGPE/PGPE Error Handling SupportYue Du2018-02-011-15/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upon PGPE Halt 1) SGPE performs STOP Recovery Trigger to set a malfunction alert and removes PGPE IPCs from wake-up decisions. 2) CME is interrupted by QPPM OCC Heartbeat Lost that PGPE stopped updating Upon SGPE Halt 1) PGPE moves to Psafe 2) PGPE performs STOP Recovery Trigger to set a malfunction alert. This commit also includes SGPE Panic Code Cleanup such as debug halt support. However PGPE Panic Code Cleanup is dealt in a different commit Key_Cronus_Test=PM_REGRESS Change-Id: I8625d9c0a9097ea1bb351aacdd21f05a00b88644 Original-Change-Id: I893aa1ef21d2f684722b8c10dbbeb92b9505c1c4 CQ: SW410252 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49275 Tested-by: PPE CI <ppe-ci+hostboot@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: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix SGPE UIH Messed up EIMR book keeping ErrorYue Du2017-11-171-1/+3
| | | | | | | | | | | | | | Key_Cronus_Test=PM_REGRESS Change-Id: Ie1611b009e95192a0dad3a47af14ef8a36dd454b CQ: SW407045 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49234 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix Resonent Clock Support for STOP11Yue Du2017-11-171-9/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) modify the CME pstate resonant clock adjustment code to 1a) have better detection for the issue being fixed. 1b) to read cme flag at runtime for whether to touch resonant clock setting due to pstate change 2) modify the CME DB2 Handler to 1a) when disable resonant clock for stop11, also disable pstate code from changing the setting via cme flags 1b) when stop11 is aborted, and DB2 is asked to restore the resonant clock setting, also enable pstate to do so 3) modify the SGPE PIG Handler to 1a) fix the bug that one quad has resonant clock ready for stop11 entry or exit, the code automaticially grant ready for other quads 1b) fix the bug that resonant clock ready PIG will result an redundant IPC sent to PGPE for the core already IPCed 4) Modify the SGPE entry code to fix the bug that other quad calling entry service can result this quad doing an redundant stop11 entry after exam again the previous resonant clock ready state. 5) Fix compiler flag to continue using NDD20 code on NDD21+ until the NDD21 code is ready (skewadjust issue) 6) Like 2) above, Fix Sibling needs to disable pstate code from reenabling resonant clock when going into stop11 also the restore measure for Sibling 7) Fix interrupt window condition to cause pstate code to pass the rclk_operatable check and change rclk when db2 interrupt to disable pstate from change rclk happening after the check condition but before change 8) fixing partial good case when writing to cme flags 9) db2 read using single cast instead of dual cast 10) using unique panic code for additional error detection 11) Fix PGPE and CME conflict on PMSR writes 12) revert Marker change and remove redundant critial section Change-Id: I70d86686be690f030dfa4886875c4fa00dcae208 CQ: SW404802 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46775 Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: SGPE add ReturnActiveCores checking from PGPEYue Du2017-10-231-2/+2
| | | | | | | | | | Change-Id: I1de8f35f78aed01e784744d31e59b6214a8c385a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46530 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: attribute to halt upon phantom interruptsYue Du2017-10-231-17/+26
| | | | | | | | | | | | | Change-Id: I6c5e4bea58c188d736b2b1218577da7deee0f88d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46337 Tested-by: PPE CI <ppe-ci+hostboot@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: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Reenable STOP8 (without L2 resonant clock support)Yue Du2017-10-231-0/+27
| | | | | | | | | | | | | | Patchset 4 is to reenable stop8 for regression validation Patchset 5 is to disable stop8 for merging to mainsteam Formally reenable stop8 will be another commit upon NDD2.1 Change-Id: Ida2e1dd185ea07db7388d46db5ddef03588688ef Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45410 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix resonant clock supprot for STOP11Yue Du2017-10-231-5/+5
| | | | | | | | | | Change-Id: I9d6e6386ce56c8ddf2c174568bcec933b722e3fe Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45576 Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix PIG in L2 Resonant Clock supportYue Du2017-10-231-89/+158
| | | | | | | | | | | | | | Patch 16 starts adding on stop8+ stravation solution SGPE FIT timer ratio is set to 0x08 (1ms) and Handler counter counts 25 times (25ms) Change-Id: I19137f1fd7cea2bce1b478a1f361306381072854 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44448 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix block protocolYue Du2017-10-231-7/+7
| | | | | | | | | Change-Id: Iccde53676286b95f84541efdb5b112b822cac7a7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44134 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Attempt to Fix quad spwu caused incorrect flowYue Du2017-10-231-0/+8
| | | | | | | | | Change-Id: I0f7a6e45842fc79d89b4685badbd5c4e1e7f9e61 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43962 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PM: Implement L2 Resclk FunctionChristopher M. Riedl2017-10-231-20/+75
| | | | | | | | | | Change-Id: I0efbab5defe2ffbd5c5fe86690c6e7a498f3c4d1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43331 Reviewed-by: YUE DU <daviddu@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP/EPM: Fix Stop5 history and marker reportingYue Du2017-10-231-39/+40
| | | | | | | | | Change-Id: I1fd6d7442204070d3d683bb6dedaf1f1a1055de2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43960 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher R. Jones <crjones@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix suspend STOP in MPIPLYue Du2017-10-231-1/+1
| | | | | | | | Change-Id: Id3f691cc1967a49f51a20490d7e732b0211b08cb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44063 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Adam S. Hale <adam.samuel.hale@ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
* STOP: Attempt fix phantoms and dec wakeup window conditionsYue Du2017-10-231-8/+35
| | | | | | | | | Change-Id: Iad130d4442b2c60ab03085b89d979bcc3d72c645 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43793 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: JAMES DEZELLE <jdezelle@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix long delayed Phantom by dec wakeup in stop5Yue Du2017-10-231-6/+19
| | | | | | | | | Change-Id: Ic1dee437a17c35ed9bd19894cfef9cf0c08eee02 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43434 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Stop5 Performance Boost and solve IPC issuesYue Du2017-10-231-285/+404
| | | | | | | | | Change-Id: If812b643abbfaf4725c398ee6f64b7dbaa9f52d3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42412 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix block Entry and ExitYue Du2017-10-231-5/+23
| | | | | | | | | Change-Id: Ia825ed504f3ce156d0f46f18963690b528401361 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42966 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix dec wakeupYue Du2017-10-231-15/+14
| | | | | | | | | Change-Id: Ifbc865319e501ef2c0045833568b783552b4846a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42310 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Suspend stop to cmesYue Du2017-10-231-2/+8
| | | | | | | | | Change-Id: Icf1d999dd6e27bb67812c75e5c2b2e683c0b7400 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42379 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Adam S. Hale <adam.samuel.hale@ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: block wakeup (+ block entry since patch 15)Yue Du2017-10-231-54/+256
| | | | | | | | | | Change-Id: I6636b7f77842e9a5e07fffa0f908fb4d46e7d763 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35205 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix suspend_stop when threads are idleYue Du2017-10-231-0/+2
| | | | | | | | | Change-Id: Ia375a50988517172859a11f8f1e0117c634b3ae8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42176 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Adam S. Hale <adam.samuel.hale@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: SGPE fixes for PGPE InteractionYue Du2017-10-231-1/+1
| | | | | | | | | | | | | | - SGPE checks PGPE_ACTIVE bit on OCC Scratch2 - SGPE uses semaphore for waiting on PGPE ACKs - SGPE checks STOP_LVL before sending Update Quad Active Exit - Sets IPC build flag to enable Change-Id: I8d99bf94e50d296e46c685ebf16f5e5cd155520d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39449 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: enable decrementor wakeupYue Du2017-10-231-9/+24
| | | | | | | | | | | EPM Note - MARKER changes Change-Id: Idc99ab364107f25f48d74286570244f9f79b3e2e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39530 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: Fix express processing commitYue Du2017-10-231-4/+4
| | | | | | | | | Change-Id: Ic5824a0c8926ee5cf5713509b55ccc4a4a313b91 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39009 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: UIH updates on trace and phantom interrupt handlingYue Du2017-10-231-5/+5
| | | | | | | | | | Change-Id: I28df758643540c2140142d4348983dae938dd1f5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36976 Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Recent Lab FixesYue Du2017-10-231-17/+19
| | | | | | | | | | | | | | | | | | | | 1) fix pig type3 for stop8+ 2) clean up the lpid fix traces 3) fix clean spwu after switch notify 4) clean up cme entry INF traces 5) clean up cme exit INF traces 6) fix halt cme before pb purge 7) clean up sgpe INF traces 8) fix phantom wakeup on wakeup_notify=0 9) fix epm_tunning compile 10)fix read OISR once on type2/3/6 status Change-Id: I06838f24cf2f788825ee25621cc7336001cfd80a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37984 Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Using PANIC codes at every pk_haltYue Du2017-10-231-5/+5
| | | | | | | | | | Change-Id: I89bba67a31ac5a049b5f7787a179aeea58adb917 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38390 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: FIX phantom wakeup vs. wakeup_notify_selectYue Du2017-10-231-41/+104
| | | | | | | | | | | | | | | | | | 1) sgpe check type2 and 3 on the same core 2) cme check if notify is truely set 3) sgpe check if notify is truely set during stop8 entry 4) FIX phantom wakeup vs. wakeup_notify_select 5) so 4) isnt good enough as phantom can be noticed when notify = 1 or 0 (good type checker caught this) instead of using truth table to completely handle/detect unwanted cases. Change-Id: I3df8326260ba505db7efb3bdee17cc8908bd13fc Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37975 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: optimize size of stop imagesYue Du2017-10-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 1) optimize scom with no rc and directly inline asm(saved for 2K :D) 2) initialize all variables(doesnt really save size, just good guideline) 3) loop both cores when block is big and redundant(saved only 50B -_-) (50b for 3 blocks, each block saves 17b, or 4 instructions) 4) improvement on history update(saved 500B more :)) 5) functionalize the exit catchup routine which is identical twice (this back fired and cost us 100B :() 6) functionalize the eval eimr override macro which is identical twice (saved 130B :|) 7) finally the saving is about 2728B on CME 8) apply history update tech to sgpe, found bug in the tech, fixed (but our saving is back to ~2500B) 9) clean up sgpe redundent ex branching code (same as cme saved only about ~60B) 10) rebase Change-Id: I3664d6a2dcab85f896a583852afde948e635bd02 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34777 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Fix StopRecord to absolute address in cme/sgpe for dumpYue Du2017-10-231-1/+1
| | | | | | | | | Change-Id: I8acc211585ab79d70d2ce766f698e1fd85635114 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34526 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: SGPE IPC support for WOFYue Du2017-10-231-0/+2
| | | | | | | | | Change-Id: I7b8b10def5f2480e4886a48cf0c4a321dc99c7fe Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34249 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: ADAM S. HALE <ashale@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: SGPE uses unified interrupt handlerYue Du2017-10-231-9/+12
| | | | | | | | | | Change-Id: Id64b5b06ab4286e84092b9a10c3ada1a8785bd76 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32790 Dev-Ready: ADAM S. HALE <ashale@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: ADAM S. HALE <ashale@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP Image updatesYue Du2017-10-231-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is pending to be regressed and merged. Thus, freeze puting new change feature in unless necessary fix to existing features. 1) add starting ANEP clock and drop ANEP regional fence before starting DPLL clock 2) change trace level to 1 by default change trace level 1 to only print tiny traces trace level 2 will print variable debug info trace level 3 will print all traces 3) use self restore address from header instead of hardcoded 4) enable dpll lock check when in lab 5) finish up lco settings in sgpe code 6) DTS enablement in stop/istep code 7) skip cache power off if hostAttn or localXstop 8) istep4 set special wakeup, sgpe remove when ready 9) disable dpll lock check as still work in progress 10)rebase 11)fix jenkins 12)fix db1 workaround on OR/CLR address 13)can write db1 base address directly instead of read first 14)fix self restore address fetch 15)clear pig type2/3/6 pending in sgpe setup 16)move hostAttn/localXstop read before stopclocks 17)fix typo in 16) 18)fix getscom(hostAttn/localXstop) 19)fix hrmor[13:42] Change-Id: Ibde32271db0543661c426d8eed8531ba6312c6e5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32514 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Dev-Ready: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* CME/SGPE: yet another updating commit for stop imagesYue Du2017-10-231-37/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patchset 1: fix EISTR in stop interrupt handler patchset 2: add QPMMR[21-26] setup in sgpe(for John) patchset 3: add DD1 VCS workaround to sgpe patchset 4: add common header file change for patch3 patchset 5: fix an error in vcs workaround patchset 6: reorganize the compiler flags patchset 7: fix a typo in 6, and rebase to fix jenkins patchset 8: reorganize the compiler flags(cme) remove ppm write protection of cme patchset 9: fix a typo in sgpe_exit qssr reporting patchset 10:add extra dd1 vcs workaround patchset 11:rebase patchset 12:fix cme interrupt handler(marker changed) patchset 13:fix compiler error in 12 turn on sgpe kernel trace patchset 14:fix again patchset 15:fix wake/stop priority group patchset 16:fix markers for EPM patchset 17:reformat CME PK_TRACEs patchset 18:reformat SGPE PK_TRACEs patchset 19:fix some typo in 18 patchset 20:fix VDM scom fail via INTERPPM settings patchset 21:core hist in sgpe based on partial good fix vcs workaround in stop image add qloop limiter in sgpe exit add stop level mapping support patchset 22:enable vcs workaround by default patchset 23:add dpll_initf fix dpll_setup bit(9) make epm skip workaround doesnt need patchset 24:fix stop2 exit express fix some old compiler flags patchset 25:add dd1 doorbell workaround add comment on serialize quad PFETs patchset 26:fix cme_boot() on repeat booting one CME patchset 27:increase sgpe_exit_thread stack size patchset 28:sdis_n set/reset becomes permanent patchset 29:add skewadjust procedures patchset 30:add queue scom mode init patchset 31:using ppe_scom instead of fapi_scom patchset 32:continue protect cme on partial bad core patchset 33:add support for EX_L3_MODE_REG1 setup patchset 34:using real time qcsr for l3-lco victem patchset 35:fix a bug in patchset 32 patchset 36:Increased the CME/SGPE Hcode defines. Change-Id: Id3fd4d4e0d9740a7903c913fa8fc80b6cee55ff9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30925 Dev-Ready: YUE DU <daviddu@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: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: STOP image updates and fixesYue Du2017-10-231-13/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patchset 1: fix quad spwu(initial) patchset 2: fix quad spwu patchset 3: set scan0 and arrayinit code as default patchset 4: fix for stop3 being nop patchset 5: fix unitified interrupt handler hole of ee bit patchset 6: workaround for pbie read ptr hw bug(initial) patchset 7: optional debug trap based on occ flag[12]/[13] fix stop8 history update typo update fix in patchset 6(still more to come) patchset 8: default disable HW386311_PBIE_RW_PTR_STOP11_FIX patchset 9: workaround for pbie read ptr hw bug(complete) patchset 10:update workaround debug trace and RTC comment patchset 11:add more pk traces to workaround and fix addr patchset 12:fix region bits for the workaround patchset 13:fix region bits ver2 patchset 14:rebase for merge conflict patchset 15:reset scan0/arrayinit to on after rebase patchset 16:fix workaround ring length for rotate back patchset 17:fix pk trace on printing 64bit variables patchset 18:fix l3 purge abort add more traces in partial good config patchset 19:fix history reporting in scominit patchset 20:fix spin bug on 6bits change thread stack size on cme to 512 fix sgpe default pk_app_cfg on istep15_hack patchset 21:fix a typo in patchset 20 patchset 22:fix quad stop history bit0 patchset 23:fix typo in previous 22 patchset 24:add more debug thrace for workaround have parameter for each thread stack size patchset 25:fix typo in 24 patchset 26:fix quad spwu done and possible for pfet error patchset 27:fix stupid kernel bug to cause 0x03abcdef patchset 28:1) add dls+stop1 workaround for pls+srr1 issue 2) some code for bce irritator 3) add block wakeup support and db1+db2 change 4) Note: one marker change for doorbell patchset 29:add broadside support for scan0 module patchset 30:add fused core mode workaround fix workaround compiler define patchset 31:fix qspwu parital good case fix compiler error with broadside mode fix conflict of enum between two headers patchset 32:fix stop handler anormaly introduced by unified interrupt handler returns group id patchset 33:fix a bug introduced by patchset 32 patchset 34:clean scan0 region after workaround patchset 35:Rebased Change-Id: I315d8ccc425a0d420a77d82814962ff6eaa38152 RTC: 161155 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29405 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Dev-Ready: Gregory S. Still <stillgs@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: STOP Images functional bug fix collectionYue Du2017-10-231-8/+15
| | | | | | | | | Change-Id: I3858a93ade6f21c006c980a497f58d6dafd9b628 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27000 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: Optimus Prime approves these upgrade of STOP imagesYue Du2017-10-231-16/+33
| | | | | | | | Change-Id: I2486797c6614213418624427fd0d225e2792d15c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23684 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* CME/SGPE: update stop cme/sgpe imagesYue Du2017-10-231-148/+128
| | | | | | | Change-Id: I9c2de4e90e7445d123290de37fff9e26dae2d1ae Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22464 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Combined Stop/PState Cme Image + unified interrupt handlerYue Du2017-10-231-70/+131
| | | | | | | Change-Id: Ie954197008f1a35bd8336c9d921f55165ec52207 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20857 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: STOP11 CME/SGPE Images SnapshotYue Du2017-10-231-4/+6
| | | | | | | Change-Id: I13d6c747e7b4b0b19e317ba7a5b74f852dee6ddf Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23571 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: Complete Working STOP8 CME/SGPE Images SnapshotYue Du2017-10-231-7/+16
| | | | | | | Change-Id: I5e8cc9cbdccb10edcc4e2474f1c9a15e41f2c6ed Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23292 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* first draft of ppe_closed/cme & sgpe, and common/pmlib/Yue Du2017-10-231-0/+192
Change-Id: I08440fadfeff7e4777a776167d4fdcffe5fec82f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21058 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
OpenPOWER on IntegriCloud