summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2018-02-19 18:42:47 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-04-19 15:08:47 -0400
commitd81499bb6b6ed8614a88b2fab1ff1fb439771864 (patch)
tree332e90253f0dcf770141a4a570e9fbf8483c3826 /src/usr/targeting
parenta600e574610742073727851ab1d04de85e1b5429 (diff)
downloadtalos-hostboot-d81499bb6b6ed8614a88b2fab1ff1fb439771864.tar.gz
talos-hostboot-d81499bb6b6ed8614a88b2fab1ff1fb439771864.zip
Adding path to use alt-memory when proc0 does not have memory
When proc0 doesn't have memory, and we are on a phyp system, we don't need to swap our master proc and we can instead just swap memory. This commit adds in the functionality to look for working memory, and send both the group and chip ID down to HWSV. Change-Id: I664d5bfcd308a4ba2ee71e3e708533c6ec9a0a71 RTC:176434 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54403 CI-Ready: Elizabeth K. Liner <eliner@us.ibm.com> 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> CI-Ready: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/targeting')
-rwxr-xr-xsrc/usr/targeting/common/processMrw.pl6
-rw-r--r--src/usr/targeting/common/xmltohb/hb_customized_attrs.xml5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl
index d8c9b63dd..ac5ec311a 100755
--- a/src/usr/targeting/common/processMrw.pl
+++ b/src/usr/targeting/common/processMrw.pl
@@ -296,6 +296,7 @@ foreach my $target (@targets)
{
$targetObj->setAttribute($target,"PROC_FABRIC_PUMP_MODE","CHIP_IS_GROUP");
}
+
}
elsif ($type eq "PROC")
{
@@ -1087,9 +1088,12 @@ sub processProcessor
$targetObj->getAttribute($target,
"FABRIC_CHIP_ID"));
-
processMembufVpdAssociation($targetObj,$target);
setupBars($targetObj,$target);
+
+ $targetObj->setAttribute($target,
+ "PROC_MEM_TO_USE", ( $targetObj->getAttribute($target,
+ "FABRIC_GROUP_ID") << 3));
}
diff --git a/src/usr/targeting/common/xmltohb/hb_customized_attrs.xml b/src/usr/targeting/common/xmltohb/hb_customized_attrs.xml
index d967fcfa3..44e0c7d89 100644
--- a/src/usr/targeting/common/xmltohb/hb_customized_attrs.xml
+++ b/src/usr/targeting/common/xmltohb/hb_customized_attrs.xml
@@ -700,11 +700,14 @@
<id>ATTR_SKIP_WAKEUP</id>
<persistency>volatile-zeroed</persistency>
</attribute>
-
<attribute>
<id>ATTR_EI_BUS_TX_MSBSWAP</id>
<global/>
</attribute>
+ <attribute>
+ <id>ATTR_PROC_MEM_TO_USE</id>
+ <writeable/>
+ </attribute>
<!-- =====================================================================
End of customizations definitions
================================================================= -->
OpenPOWER on IntegriCloud