diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2018-02-01 09:48:51 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-02-06 10:41:04 -0500 |
commit | 480f31bfceaa2f393e44480dfebbcdf56b771017 (patch) | |
tree | 8ce64287764746d463fee3def21691860867af6e /src | |
parent | 59c8ce01244bcdb635735773fa81d417c0b9c710 (diff) | |
download | talos-hostboot-480f31bfceaa2f393e44480dfebbcdf56b771017.tar.gz talos-hostboot-480f31bfceaa2f393e44480dfebbcdf56b771017.zip |
Correct Obus buckets math: one, not zero based
Change-Id: Iaefbf2add1e79d978360e38d133afe2190da094d
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53186
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>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/hdat/hdatutil.C | 4 | ||||
-rw-r--r-- | src/usr/util/utilcommonattr.C | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/hdat/hdatutil.C b/src/usr/hdat/hdatutil.C index 6c1549e82..c26b88743 100644 --- a/src/usr/hdat/hdatutil.C +++ b/src/usr/hdat/hdatutil.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2017 */ +/* Contributors Listed Below - COPYRIGHT 2015,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -2042,7 +2042,7 @@ errlHndl_t hdatUpdateSMPLinkInfoData(hdatHDIFDataArray_t * i_SMPInfoFullPcrdHdrP break; } - if(l_obusPllFreqBucket >= OBUS_PLL_FREQ_BUCKETS) + if(l_obusPllFreqBucket > OBUS_PLL_FREQ_BUCKETS) { HDAT_ERR(" Invalid obus Freq bucket "); diff --git a/src/usr/util/utilcommonattr.C b/src/usr/util/utilcommonattr.C index 193412a7b..ec952233d 100644 --- a/src/usr/util/utilcommonattr.C +++ b/src/usr/util/utilcommonattr.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2017 */ +/* Contributors Listed Below - COPYRIGHT 2017,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -100,7 +100,7 @@ errlHndl_t getObusPllBucket(TARGETING::Target * i_chipTarget, { if(l_freqList[i] == l_freq_array[i_index]) { - o_bucket_val = i; + o_bucket_val = i + 1; // bucket is "1" based break; } } |