aboutsummaryrefslogtreecommitdiff
path: root/hw/fsp/fsp-console.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-08 11:41:13 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-08 12:34:57 +1000
commit5d245a9a54c90029f15ebb2bc6cda673d1894a3d (patch)
tree91d4dbb97482cf50b201820e83fa2ad0aef379e4 /hw/fsp/fsp-console.c
parentb8464b315ba119fb606477f7038f6f1b1209c455 (diff)
downloadskiboot-5d245a9a54c90029f15ebb2bc6cda673d1894a3d.zip
skiboot-5d245a9a54c90029f15ebb2bc6cda673d1894a3d.tar.gz
skiboot-5d245a9a54c90029f15ebb2bc6cda673d1894a3d.tar.bz2
opal: Replace fsp_poll() with a full run of all OPAL pollers
Otherwise we don't handle surveillance and PSI link monitoring This should fix cases of surveillance timeouts during things like code update such as BZ109939 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/fsp/fsp-console.c')
-rw-r--r--hw/fsp/fsp-console.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/fsp/fsp-console.c b/hw/fsp/fsp-console.c
index 725edcc..c1f6e39 100644
--- a/hw/fsp/fsp-console.c
+++ b/hw/fsp/fsp-console.c
@@ -93,7 +93,7 @@ static void fsp_console_reinit(void)
(fs->rsrc_id << 16) | 1, i), true);
/* XXX add timeout ? */
while(!got_assoc_resp)
- fsp_poll();
+ opal_run_pollers();
}
}
@@ -482,7 +482,7 @@ static void fsp_serial_add(int index, u16 rsrc_id, const char *loc_code,
(rsrc_id << 16) | 1, index), true);
/* XXX add timeout ? */
while(!got_assoc_resp)
- fsp_poll();
+ opal_run_pollers();
}
}
@@ -720,7 +720,7 @@ void fsp_console_init(void)
/* Wait until we got the intf query before moving on */
while (!got_intf_query)
- fsp_poll();
+ opal_run_pollers();
op_display(OP_LOG, OP_MOD_FSPCON, 0x0000);
@@ -812,7 +812,7 @@ static void reopen_all_hvsi(void)
(i << 16) | 1), true);
/* XXX add timeout ? */
while(!got_deassoc_resp)
- fsp_poll();
+ opal_run_pollers();
}
for (i = 0; i < MAX_SERIAL; i++) {
struct fsp_serial *fs = &fsp_serials[i];
@@ -824,7 +824,7 @@ static void reopen_all_hvsi(void)
(fs->rsrc_id << 16) | 1, i), true);
/* XXX add timeout ? */
while(!got_assoc_resp)
- fsp_poll();
+ opal_run_pollers();
}
}