Skip to content

Commit 0775540

Browse files
Soma BhanuTejdcrowell77
authored andcommitted
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/56780 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
1 parent 7f2227c commit 0775540

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
#define P9_LPC_UTILS_H_
3131

3232
const uint32_t LPC_CMD_TIMEOUT_DELAY_NS = 1000000;
33-
const uint32_t LPC_CMD_TIMEOUT_COUNT = 4;
33+
const uint32_t LPC_CMD_TIMEOUT_DELAY_CYCLE = 80000000;
34+
const uint32_t LPC_CMD_TIMEOUT_COUNT = 20;
3435

3536
static fapi2::ReturnCode lpc_rw(
3637
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip,
@@ -63,7 +64,7 @@ static fapi2::ReturnCode lpc_rw(
6364
break;
6465
}
6566

66-
fapi2::delay(LPC_CMD_TIMEOUT_DELAY_NS, LPC_CMD_TIMEOUT_DELAY_NS);
67+
fapi2::delay(LPC_CMD_TIMEOUT_DELAY_NS, LPC_CMD_TIMEOUT_DELAY_CYCLE);
6768
}
6869

6970
if (LPC_UTILS_TIMEOUT_FFDC)

0 commit comments

Comments
 (0)