]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: set 4s timeout for message to device CPU
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 7 Jul 2020 14:30:13 +0000 (17:30 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 10 Jul 2020 16:53:03 +0000 (19:53 +0300)
commitc8c1a69e11850a08e2cb1b60d0732f9510ae3120
tree4e507fb09ad60b5131d6f371e9e3780670fad83c
parent356e2fb06b1e0a618de166e2321ba9cbdb9cf101
habanalabs: set 4s timeout for message to device CPU

We see that sometimes the CPU in GOYA and GAUDI is occupied by the
power/thermal loop and can't answer requests from the driver fast enough.

Therefore, to avoid false notifications on timeouts, increase the timeout
to 4 seconds on each message sent to the device CPU.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
drivers/misc/habanalabs/debugfs.c
drivers/misc/habanalabs/firmware_if.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/hwmon.c
drivers/misc/habanalabs/sysfs.c