summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2017-06-05 08:51:26 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2017-06-06 05:20:17 -0400
commitd6045c65611c31db10c3c0cee8c33fb77cc16223 (patch)
tree42859c73a710386591eed5003c973175b783c7b0
parentae6205cdf374eaca0fa158bd585701686f38332b (diff)
downloadtalos-sbe-d6045c65611c31db10c3c0cee8c33fb77cc16223.tar.gz
talos-sbe-d6045c65611c31db10c3c0cee8c33fb77cc16223.zip
Added FAPI traces in the delay method to for current/target time
Change-Id: Ibbca69573eb833e5ea9738ae69eefdb4aea9ca8a CQ: SW386997 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41364 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
-rw-r--r--src/hwpf/plat_utils.C8
-rw-r--r--src/sbefw/sbecmdiplcontrol.C9
2 files changed, 17 insertions, 0 deletions
diff --git a/src/hwpf/plat_utils.C b/src/hwpf/plat_utils.C
index ed12c2e4..1da22fdb 100644
--- a/src/hwpf/plat_utils.C
+++ b/src/hwpf/plat_utils.C
@@ -55,6 +55,7 @@ namespace fapi2
// about unused variables.
static_cast<void>(i_nanoSeconds);
static_cast<void>(i_simCycles);
+ FAPI_IMP("delay enter....");
#ifndef __FAPI_DELAY_SIM__
@@ -73,6 +74,12 @@ namespace fapi2
pk_critical_section_enter(&ctx);
target_time = pk_timebase_get() + delayCycles( i_nanoSeconds);
+ current_time = pk_timebase_get();
+ FAPI_IMP("Target Time 0x%08X %08X Current Time 0x%08X %08X",
+ (uint32_t)((target_time >> 32) & 0xFFFFFFFF),
+ (uint32_t)(target_time & 0xFFFFFFFF),
+ (uint32_t)((current_time >> 32) & 0xFFFFFFFF),
+ (uint32_t)(current_time & 0xFFFFFFFF));
do
{
@@ -121,6 +128,7 @@ namespace fapi2
#endif
// replace with platform specific implementation
+ FAPI_IMP("delay exit....");
return FAPI2_RC_SUCCESS;
}
diff --git a/src/sbefw/sbecmdiplcontrol.C b/src/sbefw/sbecmdiplcontrol.C
index b3f15856..480e537d 100644
--- a/src/sbefw/sbecmdiplcontrol.C
+++ b/src/sbefw/sbecmdiplcontrol.C
@@ -1181,6 +1181,15 @@ ReturnCode istepWithProcQuiesceLQASet( sbeIstepHwp_t i_hwp )
SBE_ERROR(SBE_FUNC "PutScom failed for PU_SECURITY_SWITCH_REGISTER_SCOM");
break;
}
+ l_data = 0;
+ l_rc = getscom_abs_wrap (&l_proc, PU_SECURITY_SWITCH_REGISTER_SCOM, &l_data);
+ if(l_rc != FAPI2_RC_SUCCESS)
+ {
+ SBE_ERROR(SBE_FUNC "GetScom failed for PU_SECURITY_SWITCH_REGISTER_SCOM");
+ break;
+ }
+ SBE_INFO(SBE_FUNC "PU_SECURITY_SWITCH_REGISTER_SCOM Data [0x%08X][%08X]",
+ (uint32_t)((l_data >> 32) & 0xFFFFFFFF), (uint32_t)(l_data & 0xFFFFFFFF));
}
}while(0);
SBE_EXIT(SBE_FUNC);
OpenPOWER on IntegriCloud