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)
commit843839bec3a304f8313d6ae554f618a91e52731a
treeb2ae649637a3ee75d779459f750a2ddf0ff42fd5
parent0a068adde505a90ece23caaf19b77567e1d18298
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