summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/common/plat')
-rw-r--r--src/usr/diag/prdf/common/plat/mem/prdfMemDbUtils.H22
-rw-r--r--src/usr/diag/prdf/common/plat/mem/prdfP9McaDataBundle.H5
2 files changed, 23 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/common/plat/mem/prdfMemDbUtils.H b/src/usr/diag/prdf/common/plat/mem/prdfMemDbUtils.H
index d792e8cdf..fc4ff7800 100644
--- a/src/usr/diag/prdf/common/plat/mem/prdfMemDbUtils.H
+++ b/src/usr/diag/prdf/common/plat/mem/prdfMemDbUtils.H
@@ -157,6 +157,28 @@ uint32_t handleTdEvent<TARGETING::TYPE_MBA>( ExtensibleChip * i_chip,
return getMbaDataBundle(i_chip)->getTdCtlr()->handleTdEvent( io_sc );
}
+/**
+ * @brief Generic wrapper to tell the TD controller to ban TPS on a rank.
+ * @param i_chip MCA or MBA.
+ * @param i_rank The target slave rank.
+ */
+template<TARGETING::TYPE T>
+void banTps( ExtensibleChip * i_chip, const MemRank & i_rank );
+
+template<> inline
+void banTps<TARGETING::TYPE_MCA>( ExtensibleChip * i_chip,
+ const MemRank & i_rank )
+{
+ getMcaDataBundle(i_chip)->getTdCtlr()->banTps( i_chip, i_rank );
+}
+
+template<> inline
+void banTps<TARGETING::TYPE_MBA>( ExtensibleChip * i_chip,
+ const MemRank & i_rank )
+{
+ getMbaDataBundle(i_chip)->getTdCtlr()->banTps( i_chip, i_rank );
+}
+
#endif // Hostboot Runtime only
} // end namespace MemDbUtils
diff --git a/src/usr/diag/prdf/common/plat/mem/prdfP9McaDataBundle.H b/src/usr/diag/prdf/common/plat/mem/prdfP9McaDataBundle.H
index 4d3c4fa02..07a6b7b92 100644
--- a/src/usr/diag/prdf/common/plat/mem/prdfP9McaDataBundle.H
+++ b/src/usr/diag/prdf/common/plat/mem/prdfP9McaDataBundle.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* Contributors Listed Below - COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -202,9 +202,6 @@ class McaDataBundle : public DataBundle
* scrubbing is resumed. */
bool iv_maskMainlineNceTce = false;
- /** Map to keep track of ranks that have banned TPS. */
- std::map<MemRank, bool> iv_tpsBans;
-
#endif
};
OpenPOWER on IntegriCloud