summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-01-24 10:57:15 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-07 12:01:40 -0500
commit4adb691c9808994d0b4c4aefed3fde78faefe666 (patch)
tree520a396d9112c50870dd11d238202eeb4e5b04a9 /src/usr
parenteb217e512338e8d2182762cbe97f55d4759e799e (diff)
downloadtalos-hostboot-4adb691c9808994d0b4c4aefed3fde78faefe666.tar.gz
talos-hostboot-4adb691c9808994d0b4c4aefed3fde78faefe666.zip
Add ATTR_WOF_POWER_LIMIT
Attribute is set by TMGT during IPL and then consumed as part of the VFRT/WOF table selection algorithm. Change-Id: I595886e9355cf3cf925e857f583f412fb45471ca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35339 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/targeting/common/xmltohb/attribute_types.xml33
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/target_types.xml1
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/xmltohb.pl15
3 files changed, 45 insertions, 4 deletions
diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml
index 7302c5454..5d6495108 100644
--- a/src/usr/targeting/common/xmltohb/attribute_types.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types.xml
@@ -19775,6 +19775,39 @@ Measured in GB</description>
</enumerator>
</enumerationType>
+<enumerationType>
+ <id>WOF_POWER_LIMIT</id>
+ <description>Enumeration to select WOF Power Limit</description>
+ <enumerator>
+ <name>NOMINAL</name>
+ <value>0</value>
+ </enumerator>
+ <enumerator>
+ <name>TURBO</name>
+ <value>1</value>
+ </enumerator>
+</enumerationType>
+
+<attribute>
+ <id>WOF_POWER_LIMIT</id>
+ <description>
+ System control to set the power limit for Workload Optimized
+ Frequency (WOF) algorithms. This is used to select the
+ proper VFRT tables.
+ Producer: TMGT
+ Consumers: FW that selects VFRT tables
+ </description>
+ <simpleType>
+ <uint8_t>
+ <default>0</default>
+ </uint8_t>
+ </simpleType>
+ <persistency>non-volatile</persistency>
+ <readable/>
+ <writeable/>
+</attribute>
+
+
<attribute>
<id>SYSTEM_RESCLK_STEP_DELAY</id>
<description>
diff --git a/src/usr/targeting/common/xmltohb/target_types.xml b/src/usr/targeting/common/xmltohb/target_types.xml
index 2bc826231..fc035d8ae 100755
--- a/src/usr/targeting/common/xmltohb/target_types.xml
+++ b/src/usr/targeting/common/xmltohb/target_types.xml
@@ -873,6 +873,7 @@
<attribute><id>DPLL_VDM_RESPONSE</id></attribute>
<attribute><id>MSS_VMEM_REGULATOR_MAX_DIMM_COUNT</id></attribute>
<attribute><id>SYSTEM_WOF_ENABLED</id></attribute>
+ <attribute><id>WOF_POWER_LIMIT</id></attribute>
<attribute><id>AVSBUS_FREQUENCY</id></attribute>
<attribute><id>PROC_FABRIC_ASYNC_SAFE_MODE</id></attribute>
<attribute><id>VDM_ENABLE</id></attribute>
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl
index 2dbe11723..34f03b36a 100755
--- a/src/usr/targeting/common/xmltohb/xmltohb.pl
+++ b/src/usr/targeting/common/xmltohb/xmltohb.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2012,2016
+# Contributors Listed Below - COPYRIGHT 2012,2017
# [+] International Business Machines Corp.
#
#
@@ -4347,8 +4347,10 @@ sub enumNameToValue {
{
my $enumerationName = $enumeration->{id};
- fatal("Could not convert enumerator name \"$enumeratorName\"into "
- . "enumerator value in \"$enumerationName\".");
+ print STDOUT $enumeration;
+
+ fatal("dc99> Could not convert enumerator name \"$enumeratorName\"into "
+ . "enumerator value in \"$enumerationName\". enum="); #dc99
}
if($enumeratorValue < 0)
@@ -4703,7 +4705,12 @@ sub packSingleSimpleTypeAttribute {
{
my $enumeration = getEnumerationType($$attributesRef,$simpleType->
{enumeration}->{id});
-
+ #print STDOUT "id=$simpleType->{enumeration}->{id}\n";
+ #print STDOUT "value=$value\n";
+ #my %dummy1 = %{$enumeration};
+ #foreach (sort keys %dummy1) {
+ # print STDOUT "---$_ : $dummy1{$_}\n";
+ #}
# Here $value is the enumerator name
my $enumeratorValue = enumNameToValue($enumeration,$value);
$$binaryDataRef .= packEnumeration($enumeration,$enumeratorValue);
OpenPOWER on IntegriCloud