summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/xip
Commit message (Collapse)AuthorAgeFilesLines
* HB Implement Static Analysis with cppcheckLuis Fernandez2019-08-191-1/+2
| | | | | | | | | | | | | | | | | | | | Inline cppcheck-suppressions for false positives. HB (which pulls in files edited here) will start having the option to implement cppcheck. Change-Id: I08adcf3a344295621c5730fc04516f806c6b85bd RTC: 201451 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82267 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> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Glenn Miles <milesg@ibm.com> Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com> Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82295
* Re-used loader_data section to pibmem repair scom data for AxoneRaja Das2018-12-071-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | - loader data section is un-used presently, so re-used the same section space for Axone repair ring related scom data. - This section will be used to store raw scoms extracted out of raw pibmem repair ring from MVPD. - This section to be updated by Hostboot while customise SBE Image along with other HW rings, HBBL etc. Change-Id: Iff53f3afd296ee78892505a458dc2caa19da440f Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66768 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66771 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>
* Revert "P10 prep: Infrastructure (IS) ring Id metadata and API changes"Daniel M. Crowell2018-10-151-3/+3
| | | | | | | | | | This reverts commit 52b76be222254e59959db984606c09dae854270b. Accidental merge before ekb was complete. Change-Id: I59412ecad661596322aaba5cb5cf83190727d64f Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67455 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P10 prep: Infrastructure (IS) ring Id metadata and API changesClaus Michael Olsen2018-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gerrit intent: - Applicable for P9 merge (co-req NOT required) - Co-req not req'd for any tests Includes the following changes: - Accommodates initCompiler's needs for additional ring Id APIs to retrieve IS's key ring identifiers, ringId and ringClass, and to align with our enumerated chipId - Elimination of redundancy in and reorg of IS's ring Id lists: RingProperties, GenRingIdList (gone) and ChipletData. - GenRingIdList has been removed. - Expand RingProperties to also include scanScomAddr and ringClass. - Member of ring and chiplet properties structs have been renamed in consistent camel style (no longer using "iv_" anywhere). - Note that with "infrastructure (IS)" we here mean the core infrastructure codes that directly interact with and affect the image. Key_Cronus_Test=XIP_REGRESS Change-Id: I7e92af04edd10c0994718e476f6e7b77c5d124d6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/59087 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>
* Update to p9_xip_tool to handle stand-alone DDCO ring files.Claus Michael Olsen2018-05-172-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In this update, we're adding support to p9_xip_tool to be able to dissect and extract stand-alone DDCO ring files, i.e. files that are DD packaged through using the dd_container API and which is the DD packaging that XIP "understands". Right now, dissect and extract (of a specific DD level) can only be achieved if the DDCO binary is attached to the XIP image as one of the rings sections, .rings, .overlays or .overrides. Key_Cronus_Test=XIP_REGRESS Change-Id: I8be00742f05b4df61652a1de6d0230bb5d203f97 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54704 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56110 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix a couple of EKB files to prevent CMVC quirkaravnair-in2018-03-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | CMVC expands the date command strings added as comments in these two files. So when we try using the auto code checkin tool to push code from hwsv Git repo to CMVC, we end up checking in these files always - as they show the current date versus the actual date command strings. Change-Id: Ibe82b679f14d781c7b64ae8dcdd7ab2356accf8d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54830 Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54837 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>
* Moving DD specific ring coord from TOR to XIP (step 1)Sumit Kumar2018-01-242-57/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Step 1 - Ensuring backwards compatibility in TOR and XIP APIs to avoid co-req issue. - Updated TOR and XIP APIs, xip_tool and ipl_build to handle both types of DD coordination. Key_Cronus_Test=XIP_REGRESS HW-Image-Prereq=51511 - 51511 changes the .rings section DD level packaging. This commit (42751) prepares the TOR API and associated codes to handle the new .rings layout while also making the TOR API backwards compatible to the existing .rings section. Change-Id: I7d254340808ca9270fc1c96414102794fcffeabe Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42751 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43259 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>
* xip_customize and TOR API: Improved DD level verificationClaus Michael Olsen2018-01-152-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This update propagates the extracted EC level in xip_customize through to the TOR API via the call to tor_get_single_ring(). The TOR API has been updated to verify that the requested DD level matches matches the DD level in the TOR header of the supplied ring section which, in the case of xip_customize, is an .overlays ring section. Key_Cronus_Test=XIP_REGRESS Change-Id: Ic087c269306acc0afcb8c759fe68eac63ae93d29 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51339 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51343 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>
* Removing P9_XIP_ITEM_NOT_FOUND trace out msg from p9_xip_image.CClaus Michael Olsen2017-12-141-2/+2
| | | | | | | | | | | | | | | | | | | Change-Id: I72d3649a173fecee990c7ec1793568675be6c53d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50831 Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Dev-Ready: Matt K. Light <mklight@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50839 Reviewed-by: Hostboot Team <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>
* Update: xip_tool: Introducing image section type (IST).Claus Michael Olsen2017-11-271-1/+11
| | | | | | | | | | | | | | | | | | | | | | | Currently xip_tool bails out if attempting to run a "report" on a standalone overrides or overlays ring section. So, added support for: - "report" for standalone TOR ring section and standalone DD container. - Introduced the Image Section Type (IST) to enumerate the various image types supported in an XIP image. Change-Id: I465248e802d496c4ff571ad92ea42cda9656db68 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48720 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48723 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>
* Overlays and multi-DD XIP related updates to xip_image and dd_containerClaus Michael Olsen2017-10-032-11/+20
| | | | | | | | | | | | | | | | | | | | | | to support WIN32 for manu team. Also, - various updates to dd_container error handling, - improved DD support query checking. Change-Id: I706e56258894c3453cf01aa1a637fe888af1db00 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46596 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46599 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>
* Characterization Default ImageAdam Hale2017-08-051-2/+4
| | | | | | | | | | | | | | | | Change-Id: I24ce2816a6e5583824f94db4f200cba9e0a2ec74 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43407 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Tested-by: Hostboot CI <hostboot-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-on: http://ralgit01.raleigh.ibm.com/gerrit1/43410 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>
* GPTR/Overlays stage-1b support in xip_customizeSumit Kumar2017-07-142-4/+5
| | | | | | | | | | | | | | | | | | | - Enabled to poll Nimbus DD level with support for overlays in the XIP. - Enabled to pass hw image with overlays section populated with dd levels. Change-Id: Ib7de3698ac103b34293115d0b4870afd0e617315 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41407 Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@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: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41409 Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Tested-by: Dean Sanner <dsanner@us.ibm.com>
* xip_customize: GPTR/overlays stage 1 supportClaus Michael Olsen2017-07-141-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated to poll Nimbus DD level and whether there's support for overlays in the XIP interface. Further, updated to add three extra args in xip_customize API, two of which are to support a third ring work buffer for the overlays handling. This has necessitated making changes to hcode_image_build (HIB) API as well. Note that the calling codes of xip_customize and HIB need to be updated to supply the additional args in their APIs. Note that this code stage 1 will work for Nimbus DD2 with Gptr rings in Mvpd, and no Gptr rings in the HW image. It will, however, not work if there's content in .overlays or if there's Gptr rings already in the .rings section. Thus, the stage 1 code here will work with a DD2 image (i.e., that does NOT have Gptr rings in .rings in HW image) as long as noone has put any real Gptr initfiles in for processing (which would result in ring content in .overlays). We must ensure that the stage 2 code of xip_customize gets merged on the HB side to enable processing of .overlays content before we actually add any Gptr initfiles for the .overlays section into EKB. Change-Id: I3d6ab8a9add239c92819613dcae21ef5faf0a1c5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40591 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40898 Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Tested-by: Dean Sanner <dsanner@us.ibm.com>
* xip_image: GPTR/overlays stage 1 supportClaus Michael Olsen2017-06-152-1/+8
| | | | | | | | | | | | | | | | | | | | | Updated p9_xip_dd_section_support to return "overlays not supported" if sectionId==.overlays is passed as arg. Further add a small update to xip_image.C to clear the ddSupport field in XipSection upon deleting a section. Change-Id: If64a8a6d7046aa857bd2c3f8ca8c1092565df5ad Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40546 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40648 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 .overlays section to hw imageRichard J. Knight2017-06-151-3/+5
| | | | | | | | | | | | | | | Change-Id: I61e534f8914cce7396ec8e7ea6aa79d90112644c RTC:173933 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40230 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> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40238 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>
* H-code ddLevel support: Bridging front-end to back-end.Martin Peschke2017-05-243-12/+84
| | | | | | | | | | | | | | | | | | | Further add a small update to xip_image.C to clear the ddSupport field in XipSection upon deleting a section. Change-Id: I5a0aa28ac209d8d31a1e30a75389910da366c5f6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40046 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40477 Reviewed-by: Hostboot Team <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>
* H-code ddLevel support - Front-end hooks for user and back-end codes.Claus Michael Olsen2017-05-112-8/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xip_image.c has been renamed to xip_image.C to take advantage of C++ ability to overload function call arg list to avoid having to introduce additional skinny "xip_dd_get_section" and "xip_dd_append" functions. p9_xip_get_section() and p9_xip_append() APIs have been updated with an additional DD support arg as their last parm. P9XipSection.iv_reserved8[0] converted to iv_ddSupport to enable XIP level knowledge about ddSupport capability of XIP sections. Introduced p9_xip_dd_section_support() that queries a section's iv_ddSupport flag to tell caller true/false about a sections ddLevel support status. Added support in xip_tool.C as follows: - Updated "append" command to accept an optional arg, ddSupport, if section has ddLevel support or not. - Updated "extract" command to accept an optional arg, ddLevel, specifying which ddLevel to extract. - Updated "report" command's listing to show ddLevel support status of sections. Change-Id: I17e1e09d63e894d4f26cb7b324cf10ab784d78a4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38666 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> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38668 Reviewed-by: Hostboot Team <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>
* Increased the size of buildTag in xip header by another 4BytesRaja Das2017-03-232-6/+1
| | | | | | | | | | | | | | | | RTC:170829 Change-Id: I82b6a6fbe0816ab3cf205aa4e7b5dfe1fda2c8bb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38195 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38206 Reviewed-by: Hostboot Team <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>
* PM: Added support for PGPE Boot/PGPE integrationPrem Shanker Jha2017-03-011-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - support for P-State parameter block - implements a compact image layout of PGPE similar to CME/SGPE. - adds PGPE boot progress code as a field in PPMR header. - implements PGPE boot loader and PGPE boot copier. - incorporates ability to generate PPMR header in the build flow. - change logic for calculating CME's first block copy length. - Turned on generated tables in PGPE Hcode - Fixed up pointers to generated tables - add ATTR_PGPE_HCODE_FUNCTION_ENABLE attribute to control PGPE ops - fix p9_pstate_parameter_build bug with AVS timing attributes - Make OCC Pstate Parameter block a fixed offset (128KB) in PPMR - Make Pstate Table from PGPE a fixed offset (144KB) in PPMR to ease debug - Fix Endianes issues in OCC PPB and input slope calcs - Added PGPE Hcode Length to PGPE header so that GPPB SRAM location is known. - Build flag for OCc Immediate IPC response - Build flag to no use temp boot settings - Expanding tracing for debug - Added default values for PBAX attributes as placeholders for MRW in firmware - Added WOF VFRT structure definions to headers; movement into HOMER NOT yet supported - Addressed review comments and rebased - Rebased with ATTR_PGPE_HCODE_FUNCTION_ENABLE in separate commit for Cronus Change-Id: I4752debbc7fb3275d4e79804333654511de427ff Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26115 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> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26116 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>
* xip_customize: MVPD compatible file set.Claus Michael Olsen2017-02-222-10/+13
| | | | | | | | | | | | | Change-Id: Ib3b7aeb8045a28ca05d33370c1ef1dcb9ba1fb64 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29448 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Michael C. Sgro <mcs793@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29450 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add check to verify SBE .ring section sizeRichard J. Knight2017-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | -Add option to p9_xip_tool to verify the size of the DD specific .rings section intended for the SBE image -Update makefiles to correctly run p9_ring_apply to insert and extract the DD level specific rings. -Update tor_access_ring to correctly advance the pointer to the next DD level in the HW image so the size can be extracted correctlty. Change-Id: I21a53b5d11341a14a4e9cc88388c9c2050394095 RTC:165558 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33873 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33879 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add build_tag to xip image headerPrachi Gupta2017-02-072-16/+11
| | | | | | | | | | | | | | | | | | | | | When releasing an image to FW, we would like to keep track of which release tag was used to build this image. Later on, that release tag can be used to rebuild the same image. Change-Id: I734b9a642e1b1c0a63a1cc25ab9c61beb35b25f3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26930 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26933 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* IOPPE image build flowMartin Peschke2017-02-011-4/+10
| | | | | | | | | | | | | | | | | | | Defines IOPPE XIP image sections, creates build flow for IOPPE sub image, and makes the HW Image build flow pick up the latter. Change-Id: I4ff43a3fe556741c584cf929c86479034c4a516a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28320 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35378 Reviewed-by: Hostboot Team <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: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: simplify p9_xip_get_scalar()Martin Peschke2016-10-051-16/+6
| | | | | | | | | | | | | | | | | Removing code duplication Change-Id: I7708a9016c2a8679454c26df87dab350e7443df6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29765 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29774 Reviewed-by: Hostboot Team <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>
* P9-XIP: simplify p9_xip_get_element()Martin Peschke2016-10-051-60/+5
| | | | | | | | | | | | | | | | Removing code duplication Change-Id: I8afb0a03f3b4a3bd8590419b0c1e9ff8e051fe5a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29764 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29772 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: p9_xip_get_item() can now deal with array attributesMartin Peschke2016-09-252-11/+23
| | | | | | | | | | | | | | | | | | This is a new API only used in one place so far. So enhancing it should be ok. The funtionality is needed for a p9_xip_tool change. Change-Id: Ibecb2ee45dc5fbf1394fcac0bfef92aa10468927 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29752 Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.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> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29756 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_xip_delete_section: Modified APIClaus Michael Olsen2016-08-252-40/+230
| | | | | | | | | | | | | | | | | This API has been updated to remove any random section, not just the last section. Also, an update has been made to p9_xip_tool, which uses this API. Change-Id: I0acdcd24d860093322cf13abf98511032e5b3eb1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28125 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28131 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update prologs of mirrored files to apache licenseStephen Cprek2016-08-053-24/+42
| | | | | | | | Change-Id: I25a782f6f8af801beb35f541f6076c482b78bf8e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27920 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_image_help_base: remove obsolete fileMartin Peschke2016-07-121-111/+0
| | | | | | | | | | | | | | | | needs changes in hostboot Change-Id: I26d04847d22714ef06c0c34c86ce545e14302673 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25155 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25156 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Resolve compile warnings in Cronus for signed/unsigned comparison.Kahn Evans2016-06-281-2/+2
| | | | | | | | | | | | | | Change-Id: If2639b3ef670b997141bcb4f6205499d4ef3e6bf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26270 Tested-by: Jenkins Server Reviewed-by: Matt K. Light <mklight@us.ibm.com> Tested-by: PPE CI Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Tested-by: Hostboot CI Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26272 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HW Image Build Flow: Remove obsolete image sectionsMartin Peschke2016-06-241-29/+9
| | | | | | | | | | | | | | | | | These sections have never been used but were integrated into the respective code sections of the CME, SGPE and Restore images. Change-Id: I474206c2f7047cc4beacc33e44e17d0fb9a0a59d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25336 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25922 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_xip_tool: Attribute dump parser commandShakeeb2016-06-232-54/+156
| | | | | | | | | | | | | | | | | Implementation of 'attrdump' command in xip tool to parse SBE dump for attributes Change-Id: I64049b24d4548af494450065bb6d7ab5e9ea2d8e RTC:134294 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25540 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25541 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: cleaning up endianess conversionMartin Peschke2016-06-012-149/+54
| | | | | | | | | | | | | | | | | Use system header endian.h routines to do endianess conversion instead of own routines. Change-Id: I6dd657b77b61a9a56797a254af6464f8526cc60f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24893 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24895 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HW Image: no .overrides sectionMartin Peschke2016-05-241-4/+2
| | | | | | | | | | | | | | | | | Removing .overrides from HW image since that is going to be a separate PNOR section. Change-Id: Id5fd18390e757be20ae35e484f47a953368f288b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24832 Tested-by: PPE CI Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24836 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Relocation of header files to ./tools/imageProcs directory and associatedClaus Michael Olsen2016-05-043-66/+7
| | | | | | | | | | | | | | | | | | | | | | changes to various *.mk files to point to new location as well as minor changes to xip_tool. Removed p9_ring_apply.mk because it isn't needed at this point anyway and causes Jenkins to fail. Giri is checking this file plus associated corrections to the other p9_ring_apply.* files. Added and updated p9_xip_image.h, and updated p9_scan_compression.H, according to commit 22997. Change-Id: I888dc2fccf92d3173ae45870b7cdefeb29757058 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22682 Tested-by: Hostboot CI Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22688 Tested-by: FSP CI Jenkins
* P9-XIP: improved image reportsMartin Peschke2016-04-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - enlarged build host string to avoid truncation - provide both section start and end offset in section table - provide section aligment in section table - fix "(null)" section name - aligning some fields Magic Number : 0x5849502053475045 "XIP SGPE" Header Version : 0x09 Link Address : 0x0000000080000000 L1 Loader Address : 0x00000000 L2 Loader Address : 0x00000000 Kernel Address : 0x00000000 Image Size : 0x000074f0 (29936) Normalized : Yes TOC Sorted : Yes <removed a line to silence Jenkins mistaking this for something else> Build Time : 14:22 Build User : mpeschke Build Host : hdrhapcc.boeblingen.de.ibm.com Section Table : Name Alignment Start End Size .header 1 0x00000000 0x0000015b 0x0000015c (348) .fixed 1 0x00000000 0x00000000 (0) .fixedtoc 1 0x00000000 0x00000000 (0) .toc 4 0x0000015c 0x000001f7 0x0000009c (156) .strings 1 0x000001f8 0x00000291 0x0000009a (154) .qpmr 8 0x00000298 0x00000697 0x00000400 (1024) .lvl1_bl 8 0x00000698 0x00000a97 0x00000400 (1024) .lvl2_bl 8 0x00000a98 0x00000e97 0x00000400 (1024) .hcode 8 0x00000e98 0x000074ef 0x00006658 (26200) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) Change-Id: I729a482504d5b3d310f93b982ad782fd4d254073 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22659 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22662 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: remove dead macro .xip_cvs_revisionMartin Peschke2016-04-211-65/+1
| | | | | | | | | | | | | | | That macro was unused and didn't make any sense in a git world. Change-Id: Ide7856d953820f20c6a581563c1cde28ccfde93e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22671 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22674 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: enhanced section table layout and HW ImageMartin Peschke2016-03-224-254/+444
| | | | | | | | | | | | | | | This enhances the section table layout in order to allow nesting of images, as needed for the Hardware Image. Change-Id: I259aabe1b292d0de92a61635583e2cc3b535df8d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/10598 Tested-by: PPE CI Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21431 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* PM: Added hcode image build support for SGPE and CME.Prem Shanker Jha2016-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | In this commit, nested xip structure of hardware image is traversed and hcode for following platform is copied to to relevant area in HOMER: - SGPE - CME - P9 Self Restore code RTC: 145583 Change-Id: I5127ab5d4e498e1b2db9ae8bcefef933be961855 Original-Change-Id: I8f91e34aff81b4c9218be5a380e3336913cbd7c9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/10675 Tested-by: Jenkins Server Tested-by: Auto Mirror Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Tested-by: Hostboot CI Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22229 Tested-by: FSP CI Jenkins
* P9-XIP image build: initial implementationMartin Peschke2016-02-241-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code is supposed to be used for all P9-XIP image build flows, including the ones for the Hardware Image (former Reference Image) and for the SBE IPL Image (located in the ppe repository). It has been derived from SBE-XIP code within the ppe repo (tools/image, sbe/image). This code has been succesfully used to build the SBE IPL image in the ppe repository. This code should is capable of building images, while it does not come with support for putting default values into attributes yet. Changes include: - cut down on number of included header files (eliminating lots of dependencies related to ppe and ekb repos) - a lot of renaming (SBE to P9-XIP) - Makefile cleanup - cleanup of white space damage Todos: - Some files might need to be revisited later, i.e. anything that doesn't come with a p9_xip_ prefix. - We may want to integrate this into ekb build. - The Makefile contains a check for the required compiler version. If the checks fails, manual actions must be taken. For a fully automated build this needs improvement. - The P9-XIP image build code needs to be mirrored to the ppe repo, and the SBE IPL Image build flow should be adapted to used it. - The sbe_default_tool is not included in this port. Change-Id: I0154333770277855c93203859dd4ca9f098b6f01 Original-Change-Id: I6017602fc61787fbb58673bfc2bf046f19526ff4 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23004 Tested-by: Jenkins Server Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24740 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP image build: initial implementationMartin Peschke2016-02-221-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code is supposed to be used for all P9-XIP image build flows, including the ones for the Hardware Image (former Reference Image) and for the SBE IPL Image (located in the ppe repository). It has been derived from SBE-XIP code within the ppe repo (tools/image, sbe/image). This code has been succesfully used to build the SBE IPL image in the ppe repository. This code should is capable of building images, while it does not come with support for putting default values into attributes yet. Changes include: - cut down on number of included header files (eliminating lots of dependencies related to ppe and ekb repos) - a lot of renaming (SBE to P9-XIP) - Makefile cleanup - cleanup of white space damage Todos: - Some files might need to be revisited later, i.e. anything that doesn't come with a p9_xip_ prefix. - We may want to integrate this into ekb build. - The Makefile contains a check for the required compiler version. If the checks fails, manual actions must be taken. For a fully automated build this needs improvement. - The P9-XIP image build code needs to be mirrored to the ppe repo, and the SBE IPL Image build flow should be adapted to used it. - The sbe_default_tool is not included in this port. Change-Id: Ia44474a9a6eab01f7a15b28686644714161d3833 Original-Change-Id: I6017602fc61787fbb58673bfc2bf046f19526ff4 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23004 Tested-by: Jenkins Server Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24286 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: ekb build flow integrationMartin Peschke2016-02-221-0/+21
| | | | | | | | | | | | | | | | | | The P9-XIP API code and the p9_xip_tool are now build by the overall ekb build flow. Run "ekb build p9_xip_tool" to only build the code in chips/p9/xip. Both p9_ring_identification and p9_xip_image are now created as objects that can be linked by anyone in ekb who needs this code. Change-Id: I2d5c3cfed358ff999a09ae35f36aaeb3f3f47504 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23680 Tested-by: Jenkins Server Reviewed-by: Claus Michael Olsen <cmolsen@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24285 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP: fix compile warningsMartin Peschke2016-02-221-1/+1
| | | | | | | | | | | | | | The ekb build flow won't succeed without fixing these compile warnings, which hinted at some valid potential problems. Change-Id: I2824da4b59d8ffa3c5ae46d02bb1231a8ac10604 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23681 Tested-by: Jenkins Server Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Claus Michael Olsen <cmolsen@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24284 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Header field update for loaderSachin Gupta2016-02-222-8/+12
| | | | | | | | | | | | | | Most of ppe loader need support for slow loader(L1), fast loader(L2) and pk kernel entry points. Add this information in XIP header. Change-Id: I0fd9b58b01431692b1281a3270bb82db814faebe Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23525 Tested-by: Jenkins Server Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24283 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9-XIP image build: initial implementationMartin Peschke2016-02-222-0/+4824
This code is supposed to be used for all P9-XIP image build flows, including the ones for the Hardware Image (former Reference Image) and for the SBE IPL Image (located in the ppe repository). It has been derived from SBE-XIP code within the ppe repo (tools/image, sbe/image). This code has been succesfully used to build the SBE IPL image in the ppe repository. This code should is capable of building images, while it does not come with support for putting default values into attributes yet. Changes include: - cut down on number of included header files (eliminating lots of dependencies related to ppe and ekb repos) - a lot of renaming (SBE to P9-XIP) - Makefile cleanup - cleanup of white space damage Todos: - Some files might need to be revisited later, i.e. anything that doesn't come with a p9_xip_ prefix. - We may want to integrate this into ekb build. - The Makefile contains a check for the required compiler version. If the checks fails, manual actions must be taken. For a fully automated build this needs improvement. - The P9-XIP image build code needs to be mirrored to the ppe repo, and the SBE IPL Image build flow should be adapted to used it. - The sbe_default_tool is not included in this port. Change-Id: I6017602fc61787fbb58673bfc2bf046f19526ff4 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23004 Tested-by: Jenkins Server Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24282 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud