]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Add dropped cs statistics info struct
authorOfir Bitton <obitton@habana.ai>
Thu, 18 Jun 2020 06:51:16 +0000 (09:51 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 24 Jul 2020 17:31:36 +0000 (20:31 +0300)
commit793b879039a8d2666e77d809f0f1610bf8f9daa4
treec1581ca6328266d01a986c62e9af2bc6c6838517
parent456479744a582b55b1ba6b3f40138ef5190f36be
habanalabs: Add dropped cs statistics info struct

Add command submission statistics structure which can be obtained
through the info ioctl. Each drop counter describes the reason for
which the command submission was dropped.
This information is needed for the user to be aware of the specific
reason for which the submitted work was dropped. The user can then
utilize the driver more efficiently.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/command_submission.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/habanalabs_ioctl.c
drivers/misc/habanalabs/hw_queue.c
include/uapi/misc/habanalabs.h