summaryrefslogtreecommitdiffstats
path: root/src/usr/hdat/hdatmsvpd.C
Commit message (Collapse)AuthorAgeFilesLines
* Handle automatic interleaving between OMI sub-channelsDan Crowell2020-01-101-17/+17
| | | | | | | | | | | | | | | | | | | The memory channel is defined as a single MCC, and all of the memory on that channel is part of a single address space. That means that both OCMBs on the same MCC share an address space. While this isn't the same mechanism as true interleaving, it looks the same to the code consuming HDAT, so we need to set the sharing flags appropriately. Change-Id: Ic270582ced92614cf21ff7be0ef6f97c93ab2514 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89340 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: Jayashankar Padath <jayashankar.padath@in.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
* HDAT: Add SMF Memory RegionIlya Smirnov2019-09-101-3/+140
| | | | | | | | | | | | | | | | The SMF memory region was not being populated in HDAT, causing skiboot to not find any secure memory. This commit adds changes to include the SMF memory range into HDAT. Change-Id: I67cfc2787d90604e3da0f61844776c8704ea2640 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82180 Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com> Reviewed-by: Jayashankar Padath <jayashankar.padath@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>
* Update SYS's ATTR_XSCOM_BASE_ADDRESS in SMF PathsIlya Smirnov2019-09-031-0/+2
| | | | | | | | | | | | | | | | | | | | | The correct value of ATTR_XSCOM_BASE_ADDRESS was not being propagated to HDAT when SMF is enabled. The problem is that the system target has a copy of said attribute that needs to be updated with the SMF bit (bit 15) to reflect the fact that XSCOM BAR is in SMF memory. The attribute under the system target was not being updated accordingly (only those attributes under proc targets were). This commit adds a fix to update ATTR_XSCOM_BASE_ADDRESS under the system target in SMF mode. Change-Id: Icac5bb7023ac0ecc521a961681420bfc21a46eac Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83057 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: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
* Use REL_POS of OMI and not OCMB for calculating hdat DIMM ID'sChristian Geddes2019-08-141-3/+3
| | | | | | | | | | | | | | | | | | | | There is a bug in the code where we are attempting to lookup the REL_POS of an ocmb target while trying to generate the id hdat will use to uniquely identify a given dimm target. OCMB targets do not have the REL_POS attribute and if they did it would always be 0, or it would match the associated DIMM's REL_POS (for single dimm ocmbs at least). Instead we will use the OMI's REL_POS which should work because OMI's are 1-1 with OCMB targets. Change-Id: Ib22307c7f4c2d97a5368fd507fe7b4965135c76e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82120 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Jayashankar Padath <jayashankar.padath@in.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: Support for Swift/Axone memory sub systemJayashankar Padath2019-08-081-436/+1302
| | | | | | | | | | | | | | | Added support to scan the dimms using OCMB chip target path and fetched the memory related data using the new targeting model. Updated PVPD and MVPD keywords for axone chip. Change-Id: I2c7288dd57d60243569b4648a309dfcb11baf9d8 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80591 Reviewed-by: Sampa Misra <sampmisr@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: Daniel M Crowell <dcrowell@us.ibm.com>
* HDAT: Fix to pass mcbist target for mem bus frequency APInagurram-in2018-05-101-2/+2
| | | | | | | | | | | 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:Added new fields( dimm id and dimm running freq) in RAM areanagurram-in2018-04-241-4/+13
| | | | | | | | | | | 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>
* HDAT:Adding address to HRMOR stash location in HB reservenagurram-in2017-12-191-0/+3
| | | | | | | | | | | | | 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>
* Add HDAT Permissions type to Hostboot Reserved Memory SectionsStephen Cprek2017-08-291-3/+6
| | | | | | | | | | | | | | | 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>
* Memory Controller ID addition in HDAT MSAREA structurenagurram-in2017-08-221-3/+18
| | | | | | | | | | 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>
* 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-111-1/+1
| | | | | | | | | | | | | | | | 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>
* I2c data fillup in msvpd and pcrd structsnagurram-in2017-03-221-44/+4
| | | | | | | | | | | Change-Id: Id2d9754b9a044223372d67a7c61e7784584a45c3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37093 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: Jayashankar Padath <jayashankar.padath@in.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Update the HDAT HB reserved memory fieldsCorey Swenson2017-02-281-7/+24
| | | | | | | | | | | | Change-Id: I45fb3144836877b3b495e62d06289f70af7dbdf6 RTC:168523 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35855 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@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: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix for shared flag not getting set for the MSAREAnagurram-in2017-01-261-52/+73
| | | | | | | | | Change-Id: Ifa0b91ffc3b2e47f88bc2ca8c7b6e701a10d6a53 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35394 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: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT: Ms Area changes with new MCA designJayashankar Padath2017-01-121-399/+435
| | | | | | | | | | Change-Id: Iabc1fa178e31417ff74d31f5fe528e51b390bb20 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33231 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: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT: Host I2C changes for PCRD and MS AreaJay2017-01-121-1/+86
| | | | | | | | | | | Change-Id: Ie138a86f19e23374f10479af43e0d1b467ceec9e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33096 Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com> Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@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> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HDAT changes for Witherspoonnagurram-in2016-11-141-0/+2015
Change-Id: I942362604938fe4f7511e21da9246236a939c176 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30905 Tested-by: Jenkins Server <pfd-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>
OpenPOWER on IntegriCloud