Skip to content

Commit

Permalink
Add ATTR_WOF_POWER_LIMIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dcrowell77 committed Feb 7, 2017
1 parent eb217e5 commit 4adb691
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
33 changes: 33 additions & 0 deletions src/usr/targeting/common/xmltohb/attribute_types.xml
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/usr/targeting/common/xmltohb/target_types.xml
Expand Up @@ -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>
Expand Down
15 changes: 11 additions & 4 deletions src/usr/targeting/common/xmltohb/xmltohb.pl
Expand Up @@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2012,2016
# Contributors Listed Below - COPYRIGHT 2012,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4adb691

Please sign in to comment.