[Skiboot] [PATCH] uart: Give SIMICS some more time
Cédric Le Goater
clg at kaod.org
Thu May 27 20:06:51 AEST 2021
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 at kaod.org>
---
hw/lpc-uart.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index a584eba9109d..834011b371f7 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;
--
2.31.1
More information about the Skiboot
mailing list