summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_sensors_power.c
Commit message (Collapse)AuthorAgeFilesLines
* Modify: modify amec power sensor calculationjoy_chu2019-07-301-7/+11
| | | | | | | | | | | The offset value will be added to APSS raw value when APSS raw value is not 0. Change-Id: Iba5ecc6d979ea3cc771c6cd25f6e7bab44bb2d78 Signed-off-by: joy_chu <joy_chu@wistron.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81383 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J Cain <cjcain@us.ibm.com> Reviewed-by: William A Bryan <wilbryan@us.ibm.com>
* Delete debug sensors to save SRAMmbroyles2019-07-101-19/+0
| | | | | | | | | Change-Id: Id1f23066951f09988a7f7dfdd868d7d9a166975e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80156 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* Disable 24x7 when EPOW detected to prevent GPE haltChris Cain2019-03-251-46/+74
| | | | | | | | | | | | | | | | | | | | | OCC Updates: Master OCC will begin processing EPOW (vs waiting to process as a slave) 1. Stop 24x7 when EPOW detected 2. Run NVDIMM procedure Delay system checkstop processing 4 ticks to ensure NVDIMM procedure completes NVDIMM procedure updates: - Disable rcd recovery - Poll to wait for DRAM to reach STR Change-Id: I6834308d13866b49b6b2ad1a661f1f56fb05e939 CQ: SW460185 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74690 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* Run WOF every tickmbroyles2019-02-151-35/+106
| | | | | | | | | Change-Id: I3e493e10202172bd019a168c6f6e39c57c0f75e3 RTC: 200408 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70638 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Add support for a second voltage sense from APSSChris Cain2019-01-291-38/+105
| | | | | | | | | | Change-Id: I8c356e2962c0e25c0335dc7af7dc79fc0702df60 RTC: 202003 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70401 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Support for NVDIMMsChris Cain2018-09-261-203/+318
| | | | | | | | | | Change-Id: I8ccf44287bc72a73b16662ba29b71e731c70b30e RTC:173789 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65917 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Force update of OPAL-OCC memory after GPU presence detectedmbroyles2018-05-251-0/+6
| | | | | | | | Change-Id: If69a1d46ad88d9a0cbcd18c7217d4cffc33413d3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59364 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* AVSBus Vdd Current roll over workaroundmbroyles2018-04-161-60/+89
| | | | | | | | | | Change-Id: I795683430112a11e81aae70b5c0704408cc92635 CQ: SW424766 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57161 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* APSS Reset SupportDoug Gilbert2017-12-181-1/+3
| | | | | | | | | | Change-Id: I23dd10a7bc78841ecd4382e8ac8667afbb7c2ddd RTC: 163601 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49871 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* Use AVS bus for processor power when no APSS channel for proc power is presentmbroyles2017-12-071-6/+16
| | | | | | | | | | Change-Id: I1bb3a2b50c75e2b14a641229f68c18701df32b49 RTC: 182014 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50495 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* AVSbus Re-sync Bus Error RecoveryChris Cain2017-11-021-5/+11
| | | | | | | | | | | | Change-Id: I226c5a7e7b8b5db4a3dc60608494c8cf9cbbb212 RTC: 180106 CQ: SW396400 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49113 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Read VRM Vdd TemperaturesChris Cain2017-10-191-16/+30
| | | | | | | | | Change-Id: I428417a8e94e2b3f8892998ef280e454c46405ed RTC: 180433 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48131 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* 405 Side GPU Core Temp CollectionWilliam Bryan2017-08-251-0/+2
| | | | | | | | | Change-Id: Ia1b10f5208c49ba168dcf338f0cbeb2c4ab46971 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44982 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* Initial 405 GPU supportmbroyles2017-08-141-0/+6
| | | | | | | Change-Id: I6e957ca1aa643d257274e99957df5b15ac8c889b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44254 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* Remove time from sensor namesmbroyles2017-06-261-12/+6
| | | | | | | | | Change-Id: Ic6b8892285610985a80c623b6da35d2766926f4d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42161 Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* WOF dependency cleanupAndres Lugo-Reyes2017-06-191-36/+7
| | | | | | | | | | RTC:174543 Change-Id: Ie315794a2745c9b6620c787927a354ac182339d6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42061 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* OCC support for no APSS and new GPU Config Datambroyles2017-06-121-5/+5
| | | | | | | | | Change-Id: Id58a06378f3c0a7fd9fb436b96823eca15028031 RTC: 160889 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41513 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* APSS GPIO ControlsWilliam Bryan2017-05-311-2/+178
| | | | | | | | | | | | | | -- Adds the use of GPIO_VR_HOT_MEM_PROC_0/1 in manufacturing mode. -- Adds the ability to determine which GPUs are available in the system. Change-Id: Ib86bca7b8ac279b044025a67002dc9e60ecd7c07 RTC:172166 RTC:155565 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39651 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* Initial support to handle no APSSmbroyles2017-05-171-1/+12
| | | | | | | | | Change-Id: Ia14aebaf44e9a0a3d2e14a4ff3803793350986b4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40521 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* Doorbell reorganizationWilliam Bryan2017-05-101-2/+2
| | | | | | | | | Change-Id: I9c8aa4e4cd2272c213d063a27c019396928ebd94 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40290 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* OCC: Non-GPU Sensors to main memory: Phase 1Shawn McCarney2017-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | Performed the following sensor renames required by this RTC story: FREQA4MSP0Cy -> FREQACy UTIL4MSP0Cy -> UTILCy PWR250US -> PWRSYS PWR250USP0 -> PWRPROC Also renamed the following related symbols: * Associated sensor_t field names in the amec_sys_t data structure * Mini-sensor field names * Parent sensors that contain a vector iterating over renamed sensors Change-Id: I1e9e17661e5730ed6309fc7617c61bd973d2e44f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39772 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* AVS Bus update to use 32bit register accesses instead of 64Chris Cain2017-02-141-5/+6
| | | | | | | | | Change-Id: Ib31cb6ba5cc23f2599226628d36c7006dc911249 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36250 Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Add VR Fan and OC support via AVSBUSChris Cain2017-01-271-127/+81
| | | | | | | | | | | | | | | - monitor VR Fan (over-temperature) and OC (over-current) - add VR Fan sensor to poll response (Temperature FRU type: VRM) - log mfg error for OC - add error history counters for each Change-Id: Ia552aa2cc2db8adebcbbd928c146a057bb120c73 RTC: 132561 RTC: 132560 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35358 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* AVS Bus divider, loadline and misc changesChris Cain2017-01-181-46/+167
| | | | | | | | | | | | | | | - validate CRC in cmd response - read current / voltage on alternating ticks (commands on both bus for each tick) - calculate chip power (with loadline) and power for each tick - update divider value for bus speed - add error history counters and add them to logs Change-Id: I33bce916dc2dffef6a6d616633a5f1266d7baa7e RTC: 163992 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34947 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Code updates for AVS Bus data collectionChris Cain2016-11-091-99/+116
| | | | | | | | | | | | | | | | - add support for reading voltage/current from AVS Bus on Vdd and Vdn rails (on alternating ticks) - remove overcurrent code - remove voltage uplift code - other minor cleanup RTC: 137620 Change-Id: I774a2421059ab3684e3b790938429e9e77ae2b76 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31923 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Sensor updates for AVS Bus data collectionChris Cain2016-10-271-7/+7
| | | | | | | | | | | RTC: 137620 Change-Id: I2e394fdff7672c0a76c78c5d0f7f57885f1c5cfd Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31757 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Support new APSS Function IDsmbroyles2016-10-201-15/+19
| | | | | | | | | | | RTC: 162291 Change-Id: I979615313a9c5e860fa570736e0ce598b978f877 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31416 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* EMPATH Sensor CountersWilliam Bryan2016-08-261-3/+3
| | | | | | | | | | | | RTC:148388 Change-Id: Iae66cd0a73032fa908eb96a149d4163397c2e275 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27781 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Wael El-Essawy <welessa@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
* Pstate Infrastructure & Support config data required for active stateWael El-Essawy2016-05-251-49/+40
| | | | | | | | | | | | | | | | | | | | | | | | - Support all config data required for active state. - Set 'active ready' bit in poll response when all config data has been received. - Rewrite & rename proc_gpsm_pstate_initialize() - Delete GPSM, doesn't exist. - Put in TODO call PGPE to enable pstates this will also be telling PGPE how to set PMCR mode register (OCC control pstates or OPAL). - Initialize globals for fmax, fmin, pmax and mhz_per_pstate with temporary hard codes until PGPE is available. - Call to "proc_pstate_initialize()" moved to state transition to observation - Cleanup proc_freq2pstate() - rewrite amec_slv_freq_smh() - the calls to proc_set_core_bounds() and proc_set_core_pstate() will be replaced with 1 IPC call to the PGPE to set pmin/pmax given all cores or set pstate for all given cores. - Remove all DCM related code. Change-Id: I449d188b2cffc345afca19717dcbea037f159114 RTC:130224 RTC:150935 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23977 Tested-by: FSP CI Jenkins Reviewed-by: Wael El-Essawy <welessa@us.ibm.com>
* Poll with sensor support and power accumulator resizeChris Cain2016-04-191-49/+16
| | | | | | | | | | Change-Id: I64eb18a567e8d899de085903412a9b4fd13e4be7 RTC: 148327 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22365 Tested-by: FSP CI Jenkins Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
* Enable Master-slave OCC communicationWael El-Essawy2016-04-051-2/+2
| | | | | | | | | | Change-Id: I445072e20d599e30f80cc8059b3f3b2a956c453e RTC: 133154 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22005 Tested-by: FSP CI Jenkins Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* CC: Support Thermal Control Threshold Config Data format 0x13Wael El-Essawy2015-12-111-44/+1
| | | | | | | | | | | | | | | | | | | | | Support thermal control thresholds format 0x13 config data command with new version 0x20 defined in P9 interface spec. All older P8 versions of format 0x13 deleted. Tested in simics. remove thermal thread. fix a dts calculation bug. add a firmware failure error log. Change-Id: I4a9979929292833a5e6f4f7f4e162ea20983b96a RTC: 141647 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22516 Tested-by: FSP CI Jenkins Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael Elessawy <welessa@us.ibm.com>
* Enable Sensor supportWael El-Essawy2015-11-111-2/+8
| | | | | | | | | | | | | | add necessary sensor, amec, and other files to the build list. add the task_amec_slave to the rtls tick tables modify the gpe request structures to reflect the new P9 design enrich the .dis files contects for better debugging Change-Id: Iae39bb1c430da56310478c24a28aad6dfbc6d6d9 RTC: 133865 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21789 Tested-by: FSP CI Jenkins Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
* new ssx and lib filesWilliam Bryan2015-08-031-0/+668
Change-Id: I2328b1e86d59e3788910687d762fb70ec680058f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19503 Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: William A. Bryan <wilbryan@us.ibm.com>
OpenPOWER on IntegriCloud