diff options
author | Claus Michael Olsen <cmolsen@us.ibm.com> | 2016-12-02 16:31:29 -0600 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2016-12-19 12:02:45 -0500 |
commit | 4d083dc1a55a4a0ee56a34a3b46b7c0aa4171fca (patch) | |
tree | 362841c7e60c2f9666c3f52a891534549df07bc5 /src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H | |
parent | 09178e0e6a0f7be0197d881d9a8c18348c400bf9 (diff) | |
download | talos-hostboot-4d083dc1a55a4a0ee56a34a3b46b7c0aa4171fca.tar.gz talos-hostboot-4d083dc1a55a4a0ee56a34a3b46b7c0aa4171fca.zip |
xip_customize: Four fixes for relieving Seeprom space constraint.
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>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H index db5c25a87..1d9082f56 100644 --- a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H +++ b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.H @@ -56,7 +56,7 @@ extern "C" /// Out: HW image /// @param[in/out] io_imageSize => Size of image /// HB_SBE: -/// In: MAX_SEEPROM_IMAGE_SIZE +/// In: >=MAX_SBE_SEEPROM_SIZE /// Out: Final size /// RT_{CME,SGPE}: /// In: Size of HW image @@ -72,10 +72,10 @@ extern "C" /// Out: Updated .rings section /// @param[in/out] io_ringSectionBufSize => In: Size of ring section buffer /// HB_SBE: -/// In: MAX_SEEPROM_IMAGE_SIZE -/// Out: Unchanged +/// In: Input value of io_imageSize +/// Out: Final size /// RT_{CME,SGPE}: -/// In: MAX_SEEPROM_IMAGE_SIZE +/// In: >=MAX_SBE_SEEPROM_SIZE /// Out: Final size /// @param[in] i_sysPhase => ={HB_SBE, RT_CME, RT_SGPE} /// @param[in] i_modeBuild => ={IPL, REBUILD} |