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>
This commit is contained in:
Tomer Tayar 2020-09-02 13:43:32 +03:00 • committed by Oded Gabbay
commit f44afb5b5a
2 changed files with 51 additions and 2 deletions