summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/ppe/pk
Commit message (Collapse)AuthorAgeFilesLines
* PM: Handle PIB Reset with data check handler on all GPEsYue Du2019-05-104-5/+96
| | | | | | | | | | | | | | | 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>
* HCODE Make divide using DERP/DORP atomicDouglas Gilbert2018-08-241-1/+7
| | | | | | | | | | | Change-Id: Ib7e1c88f7ac934ba551082f27231fff1bb3961dc CQ: SW443103 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64570 Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@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: Gregory S. Still <stillgs@us.ibm.com>
* CME Code Size Reduction ATTEMPT#3Michael Floyd2018-03-224-20/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- some IOTA kernel cleanup -- also add checking for IOTA execution stack overflow -- re-coded to eliminate some math library macro usage -- added native 16-bit multiply -- re-coded to remove redundancy from external interrupt handler -- removed dec handler (optional define) and other minor cleanup -- fixed Interrupt initialization code in std_init (all PPE images) -- always inline pstate_db0_clip_bcast & update_vdm_jump_values_in_dpll -- optimized pls calculation code -- optimized pstate init, db1 handler, core good handling -- optimized pmcr requests and pmsr updates (always write for both cores) Key_Cronus_Test=PM_REGRESS Change-Id: I6965a5a581562f0bb1cd735642f592cb4954970b Original-Change-Id: If48fec5832bd5e46cb89f0d6a97d90a488e8ff7b CQ: SW415503 RTC: 178789 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53381 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> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PPE empty PK FFDC handler to save-off required registersRaja Das2018-02-061-1/+10
| | | | | | | | | | | | | | | | - Defined PPE_CAPTURE_INTERRUPT_FFDC, by default NULL - Dependent Platform need to plug in a branch for FFDC Change-Id: I896af5b252c8fbf6531634d1a39fc84ed580a594 Original-Change-Id: Iea222662abe19c0b5f9da6eac3e161963b1c047c RTC:179374 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48977 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Register FFDC call is handled within machine_check_handlerRaja Das2018-02-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Within the PK interrupt vector, if you have a function call from one function to another, it needs branch link instruction, but since the BL is already being used to jump from software context to the PK Vectored Interrupt context, the function call from within will corrupt the Link register. For interrupts like data_storage, instruction_storage, alignment_exception and program_exception, the save-off will capture the LR registers to indicate which interrupt was getting executed when halt happened. For Machine check handler, LR won't be valid. Change-Id: Iee17b37acd438c7bee2c956cac2de3ce64d04441 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51587 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PPE empty PK FFDC handler to save-off required registersRaja Das2018-02-011-3/+12
| | | | | | | | | | | | | | | - Defined PPE_CAPTURE_INTERRUPT_FFDC, by default NULL - Dependent Platform need to plug in a branch for FFDC Change-Id: Iea222662abe19c0b5f9da6eac3e161963b1c047c RTC:179374 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48977 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PPE: Adjust the maximum decrementer countDoug Gilbert2018-02-011-3/+6
| | | | | | | | | | | | | Change-Id: I4f59cabf7439590ac736e6f64e35acf11e6c5aa9 CQ: SW402715 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46944 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Use HCode header timebase frequency for pk traceDoug Gilbert2018-02-013-9/+16
| | | | | | | | | | | | | | | Change-Id: Id873da7ccb96192eb69e4aa5cff60ad33c713024 Original-Change-Id: I34a9d8d1a003ae6b07b50039a9ea57ff9fd5af4d RTC: 179852 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46227 Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Dev-Ready: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Use compiler definition for size_tSachin Gupta2017-10-231-1/+1
| | | | | | | | | | | | | | We get multiple definition issues if we include ppe42_string.h as stddef.h also has defined size_t Change-Id: I44ec000db4df176f36d185842dd8057b2b03e28d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48101 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PK,IOTA: Enter idle state at a known locationDoug Gilbert2017-10-232-1/+22
| | | | | | | | | | | | Change-Id: I83498782420ff51891b692021330c643d0ffe74c RTC: 178914 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45068 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Adam S. Hale <adam.samuel.hale@ibm.com> Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Halt on zero instruction/load/store addressAdam Hale2017-10-232-1/+8
| | | | | | | | | | Change-Id: Ia865a3b89a22ff81c2099ce4688bae076e54b279 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44497 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: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* STOP: Restore MSR in UIH hookYue Du2017-10-231-0/+5
| | | | | | | | | | Change-Id: Id8e0a035a37f7f1b5d3048700fadd0d353e8fbb7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42248 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+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>
* Adding PK_TRACE_PERF as a way to easily enable latency testingJuan Medina2017-10-231-0/+10
| | | | | | | | | | Change-Id: Iea0fc63bbea577ecd2e70316822dc319883d1ced Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42320 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+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: Gregory S. Still <stillgs@us.ibm.com>
* Fix DD LEVEL to support minor ECsMichael Floyd2017-10-232-2/+2
| | | | | | | | | | Change-Id: I658b545b74e4aab8b766b1424632c25edd76c73f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42513 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK trace fixes and ppe42 optimizationsDoug Gilbert2017-10-235-15/+18
| | | | | | | | | | | Change-Id: Icc162f3511a965490885dc31615fd552ec430a36 RTC: 167247 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42141 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* DERP/DORP Implementation for pgpe dd2Doug Gilbert2017-10-232-1/+74
| | | | | | | | | | | Change-Id: Iccfab131b8704666b2a45c20d6326f2007acced9 RTC:173229 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41634 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> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK pba_slvcntl buf_alloc fields not being set correctlyDoug Gilbert2017-10-231-34/+8
| | | | | | | | | | Change-Id: I5790f1620271ded42c2d7a4a1bac66b19fc3267a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40985 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sooraj R. Nair <soonair3@in.ibm.com> Dev-Ready: Sooraj R. Nair <soonair3@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Remove context switch in ppe program exception handlerspashabk-in2017-10-231-8/+1
| | | | | | | | | | | Change-Id: Iaed6207f1838e3a77fde9eeb945fc1fd1c5c0a91 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40485 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PK DEC timer interrupts too close togetherDoug Gilbert2017-10-232-9/+18
| | | | | | | | | | Change-Id: If62e99e8977fda7211df4e56b78f0d64d2d13217 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37820 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK move global data to .sdata/.sbss sections to reduce code sizeDoug Gilbert2017-10-236-10/+14
| | | | | | | | | | | Change-Id: Iec504dba9dd8f92b4d633a19425fcd1800ddb783 RTC:167181 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34750 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP: UIH updates on trace and phantom interrupt handlingYue Du2017-10-231-4/+18
| | | | | | | | | | 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: optimize size of stop imagesYue Du2017-10-231-0/+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>
* putring/CME error code supportGreg Still2017-10-231-0/+4
| | | | | | | | | | | | | | | | - Add cme_panic_codes.h - Fix wild paste in a comment - Extended this support to SGPE putring as well. Change-Id: Ieb2cef71f7a22afb8f02fac82c6eacd4f2ecc3a9 RTC:168123 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35540 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> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* I/O PPE Nvlink, Xbus, AbusChris Steffen2017-10-231-1/+1
| | | | | | | | | | Change-Id: I0b26c3547aff4278055b56772f25781814c237ef Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35070 Reviewed-by: Gary A. Peterson <garyp@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: Martin Peschke <mpeschke@de.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* PK: make GPE using 8B in64/out64 opYue Du2017-10-231-31/+0
| | | | | | | | | | Change-Id: I02cd577023fe818bab2aabbe60d513b7d9355d13 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34840 Reviewed-by: Douglas R. Gilbert <dgilbert@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: Gregory S. Still <stillgs@us.ibm.com>
* PK stack checkingDoug Gilbert2017-10-236-7/+48
| | | | | | | | | | | | | | | | | | | | | | This commit adds a thread stack check when a thread is preempted. Another check is done to the kernel stack when back-to-back interrupts are processesed. These checks are done at a time and location in the code where it is inexpensive to do the check, and in the case of the thread stack, a likely place for an stack overflow to occurr. A trap will happen if stack overflow is detected. Two new macros have been made available that can be used to do stack checking at any point in code. These are more expensive so their use needs to be limited. They are currently not yet used. Change-Id: I4b4229a358c3c75a2c1c0cba89bc3a38e6252384 RTC:160103 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33624 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Enable imprecise mode only for CMEPrasad Bg Ranganath2017-10-231-2/+0
| | | | | | | | | | Change-Id: Icd8f196e3dffe154082d969c0a8828acdc2924b3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34485 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: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* HW398189: mask SIBRC = 6 in CME MSR under NDD1Yue Du2017-10-232-0/+26
| | | | | | | | | | | Change-Id: I19df802466d23c371b23971dce43a67ddc9cd60d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34373 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: ADAM S. HALE <ashale@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: JAMES DEZELLE <jdezelle@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Enable QUEUED SCAN in CME putring codePrasad Bg Ranganath2017-10-231-0/+2
| | | | | | | | | | | Change-Id: Ibc2d835f3fb6243820af92698d0fc3b22efac27e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32649 Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: ADAM S. HALE <ashale@us.ibm.com> Dev-Ready: ADAM S. HALE <ashale@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: Gregory S. Still <stillgs@us.ibm.com>
* PK Support for 1.125 timebase scaleDoug Gilbert2017-10-231-5/+11
| | | | | | | | | | Change-Id: I11b399cb2ab86d1113713c8c0ed6a40e8f0504e1 RTC:165134 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32919 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* STOP Image updatesYue Du2017-10-231-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove PPE_LIBPATH.Doug Gilbert2017-10-231-4/+4
| | | | | | | | | | Change-Id: I010cc735686bb99ba42cc193120716030dbb5532 RTC: 163813 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31999 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
* ppe42 Icache aligned divideDoug Gilbert2017-10-233-45/+58
| | | | | | | | | | | | Change-Id: Ibb58bdd022641857cc94fbf17c5977a600a5bb6a RTC:147209 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30374 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Dev-Ready: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Change TIME_INTERVAL_TYPE to uint64_t in SSX and PKDoug Gilbert2017-10-231-1/+1
| | | | | | | | | | | Change-Id: I74a9c299ce5a49bcd0b070d134c1f4adcc357e63 RTC: 163135 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31466 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PPE Fixed Interval Timer handler bug fixesRahul Batra2017-10-234-7/+84
| | | | | | | | | | | | | Added code to setup user-defined FIT handler Updated code, so by default FIT handler is _ppe42_default_irq_handler Change-Id: Ib2ed28360c9b15b509f3a1ac7bb34bc8f8a1be5c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30733 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: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* SGPE and CME scanning integrationGreg Still2017-10-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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: 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>
* Create new PK div32.S file to prime repository mirroringDoug Gilbert2017-10-231-0/+25
| | | | | | | | Change-Id: I36025dec2443d9ebbec81e1ba1f4561a37060380 RTC:147209 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30487 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* GPE PK PBA setup APIDoug Gilbert2017-10-237-4/+304
| | | | | | | | | Change-Id: Iaead553f1adefaea7a34ded6dbf89b3423d6dc27 RTC: 148003 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25037 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK remove IBM confidential and redundant copyright sectionsDoug Gilbert2017-10-2365-386/+57
| | | | | | | | | Change-Id: I59d2addfd2f005abab8c38d4a90c00924221d664 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29344 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Add comments for MSR bit descriptionsDoug Gilbert2017-10-231-3/+8
| | | | | | | | | Change-Id: Ib9a2192bc2d2c1c4e0ca6591f432bf48772610a8 RTC: 159553 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29382 Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Tested-by: Gregory S. Still <stillgs@us.ibm.com>
* Set default MSR for performanceDoug Gilbert2017-10-232-5/+21
| | | | | | | | | | | Change-Id: Ic53d48ed5254c751374bb6fd29ed9a5d9df109b6 RTC: 159553 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28572 Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE: STOP Images functional bug fix collectionYue Du2017-10-232-0/+2
| | | | | | | | | 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>
* MSR read gets re-ordered in codeDoug Gilbert2017-10-232-3/+3
| | | | | | | | | | | | Change-Id: I219b7f7854ae00093bf322f77265f97b47691660 RTC: 159553 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29279 Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* c string functions added for PKDoug Gilbert2017-10-233-3/+378
| | | | | | | | | | Change-Id: I8dcddcf133e9d294df5af9bdcd5922c89ba593a1 RTC: 157965 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28426 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK_PANIC using trapGreg Still2017-10-238-166/+383
| | | | | | | | | | | Change-Id: I5f516c5e8d4ae77467e209d283799e2e88341dc9 RTC: 147211 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24845 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Create dummyfiles for new files for hw/ppe mirrorDoug Gilbert2017-10-232-0/+50
| | | | | | | | | | Change-Id: Ib6bd11cc385f88a53d3a39bd32c069188ece5759 RTC: 157965 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28686 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK Prime new file in preparation for PK_PANIC using trapDoug Gilbert2017-10-231-0/+30
| | | | | | | | | Change-Id: I5406e32426ac5e963312b4e193777e7c8d24a729 RTC: 147211 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28621 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PPE42 PK lib locaton changesDoug Gilbert2017-10-234-5/+342
| | | | | | | | | Change-Id: I292a3e823073233eafb95f549cd4ccb1e7c9294a RTC: 157965 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27653 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* PK/Kernel: allow user to override PK_BASE_FREQ_HZYue Du2017-10-231-5/+7
| | | | | | | Change-Id: I6f38505a8cac2a2cbc17bd2a17b7ecee40e35449 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26646 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Add PK_TRACE_CRIT and PK_TRACE_DBG_SUPPRESS trace directivesDoug Gilbert2017-10-231-2/+38
| | | | | | | | | Change-Id: Ie77655258f5d5b78da0e71a96a97ddf4b442af5a RTC: 154819 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25322 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
OpenPOWER on IntegriCloud