summaryrefslogtreecommitdiffstats
path: root/src/hwpf/src/plat/plat_hw_access.C
diff options
context:
space:
mode:
authorPrasad Bg Ranganath <prasadbgr@in.ibm.com>2016-09-28 21:49:14 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-10-06 06:52:06 -0400
commit6be042c2d9e9f64b3151fc95dbd98dd2723474c5 (patch)
treebd37ab5acc03b2ceb0d27f0a8247ba07e8e9b797 /src/hwpf/src/plat/plat_hw_access.C
parent30e81626fa495b3800850df4e82f4c1e0320804b (diff)
downloadtalos-sbe-6be042c2d9e9f64b3151fc95dbd98dd2723474c5.tar.gz
talos-sbe-6be042c2d9e9f64b3151fc95dbd98dd2723474c5.zip
SBE:GETRING: Fix the data part returned.
Change-Id: I70270c6d6f36a80d492af46832ececaed46afe0b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30449 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/hwpf/src/plat/plat_hw_access.C')
-rw-r--r--src/hwpf/src/plat/plat_hw_access.C11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hwpf/src/plat/plat_hw_access.C b/src/hwpf/src/plat/plat_hw_access.C
index 9ff0daa9..10311290 100644
--- a/src/hwpf/src/plat/plat_hw_access.C
+++ b/src/hwpf/src/plat/plat_hw_access.C
@@ -112,7 +112,7 @@ ReturnCode getRing_granule_data(const uint32_t i_ringAddress,
fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> l_proc;
- uint32_t l_scomAddress = 0x00039000 | i_bitShiftValue;
+ uint32_t l_scomAddress = 0x00039000;
l_scomAddress |= l_chipletId;
do
@@ -124,6 +124,15 @@ ReturnCode getRing_granule_data(const uint32_t i_ringAddress,
break;
}
*o_data = l_ringData;
+
+ l_scomAddress = 0x00039000 | i_bitShiftValue;
+ l_scomAddress |= l_chipletId;
+
+ l_rc = fapi2::getScom(l_proc, l_scomAddress, l_ringData);
+ if(l_rc != fapi2::FAPI2_RC_SUCCESS)
+ {
+ break;
+ }
} while(0);
return l_rc;
OpenPOWER on IntegriCloud