]> 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)
commit09f47ce7cfd8a556b28317b33132b783c02355c6
tree41e37b697e15518ce99563f0ca7b499c86af4e1f
parent08d8b71010d8cd82ccb4da134ac34a5b9a9bcf6d
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