summaryrefslogtreecommitdiffstats
path: root/src/usr/hdat
Commit message (Collapse)AuthorAgeFilesLines
* hdata: Increase RHB instance countVasant Hegde2018-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are adding more RHB entry. Hence lets increase RHB count to 20. (This is magic number and a short term fix. May be on long term we have to add logic to calculcate actual count during HDAT building). Fixes below issue: 58.67673|================================================ 58.73507|Error reported by runtime (0x1A00) PLID 0x90000038 58.73931| Invalid instance requested for Reserved Hostboot Memory section 58.73932| ModuleId 0x07 RUNTIME::MOD_HDATSERVICE_GETHOSTDATASECTION 58.73933| ReasonCode 0x1a20 RUNTIME::RC_INVALID_RHB_INSTANCE 58.73934| UserData1 Requested instance (reserved mem array index) : 0x000f 58.73935| UserData2 maximum array index allowed : 0x000000000000000e 58.73936|------------------------------------------------ 58.74148| Callout type : Procedure Callout 58.74149| Procedure : EPUB_PRC_HB_CODE 58.74149| Priority : SRCI_PRIORITY_HIGH 58.74150|------------------------------------------------ Change-Id: If6ead293576d18423679daff61c2c0039f02e910 Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/62628 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sampa Misra <sampmisr@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* attribute ECID value updation in hdat pcrd structurenagurram-in2018-07-092-10/+21
| | | | | | | | | | | | | Change-Id: Icde48f2af93d69e91dd108285805197f23105c41 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60367 Disable-CI: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Disable-CI: VASANT HEGDE <hegdevasant@linux.vnet.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: VASANT HEGDE <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* IS_MPIPL_SUPPORTED attribute support and update in hdat IPLP structurenagurram-in2018-06-282-0/+3
| | | | | | | | | | | | Change-Id: I3eba09cf3552cfa6592a3771910a94122b307041 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60376 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Disable-CI: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Centaur DD1.3 Bucket SupportDan Crowell2018-05-221-0/+1
| | | | | | | | | | | Change-Id: I1a2730ce173995e4862e5b25d44cda8b55d39310 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59096 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Remove workarounds for multinode HDAT supportJaymes Wilks2018-05-171-2/+2
| | | | | | | | | | | | | | | | | | | | This change does two things: -removes the eyecatch workaround for HDAT TPM data multinode support -fixes the loop that adds eye catches to HDAT TPM data for the openpower case Change-Id: I80a7f279783da63e6cde88447d75c0a79b428540 RTC:190522 CMVC-Prereq:1048762 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58031 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT: New attribute LOCATION_CODE support for fru targetnagurram-in2018-05-141-25/+22
| | | | | | | | | | Change-Id: I06fa69a577b110fcf90f8cff7117ba3609c62432 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58559 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT: Fix to pass mcbist target for mem bus frequency APInagurram-in2018-05-102-13/+3
| | | | | | | | | | | Change-Id: Idc78ab584e6d3a9707b9a4e2eebd9a350d5f8eca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58555 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT : Change in feature flag structures for RugbyJayashankar Padath2018-05-022-104/+246
| | | | | | | | | | | | Change-Id: I5862bdaeda8ff2e13d14a80b209b4beef8361e0d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56996 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Sampa Misra <sampmisr@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT:Added new fields( dimm id and dimm running freq) in RAM areanagurram-in2018-04-246-10/+119
| | | | | | | | | | | Change-Id: Id68e1033668c9eff615d67963aad1bbad0965e7d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57018 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove seeprom entry from host i2c data structures reported by HDATSampa Misra2018-04-181-0/+6
| | | | | | | | | | | Change-Id: I7bac6a88e388c67c280ef6edfdfed1589737baf2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57229 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Secure Boot: Support Phyp debug flag in HDATIlya Smirnov2018-04-091-1/+13
| | | | | | | | | | | | | | | | | | | | | PHYP needs a way to know if SBE security backdoor is enabled for debug purposes. This change creates a flag in TPM instance data structure to indicate whether the backdoor is enabled. This flag is passed by SBE to the hb bootloader; also added the flag to indicate whether PCR is poisoned (default of 0). The population of this flag will be implemented on Fleetwood. Change-Id: I22305dbc9651134ba7dfe3b0bd3c760fe53c2c85 RTC: 188961 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56045 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Propagate TPM information into HDAT on non-master nodesJaymes Wilks2018-04-063-31/+54
| | | | | | | | | | | | | | | | | | | | | | | Extends HDAT population to add TPM data to all functional nodes - Added message sends from the master to each node - Each node updates # of instances, sizes of structures, etc. - Each node navigates to its appropriate offset in HDAT - HDAT now populates entries for all TPMs in the blueprint - Physical presence interaction mechanism is master-only obtained - TPM SRTM and DRTM logs are no longer interlaced between TPM info - Single node workaround reverted Change-Id: Ic77cbeb7ba3d35a9f02ba68525ed79f27159e9bf RTC:167290 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55283 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Support Nimbus DD2.3 and Cumulus 1.2 PLL BucketsDan Crowell2018-03-231-3/+5
| | | | | | | | | | | | | Change-Id: Ic0a0915ad7b6ac94aa95587cb6278801d9a867ad Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55977 CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT : Fix for NVLINK Lane swap issuenagurram-in2018-02-171-8/+8
| | | | | | | | | | | | Change-Id: I13470dc3cbbbafca6ef9dff3eb6f7445f5dcacdf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52768 Reviewed-by: Jayashankar Padath <jayashankar.padath@in.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Correct Obus buckets math: one, not zero basedDean Sanner2018-02-061-2/+2
| | | | | | | | | | | Change-Id: Iaefbf2add1e79d978360e38d133afe2190da094d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53186 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT : Update init feature flag settings for P9nagurram-in2018-01-251-1/+4
| | | | | | | | | | Change-Id: I59a4e2484525e34424c7550818c5b7efad7a3b14 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52160 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT : Update in feature flag structure valueJayashankar Padath2017-12-191-3/+3
| | | | | | | | | | Change-Id: Ice9447bda9f944f7f8cbc565a7606695340bc08d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51121 Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT:Adding address to HRMOR stash location in HB reservenagurram-in2017-12-192-0/+4
| | | | | | | | | | | | | Change-Id: I4e2a35dedee4f7527c9e8401aa747452f903234f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50797 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sampa Misra <sampmisr@in.ibm.com> Reviewed-by: Jayashankar Padath <jayashankar.padath@in.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT: Feature flag settings movement from PCRD to IPLPnagurram-in2017-12-154-117/+167
| | | | | | | | | | | | | | Added versioned HDIF header for Feature flag setting array. Defined feature strings and settings agreed with OPAL Change-Id: I08bccf55c661c1423eed9e4a4fe579f86d2ca924 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50793 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Add support for OBUS PLL bucketsDzuy Nguyen2017-12-011-9/+16
| | | | | | | | | | | | | | | | | Add MRW support for ATTR_FREQ_O_MHZ attribute Add MACRO functions for ATTR_OB[0-3]_PLL_BUCKET attribute Change-Id: I75d02192bc09c9814fccadadb6aed69606508a58 RTC: 176188 CMVC-Prereq: 1039767 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48890 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* hdat: use VRML record for processor PCRD VPD dataRobert Lippert2017-12-011-21/+7
| | | | | | | | | | | | | | | | | The VINI record does not contain useful data on OpenPOWER systems. The VRML is recommended to use to read the PN/SN of the processor. Resolves #124 Signed-off-by: Robert Lippert <rlippert@google.com> Change-Id: Iccc0e9b2ab766cca850f334189aab515c02a93da Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49770 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* feature flag changesSampa Misra2017-11-282-2/+101
| | | | | | | | | | | Change-Id: Ib3e5f11a3833f84173115fcf93bd744e3e2d1c38 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49936 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix grabbing config from NV keyword dataMatt Derksen2017-11-151-10/+2
| | | | | | | | | | | | | | | | getGPUSensors was returning INVALID_IPMI_SENSOR for all GPUs as it was incorrectly reading the NV config ID. Change-Id: Iab71302f2066304dbf17e4fafcde0af8ca3c1240 CQ: SW407191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49615 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian E. Bakke <bbakke@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix hdatBmcFamily string is overwritten.Jim Yuan2017-10-191-2/+3
| | | | | | | | | | | | | Resolves #119 Change-Id: I5d93ba95bb740628e05c457ef0bdf1eb66ca3695 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48601 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Correct NV link PLL calc, right justify lane maskDean Sanner2017-09-271-26/+27
| | | | | | | | | | | | | | | - PLL buckets are counted one based, adjust to 0 based array - NV lane mask was in IBM bit 0..24, need to be 12..31 (24..0) Change-Id: Ia2404b962acb9f2173c69faccb9cd48763bec0d9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46481 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Set variables to nullptr after they are deletedChristian Geddes2017-09-251-0/+2
| | | | | | | | | | | | | | | | | | While updating some LPC logic a developer noticed a bug where an errlog handle wasnt getting set to nullptr after it was deleted this caused a confusing bug that took awhile to track. I noticed that this bug was all over our code so this commit fixes a lot of cases where variables get deleted but not set to nullptr Change-Id: I103b5c71b93686c3c89b04d1d565a24d4de74e6f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45890 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Ability to boot in SMT1 or SMT2 in HostbootDean Sanner2017-09-141-6/+25
| | | | | | | | | | | | Change-Id: Ie377f47a5087e6a53ff57c4c4415be014f92c461 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40584 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fixed slot map entry id's,vendor id and some other stuffnagurram-in2017-09-131-28/+28
| | | | | | | | | | | Change-Id: Ibf3695beac7d52a959e0c3098e341486fc4cc0da Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46140 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT: NVLink speed changes in SMP Link infonagurram-in2017-09-125-28/+193
| | | | | | | | | | | Change-Id: I410fa688690046ed9864a4ace13043856a9f0a58 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46009 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.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: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix for packing the NV keyword structnagurram-in2017-08-291-1/+1
| | | | | | | | | | Change-Id: Ib6845a5965a3c3356333ae912d2f03ab9d035850 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45288 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add HDAT Permissions type to Hostboot Reserved Memory SectionsStephen Cprek2017-08-292-5/+12
| | | | | | | | | | | | | | | Additionally pre-verified images are now marked read only Change-Id: Ieba7a4d3e787d155bb3217d52fd9f7cd6ea3dae2 RTC:178470 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44936 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* EC level array support added in 10.4t HDAT spec in SPPCRD structnagurram-in2017-08-225-25/+83
| | | | | | | | | | | Change-Id: If0e348b064bf2e378fcab03e791dd53c520dc5c2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44343 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Memory Controller ID addition in HDAT MSAREA structurenagurram-in2017-08-226-74/+34
| | | | | | | | | | Change-Id: I007e3fe76b90d3ca714200cae246fb103bba5d25 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43590 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* SMP and slot map structures with hardcodes sourced from MRWnagurram-in2017-08-226-10/+571
| | | | | | | | | | | Change-Id: I1bf28f9136edd07c76adfaf07411fc12d5f8025e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44277 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HDAT 10.4t spec changes implementation ( SPPCRD and IPMI changes)nagurram-in2017-08-184-14/+44
| | | | | | | | | | | Change-Id: I11cf63498ca4d5a5a269bbc969f70fed4e655a5b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44265 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Hostboot HDAT: update to match section 19 in HDAT specMatt Derksen2017-08-121-16/+15
| | | | | | | | | | | | | | | Add new i2cLabel string Change-Id: I007441e3973a16eaae4dbdbe703297f0f6978c8f RTC: 176759 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44301 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Skip Presence Detect in HDAT for BMC TypeBill Hoffa2017-08-091-1/+2
| | | | | | | | | | | | Change-Id: Iba981eef5e6535458085b1750d25a8d11aa37200 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44366 Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Updated the hdat code to incorporate the new BMC typeRoland Veloz2017-07-312-45/+63
| | | | | | | | | | | | | | Change-Id: Ib475bc1b2c43eaa4529c0c4b5f2af6d1a72091b4 RTC:166755 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41979 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Support new i2c device link ID formatNick Bofferding2017-07-145-60/+170
| | | | | | | | | | | | | | Change-Id: Ie79caad8ec9fe0be5421185360c5ea9b2d5dee3d RTC: 173541 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42681 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* HDAT: Fix version # for IPL Parms StructureNick Bofferding2017-07-111-1/+1
| | | | | | | | | | | | | | - Changed version from 0x5F to 0x70 for P9 release Change-Id: I58ea8f8e4de8facddfbe7851dcab1bc1cc249202 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42848 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* IPMI HDAT reenablement change and soft sensor additionsnagurram-in2017-06-282-21/+15
| | | | | | | | | | Change-Id: I4932fffcdc705db6789f53c08f5f513a223a2489 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41737 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix size calculation when allocating TPM dataNick Bofferding2017-06-271-5/+5
| | | | | | | | | | | | | | | - Allocated max size before clearing TPM related HDAT data - Eliminated duplicate TPM related HDAT data clear Change-Id: I3cb38204e4641ec9e02c6c6dda29bf0fc08c9694 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42411 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix number of TPM related HDAT section pointer pairsNick Bofferding2017-06-211-1/+1
| | | | | | | | | | | Change-Id: Iabe4f4d42a5e6f2fae3cc28baafb7f7b49b242b9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42178 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Size alignment fix for HDAT msarea structures for missing dimm spdnagurram-in2017-06-151-0/+4
| | | | | | | | | | | | | https://github.com/open-power/zaius-openpower/issues/14#issuecomment-308116637 Change-Id: Ifce34ca212a064dd9ced72833142c190a89e99f8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41822 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Populate HDAT sections with Secureboot Hash and Verify Function infoStephen Cprek2017-06-062-2/+22
| | | | | | | | | | | | | | | | | | | HB Resv Mem - Add Secureboot Cryptographic Algorithm info - Relocate SecureROM code Secure and Trusted boot data - Fill in new section for Hash and Verification offsets Change-Id: Ibfd60cc4d0d738fb209357332932af7aca9c61b8 RTC: 156485 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40445 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Add TPM Presence Info to HDATJaymes Wilks2017-05-234-16/+5
| | | | | | | | | | | | | | | | Populate HDAT TPM Section with TPM Presence Info by refering to link IDs in HDAT PCRD section and verify that the PRCD section's list of link IDs are unique and valid. Change-Id: I49956aae129b325f55a6358caa0af4da1951b58c RTC:170638 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39658 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* hdatmsvpd.C: fixes to enable nhtm tracesPrachi Gupta2017-05-161-13/+15
| | | | | | | | | | | Change-Id: Ia89ec4938f9fc800ba411347eaebec70c8516cce Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39771 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Bug fixes and workarounds for Hostboot Reserved MemoryDan Crowell2017-04-112-14/+18
| | | | | | | | | | | | | | | | Set type to invalid (0xFF) for unallocated ranges Silently handle both old and new HDAT formats to allow for roll-in of other code without changes here. Change-Id: I5558a6a3476e8d4a1b3b885eef1df1e7f74a898b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38741 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Report HW Keys' Hash size in HDATNick Bofferding2017-04-102-4/+5
| | | | | | | | | | | | Change-Id: I51a336090020a7822289c974a754ae95a8f9e3a1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38720 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Synchronize HDAT physical interaction mechanism handling to HDAT specNick Bofferding2017-04-102-13/+20
| | | | | | | | | | | | | Change-Id: I8caa49149db6964b9d8575d634f835de86c49e0f RTC:166834 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38723 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud