diff options
author | Sheldon Bailey <baileysh@us.ibm.com> | 2017-07-28 09:31:28 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-09-19 09:27:40 -0400 |
commit | 3bd9350522b9923f078c8528d873f77caaa8fa1a (patch) | |
tree | 696a925c207482ab3c9edc8f5dadbf5552377af6 | |
parent | 2e1109e4561b486030eb4cebe8bc6ad8eb7f09e8 (diff) | |
download | talos-hostboot-3bd9350522b9923f078c8528d873f77caaa8fa1a.tar.gz talos-hostboot-3bd9350522b9923f078c8528d873f77caaa8fa1a.zip |
HTMGT: Add misc Processor Power to AVSbus config packet
Change-Id: I477a90277e0d9a4ad424accc442f60d163dabbe8
RTC:160888
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45641
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-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>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r-- | src/usr/htmgt/htmgt_cfgdata.C | 16 | ||||
-rwxr-xr-x | src/usr/targeting/common/processMrw.pl | 4 | ||||
-rw-r--r-- | src/usr/targeting/common/xmltohb/attribute_types_openpower.xml | 16 | ||||
-rw-r--r-- | src/usr/targeting/common/xmltohb/target_types_openpower.xml | 3 |
4 files changed, 37 insertions, 2 deletions
diff --git a/src/usr/htmgt/htmgt_cfgdata.C b/src/usr/htmgt/htmgt_cfgdata.C index 80d5d7cab..de636d153 100644 --- a/src/usr/htmgt/htmgt_cfgdata.C +++ b/src/usr/htmgt/htmgt_cfgdata.C @@ -1008,6 +1008,7 @@ void getAVSBusConfigMessageData( const TargetHandle_t i_occ, uint64_t & o_size ) { uint64_t index = 0; + o_size = 0; assert( o_data != nullptr ); @@ -1024,8 +1025,19 @@ void getAVSBusConfigMessageData( const TargetHandle_t i_occ, o_data[index++] = 0xFF; //reserved o_data[index++] = l_proc->getAttr<ATTR_VDN_AVSBUS_BUSNUM>();//Vdn Bus o_data[index++] = l_proc->getAttr<ATTR_VDN_AVSBUS_RAIL>(); //Vdn Rail sel - o_data[index++] = 0xFF; //reserved - o_data[index++] = 0xFF; //reserved + + ATTR_NO_APSS_PROC_POWER_VCS_VIO_WATTS_type PowerAdder = 0; + if ( l_proc->tryGetAttr //if attr exists populate Proc Power Adder. + <ATTR_NO_APSS_PROC_POWER_VCS_VIO_WATTS>(PowerAdder)) + { + o_data[index++] = ((PowerAdder>>8)&0xFF); + o_data[index++] = ((PowerAdder)&0xFF); + } + else //else attr not def. set to 0x0000. + { + o_data[index++] = 0x00; + o_data[index++] = 0x00; + } o_size = index; } diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl index 8051d1793..033e921c7 100755 --- a/src/usr/targeting/common/processMrw.pl +++ b/src/usr/targeting/common/processMrw.pl @@ -735,6 +735,10 @@ sub processProcessor { $targetObj->copyAttribute($socket_target,$target,$attr); } + elsif ($attr =~/NO_APSS_PROC_POWER_VCS_VIO_WATTS/) + { + $targetObj->copyAttribute($socket_target,$target,$attr); + } } # Both for FSP and BMC based systems, it's good enough diff --git a/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml b/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml index f5df8c942..4e3042907 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml @@ -1248,6 +1248,22 @@ ID for the sensor number returned with the elog. --> <writeable/> </attribute> +<attribute> + <id>NO_APSS_PROC_POWER_VCS_VIO_WATTS</id> + <description> + A constant power (in watts) that the OCC is to add onto Vdd and Vdn + power to represent any processor part that is not measured(i.e.Vcs,Vio) + This is used by the OCC to calculate a total processor socket power. + </description> + <simpleType> + <uint16_t> + <default>0</default> + </uint16_t> + </simpleType> + <persistency>non-volatile</persistency> + <readable/> +</attribute> + <!-- end HTMGT attributes --> <attribute> diff --git a/src/usr/targeting/common/xmltohb/target_types_openpower.xml b/src/usr/targeting/common/xmltohb/target_types_openpower.xml index 39c935a26..1b7aaf77c 100644 --- a/src/usr/targeting/common/xmltohb/target_types_openpower.xml +++ b/src/usr/targeting/common/xmltohb/target_types_openpower.xml @@ -104,6 +104,8 @@ <targetTypeExtension> <id>chip-processor-power9</id> <attribute><id>IPMI_SENSORS</id></attribute> + + <attribute><id>NO_APSS_PROC_POWER_VCS_VIO_WATTS</id></attribute> </targetTypeExtension> <targetTypeExtension> @@ -134,6 +136,7 @@ <targetTypeExtension> <id>unit-core-power9</id> <attribute><id>IPMI_SENSORS</id></attribute> + </targetTypeExtension> <targetTypeExtension> |