]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit975ab7b32b90c97046ddbdd53798391b7d8a6a1e
tree41e37b697e15518ce99563f0ca7b499c86af4e1f
parent0db575350cb1a2fa724f0198fd40b2c91ace5cb7
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