accel/habanalabs: set default device release watchdog T/O as 30 sec
authorTomer Tayar <ttayar@habana.ai>
Tue, 13 Jun 2023 14:29:14 +0000 (17:29 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 9 Oct 2023 09:37:19 +0000 (12:37 +0300)
After being notified about certain errors, user is expected to finish
his post-errors actions and to release the device within some timeout,
after which is deice is being reset.
The default timeout value is 5 sec, which in some case is not enough for
a user application to collect debug data.
Increase the default value to 30 sec.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c

index d7d9198b210322b47dd0ba5d63cd6489cebf9ed8..28be0fc325eaeb8e03b15b9683148b3d94a4f5a5 100644 (file)
@@ -18,7 +18,7 @@
 
 #define HL_RESET_DELAY_USEC                    10000   /* 10ms */
 
-#define HL_DEVICE_RELEASE_WATCHDOG_TIMEOUT_SEC 5
+#define HL_DEVICE_RELEASE_WATCHDOG_TIMEOUT_SEC 30
 
 enum dma_alloc_type {
        DMA_ALLOC_COHERENT,