]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: expose sync manager resources allocation in INFO IOCTL
authorOfir Bitton <obitton@habana.ai>
Sun, 19 Jul 2020 08:08:09 +0000 (11:08 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 22 Sep 2020 15:49:49 +0000 (18:49 +0300)
commitbe4517429371536d2fc0cbb409bc32dd80757dcb
treeb2ae649637a3ee75d779459f750a2ddf0ff42fd5
parent23fa58d8ecaacb2709a25338b0f3faba0fa8ea64
habanalabs: expose sync manager resources allocation in INFO IOCTL

Although the driver defines the first user-available sync manager object
and monitor in habanalabs.h, we would like to also expose this information
via the INFO IOCTL so the runtime can get this information dynamically.
This is because in future ASICs we won't need to define it statically.

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/common/habanalabs.h
drivers/misc/habanalabs/common/habanalabs_ioctl.c
drivers/misc/habanalabs/gaudi/gaudi.c
include/uapi/misc/habanalabs.h