OSDN Git Service

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)
commit788cacf308871db0a619952321bedfec8f1773e2
tree4e507fb09ad60b5131d6f371e9e3780670fad83c
parente38bfd30e08802d9661efffb8c048bd53a3acfc4
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