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)
commitdb491e4f08a9fd84ebb1ebd22a6b0b988a81a0d8
treec1581ca6328266d01a986c62e9af2bc6c6838517
parentc8f9b49d2db7e98df534c6e666b26c64da4cb667
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