summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2017-03-19 19:02:39 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2017-03-22 01:24:39 -0400
commit8f2645e0257e98176e0d4968c498327741dec205 (patch)
tree530c280600e174c0366c0d75b3cba9f2d2a5189f
parent3096fa341d7199ad69837d3fbc0200d1074e9a74 (diff)
downloadtalos-sbe-8f2645e0257e98176e0d4968c498327741dec205.tar.gz
talos-sbe-8f2645e0257e98176e0d4968c498327741dec205.zip
p9_pba_coherent_utils -- correct OCI address wrap logic
Change-Id: Ifa6950e98477307eae3645969a406193eacf9a57 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38125 Reviewed-by: Camille R. Mann <camille@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: CHRISTINA L. GRAVES <clgraves@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38127 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/nest/p9_pba_coherent_utils.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_pba_coherent_utils.C b/src/import/chips/p9/procedures/hwp/nest/p9_pba_coherent_utils.C
index f4ae4d49..aa6df056 100644
--- a/src/import/chips/p9/procedures/hwp/nest/p9_pba_coherent_utils.C
+++ b/src/import/chips/p9/procedures/hwp/nest/p9_pba_coherent_utils.C
@@ -206,9 +206,9 @@ extern "C"
//mask to mask away bits 37:63 of the input address
oci_address_mask = 0x7FFFFFFull;
- //subtract the oci part of the address from this maximum number and divide by 8 to get the number of bytes
+ //subtract the oci part of the address from this maximum number
//then divide by 128 to get the number of 128 bye granules that can be sent
- o_numGranules = ((maximumAddress - (i_address & oci_address_mask)) / 8) / 128;
+ o_numGranules = (maximumAddress - (i_address & oci_address_mask)) / 128;
FAPI_DBG("o_numGranules = %016x", o_numGranules);
fapi_try_exit:
OpenPOWER on IntegriCloud