habanalabs: add custom timeout flag per cs
authorAlon Mizrahi <amizrahi@habana.ai>
Mon, 22 Feb 2021 13:53:24 +0000 (15:53 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 9 Apr 2021 11:09:24 +0000 (14:09 +0300)
commitcf39395034c6b927d49abe554fb4e93730d00543
treec67d8a4e50c5b02c934e32f7019cf588ea610e32
parentcd5def8020637836b7836fc8228b70cdc9af4ea1
habanalabs: add custom timeout flag per cs

There is a need to allow to user to send command submissions with
custom timeout as some CS take longer than the max timeout that is
used by default.

Signed-off-by: Alon Mizrahi <amizrahi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/hw_queue.c
include/uapi/misc/habanalabs.h