diff options
author | Anthony Wilson <wilsonan@us.ibm.com> | 2018-11-07 23:00:21 -0600 |
---|---|---|
committer | Anthony P. Wilson <wilsonan@us.ibm.com> | 2018-11-08 14:39:58 +0000 |
commit | 5970484133ac208bd3675697ac120901ea6654a7 (patch) | |
tree | 4164a12f52765d542c3ea61be1ec70ff7f92f7f4 | |
parent | 7052f71ea6be053a81e6b0a6e6f06731319f3510 (diff) | |
download | openpower-proc-control-5970484133ac208bd3675697ac120901ea6654a7.tar.gz openpower-proc-control-5970484133ac208bd3675697ac120901ea6654a7.zip |
p9: cleanupPcie: Run procedure on all CPUs
Procedure should be run on all of the master and
slave CPUs.
Change-Id: I323519b059cfbe14ccd6145e22b1bdae4fd3d476
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
-rw-r--r-- | procedures/p9/cleanup_pcie.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/procedures/p9/cleanup_pcie.cpp b/procedures/p9/cleanup_pcie.cpp index cb58f22..179d70c 100644 --- a/procedures/p9/cleanup_pcie.cpp +++ b/procedures/p9/cleanup_pcie.cpp @@ -37,12 +37,14 @@ using namespace openpower::targeting; void cleanupPcie() { Targeting targets; - const auto& master = *(targets.begin()); log<level::INFO>("Running P9 procedure cleanupPcie"); - // Disable the PCIE drivers and receiver - writeReg(master, P9_ROOT_CTRL1_CLEAR, 0x00001C00); + // Disable the PCIE drivers and receiver on all CPUs + for (const auto& target : targets) + { + writeReg(target, P9_ROOT_CTRL1_CLEAR, 0x00001C00); + } } REGISTER_PROCEDURE("cleanupPcie", cleanupPcie); |