]> 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)
commit49a802e713cec953bd986b4f3d7df5c29f972a34
treec1581ca6328266d01a986c62e9af2bc6c6838517
parent9d8bbc6cdc340ce6bb2282e1a481e04b5eedd3a9
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