summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C
diff options
context:
space:
mode:
authorCaleb Palmer <cnpalmer@us.ibm.com>2018-07-06 15:58:10 -0500
committerZane C. Shelley <zshelle@us.ibm.com>2018-08-21 15:34:17 -0500
commit52093c412c62b30efe47a03efcce4b6badefd4f2 (patch)
tree4849eeb7aaa22816e60fc1e1d62f598ade2c9630 /src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C
parent437807d50d4a3681af9d751a567d689f831b0903 (diff)
downloadblackbird-hostboot-52093c412c62b30efe47a03efcce4b6badefd4f2.tar.gz
blackbird-hostboot-52093c412c62b30efe47a03efcce4b6badefd4f2.zip
PRD: Add MemRowRepair class
Change-Id: Ia8200af1fc187b7b519c7bfa8bf260b93de4795c RTC: 196073 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63374 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64931 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>
Diffstat (limited to 'src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C')
-rw-r--r--src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C b/src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C
index 18e5cf14b..0e67c0df9 100644
--- a/src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C
+++ b/src/usr/diag/prdf/plat/mem/prdfMemDynDealloc.C
@@ -33,6 +33,7 @@
#include <prdfTrace.H>
#include <prdfPlatServices.H>
#include <prdfMemAddress.H>
+#include <prdfMemUtils.H>
//------------------------------------------------------------------------------
// Function Definitions
@@ -43,6 +44,7 @@ using namespace TARGETING;
namespace PRDF
{
using namespace PlatServices;
+using namespace MemUtils;
namespace MemDealloc
{
@@ -111,20 +113,6 @@ int32_t __getAddrConfig( ExtensibleChip * i_mcaChip, uint8_t i_dslct,
#undef PRDF_FUNC
}
-uint64_t __reverseBits( uint64_t i_val, uint64_t i_numBits )
-{
- uint64_t o_val = 0;
-
- for ( uint64_t i = 0; i < i_numBits; i++ )
- {
- o_val <<= 1;
- o_val |= i_val & 0x1;
- i_val >>= 1;
- }
-
- return o_val;
-}
-
uint64_t __maskBits( uint64_t i_val, uint64_t i_numBits )
{
uint64_t mask = (0xffffffffffffffffull >> i_numBits) << i_numBits;
@@ -396,8 +384,8 @@ int32_t __getPortAddr<TYPE_MCA>( ExtensibleChip * i_chip, MemAddr i_addr,
o_addr = 0;
// Local vars for address fields
- uint64_t col = __reverseBits(i_addr.getCol(), 7); // C9 C8 C7 C6 C5 C4 C3
- uint64_t row = __reverseBits(i_addr.getRow(), 18); // R17 R16 R15 .. R1 R0
+ uint64_t col = reverseBits(i_addr.getCol(), 7); // C9 C8 C7 C6 C5 C4 C3
+ uint64_t row = reverseBits(i_addr.getRow(), 18); // R17 R16 R15 .. R1 R0
uint64_t bnk = i_addr.getBank(); // BG0 BG1 B0 B1 B2
uint64_t srnk = i_addr.getRank().getSlave(); // S0 S1 S2
uint64_t mrnk = i_addr.getRank().getRankSlct(); // M0 M1
OpenPOWER on IntegriCloud