aboutsummaryrefslogtreecommitdiff
path: root/hw/occ.c
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>2014-08-08 15:37:46 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-11 10:47:43 +1000
commit793b06d73e1543350fc7c4c7c615c594ec1ddd62 (patch)
tree37db0cee431092200c00311715cecc7f0723d372 /hw/occ.c
parentedb95ce31618f51df3865dc790d3745faba0ee01 (diff)
downloadskiboot-793b06d73e1543350fc7c4c7c615c594ec1ddd62.zip
skiboot-793b06d73e1543350fc7c4c7c615c594ec1ddd62.tar.gz
skiboot-793b06d73e1543350fc7c4c7c615c594ec1ddd62.tar.bz2
occ: Increase wait time to 60s for OCC to init
OCC F/w team recommends 60s timeout waiting for OCC to init. OCC has to wait for memory throttle calibration from hardware procedure and that takes 10s of seconds on large memory configurations. In one of the failing case, it took 24s for OCC to init. Typically OCC takes 2-5 secs to boot and we do that in parallel with skiboot inits. But on certain corner cases with large memory, we have to wait for 60s before we give up. Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/occ.c')
-rw-r--r--hw/occ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 7e6284a..62a62a8 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -90,7 +90,7 @@ static bool wait_for_all_occ_init(void)
* homer_base+size before passing memory to host services.
* This ensures occ_data->valid == 0 before OCC load
*/
- tries = 20; /* 2 secs */
+ tries = 600; /* 60 secs */
while((occ_data->valid != 1) && tries--) {
time_wait_ms(100);
}