diff options
author | Cédric Le Goater <clg@kaod.org> | 2021-05-27 12:06:51 +0200 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2021-05-28 17:19:40 +0530 |
commit | 3ed6afd701bf144e27cc78ece4e9a460f2ba63d9 (patch) | |
tree | 731f75ff034d4d0afdc6045324dc28607de1bc9c | |
parent | 098ec924490effa6560ebca383faec28213d9b0e (diff) | |
download | skiboot-3ed6afd701bf144e27cc78ece4e9a460f2ba63d9.zip skiboot-3ed6afd701bf144e27cc78ece4e9a460f2ba63d9.tar.gz skiboot-3ed6afd701bf144e27cc78ece4e9a460f2ba63d9.tar.bz2 |
uart: Give SIMICS some more time
Increase timeout introduced in commit 6bf21350da32 ("uart: Drop
console write data if BMC becomes unresponsive") when running under
SIMICS.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r-- | hw/lpc-uart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c index a584eba..834011b 100644 --- a/hw/lpc-uart.c +++ b/hw/lpc-uart.c @@ -128,6 +128,9 @@ static bool uart_timed_out(unsigned long msecs) if (uart_check_tx_room()) return false; + if (chip_quirk(QUIRK_SLOW_SIM)) + msecs *= 5; + if (tb_compare(mftb(), uart_tx_full_time + msecs_to_tb(msecs)) == TB_AAFTERB) return true; |