Skip to content

Commit 60d86e7

Browse files
committed
habanalabs/gaudi: increase boot fit timeout
Various f/w versions have different timeouts, so increase the default timeout to accommodate all the options. Signed-off-by: Oded Gabbay <[email protected]>
1 parent c2aa713 commit 60d86e7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/misc/habanalabs/common/firmware_if.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,10 @@ static void detect_cpu_boot_status(struct hl_device *hdev, u32 status)
10621062
dev_err(hdev->dev,
10631063
"Device boot progress - Thermal Sensor initialization failed\n");
10641064
break;
1065+
case CPU_BOOT_STATUS_SECURITY_READY:
1066+
dev_err(hdev->dev,
1067+
"Device boot progress - Stuck in preboot after security initialization\n");
1068+
break;
10651069
default:
10661070
dev_err(hdev->dev,
10671071
"Device boot progress - Invalid status code %d\n",

drivers/misc/habanalabs/gaudi/gaudi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#define GAUDI_PLDM_MMU_TIMEOUT_USEC (MMU_CONFIG_TIMEOUT_USEC * 100)
7777
#define GAUDI_PLDM_QMAN0_TIMEOUT_USEC (HL_DEVICE_TIMEOUT_USEC * 30)
7878
#define GAUDI_PLDM_TPC_KERNEL_WAIT_USEC (HL_DEVICE_TIMEOUT_USEC * 30)
79-
#define GAUDI_BOOT_FIT_REQ_TIMEOUT_USEC 1000000 /* 1s */
79+
#define GAUDI_BOOT_FIT_REQ_TIMEOUT_USEC 4000000 /* 4s */
8080
#define GAUDI_MSG_TO_CPU_TIMEOUT_USEC 4000000 /* 4s */
8181
#define GAUDI_WAIT_FOR_BL_TIMEOUT_USEC 15000000 /* 15s */
8282

0 commit comments

Comments
 (0)