diff options
author | Alvin Wang <wangat@tw.ibm.com> | 2019-03-26 10:42:21 +0800 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-05-08 15:10:27 -0500 |
commit | d035a51f51ae137f24301cca137cf8bdd9d6d561 (patch) | |
tree | 6b5c8d2f4e7e22cc79cd3947c09c54fdf8d8853b /src/import/chips/p9/procedures/hwp/memory/lib/mcbist | |
parent | 58df73fd107419526422d2075e5085253a5202d2 (diff) | |
download | talos-hostboot-d035a51f51ae137f24301cca137cf8bdd9d6d561.tar.gz talos-hostboot-d035a51f51ae137f24301cca137cf8bdd9d6d561.zip |
Move kind library to generic
Change-Id: I3b5ce73bce01b36fa8faef7810002eecabbe6d35
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75003
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Dev-Ready: Alvin Wang <wangat@tw.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75056
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/mcbist')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C | 6 | ||||
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.H | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C index c5b43fce7..1b38ed539 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C +++ b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C @@ -307,7 +307,7 @@ const mss::states is_broadcast_capable(const fapi2::Target<fapi2::TARGET_TYPE_MC // 2) Check that all of the DIMM kinds are equal - if they are, then we can do broadcast mode const auto l_dimms = mss::find_targets<fapi2::TARGET_TYPE_DIMM>(i_target); - const auto l_dimm_kinds = mss::dimm::kind::vector(l_dimms); + const auto l_dimm_kinds = mss::dimm::kind<>::vector(l_dimms); const auto l_dimm_kind_check = is_broadcast_capable(l_dimm_kinds); // 3) if both 1/2 are true, then broadcastable, otherwise false @@ -329,7 +329,7 @@ fapi_try_exit: /// @param[in] i_target the target to effect /// @return l_capable - yes iff these vector of targets are broadcast capable /// -const mss::states is_broadcast_capable(const std::vector<mss::dimm::kind>& i_kinds) +const mss::states is_broadcast_capable(const std::vector<mss::dimm::kind<>>& i_kinds) { // If we don't have any DIMM kinds exit out if(i_kinds.size() == 0) @@ -345,7 +345,7 @@ const mss::states is_broadcast_capable(const std::vector<mss::dimm::kind>& i_kin // Now, find if we have any kinds that differ from our first kind // Note: starts on the next DIMM kind due to the fact that something always equals itself const auto l_kind_it = std::find_if(i_kinds.begin() + 1, - i_kinds.end(), [&l_expected_kind]( const mss::dimm::kind & i_rhs) -> bool + i_kinds.end(), [&l_expected_kind]( const mss::dimm::kind<>& i_rhs) -> bool { // If they're different, we found a DIMM that is differs return (l_expected_kind != i_rhs); diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.H b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.H index 33318c3e5..c7ff12314 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.H @@ -46,7 +46,7 @@ #include <lib/mc/port.H> #include <lib/utils/mss_nimbus_conversions.H> #include <lib/utils/bit_count.H> -#include <lib/dimm/kind.H> +#include <generic/memory/lib/utils/dimm/kind.H> #include <lib/mcbist/mcbist_traits.H> #include <generic/memory/lib/utils/num.H> #include <generic/memory/lib/utils/poll.H> @@ -101,7 +101,7 @@ const mss::states is_broadcast_capable(const std::vector<fapi2::Target<T>>& i_ta /// @param[in] i_target the target to effect /// @return o_capable - yes iff these vector of targets are broadcast capable /// -const mss::states is_broadcast_capable(const std::vector<mss::dimm::kind>& i_kinds); +const mss::states is_broadcast_capable(const std::vector<mss::dimm::kind<>>& i_kinds); /// |