summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/test/pnorddtest.H
Commit message (Collapse)AuthorAgeFilesLines
* pnor: Fall back to AST mbox transport if IPMI is unavailableAndrew Jeffery2018-10-101-9/+6
| | | | | | | | | | | | | Avoid a flag-day transition by allowing for old BMC releases. Eventually support for the AST mailbox will be removed and the indirection with it. Change-Id: Ic62ee6a0f2132583cba290098a52417d32eb772d Signed-off-by: Andrew Jeffery <andrewrj@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66122 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-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>
* pnor: mboxdd: Rename class to PnorMboxDDAndrew Jeffery2018-10-101-0/+1
| | | | | | | | | | | | | | The rename is in preparation for introducing the fallback code, which needs to know of both the IPMI and AST mailbox implementations. Change-Id: I32c3178ac978664f0dc6797c9ba76b6a13f71b21 Signed-off-by: Andrew Jeffery <andrewrj@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66121 Tested-by: Jenkins Server <pfd-jenkins+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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* pnor: ipmidd: Rename class to PnorIpmiDDAndrew Jeffery2018-10-101-0/+1
| | | | | | | | | | | | | | The rename is done in preparation for the fallback code, which needs to know of both the IPMI and AST mailbox implementations of the PNOR driver. Change-Id: Iabadb5a355f63ac72330094c842fb9c8f7afe77b Signed-off-by: Andrew Jeffery <andrewrj@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66120 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-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>
* pnor: Rename the SFC-based PnorDD class to PnorSfcDDAndrew Jeffery2018-10-101-1/+2
| | | | | | | | | | | | | Clarify which back-end implementation the driver is using. Change-Id: I26cee706a27e26e0f218da0eb5289592202a5baf Signed-off-by: Andrew Jeffery <andrewrj@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66119 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-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>
* pnor: Introduce an IPMI-based PNOR driver implementationAndrew Jeffery2018-10-101-3/+7
| | | | | | | | | | | | | | | | | | Similar to the AST MBOX implementation, the IPMI PNOR implementation negotiates the layout of the LPC FW space with the BMC, but using IPMI rather than the AST mailbox as a protocol transport. The same protocol is still used and has simply been adapted to the new interface. Note that currently the change of transport has had a 2-3x impact on boot performance. Optimisation is an ongoing effort. Change-Id: I7f838f5b5e88ac877a725386a33df58ee5e7213c Signed-off-by: Andrew Jeffery <andrewrj@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65942 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-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>
* pnor: Add AST Mailbox protocol supportBenjamin Herrenschmidt2017-05-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new alternative PnorDD that uses the Asped AST Mbox protocol as supported by OpenBMC. To enable this, you need these changes to the config: @@ -1,10 +1,12 @@ -# The Serial Flash Controller is the AST2400 BMC. -set SFC_IS_AST2500 +# We use BMC MBOX protocol for flash accesses +set PNORDD_IS_BMCMBOX +unset PNORDD_IS_SFC +unset SFC_IS_AST2500 unset SFC_IS_AST2400 unset BMC_DOES_SFC_INIT unset SFC_IS_IBM_DPSS -set ALLOW_MICRON_PNOR -set ALLOW_MACRONIX_PNOR +unset ALLOW_MICRON_PNOR +unset ALLOW_MACRONIX_PNOR Other systems need to set PNORDD_IS_SFC Change-Id: I8901288c98d8d0fce8c9a0fb31267f0001b2a731 Not-yet-signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> RTC: 170096 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39387 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@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> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Pnor DD Changes for AST2500Bill Hoffa2016-10-311-2/+2
| | | | | | | | | | | | | | | | - Created Common sfc_ast2X000 class for common functions - Modified sfc_ast2400 class to use common class - Added sfc_ast2500 class Change-Id: I27c7674b58e006801ae03aabd60fdcfa21f49e9c RTC: 161664 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30919 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> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* FFS Support for Bootloadercrgeddes2016-03-031-3/+42
| | | | | | | | | | | | | | | | | This commit moves functionality out of pnor_common.C and puts it in a new file pnor_utils.C this file will be shared with bootloader and hostboot code. Quite a few files were pulled apart in order to make includes easier across modules. These are lpc_const.H and pnor_const.H. bl_pnorAccess leverages the new pnor_utils.C file that will help the bootloader parse pnor TOC Change-Id: I740f6f8a707760756a261535e62e2d0a849324f8 RTC:134064 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/696 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Split out SFC logic and add support for AST2400Dan Crowell2014-10-141-655/+7
| | | | | | | | | | | | | | | | Refactored the PNOR device driver to pull all SFC-specific code into a new set of classes. Any time a new type of serial flash controller (SFC) is introduced, a new subclass should be created to support it. Also added the full support for the AST2400 BMC that is being used on Palmetto. Change-Id: I9cdbf9b48bbf94615a39804920e170a3142ec386 Origin: Google Shared Technology RTC: 97493 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13229 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add BMC Attr override supportStephen Cprek2014-09-151-5/+7
| | | | | | | | | Change-Id: I1a42fec21189c55c75e9073527867e4e95528794 RTC: 108376 CMVC-Corec: 931324 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11995 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Enable Test to Validate Alt Master's LPC connection to PNORMike Baiocchi2014-09-081-9/+11
| | | | | | | | | | | | | | | | This commit adds a new test during istep 9.2 where all possible Alternative Master's will have their LPC connection to PNOR tested. The test will be done by creating a unique PnorDD class and reading out the PNOR's TOC. This commit also updates the PnorDD class to use a non-MASTER_PROCESSOR_CHIP_TARGET_SENTINEL target. Change-Id: I7c141b0527a6f4d0ec5a702e9961ce686dd66a48 Backport: release-fips820 RTC: 87871 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11348 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* PNORDD Improvement to handle LPC Slave ErrorsMike Baiocchi2014-03-021-1/+127
| | | | | | | | | | | | | | | This commit contains improvements to PNORRP and PNORDD error callouts. It also includes looking for errors in the LPC slave status register and specifc errors in the SFC status register. It also adds a FFDC function that dumps registers and adds them to the error log. Change-Id: I5fee0a65063999d15fb3d9bbd4ca64fcc409de4d RTC: 62718 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8745 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Handle Multiple TOCs and removed side codeStephen Cprek2013-12-121-21/+20
| | | | | | | | | | | | | Also added Hostboot Base image version header Change-Id: I0fc878a48b9449e5d4875fd14525faefe01b1ace RTC: 34764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7276 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Re-enable PNORDD fake-pnor test casesAdam Muhle2012-09-071-74/+158
| | | | | | | | | | | | | Setup fake-pnor related test cases to malloc memory and treat as fake-pnor. This allows testing fake-pnor without requiring a reserved chunk of L3 to use as fake-pnor space. Change-Id: I24d7176b8ae7ff57839b1f5349be86d7d239ee58 RTC: 44938 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1557 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* PNOR Updates for VPOAdam Muhle2012-08-081-3/+6
| | | | | | | | | | | | | | | | Added some additional traces for VPO and a new vpoMode flag to cover some special cases in VPO. I chose to not use the real mode flag to avoid adding complication to the real code. RTC: 42487 Change-Id: Ib4f20bc27abb57e9f92d4679b4249d48dc43f505 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1450 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change PNORDD test cases to use test section of PNORAdam Muhle2012-07-111-20/+126
| | | | | | | | | | | | | | | Updated the PNOR Device Driver test cases to use a specially created test section of PNOR. The test cases will only run if the TEST section exists. Disabled the fake-pnor related test cases as the test section offset does not exist in the fake-pnor address space. Opened a story to fix this later. Change-Id: I1b5fd4989ee775c14034430226d9ffe844995f96 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1335 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Enable REAL PNOR DD test cases in the VENICE configurationAdam Muhle2012-06-261-32/+3
| | | | | | | | | Change-Id: I94c4d5d378f3c4f615e33af3bed6a04e4c55c145 RTC: 42625 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1203 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for Real PNOR in PNOR DDAdam Muhle2012-06-111-15/+60
| | | | | | | | | | | | Implemented support to access real PNOR. However, PNORDD will still use fake PNOR by default. Test cases to test the real pnor code. Change-Id: Ib05d00388831930655532339d3794d63da6b5b3a RTC: 35728 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1094 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Modify VPD modules to use real PNOR dataTerry J. Opie2012-06-081-23/+25
| | | | | | | | | | | | | | - MVPD and SPD - Move MVPD & SPD sections to sideless - Modify PNOR RP test to handle sideless data - Modify Base Scratch Space for PNOR tests Change-Id: Ia0f22c87f8bc3959324fa8347e191f2b47b4325c RTC: 35835 Depends-on: I9b907e795b7b56d3c09f13c376f86f1f2dc627ae Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/876 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Call the Sleep/Winkle build HWPMark Wenning2012-05-081-14/+15
| | | | | | | | | RTC: 39785 Change-Id: I0e07c0f2a7827ee33bc0488e993734157b1850e1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/910 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Disable PNOR Flat Model testing.Adam Muhle2012-05-021-12/+0
| | | | | | | | | | | | | | Since no one is actually using the temporary "FLAT" PNOR model in simics, I told the simics team the could default to the 'REAL' pnor model from now on. This was causing a test case to fail, so removing it for now. Story 35728 will add support for REAL PNOR and corresponding test cases. Change-Id: Ifb976dea227b4e996fedd37fb762ae1c5411aad8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/975 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support targeting code commonalityNick Bofferding2012-04-241-1/+1
| | | | | | | | | | | | | | | - Moved common targeting code to own subtrees - Updated many components with header file changes - Implemented abstract pointer class - Implemented Hostboot specific support for targeting commonality - Changed attribute VMM base address to 4 GB (From 3 GB) - Removed tabs, fixed > 80 character lines Change-Id: Ie5a6956670bfa4f262f7691b4f0ce5a20ed289fe RTC: 35569 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/909 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Automating creation of PNOR image with TOC and Section data.Adam Muhle2012-04-041-2/+2
| | | | | | | | | | | | | | | | | Wrote buildpnor.pl which builds PNOR image based on pnorLayout.xml file and input binary files. Setup makefiles to create PNOR if input files change and to handle make clean. Updated PNORRP to support new section offsets and new MVPD and DIMM VPD sections. Also updated PNORDD to use 4 MB of L3 Cache as fake-PNOR. Change-Id: Ic40670a45a53211a2414570d7fe5632e19bd44ed RTC: 35043 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/819 Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* RTC Story 36901 - Use LPC MemoryDan Crowell2012-02-281-16/+525
| | | | | | | | | | | | | | | | | | This includes a hack to allow access to our fake PNOR data via the ECCB scom registers. This hack will be removed once Simics provides a real ECCB model. Changes to INTR testcase were needed due to bugs exposed by the timing changes when enabling this new code. Note that the default operating mode will remain LPC_MEM because the current version of the ECCB model causes the IPL to take close to 10 minutes to complete. Change-Id: Icc236bffd52ba8214ec920f9a496adec138e54d9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/692 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* RTC Story 34595Dan Crowell2012-02-161-69/+193
| | | | | | | | | | | | | | | -Add first pass of LPC logic to PNOR driver -Add interfaces to handle future SPI changes -Remove support for MMRD/PMRW modes from driver and RP Code will still use our fake PNOR image in memory but it will exercise more of the full driver path by reading/writing in 32-bit chunks. Change-Id: I753c71926bd9e67d22ac06c3204a0daf8b2f222e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/637 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Hostboot-aware errl tool part 1.Monte Copeland2012-02-021-1/+0
| | | | | | | Change-Id: Ibe49dc935206775de032d397b2800a7b83208283 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/630 Tested-by: Jenkins Server Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
* Add copyright headers to all source files.Patrick Williams2011-08-241-0/+22
| | | | | | | Change-Id: I205f2409e56032cfc0aaf01d7e26d357f0b86373 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/277 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Move fakePNOR to 5MB, copy fakeext image to sandbox, load fakeext/TOC into ↵Adam Muhle2011-08-151-28/+83
| | | | | | | | | | phys_mem Change-Id: Ie9243f22f7afbfd2d3112fa17fe74999467d2dd6 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/251 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding fake PNOR Device Driver SupportAdam Muhle2011-08-031-0/+130
Change-Id: Ic434159183bc4dd91c8ba588730cda7e0766c6c0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/223 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud