diff options
author | aalugore <aalugore@us.ibm.com> | 2015-12-01 13:30:55 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-12-10 11:26:18 -0600 |
commit | 0cbd52585b9013430efeaeed6b4c38f6122eea98 (patch) | |
tree | f643d808561b163541605b6b1188f0a94f8f3dee /src/usr | |
parent | 081b250aa4fb51f3673e33c35d14270a1cab04c7 (diff) | |
download | talos-hostboot-0cbd52585b9013430efeaeed6b4c38f6122eea98.tar.gz talos-hostboot-0cbd52585b9013430efeaeed6b4c38f6122eea98.zip |
PART_NUMBER attribute size increase for Garrison DDR4 support
Change-Id: I79c587ca1c2ce3a117db06d3fcc88ea4de098b58
RTC:137707
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22548
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/targeting/common/xmltohb/attribute_types_hb.xml | 4 | ||||
-rw-r--r-- | src/usr/vpd/spd.C | 4 | ||||
-rwxr-xr-x | src/usr/vpd/vpd.C | 4 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml index 8fc10dab3..d81c18564 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml @@ -1230,7 +1230,6 @@ ID for the sensor number returned with the elog. --> <description>The serial number for a particular FRU target</description> <simpleType> <uint8_t> - <default>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</default> </uint8_t> <array>18</array> </simpleType> @@ -1249,9 +1248,8 @@ ID for the sensor number returned with the elog. --> <description>The part number for a particular FRU target</description> <simpleType> <uint8_t> - <default>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</default> </uint8_t> - <array>18</array> + <array>20</array> </simpleType> <persistency>volatile-zeroed</persistency> <readable/> diff --git a/src/usr/vpd/spd.C b/src/usr/vpd/spd.C index 4bd6ad6f7..6833e94df 100644 --- a/src/usr/vpd/spd.C +++ b/src/usr/vpd/spd.C @@ -2085,8 +2085,8 @@ void setPartAndSerialNumberAttributes( TARGETING::Target * i_target ) break; } // Set the attributes - TARGETING::ATTR_PART_NUMBER_type l_PN; - TARGETING::ATTR_SERIAL_NUMBER_type l_SN; + TARGETING::ATTR_PART_NUMBER_type l_PN = {0}; + TARGETING::ATTR_SERIAL_NUMBER_type l_SN = {0}; size_t expectedPNSize = sizeof(l_PN); size_t expectedSNSize = sizeof(l_SN); if(expectedPNSize < l_partDataSize) diff --git a/src/usr/vpd/vpd.C b/src/usr/vpd/vpd.C index 4a8ccf408..75a090577 100755 --- a/src/usr/vpd/vpd.C +++ b/src/usr/vpd/vpd.C @@ -399,7 +399,7 @@ void setPartAndSerialNumberAttributes( TARGETING::Target * i_target ) } // Set the part number attribute - TARGETING::ATTR_PART_NUMBER_type l_partNumber; + TARGETING::ATTR_PART_NUMBER_type l_partNumber = {0}; size_t expectedPNSize = sizeof(l_partNumber); if(expectedPNSize < l_dataSize) { @@ -443,7 +443,7 @@ void setPartAndSerialNumberAttributes( TARGETING::Target * i_target ) } // set the serial number attribute - TARGETING::ATTR_SERIAL_NUMBER_type l_serialNumber; + TARGETING::ATTR_SERIAL_NUMBER_type l_serialNumber = {0}; size_t expectedSNSize = sizeof(l_serialNumber); if(expectedSNSize < l_dataSize) { |