summaryrefslogtreecommitdiffstats
path: root/src/include/usr/vmmconst.h
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2018-05-29 00:31:05 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-07-20 13:14:05 -0500
commit9f49d11b83bfbc8c626474262ccaac4560ba0947 (patch)
tree9430e7b70f22af56be9bacd269a1b611f1c8421e /src/include/usr/vmmconst.h
parent529bf938bf0ee224f01ed8a2c28fe74729042fd1 (diff)
downloadtalos-hostboot-9f49d11b83bfbc8c626474262ccaac4560ba0947.tar.gz
talos-hostboot-9f49d11b83bfbc8c626474262ccaac4560ba0947.zip
[ARCH_REG 2] Enable architected register data reserve in the host
Keep a reserve space for each proc where sbe can dump all the architected register state data, which host will use to build the hdat in mpipl path. Host will pass on this address to each SBE in the stash after calculating the respective offset basis the proc. Change-Id: Ia78c2ecaaa8967c1aac13913272ce6f2ea427b5d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/59534 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/vmmconst.h')
-rw-r--r--src/include/usr/vmmconst.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/include/usr/vmmconst.h b/src/include/usr/vmmconst.h
index 177802bab..3cf33e96f 100644
--- a/src/include/usr/vmmconst.h
+++ b/src/include/usr/vmmconst.h
@@ -177,14 +177,26 @@ enum BlockPriority
#define VMM_ALL_HOMER_OCC_MEMORY_SIZE \
(VMM_OCC_COMMON_SIZE + VMM_HOMER_REGION_SIZE)
+/** Memory for Architected state (max 4 procs - 256KB Each) **/
+#define VMM_ARCH_REG_DATA_START_OFFSET VMM_OCC_COMMON_END_OFFSET
+#define VMM_ARCH_REG_DATA_PER_PROC_SIZE_IN_KB 256
+#define VMM_ARCH_REG_DATA_PER_PROC_SIZE \
+ ( VMM_ARCH_REG_DATA_PER_PROC_SIZE_IN_KB*KILOBYTE )
+#define VMM_ARCH_REG_DATA_SIZE_ALL_PROC_IN_MB 1
+#define VMM_ARCH_REG_DATA_SIZE_ALL_PROC \
+ ( VMM_ARCH_REG_DATA_SIZE_ALL_PROC_IN_MB*MEGABYTE )
+#define VMM_ARCH_REG_DATA_END_OFFSET \
+ ( VMM_ARCH_REG_DATA_START_OFFSET + VMM_ARCH_REG_DATA_SIZE_ALL_PROC )
+/** End offset for the Architected region is 217MB **/
+
/** Memory for attribute data */
-#define VMM_ATTR_DATA_START_OFFSET VMM_OCC_COMMON_END_OFFSET
+#define VMM_ATTR_DATA_START_OFFSET VMM_ARCH_REG_DATA_END_OFFSET
#define VMM_ATTR_DATA_SIZE (1*MEGABYTE)
-/** End of Attr Area = 217MB */
+/** End of Attr Area = 218MB */
/** Memory for hostboot data Table of Contents */
#define VMM_HB_DATA_TOC_START_OFFSET \
- (VMM_ATTR_DATA_START_OFFSET + VMM_ATTR_DATA_SIZE) /* currently 217MB */
+ (VMM_ATTR_DATA_START_OFFSET + VMM_ATTR_DATA_SIZE) /* currently 218MB */
/** Variable Attribute overrides and Attributes memory here **/
OpenPOWER on IntegriCloud