diff options
author | Soma BhanuTej <soma.bhanu@in.ibm.com> | 2018-04-04 05:58:52 -0400 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-04-05 23:22:22 -0400 |
commit | 48ec2a5313824cf6f6708ff0c9843afeda2c8aef (patch) | |
tree | dae665cf6f4ed34156a875651d7962621f483937 | |
parent | 7af798e9e32e85a1fb10349eec9ef6cb5893fece (diff) | |
download | talos-sbe-48ec2a5313824cf6f6708ff0c9843afeda2c8aef.tar.gz talos-sbe-48ec2a5313824cf6f6708ff0c9843afeda2c8aef.zip |
p9_sbe_lpc_init: Fix cycle sim delay loop
Adding additional delay during polling for LPC status
Issue encountered in GSD2PIB mode Awan simulations only
Change-Id: I220843de8c37fa578ea26ea253345a380666a1d7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56724
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com>
Reviewed-by: Abhishek Agarwal <abagarw8@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56779
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H b/src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H index ae0d7791..f7e7173c 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H +++ b/src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H @@ -30,7 +30,8 @@ #define P9_LPC_UTILS_H_ const uint32_t LPC_CMD_TIMEOUT_DELAY_NS = 1000000; -const uint32_t LPC_CMD_TIMEOUT_COUNT = 4; +const uint32_t LPC_CMD_TIMEOUT_DELAY_CYCLE = 80000000; +const uint32_t LPC_CMD_TIMEOUT_COUNT = 20; static fapi2::ReturnCode lpc_rw( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip, @@ -63,7 +64,7 @@ static fapi2::ReturnCode lpc_rw( break; } - fapi2::delay(LPC_CMD_TIMEOUT_DELAY_NS, LPC_CMD_TIMEOUT_DELAY_NS); + fapi2::delay(LPC_CMD_TIMEOUT_DELAY_NS, LPC_CMD_TIMEOUT_DELAY_CYCLE); } if (LPC_UTILS_TIMEOUT_FFDC) |