summaryrefslogtreecommitdiffstats
path: root/src/boot
Commit message (Collapse)AuthorAgeFilesLines
* treewide: use print function instead of statementMarty E. Plummer2020-01-151-15/+16
| | | | | | | | | | | | | | | | | | | | This enables better compat between python2.7 and python3.x Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: File: "sbe/src/build/security/securityRegListGen.py", line 64 -v, --verbose enable verbose traces" ^ SyntaxError: Missing parentheses in call to 'print' Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Change-Id: Id617f54096fca5cc5fcd829767595a85350e343d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89618 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* sbeCompression: use floor divisionMarty E. Plummer2020-01-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | python2 returns an integer when both division operands are integers. python3 will return a float in this situation. Use the floor division operator (//) which returns an integer on both versions. Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: Traceback (most recent call last): File "sbe/src/boot/sbeCompression.py", line 198, in <module> main( sys.argv ) File "sbe/src/boot/sbeCompression.py", line 181, in main compress(imagePath + "/" + image + ".base", imagePath + "/" + image + ".base.compressed") File "sbe/src/boot/sbeCompression.py", line 58, in compress for i in range(0, os.stat(inputFile).st_size / 4 ): TypeError: 'float' object cannot be interpreted as an integer Change-Id: Ibd63e9d2739eb6cf23d79d739237537e05932b15 Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89371 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* sbeCompression: add a python3 compatible fallbackMarty E. Plummer2020-01-091-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In python3.x dict.items() does (more or less) what dict.iteritems() did in python2.x, but dict.iteritems() was removed in python3.x entirely. Further, dict.items() in python2.7 is less efficient than dict.iteritems(), so we attempt to use dict.iteritems(), and if that throws an AttributeError, (which would happen on python3.x), fall back to dict.items(). Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: Traceback (most recent call last): File "sbe/src/boot/sbeCompress ion.py", line 198, in <module> main( sys.argv ) File "sbe/src/boot/sbeCompression.py", line 181, in main compress(imagePath + "/" + image + ".base", imagePath + "/" + image + ".base.compressed") File "sbe/src/boot/sbeCompression.py", line 72, in compress sortedList = sorted(instDict.iteritems(), key=operator.itemgetter(1), reverse = True) AttributeError: 'dict' object has no attribute 'iteritems' Change-Id: Iea3109cb51266161629d6e09e79af63af0bbd08c Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Signed-off-by: vinaybs6 <vinaybs6@in.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89370 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* Fix for race condition while copying "p9_xip_tool"kswaroop2019-04-291-12/+16
| | | | | | | | Change-Id: Ia204d6e0e35f862db02210907e3f1819850cc930 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75868 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* PIBMEM only imagekswaroop2019-02-211-1/+3
| | | | | | | | | | | | pibmem only image can be built for axone with the following command. 'make axone img=pibmem' Change-Id: I2daa352c54aa7ca5483f0c9f43b5a5de2d2bb115 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71130 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* L1 loader Axone Pibmem repair parseRaja Das2019-02-051-4/+59
| | | | | | | | | | | | | | | - Added a check if Pib repr section is not updated, simply skip parsing pib repr section and continue. Change-Id: I79ead4116c7633e0e37a160304578e978bc407c9 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67336 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: Anusha Reddy Rangareddygari <anusrang@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sunil Kumar <skumar8j@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* Removed dual compilation of pibmem_repair.SRaja Das2018-11-281-6/+0
| | | | | | | | | | | Because of this, pibmem_repair object was getting added to seeprom space twice. Change-Id: I69aa286685208fdd58683676b1139ca89a82e4e0 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69004 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Axone tp_chiplet_init sequence in bootRaja Das2018-10-011-29/+90
| | | | | | | | | | | | | | | - Initial steps of SBE - pibmem repair (to be added later) - Clock start sequence - Set pcb to pcb path Change-Id: I71b13380a6d22944625b3580583901bcf74a8279 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65273 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Project specific boot handlingspashabk-in2018-08-235-12/+88
| | | | | | | | | | | Macro based project config for pibmem repair RTC: 187456 Change-Id: Ibea93f343d1c63cdf6199cd89b8433b4f52bbf53 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/50762 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Handle hreset of SBEspashabk-in2018-06-011-1/+23
| | | | | | | | | | | | | | Figure out hreset from l1 loader, and if it is hreset avoid l2 loader and instead jump to kernel boot. In kernel boot - avoid contructor calls and any intialization RTC: 165477 Change-Id: Ia10c83dd7c15fb5115964cba315fbedfe10a636e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57246 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Removal of argparse module dependency in compressionspashabk-in2017-07-181-9/+29
| | | | | | | | Change-Id: Id7c5d0e644477e33581b70fd909cc4c3878c9e73 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43205 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Sbe Compression DecompressionSunil Kumar2017-07-073-9/+307
| | | | | | | Change-Id: I8eb691ba7b28a4c7347040d3da5c16c01d5b9697 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39225 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* OTPROM updatesAnusha Reddy Rangareddygari2017-06-081-2/+14
| | | | | | | | | | | | | | | * To check if SBE started booting from OTP OR NOT * Reg 2809 bits 30:31 set to '01' Change-Id: If89fa1a6748e2cd24ac7634535fefdff533922de Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39701 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com>
* OTPROM image for DD2spashabk-in2017-04-181-3/+28
| | | | | | | | | Change-Id: Id51f7d43b766f326af2a25ddce178e9b899ac929 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35783 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
* Support to show boot progress using message registerSachin Gupta2017-04-072-1/+9
| | | | | | | | | | | Change-Id: I891c8906f2445f336c4a4eb3765b676b3bf06f8e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38870 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
* DD2 image infrastructurespashabk-in2017-02-031-6/+6
| | | | | | | | | | Change-Id: Iacd98b961f87b805fab788f004d87880c4f5f7e0 cmvc-req:1013262 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34241 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
* Initialise empty section of l1 loaderSachin Gupta2017-01-191-3/+24
| | | | | | | | | | | | We have reserved 512 bytes for L1 loader. If size of L1 loader is less than 512 bytes, we want to zero fill rest of areat. That is required to ensure that that there is no are of PIBMEM which is not initalize. Change-Id: I85a9490540472aaee6c671bb317fb53f147ffc32 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34937 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Otprom changesSunil.Kumar2016-10-112-57/+8162
| | | | | | | | Change-Id: I96c82731ebf63e5d3698ac3d4b807eece903d65b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30463 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Move OTPROM disassembly files in images directoryShakeeb2016-10-031-5/+5
| | | | | | | | Change-Id: I4937cfc80d8dbf3aead69ac686b93e39c7ebec26 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30394 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Update file headersSachin Gupta2016-09-162-0/+2
| | | | | | | | Change-Id: Icdd7460d8e3213f9bbd3d52e7825242bc59fc9e9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29825 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Update function names as per the file nameShakeeb2016-09-135-16/+20
| | | | | | | | | | | Change-Id: I16e38bf77754f36a11f8e4245729ca0fc65ecdcf RTC:160207 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29475 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
* SBE code restructure: Image directory setupShakeeb2016-08-301-5/+5
| | | | | | | | Change-Id: I6305135b930d12ab933e5ddfc946b047ebba3f49 RTC:159709 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28902 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* SBE code restructure: Build directory setupShakeeb2016-08-301-5/+6
| | | | | | | | | | Change-Id: I5727522fe885260dde54a94b9ae37fd1382a76ff RTC:159709 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28888 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* SBE code restructure: sbe -> src renameShakeeb2016-08-307-0/+587
Change-Id: I6e4378d0e71a00ed2b239658d43f180df2a9b748 RTC:159709 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28875 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
OpenPOWER on IntegriCloud