summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2013-11-13 09:32:01 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-12-12 16:27:50 -0600
commit948809ead9262fe86e78e303f3e5d1a19388f7ee (patch)
treef96f47384b95e865c9a324747f687f7cc0ca8d59 /src/include/usr
parent07c9716fcf31ce5352ce412a643071ea89bd2ca1 (diff)
downloadtalos-hostboot-948809ead9262fe86e78e303f3e5d1a19388f7ee.tar.gz
talos-hostboot-948809ead9262fe86e78e303f3e5d1a19388f7ee.zip
IBSCOM Enablement and Error Handling
Enable IBSCOM for Centaur DD2.x chips Add appropriate error handling Flip scom to FSI after IBSCOM fail Enable reconfig loop cleanup Code verified on hardware Change-Id: I394789b900e5779dded78dd5fbcc9b9257e856fb RTC: 69115 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7410 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/ibscom/ibscomif.H45
-rw-r--r--src/include/usr/ibscom/ibscomreasoncodes.H2
-rw-r--r--src/include/usr/xscom/piberror.H16
3 files changed, 55 insertions, 8 deletions
diff --git a/src/include/usr/ibscom/ibscomif.H b/src/include/usr/ibscom/ibscomif.H
new file mode 100644
index 000000000..65304acc6
--- /dev/null
+++ b/src/include/usr/ibscom/ibscomif.H
@@ -0,0 +1,45 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/ibscom/ibscomif.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __IBSCOM_IBSCOMIF_H
+#define __IBSCOM_IBSCOMIF_H
+
+#include <stdint.h>
+#include <builtins.h>
+#include <errl/errlentry.H>
+
+namespace IBSCOM
+{
+
+#define IBSCOM_DISABLE true
+#define IBSCOM_ENABLE false
+
+/**
+ * @brief Enable or disable Inband SCOMs on all capable chips
+ *
+ * @param i_disable true: disable inband scoms
+ */
+void enableInbandScoms( bool i_disable = IBSCOM_ENABLE );
+
+}
+
+#endif
diff --git a/src/include/usr/ibscom/ibscomreasoncodes.H b/src/include/usr/ibscom/ibscomreasoncodes.H
index 2990cc56b..39927db41 100644
--- a/src/include/usr/ibscom/ibscomreasoncodes.H
+++ b/src/include/usr/ibscom/ibscomreasoncodes.H
@@ -46,6 +46,8 @@ namespace IBSCOM
IBSCOM_BUS_FAILURE = IBSCOM_COMP_ID | 0x06,
IBSCOM_INVALID_ADDRESS = IBSCOM_COMP_ID | 0x07,
IBSCOM_PIB_FAILURE = IBSCOM_COMP_ID | 0x08,
+ IBSCOM_WRONG_ERROR = IBSCOM_COMP_ID | 0x09,
+ IBSCOM_RETRY_DUE_TO_ERROR = IBSCOM_COMP_ID | 0x0A,
};
};
diff --git a/src/include/usr/xscom/piberror.H b/src/include/usr/xscom/piberror.H
index da5ee08e1..73512e961 100644
--- a/src/include/usr/xscom/piberror.H
+++ b/src/include/usr/xscom/piberror.H
@@ -33,14 +33,14 @@ namespace PIB
*/
enum
{
- PIB_NO_ERROR = 0,//0x00000000,
- PIB_RESOURCE_OCCUPIED = 1,//0x00000001,
- PIB_CHIPLET_OFFLINE = 2,//0x00000010,
- PIB_PARTIAL_GOOD = 3,//0x00000011,
- PIB_INVALID_ADDRESS = 4,//0x00000100,
- PIB_CLOCK_ERROR = 5,//0x00000101,
- PIB_PARITY_ERROR = 6,//0x00000110,
- PIB_TIMEOUT = 7,//0x00000111,
+ PIB_NO_ERROR = 0,//0b000,
+ PIB_RESOURCE_OCCUPIED = 1,//0b001,
+ PIB_CHIPLET_OFFLINE = 2,//0b010,
+ PIB_PARTIAL_GOOD = 3,//0b011,
+ PIB_INVALID_ADDRESS = 4,//0b100,
+ PIB_CLOCK_ERROR = 5,//0b101,
+ PIB_PARITY_ERROR = 6,//0b110,
+ PIB_TIMEOUT = 7,//0b111,
};
OpenPOWER on IntegriCloud