]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: count dropped CS because max CS in-flight
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 1 Sep 2020 08:22:05 +0000 (11:22 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:52 +0000 (18:49 +0300)
commita21b2bec7d24036425f230885704d79b6f31988e
tree41e37b697e15518ce99563f0ca7b499c86af4e1f
parent282fa25e46adda47c704d2c49c3c30f77ce40a98
habanalabs: count dropped CS because max CS in-flight

There is a case where the user reaches the maximum number of CS in-flight.
In that case, the driver rejects the new CS of the user with EAGAIN. Count
that event so the user can query the driver later to see if it happened.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/command_submission.c
include/uapi/misc/habanalabs.h