]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[hermon] Increase command timeout from 2 to 10 seconds
authorChristian Iversen <ci@iversenit.dk>
Mon, 25 Jan 2021 12:32:04 +0000 (13:32 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 28 Jan 2021 20:55:14 +0000 (20:55 +0000)
Some commands (particularly in relation to device initialization) can
occasionally take longer than 2 seconds, and the Mellanox documentation
recommends a 10 second timeout.

Signed-off-by: Christian Iversen <ci@iversenit.dk>
src/drivers/infiniband/hermon.h

index 61e285781926c8c4e273ff17c07f7b0fe892822f..8ac35620ccaebec7eed4f37d147ea72178950ff2 100644 (file)
@@ -925,7 +925,7 @@ struct hermon {
 
 #define HERMON_HCR_BASE                        0x80680
 #define HERMON_HCR_REG(x)              ( HERMON_HCR_BASE + 4 * (x) )
-#define HERMON_HCR_MAX_WAIT_MS         2000
+#define HERMON_HCR_MAX_WAIT_MS         10000
 #define HERMON_MBOX_ALIGN              4096
 #define HERMON_MBOX_SIZE               1024