summaryrefslogtreecommitdiffstats
path: root/procedures/p9/cleanup_pcie.cpp
Commit message (Collapse)AuthorAgeFilesLines
* cleanupPCIE: Catch file_error::Open exceptionAnthony Wilson2019-04-011-13/+22
| | | | | | | | | | | | | | | | | The bus that is read may only show up at certain times, such as during poweron. It is not a fatal error condition if the bus is not available. So we will let it get logged to the journal, but not let it get committed in this case. Tested: It was an intermittent failure, but ran poweron/poweroff a few times and didn't see the error pop up again. Resolves: openbmc/openbmc#3510 Change-Id: I47629e5f27fb847aa0094f0757b1988f8e645ebc Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* Don't create errors in cleanupPCIEMatt Spinler2019-02-051-1/+10
| | | | | | | | | | This code always just runs in the power off path, and at times it may be called when power is already off. In that case the FSI access would fail since the processor won't have power, so just catch the error and continue on. Change-Id: Ic02b17875763b0540edaaec47ee19846f305db72 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* p9: cleanupPcie: Run procedure on all CPUsAnthony Wilson2018-11-081-3/+5
| | | | | | | | Procedure should be run on all of the master and slave CPUs. Change-Id: I323519b059cfbe14ccd6145e22b1bdae4fd3d476 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* p9: cleanupPcie: Correct line endingsAnthony Wilson2018-11-071-51/+51
| | | | | Change-Id: Ia8c516ca1a4ceca46a88c9de72cd765e3b2884c2 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* add .clang-formatPatrick Venture2018-11-021-3/+4
| | | | | | | Add .clang-format for automatic style. Change-Id: I6d240009370179b5b8f1f646b0476a059ec6aa85 Signed-off-by: Patrick Venture <venture@google.com>
* s/copyright char/(C)/g to make compiler happyPatrick Venture2018-11-021-2/+2
| | | | | | | Compiler complaining about the copyright characters. Change-Id: I6730a50a668899a33e9dfcc4accb67ee207a3f08 Signed-off-by: Patrick Venture <venture@google.com>
* Add cleanupPcie to openpower-proc-controlAnthony Wilson2018-10-261-0/+50
This disables the drivers and receiver in the PCIE root control 1 register as follows: BIT NAME VALUE 19 TP_RI_DC_B 0b0 20 TP_DI1_DC_B 0b0 21 TP_DI2_DC_B 0b0 This should be run on a power off. Change-Id: I6e027260f78a3fc451a45832f6f9bcf9afc8c3b9 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
OpenPOWER on IntegriCloud