summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-12-03 12:13:25 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-03-12 09:43:04 -0500
commit6a8e78667bd096e41a909273e4359bc62e444992 (patch)
tree1e2ab1e38223186a62484a766a288d9e604f9692 /src/include/usr
parent6a15522c01a44a19ea6af93cdcff8ff76cbaedce (diff)
downloadtalos-hostboot-6a8e78667bd096e41a909273e4359bc62e444992.tar.gz
talos-hostboot-6a8e78667bd096e41a909273e4359bc62e444992.zip
Dump Collect code
RTC:46996 Change-Id: I18863c91dcde353df6201c3c13e101626f24206b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3131 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@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/dump/dumpreasoncodes.H53
-rw-r--r--src/include/usr/hbotcompid.H11
-rw-r--r--src/include/usr/runtime/runtime_reasoncodes.H4
-rw-r--r--src/include/usr/vmmconst.h37
4 files changed, 102 insertions, 3 deletions
diff --git a/src/include/usr/dump/dumpreasoncodes.H b/src/include/usr/dump/dumpreasoncodes.H
new file mode 100644
index 000000000..9f1da4353
--- /dev/null
+++ b/src/include/usr/dump/dumpreasoncodes.H
@@ -0,0 +1,53 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/dump/dumpreasoncodes.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,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 __DUMP_REASONCODES_H
+#define __DUMP_REASONCODES_H
+
+#include <hbotcompid.H>
+
+namespace DUMP
+{
+ enum dumpModuleId
+ {
+ DUMP_COLLECT_INVALID = 0x00,
+ DUMP_COLLECT = 0x01,
+ };
+
+ enum dumpReasonCode
+ {
+ DUMP_INVALID_ADDR = DUMP_COMP_ID | 0x01,
+ DUMP_NO_HDAT_ADDR = DUMP_COMP_ID | 0x02,
+ DUMP_CANNOT_MAP = DUMP_COMP_ID | 0x03,
+ DUMP_CANNOT_UNMAP_SRC = DUMP_COMP_ID | 0x04,
+ DUMP_CANNOT_UNMAP_DEST = DUMP_COMP_ID | 0x05,
+ DUMP_CANNOT_UNMAP_RESULTS = DUMP_COMP_ID | 0x06,
+ DUMP_MDRT_INSUFFICIENT_SPACE = DUMP_COMP_ID | 0x07,
+ DUMP_MDST_INSUFFICIENT_SPACE = DUMP_COMP_ID | 0x08,
+ DUMP_MDDT_INSUFFICIENT_SPACE = DUMP_COMP_ID | 0x09,
+ DUMP_MDDT_INSUFFICIENT_ENTRIES = DUMP_COMP_ID | 0x0A,
+ DUMP_MDST_INVALID_TABLE_SIZE = DUMP_COMP_ID | 0x0B,
+ DUMP_MDDT_INVALID_TABLE_SIZE = DUMP_COMP_ID | 0x0C,
+ };
+};
+
+#endif
diff --git a/src/include/usr/hbotcompid.H b/src/include/usr/hbotcompid.H
index 52ba02edf..662bb7982 100644
--- a/src/include/usr/hbotcompid.H
+++ b/src/include/usr/hbotcompid.H
@@ -180,7 +180,13 @@ const compId_t MBOX_COMP_ID = 0x1100;
const char MBOX_COMP_NAME[] = "mbox";
//@}
-// 0x1200 - open to reclaim
+/** @name DUMP
+ * DUMP component
+ */
+//@{
+const compId_t DUMP_COMP_ID = 0x1200;
+const char DUMP_COMP_NAME[] = "dump";
+//@}
// 0x1300 - open to reclaim
@@ -253,7 +259,7 @@ const char KERNEL_COMP_NAME[] = "kernel";
//@{
const compId_t IBSCOM_COMP_ID = 0x1C00;
const char IBSCOM_COMP_NAME[] = "ibscom";
-//@}
+
/** @name VPD
* Common VPD device driver component
@@ -263,6 +269,7 @@ const compId_t VPD_COMP_ID = 0x1D00;
const char VPD_COMP_NAME[] = "vpd";
//@}
+
/** @name HSVC
* Host Services component
* For the code running under PHYP
diff --git a/src/include/usr/runtime/runtime_reasoncodes.H b/src/include/usr/runtime/runtime_reasoncodes.H
index 0986d585b..4a8f8c0ae 100644
--- a/src/include/usr/runtime/runtime_reasoncodes.H
+++ b/src/include/usr/runtime/runtime_reasoncodes.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012 */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
/* */
/* p1 */
/* */
@@ -54,6 +54,8 @@ namespace RUNTIME
RC_BAD_NACA = RUNTIME_COMP_ID | 0x0A,
RC_INVALID_ADDRESS = RUNTIME_COMP_ID | 0x0B,
RC_INVALID_SECTION = RUNTIME_COMP_ID | 0x0C,
+ RC_CANNOT_MAP_MEMORY3 = RUNTIME_COMP_ID | 0x0D,
+
};
};
diff --git a/src/include/usr/vmmconst.h b/src/include/usr/vmmconst.h
index b6e7f9dd8..d3b29415e 100644
--- a/src/include/usr/vmmconst.h
+++ b/src/include/usr/vmmconst.h
@@ -129,5 +129,42 @@ enum BlockPriority
#define HSVC_TEST_MEMORY_ADDR (VMM_MEMORY_SIZE + 32*MEGABYTE)
#define HSVC_TEST_MEMORY_SIZE (2*MEGABYTE)
+/* Chunk of physical memory used for Dump Source Table */
+//#define DUMP_TEST_SRC_MEM_ADDR (VMM_MEMORY_SIZE + 64*MEGABYTE)
+#define DUMP_TEST_MEMORY_ADDR (HSVC_TEST_MEMORY_ADDR + HSVC_TEST_MEMORY_SIZE)
+#define DUMP_TEST_MEMORY_SIZE (4*MEGABYTE)
+
+
+// The rest of these #defines will be moved to dumpif.H.
+
+#define DUMP_TEST_SRC_MEM_ADDR (HSVC_TEST_MEMORY_ADDR + HSVC_TEST_MEMORY_SIZE)
+#define DUMP_TEST_SRC_MEM_SIZE (MEGABYTE)
+
+/* Chunk of physical memory used for Dump Destination Table */
+#define DUMP_TEST_DST_MEM_ADDR (DUMP_TEST_SRC_MEM_ADDR + DUMP_TEST_SRC_MEM_SIZE)
+#define DUMP_TEST_DST_MEM_SIZE (MEGABYTE)
+
+/* Chunk of physical memory used for Dump Results Table */
+#define DUMP_TEST_RESULTS_MEM_ADDR (DUMP_TEST_DST_MEM_ADDR + DUMP_TEST_DST_MEM_SIZE)
+#define DUMP_TEST_RESULTS_MEM_SIZE (MEGABYTE)
+
+// Data location where the src, destination tables point to.
+#define DUMP_TEST_SRC_DATA_AREA DUMP_TEST_RESULTS_MEM_ADDR + DUMP_TEST_RESULTS_MEM_SIZE
+#define DUMP_TEST_DST_DATA_AREA DUMP_TEST_SRC_DATA_AREA + DUMP_TEST_DATA_SIZE
+#define DUMP_TEST_DATA_SIZE MEGABYTE
+
+// default enums to point out the start and end of the DUMP Tables in memory
+#define DUMP_TEST_TABLE_START DUMP_TEST_SRC_MEM_ADDR
+#define DUMP_TEST_TABLE_SIZE DUMP_TEST_SRC_MEM_SIZE + DUMP_TEST_DST_MEM_SIZE + DUMP_TEST_RESULTS_MEM_SIZE
+#define DUMP_TEST_TABLE_END DUMP_TEST_TABLE_START + DUMP_TEST_TABLE_SIZE
+
+// In addition to the dump table locations we have scratch data area that is used
+// to put the SRC data that the MDST will point to.
+
+// This is the size of all the Data used for Dump testing
+#define DUMP_TEST_ALL_SIZE = DUMP_TEST_TABLE_SIZE + (2*MEGABYTE)
+// This is the ending address of test Data area
+#define DUMP_TEST_ALL_END = DUMP_TEST_TABLE_START + DUMP_TEST_ALL_SIZE
+
#endif /* _VMMCONST_H */
OpenPOWER on IntegriCloud