summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClaus Michael Olsen <cmolsen@us.ibm.com>2016-12-02 16:31:29 -0600
committerspashabk-in <shakeebbk@in.ibm.com>2016-12-20 05:18:49 -0600
commit9178db086740ddfbb517e3e03963dd280d87706a (patch)
tree1b72360d290f0d56aac3c488c1f947a8727eee52 /src
parent79d9d591cac18da347c86a62a12ad5be35a60453 (diff)
downloadtalos-sbe-9178db086740ddfbb517e3e03963dd280d87706a.tar.gz
talos-sbe-9178db086740ddfbb517e3e03963dd280d87706a.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/33363 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
index a24f48df..18ae7cd2 100644
--- a/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
+++ b/src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
@@ -34,7 +34,9 @@
//
// Various image/ring buffer sizes. Must be used by all users (VBU, FSP, HB, HBI, Cronus)
//
-const uint32_t MAX_SEEPROM_IMAGE_SIZE = 4 * 56 * 1024 - 256; // Max Seeprom size, excl ECC bits (4 banks).
+const uint32_t MAX_SBE_SEEPROM_SIZE = 4 * 64 * 1024; // Max SBE Seeprom size
+const uint32_t MAX_SEEPROM_IMAGE_SIZE = 4 * ((64 * 1024) / 9 * 8) -
+ 256; // Max Seeprom image size, excl ECC bits (4 banks).
const uint32_t MAX_RT_IMAGE_SIZE = 1024 * 1024; // Max Runtime size.
const uint32_t MAX_RING_BUF_SIZE = 60000; // Max ring buffer size.
const uint32_t MAX_OVERRIDES_SIZE = 2 * 1024; // Max overrides section size.
OpenPOWER on IntegriCloud