summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/utils/imageProcs
Commit message (Collapse)AuthorAgeFilesLines
...
* xip_customize: MVPD compatible file set.Claus Michael Olsen2017-02-225-13/+62
| | | | | | | | | | | | | 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>
* p9_tor: fix debug level for messages disturbing ring dissectionMartin Peschke2017-02-161-9/+20
| | | | | | | | | | | | | | | | | | | These messages used to clutter the p9_xip_tool ring dissect output. I am reclassifying them so that they require a higher debug level. Change-Id: I19ef206068f0750d625c8cbbe6e5bb019c52d37d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36421 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: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Sumit Kumar <sumit_kumar@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36423 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: William G. Hoffa <wghoffa@us.ibm.com>
* Add check to verify SBE .ring section sizeRichard J. Knight2017-02-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | -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>
* Small fix to TOR API to NOT display dbg msg when passed a ringIdClaus Michael Olsen2017-01-301-1/+4
| | | | | | | | | | | | | | | | | | | | that doesn't exist in TOR. (This dbg msg was recently added to the RS4v3 commit 33993 and is causing confusion, so we're putting it under local debug control.) Change-Id: I1b00f5b19951134b3d3517db59639d39e5c257a6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35419 Reviewed-by: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35439 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>
* TOR space reductionsMartin Peschke2017-01-306-871/+933
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes avoid some waste of valuable memory used to store TOR and rings contained in TOR. This is mostly needed as a SEEPROM relief. Contains: - 12 byte ring header (former 31551 commit) - less zero padding at the end of compressed ring (former 31524 commit) - removed an additional ring meta data structure (former 31524 commit) In addition, it contains these fixes: - fixed a bunch of scan addresses (former 33969 commit) - increased size of ring decompression buffer (former 32796 commit) - zero byte ring padding up to 4 byte boundaries for SBE (former 33969 commit) - added dbgl control of error trace after call to get_ring_from_sbe_image - added enumerated ringId to the RS4v3 header - fixed incorrect scan address masks for even/odd EX RS4 v3 ring handling in MVPD accessor functions - fixed incorrect scan address region bits for odd EX rings translated from RS4 v2 to RS4 v3 in MVPD accessor functions Change-Id: I8fd00760e6ac2b3760994d1ca819fffbf35188ca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33993 Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34058 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>
* Reverting RS4v3 changesSachin Gupta2016-12-196-927/+869
| | | | | | | | | | | | | | | | | Revert "TOR reduction: Ditching DeltaRingLayout and RingLayout_t" This reverts commit 0ea8cddae37eb5186571e6c66469dad694de9c5a. Revert "Shrinking RS4 header" This reverts commit c1a7c86e800e8bb38f6549b443bb4801feb4f1e3. Change-Id: I7832e23491ea34f86db3cbdc5d25c98e3a9f1821 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33985 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33992 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: Christian R. Geddes <crgeddes@us.ibm.com>
* TOR reduction: Ditching DeltaRingLayout and RingLayout_tClaus Michael Olsen2016-12-193-382/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Complete overhaul of get_ring_from_sbe_image for improved clarity in effort to remove anything related to 8Byte RingLayout header, incl built-in and hardcoded assumptions. - Functional overhaul of get_ring_from_cme/sgpe_image, but only slight improvement in clarity. Also removed any traces of RingLayout assumptions. (Beautification of these functions will be in separate commit.) - Overhaul of tor_append_ring for clarity and improved clarity elsewhere where PUT_SINGLE_RING is used. - Updated p9_tor.C|H in order to expose version 2 of TOR API, which eliminates the 8B RingLayout structure, in order to work with Cronus which currently assumes, due to pulling in the p9_tor.H header file, that RingLayout structure is being used. - Updated p9_scan_compression.C to remove most zero padding at end of compressed ring (i.e., merged commit 32647 into this commit in order to be able to merge into gerrit). - The scan compression code used to pad the compressed ring at its end with zeros up to the next 8 byte boundary. For P9, no padding is needed. Most of this padding is now removed, just keeping a padding to the next 2 byte boundary for convenience. Removal of these padding bytes saves about 400 bytes in SEEPROM. - Added p9_ipl_build.C because it assumes an 8B alignment of the SBE ring block which is no longer the case with RS4v3. We've been lucky so far in our tests. Change-Id: I08edef8e53302dab765a73dc4d6ca68cd8dce440 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31524 Reviewed-by: Richard J. Knight <rjknight@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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32269 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: Christian R. Geddes <crgeddes@us.ibm.com>
* Shrinking RS4 headerMartin Peschke2016-12-194-487/+613
| | | | | | | | | | | | | | | | | | | | | | | Implements a new 12 byte CompressedScanData structure with less and refined members in order to save space for rings. Used test tool to verify correctness of p9_scan_compression changes. Used p9_xip_tool dissect to verify .rings of HW Image with new RS4 header. Change-Id: I68b3044b62908d013778f87343798ebaa6829923 RTC:158078 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31551 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: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31969 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: Christian R. Geddes <crgeddes@us.ibm.com>
* xip_customize: Four fixes for relieving Seeprom space constraint.Claus Michael Olsen2016-12-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Now calculating correct value of MAX_SEEPROM_IMAGE_SIZE. 2) Now returning error RC!=0 whenever image size exceeds Seeprom space. 3) Now allowing for temporarily exceeding max image size during customization of Vpd rings since we know with certain that the image will loose three sections (toc, fixed_toc and strings) as the very last step in xip_customize. 4) Now extracting platform dependent value of MAX_SBE_SEEPROM_SIZE to allow Cronus to use larger image size than can fit into SBE Seeprom. 5) Updated wrapper as well to illustrate the new rule how to call xip_customize, namely by supplying buffer sizes greater than MAX_SEEPROM_IMAGE_SIZE, e.g. using MAX_SBE_SEEPROM_SIZE instead. Please see xip_customize.H for new API rules. Change-Id: Ia87fc285378ec15ab53d171757fde33b5a7f3399 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33359 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33364 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: Christian R. Geddes <crgeddes@us.ibm.com>
* p9_tor: Fix the Instance ring tor offset in TOR layoutPrasad Bg Ranganath2016-12-141-26/+33
| | | | | | | | | | | | | | | | | | | | | | MikeO: - Updated the fix in anticipation of 31524+31551 merge conflicts and changed variable name accordingly from ringTorofset to acc_offset. - Also updated the corresponding CME and SGPE functions. Change-Id: I8c9f3bc3ff07a9283771d7ea71ce30156b914acb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33662 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 Gloff <mgloff@us.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/33666 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>
* Fixed offsets of newly added cache rings (ex_l2_fure1,ex_l3_fure1)Prasad Bg Ranganath2016-11-141-43/+43
| | | | | | | | | | | | | | | | Change-Id: Iaa6c1d042baa5449c4c7d572965f327a3866589a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32531 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32533 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>
* Ring support (Cronus safe): Adding ex_l2/l3_fure_1 to RingID list.Claus Michael Olsen2016-11-143-47/+60
| | | | | | | | | | | | | | | | | This commit simply adds the rings at the very end of the RingID list in p9_ring_id.h in an attempt to not interfere with the precompiled built-in version of this header file in Cronus. Change-Id: I3f7b5db5835688adddf060910a2af88bb9b477ba Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32272 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: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32280 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* TOR API: Introducing API to expose TOR version and wrappers.Claus Michael Olsen2016-11-142-0/+19
| | | | | | | | | | | | | Change-Id: Id13f51cde14a4f0f7d59c1bb09d26d8d65342b05 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32074 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: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32078 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_tor: l_ prefix for local variable instead of iv_Martin Peschke2016-11-141-27/+27
| | | | | | | | | | | | | | | | Naming didn't follow the rules and thereby got in my way when I was searching for something else. Change-Id: I185b1531a554daf6cc8dbffb46e42cb17f75677d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31773 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31775 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Removing three pibnet rings.Claus Michael Olsen2016-11-142-8/+3
| | | | | | | | | | | | | Change-Id: I08b685d0bf80b4e0e235917748ed96b45e933f81 Original-Change-Id: I44fdbb857ca1fe578e097ce3871b3d65f608a6d9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31739 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-on: http://ralgit01.raleigh.ibm.com/gerrit1/32279 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* ring_apply: Minor cleanupsClaus Michael Olsen2016-11-051-0/+1
| | | | | | | | | | | | | Change-Id: I95b33b5472ac6d18b266b5c3868d0da92e9f0f39 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32130 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32136 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Removing three pibnet rings.Claus Michael Olsen2016-11-012-21/+15
| | | | | | | | | | | | | Change-Id: I44fdbb857ca1fe578e097ce3871b3d65f608a6d9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31739 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-on: http://ralgit01.raleigh.ibm.com/gerrit1/31879 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>
* Cleanup: TOR API cleaning upClaus Michael Olsen2016-10-205-479/+493
| | | | | | | | | | | | | | | | | | | | | - Catching all abrupt ending if-elseif endings. - Updated all API comments in *.C file. - Making local functions static. - Accommodated additional six EX rings in tor_get_block_of_rings(CPLT). - Now limiting max DD levels to 20 to prevent infinite trace out loop. - Fixing bunch of inconsistent error return code situations. Change-Id: I516c9554836b32a7717ef626afcba0cf4c03d6bf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30798 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Joachim Fenkes <fenkes@de.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.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/30840 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Cleanup: Getting rid of FIXED_RING_BUF_SIZE (RTC156706).Claus Michael Olsen2016-10-181-1/+0
| | | | | | | | | | | | | Change-Id: I5701bf15e064144d0106eeb921819424777116dc Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31355 Reviewed-by: Martin Gloff <mgloff@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: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31366 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Cleanup: ring_apply and associated routinesClaus Michael Olsen2016-10-174-222/+219
| | | | | | | | | | | | | | | | | | | Key cleanup items: - Eliminated ringNameImg in GenRingIdList - Getting rid of FIXED_RING_BUF_SIZE, but not until accommodation on HB side to switch to MAX_RING_BUF_SIZE. Change-Id: If23bd5f190b9f83f43805fc618ffa1f54ea40d44 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31118 Reviewed-by: Martin Gloff <mgloff@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: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31193 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* hcode_image_build support: Added member to CHIPLET_DATA struct toClaus Michael Olsen2016-10-141-19/+39
| | | | | | | | | | | | | | | | | | provide number of instance rings with different scan addresses per chiplet basis. This will only affect EQ rings since each EX ring has two different rings. Change-Id: I5d7149e35e420c28e01de7e967d6bb0ec7eee00f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31172 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: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31195 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>
* Cleanup: Minor cleanup in p9_ring_identification.HClaus Michael Olsen2016-10-141-1/+0
| | | | | | | | | | | | | | Change-Id: Ia0eddaeb69c25115fe16089ee0734e0d93ecd7dd Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31109 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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/31113 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>
* TOR API support for 12 EX instance rings in tor_get_block_of_rings whenClaus Michael Olsen2016-10-141-0/+6
| | | | | | | | | | | | | | | | | requesting a chiplet block of rings. Change-Id: I36427b9b74e2d34416ab0e50c277c08beec2080f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30704 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: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30819 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>
* adjust n3_fure address to match engd update (removal of bridge)Joe McGill2016-10-121-1/+1
| | | | | | | | | | | | | Change-Id: Ib0f01181bfea432a33efd9f3128c07edda24fc87 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30972 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30974 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_ring_identification.C updated to use RingID enum names instead ofClaus Michael Olsen2016-10-123-115/+146
| | | | | | | | | | | | | | | | hardcoded numbers. Also, made some cosmetic changes to p9_ringId.C. Change-Id: If5ec8074aeaf835137aaf8761de45808713dd252 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30368 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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-on: http://ralgit01.raleigh.ibm.com/gerrit1/30890 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Support for EX VPD instance rings.Claus Michael Olsen2016-09-292-7/+6
| | | | | | | | | | | | | | | | | Change-Id: I43090f95b6ee2729549d962c1af6827d59b4277c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30458 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> Dev-Ready: Matt K. Light <mklight@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Benjamin Gass <bgass@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30461 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>
* xip_customize: Added CME/SGPE support.Claus Michael Olsen2016-09-241-20/+21
| | | | | | | | | | | | | | | | | Includes TOR API fix for improper BE->LE conversion of ddLevelOffset from HW image. Includes cleanup and renaming of local variables around above section to improve clarity of code. Change-Id: If37518ed24b3431241a2aa9456e709d91ecea696 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28935 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@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/28936 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
* xip_customize: More removal of trace output noise for Cronus.Claus Michael Olsen2016-09-081-19/+67
| | | | | | | | | | | | Change-Id: I67153e2e00c2f09b407020fb14039b1fab2cf794 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29286 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-on: http://ralgit01.raleigh.ibm.com/gerrit1/29294 Reviewed-by: Hostboot Team <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>
* Fixing name by eq_ana_bndy_l3dcc_bucket_26Girisankar Paulraj2016-09-021-1/+1
| | | | | | | | | | | | | | | | eq_ana_bndy_bucket_26 ring name is not correct. there is typo. new name is eq_ana_bndy_l3dcc_bucket_26. Change-Id: I8a223b7241c155900bdeb478a1e8578eb2f0373f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28780 Tested-by: Jenkins Server <pfd-jenkins+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: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28830 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Improved printing statementGirisankar Paulraj2016-09-023-42/+204
| | | | | | | | | | | | | | | | | | Moving MY_INF under cotrol of i_dbgl params Improved io_ringBlockSize size checking condition Change-Id: Ieecbd27fe7ea5c4d7422a16764981e612025e042 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28891 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28892 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>
* Include endian header file in p9_scan_compression.CMarty Gloff2016-09-021-0/+1
| | | | | | | | | | | | | | | The p9_scan_compression code uses htobe32() and htobe64() calls. It needs to include the endian.h header file to compile in the Hostboot environment. Change-Id: I2a50641e08ac3e04276fa348853169a69784fec5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29093 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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/29120 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
* p9_scan_compression: code structure cleanupsMartin Peschke2016-09-021-152/+82
| | | | | | | | | | | | | Mostly simplification of some convoluted 'do {} while(0)'. Change-Id: I565edfd515dae7e5d9a9eee9e1ee6284939ecc0e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26605 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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/29119 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 decompressionMartin Peschke2016-09-021-13/+27
| | | | | | | | | | | | | | | | This adds RS4v2 support to decompression. Compression was already RS4v2-ready. Change-Id: If9df068740451adb72244053db258084795b7c7d Original-Change-Id: I9621b0f72827924734953fd7fd98f861506bd8e0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25984 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@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/29118 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 decompression, preparatory renamingMartin Peschke2016-09-021-24/+24
| | | | | | | | | | | | | | | | This patch just renames some variables so that additions for the upcoming RS4v2 enhancement fit in more nicely. Change-Id: I1c68c0a20fa54c57dfb0355b69e5a847931b6b22 Original-Change-Id: I005da883c017f21ce3e39990957f5b42f801ad8a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26599 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@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/29117 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 compression documentation fixesMartin Peschke2016-09-021-37/+80
| | | | | | | | | | | | | | Fixing RS4v2 documentation changes and a couple a wrong assumptions in compression routine. Change-Id: Ie6e23191ff76a323aa8b39e299f46802b7f9c251 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25981 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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/29116 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: debug macro fixesMartin Peschke2016-09-021-6/+6
| | | | | | | | | | | | | | This makes the debug macros work by fixing compile warnings and errors. Change-Id: I012e89f2bdc165f08448a42785acb268f6f05507 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26530 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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/29115 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 compression version fixMartin Peschke2016-09-021-2/+2
| | | | | | | | | | | | | | | | | | | The version number contained inside the RS4 magic value should be bumped up from 1 to 2. Users need to be able to distinguish both versions, because some encoded nibbles have a different meaning. Change-Id: I75d15ad7c61a064f624851a39d8606739f023931 Original-Change-Id: I593b8b6991f4646a7237e9f4170433f5f0aa813b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26532 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: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29114 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 compression error return fixMartin Peschke2016-09-021-15/+23
| | | | | | | | | | | | | | | | | | | Instead of calling exit() on errors and instead of terminating a calling binary, it's better to return a defined RS4 return code. This allows calling code to handle these errors, e.g. by dumping debug information. Change-Id: Ia38d18a6e2fcd64374a4d7fae96214a8cf7b01d8 Original-Change-Id: I49242b6fe880dc8f5adbc0951a1667b891c8cf22 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26528 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@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/29113 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: RS4v2 compression size fixMartin Peschke2016-09-021-18/+69
| | | | | | | | | | | | | | | | | RS4 v2 has a worse worst case compression than v1. Hence the calculation of worst case memory consumption for compression needs to be updated. Otherwise compression might fail for some input data. Change-Id: I7f3c868d62929b8c0ba95d0e94875e94aec98cfb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26525 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Peng Fei Gou <shgoupf@cn.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/29112 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Removed printf statementGirisankar Paulraj2016-09-021-1/+0
| | | | | | | | | | | | | | | | Jenkins throws a lot of printf statement on no of bytes and nibbles. this info is unnesscary for jenkins run Change-Id: I15b750e4bfa8745f0dfe3bb3d51077512284edaa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25933 Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Tested-by: Jenkins Server Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29111 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding RS4v2 and ring_apply support for handling overrides ringsGirisankar Paulraj2016-09-021-39/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >Copied bin.srd data into initRings and alterRings for standard ring section generation. >converted fixed numbers into definition >New Compression technique added >added override support for file handling. >Modified rs4_compress parameter definition >Removed INSTANCE_REF_ID >> implemented --type base or overrides for better user friendly >> modified makefile for above parameter Completed RS4 v2 encoding algorithm in __rs4_compress(). Fixed various bugs in ring_apply that caused data in last nibble of alterRing (*.bitsModified) buffer to get messed up. Also, added check for illegal 1s in data where care has 0 in __rs4_comress(). Updated help menu. rebase on top of 25379 and merged delta changes Change-Id: I724e76027c48804bdd9e27ba86931728e5b37f59 Original-Change-Id: I4f2b6a8b87a0106878028a5ca650bebb187d707b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24788 Tested-by: Hostboot CI Tested-by: Jenkins Server 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/29110 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>
* Adding CME/SGPE ppe get_single_ring supportGirisankar Paulraj2016-09-022-29/+70
| | | | | | | | | | | | | | | | get_ring_from_sgpe_image and get_ring_from_cme_image function support only HW_image get ring. add condition for support CME and SGPE ppe type get ring functionality. Now, Extracted CME and SGPE ppe ring passed through tor_access_ring. So,User can extract single ring container from CME and SGPE ppe type rings block. Change-Id: I198976deac00e4d0237be14933dded1c35131931 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28299 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28302 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_scan_compression: cleaning up endianess conversionMartin Peschke2016-09-021-66/+16
| | | | | | | | | | | | | | | | Use system header endian.h routines to do endianess conversion instead of own routines. Change-Id: I41da2651603275a0068d5f140689926f66d7888f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24901 Tested-by: Jenkins Server Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.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/29109 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* move production code from tools/imageProcs to chips/p9/utils/imageProcsMartin Peschke2016-09-022-0/+860
| | | | | | | | | | | | | | Change-Id: Icffd354f318ac2c5103a8a16aa5ec1162d7dd480 Original-Change-Id: I516c770ec7fd6d1fb2f8f7933a2579038c13ce6d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24786 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@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/29108 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* p9_xip_customize: Add #G and #R rings to the seeprom image from VPDPrachi Gupta2016-08-303-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | | xip_customize supports the following: - Updates mailbox attributes in Seeprom image - Appends Mvpd #G and #R rings (but excl #G GPTR) into .rings ring section. - Shuffles around .hbbl, .overrides and .rings so that .rings is the last section in the Seeprom image as otherwise we can't reappend .rings section after updating it (since it wasn't last to begin with). - Honors of the bootCoreMask to append Vpd rings only for EC/EX/EQs associated with the ECs as indicated in the bootCoreMask. - Removes .toc, .fixedtoc and .strings in the Seeprom image. - Captures FFDC (100% complete). - Detects potential image overflow condition. Change-Id: I68bd2f39e3c407ea196f2228bdd31472a00a4c9e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26150 Tested-by: Jenkins Server <pfd-jenkins+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/27259 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding tor_append_ring APIGirisankar Paulraj2016-08-122-236/+626
| | | | | | | | | | | | | | | | | | | | | declared tor_append_ring API. Added new image magic parameter for cme and spge tor_get_ring function for supporting tor_append_ring API. Added new return code for tor_append_ring. Added code for tor_append_ring function. TOR starting address. Earlier it was referred from starting ring section starting address Change-Id: Ia07dc52dc3fe9e8d2c9acc67c7822357e559f45c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25454 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> 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/25457 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_tor / p9_ringId: fixing layering violationMartin Peschke2016-08-123-29/+28
| | | | | | | | | | | | | | | | | | | p9_tor builds on p9_ringId, not the other way around. Hence p9_ringId should not include p9_tor. Resolving by moving a definition and fixing some includes. Change-Id: Ibfe4d7c0c28838a836bf6ee5fc704ff515827c72 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27918 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: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: GIRISANKAR PAULRAJ <gpaulraj@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28059 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_ringId / p9_ring_identification: cleanup extern declarationsMartin Peschke2016-08-124-138/+132
| | | | | | | | | | | | | | | | | | | | | | | | | There is whole bunch of extern declarations in p9_ring_identification.H which refer to stuff that is actually declared in p9_ringId.C. So the right place for these extern declaration is p9_ringId.H. Moving these allows to move a couple of structure definitions, which belong to p9_ringId as well. Besides an unused structure definition is removed entirely. Having these things fall into the right places has enabled cleaning up a few include statements. This makes sure that other code doesn't pick up stuff that it doesn't need. Change-Id: Ic6e8748b8b56653859d1e146ea44e19b7243fd23 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27909 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: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.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/27911 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* p9_ring_id.h: move ring IDs to plain C header fileMartin Peschke2016-08-124-304/+334
| | | | | | | | | | | | | | | | | | | | | | The enum RingID is moved from p9_ringId.H to p9_ring_id.h. Now the latter has minimum content to support manufacturing. Its plain C content is compatible with wafer test Sun SC4.0 18 Oct 1995 C++ 4.1 . Besides HWP usually content themselves with p9_ring_id.h. Change-Id: I2d6cffb33a8c16a1083a02c6c04d4be7078480d2 RTC: 158310 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27682 Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Joseph E. Dery <dery@us.ibm.com> Dev-Ready: Joseph E. Dery <dery@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@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: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27684 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* TOR API OVERRIDE supportGirisankar Paulraj2016-08-071-3/+23
| | | | | | | | | | | | | | | | | | iv_num_variant changed as 1 for override function and added condition as work only on seeprom image override section. Added ringVaraint suppot to accommudate latest p9_ring_apply changes Change-Id: I1bf149a65a625a181246fec9a6d17fe38218c9a0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27706 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: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27708 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud