summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2017-02-07 22:20:56 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-03-08 17:27:25 -0500
commit8c15e0972e877d13fe79432e7ee7c97f550b2889 (patch)
tree9a0346a8af6c10f12c1719746725ae191f4ba8f9 /src/usr/targeting
parentea41fffce4f08b98d0197bbdaa7877d36f6d8f79 (diff)
downloadtalos-hostboot-8c15e0972e877d13fe79432e7ee7c97f550b2889.tar.gz
talos-hostboot-8c15e0972e877d13fe79432e7ee7c97f550b2889.zip
Set up HDAT HB Reserved Memory and load reserved memory data
Change-Id: Ie8460ecdf67cd99ab422fe52c4ec936f4c0aa8f1 RTC:165514 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36117 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting')
-rwxr-xr-xsrc/usr/targeting/attrrp.C8
-rw-r--r--src/usr/targeting/common/xmltohb/attribute_types_hb.xml14
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/target_types_hb.xml1
3 files changed, 19 insertions, 4 deletions
diff --git a/src/usr/targeting/attrrp.C b/src/usr/targeting/attrrp.C
index 3f65f5af6..cc0cc57c1 100755
--- a/src/usr/targeting/attrrp.C
+++ b/src/usr/targeting/attrrp.C
@@ -303,16 +303,16 @@ namespace TARGETING
//attribute information on the initial IPL
//Account HRMOR (non 0 base addr)
uint64_t l_attr_data_addr = cpu_spr_value(CPU_SPR_HRMOR)
- + MPIPL_ATTR_DATA_ADDR;
+ + VMM_ATTR_DATA_START_OFFSET;
l_header = reinterpret_cast<TargetingHeader*>(
mm_block_map(reinterpret_cast<void*>(l_attr_data_addr),
- MPIPL_ATTR_VMM_SIZE));
+ VMM_ATTR_DATA_SIZE));
if(l_header == 0)
{
TRACFCOMP(g_trac_targeting,
"Failed mapping phys addr: %p for %lx bytes",
l_attr_data_addr,
- MPIPL_ATTR_VMM_SIZE);
+ VMM_ATTR_DATA_SIZE);
//Error mm_block_map returned invalid ptr
/*@
* @errortype ERRORLOG::ERRL_SEV_UNRECOVERABLE
@@ -330,7 +330,7 @@ namespace TARGETING
TARG_PARSE_ATTR_SECT_HEADER,
TARG_RC_MM_BLOCK_FAIL,
l_attr_data_addr,
- MPIPL_ATTR_VMM_SIZE,
+ VMM_ATTR_DATA_SIZE,
true);
break;
}
diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
index 94b571b17..5ba124027 100644
--- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
@@ -1782,4 +1782,18 @@ ID for the sensor number returned with the elog. -->
<hbOnly/>
</attribute>
+<attribute>
+ <id>HB_RSV_MEM_NEXT_SECTION</id>
+ <description>
+ The next HB reserved memory section available to assign
+ a new reserved memory range.
+ </description>
+ <simpleType>
+ <uint8_t></uint8_t>
+ </simpleType>
+ <persistency>volatile-zeroed</persistency>
+ <readable/>
+ <writeable/>
+</attribute>
+
</attributes>
diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml
index 811edd5fa..be448bf13 100755
--- a/src/usr/targeting/common/xmltohb/target_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml
@@ -84,6 +84,7 @@
<attribute><id>IS_DRTM_MPIPL_HB</id></attribute>
<attribute><id>DRTM_PAYLOAD_ADDR_MB_HB</id></attribute>
<attribute><id>FORCE_PRE_PAYLOAD_DRTM</id></attribute>
+ <attribute><id>HB_RSV_MEM_NEXT_SECTION</id></attribute>
</targetTypeExtension>
<targetTypeExtension>
OpenPOWER on IntegriCloud