habanalabs: Add CB IOCTL opcode to retrieve CB information
authorTomer Tayar <ttayar@habana.ai>
Wed, 2 Sep 2020 10:43:32 +0000 (13:43 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:38 +0000 (10:47 +0200)
commitf44afb5b5a5d04448da843b2fe872e01669bc317
tree58e09eb0ae0899232ecde2c7b90c3febc15c1e07
parentf07486745442f6118ede18e2b52ee7be69cde5a4
habanalabs: Add CB IOCTL opcode to retrieve CB information

Add a new CB IOCTL opcode that enables a user to query about a CB and
get its usage count.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_buffer.c
include/uapi/misc/habanalabs.h