summaryrefslogtreecommitdiffstats
path: root/src/usr/vpd/ipvpd.C
Commit message (Collapse)AuthorAgeFilesLines
* Support CDIMM VPDSwathi Madhuri Bhattiprolu2017-12-071-6/+5
| | | | | | | | | | | | | Change-Id: I85c100c319f114ae00009d4b5055910851a13f50 RTC:176407 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49128 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* vpd: add ability to read record RT keyword valueRobert Lippert2017-11-211-0/+14
| | | | | | | | | | | | | | | | | | | In the existing code the Record Type (RT) keyword value is treated as special and not readable. But I don't see any reason it shouldn't be readable like all of the other keywords in a record. Resolves #124 Signed-off-by: Robert Lippert <rlippert@google.com> Change-Id: I927c85be957f32cf8535c08595fefed156b8027c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49768 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Updated VPD from HBRT on FSP systemsRoland Veloz2017-10-061-6/+0
| | | | | | | | | | | | | | | | Created a generic message type that is used as a mailbox message that is passed from HBRT to FSP. The new generic message type is used to make a VPD write call. Change-Id: I21240d19909f786d525e2a98878000af4aea6e9f RTC:171488 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45048 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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding in MEMD functionality with multiple copiesElizabeth Liner2017-08-221-1/+21
| | | | | | | | | | | | | | | | | | | This commit adds support for a separate version of the MEMD VPD. In the PNOR, we will have a new optional section that will contain multiple versions of the MEMD VPD. This code adds the functionality to loop through the different versions and check the VM keyword to find a matching one. Change-Id: I3f8e6e589c31b3b480d915a1b29b4614fa809162 RTC:175158 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43508 Tested-by: Jenkins Server <pfd-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> 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> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix VPD record size calculationDean Sanner2017-02-031-1/+2
| | | | | | | | | | | | | | | Algorithm was not including the 2 byte size field as part of the full record length, resulting in shortened data being returned. Change-Id: I49a934a24771245fc7b808a2986da622b4aac4a5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35799 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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Re-enable error catching for missing VPD recordscrgeddes2016-11-101-40/+30
| | | | | | | | | | | | | | | We put a hack in temporarily to allow MEMD records to be read without a TOC. This hack needs to be removed when the VPD generation tools get updated to add in the TOC for MEMD records Change-Id: I66ff6509161219ab043ab84ecf5dba84f16fe6da RTC: 162329 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31246 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@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: Matthew A. Ploetz <maploetz@us.ibm.com>
* Disable error catching for VPD lookup errorscrgeddes2016-10-101-28/+40
| | | | | | | | | | | | | | Adding in a workaround to allow us to read VPD records that are missing their table of contents in pnor Change-Id: I99692031c56b4289791656cbfc595af34b6e5c9d RTC: 162329 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30836 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Support DQ and CKE maps for the memory busMatt Derksen2016-09-161-0/+4
| | | | | | | | | | | | | | getVPD() should now work with DQ and CK keywords. Also, updated dvpd.dat with new keyword data. Change-Id: Ib425f8b595dee589e5f770e84a8d8be7e76d05e7 RTC:159347 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29353 Tested-by: Jenkins Server <pfd-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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9 changes for PR core restrictionMarty Gloff2016-04-271-5/+13
| | | | | | | | | | | | | | | | | | | Covers the work required to support the P9 module vpd and new EQ/EX/EC core structure in relation to the processing of the PR keyword to restrict the number of cores. Add new traces or enhance old traces with additional data to improve debug. Update the module vpd binary for our standalone model. Change-Id: I20018ccf1daa429e5b0ad9e38f50b1bc5943bcb5 RTC:145459 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/705 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Add support for backplane VPDBill Schwartz2015-05-211-2/+48
| | | | | | | | | | | Replace the temporary use of mem buf to access planar vpd with new planar vpd interfaces. Change-Id: I24cda4d713806330a9f61d588006d63966f92550 RTC: 118373 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16326 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix for more than 2 PT keywords in MVPD VTOC recordCorey Swenson2015-04-141-1/+1
| | | | | | | | | Fixes open-power/hostboot#23. Change-Id: Ib87300428b00018cea299e1d1962b8d2ccba48fc Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17007 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Fix constant refresh of vpd cacheDan Crowell2015-04-091-6/+12
| | | | | | | | | | | | | Code was inadvertantly detecting mismatched pnor cache contents on every boot. Change-Id: I631dc758e03316a28d13f6d19032c1a76e3cffc1 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16839 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: William H. Schwartz <whs@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix VPD cache records/keywordsCorey Swenson2015-03-261-0/+63
| | | | | | | | | | | | | The CVPD should be checking OPFR:VS/VP first, then VINI:SN/PN The MVPD should be checking VRML:SN/PN not VINI:SN/PN Change-Id: If792fae2964011c1ca80e8cc08235477dc8a7a3b RTC: 124992 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16396 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: ANDRES A. LUGO-REYES <aalugore@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add proc vpd to devtreeDean Sanner2015-02-191-9/+94
| | | | | | | | Change-Id: Ic5bcb3020f68897fec7000238cda712336e94edc RTC: 120893 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14877 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HBRT Runtime VPD UpdatesCorey Swenson2015-02-181-7/+28
| | | | | | | | | | | | Enables writes to VPD and handles disabling PNOR cache in manufacturing mode Change-Id: I03d4246ceb91520939f8b04f3b3d2fc31c116079 RTC: 114911 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15462 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Get list of records from EEPROM when loading PNOR cacheCorey Swenson2015-02-121-85/+200
| | | | | | | | | Change-Id: I01613b61816d7c5a98851b5769986e971e133c43 RTC: 115944 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15314 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix issue with overwriting PNOR VPD cacheDan Crowell2015-01-301-2/+29
| | | | | | | | | | | Planar VPD needs more space for each CVPD record than CDIMMs need. Also added a check to catch overruns. Change-Id: I6aa2291658388cc72b6ba1e04c3eeed51235c3e3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14382 Tested-by: Jenkins Server Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix spelling mistakes using codespell.Patrick Williams2015-01-151-3/+3
| | | | | | | | | | | | - See https://github.com/lucasdemarchi/codespell Change-Id: I03e102d1ebb9473b6226fa9b6edb684fa0218a2f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15031 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* BMC VPD hardware write supportCorey Swenson2014-12-161-38/+144
| | | | | | | | | | | | Also contains I2C attribute work-arounds. Change-Id: I6d1164cfefe4edcc6631e8cf51c288ce25489fab RTC: 113492 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13665 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* BMC: VPD Caching in PNORCorey Swenson2014-10-171-106/+480
| | | | | | | | | | | | | For MVPD CVPD SPD, during presence detect VPD part number and serial number are compared between PNOR and SEEPROM. Mismatch triggers copy of VPD from SEEPROM to PNOR. Change-Id: Ia0a7b3fdf80bc15aee05c1303efa406fffa318ce RTC: 106885 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13233 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* fsipres.C now checks of mvpd/cvpd without creating error logs.Andres Lugo-Reyes2014-10-031-36/+113
| | | | | | | | | | Change-Id: Ie2542e97f2bb7bf9ea9680b57e337cd10beda81b RTC:113960 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13286 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Merge VPD commits from StradaleCorey Swenson2014-07-011-44/+333
| | | | | | | | | Change-Id: I95aa2bb30299c9d22563068741ffbeda48d2d84b RTC: 97488 Origin: Google Shared Technology Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11661 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Potential buffer overrun in trace collection.Patrick Williams2014-01-151-6/+6
| | | | | | | | | Change-Id: I8352c37f3789c684df24b75e85abca9fddfa314f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8054 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add Callouts to I2C and VPD driversMike Baiocchi2014-01-151-5/+105
| | | | | | | | | | | | Callouts were added to I2C, EEPROM, MVPD and CVPD (via IPVPD code), and SPD code. Change-Id: Ibcb14ea3a228a5175b6faed06189286b0e0526bc RTC: 69113 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7966 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Handle Multiple TOCs and removed side codeStephen Cprek2013-12-121-5/+3
| | | | | | | | | | | | | Also added Hostboot Base image version header Change-Id: I0fc878a48b9449e5d4875fd14525faefe01b1ace RTC: 34764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7276 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* CVPD Device Driver updates.Adam Muhle2013-02-141-0/+923
Implemented Device Driver support for Centaur VPD. Since CVPD is almost identical to MVPD, I moved the MVPD code to a base class so the actual logic is now common between the two. To support CVPD in the standalone configs, the hb-preload script was updated to populate the CVPD partition as well. I also started migrating the VPD code to a common trace buffer. RTC: 44009 Change-Id: I6e96d5e993d6d74d40df3d296cdcf8f34e4b5cc5 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3029 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud