From 7c40227e18d532bff5fe32b1a71c3916b0ce1774 Mon Sep 17 00:00:00 2001 From: Christian Iversen Date: Mon, 25 Jan 2021 13:32:04 +0100 Subject: [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 --- src/drivers/infiniband/hermon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1