summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/utils
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2017-06-27 12:16:16 -0500
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2018-02-01 16:15:19 -0600
commitb435efadcf4479761807f11e056fa40aeeb807e1 (patch)
tree43785d32acd123383176115b155444f9d0a88170 /import/chips/p9/utils
parent48e9530c57480a224f3e673cd79079ad009746ed (diff)
downloadtalos-hcode-b435efadcf4479761807f11e056fa40aeeb807e1.tar.gz
talos-hcode-b435efadcf4479761807f11e056fa40aeeb807e1.zip
p9_xip_tool support for DD level section parsing
- Currently supports only .overlays section. - Fixed an heap problem causing segmentation fault after repetitive use of malloc in rs4_decompress() and rs4_extract_cmsk(). Now allocating buffers locally and calling _rs4_decompress() and _rs4_extract_cmsk() instead so only have to use malloc once. - Fixed a bug in the usage of the ringBlockPtr which got moved away from pointing to its initially allocated buffer after the first CMSK ring is processed. - Even though malloc() can be used in a C++ context, we really should be using the new() operator. So, I replaced all malloc() and free() with new() and delete() instead in both p9_xip_tool.C and p9_scan_compression.C. Change-Id: I2da7509ed7aaa13345185dc07bce57f71c3740fd Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42531 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: 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>
Diffstat (limited to 'import/chips/p9/utils')
-rw-r--r--import/chips/p9/utils/imageProcs/p9_infrastruct_help.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H b/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
index 0316cee0..398f3f7b 100644
--- a/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
+++ b/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2016,2017 */
+/* COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -43,6 +43,10 @@ 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_RING_BUF_SIZE_TOOL = 200000; // Max ring buf size for tools.
+// (i.e., n3_fure.bin.srd is some
+// 346,000B x 4b/B = 1,384,000b =
+// 173,000B binary w 8b/B)
const uint32_t MAX_OVERRIDES_SIZE = 2 * 1024; // Max overrides section size.
const uint32_t MAX_HBBL_SIZE = 20 * 1024; // Max hbbl section size.
OpenPOWER on IntegriCloud