aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Iversen <ci@iversenit.dk>2021-01-25 13:32:04 +0100
committerMichael Brown <mcb30@ipxe.org>2021-01-28 20:55:14 +0000
commit7c40227e18d532bff5fe32b1a71c3916b0ce1774 (patch)
tree836089864b9e89c53bface0e41edba485fe6f85d
parentcd126c41bbec5563c5042902f4aa22a8e92ee76f (diff)
downloadipxe-7c40227e18d532bff5fe32b1a71c3916b0ce1774.zip
ipxe-7c40227e18d532bff5fe32b1a71c3916b0ce1774.tar.gz
ipxe-7c40227e18d532bff5fe32b1a71c3916b0ce1774.tar.bz2
[hermon] Increase command timeout from 2 to 10 seconds
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>
-rw-r--r--src/drivers/infiniband/hermon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/infiniband/hermon.h b/src/drivers/infiniband/hermon.h
index 61e2857..8ac3562 100644
--- a/src/drivers/infiniband/hermon.h
+++ b/src/drivers/infiniband/hermon.h
@@ -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