habanalabs: add uapi to retrieve engines status
authorDani Liberman <dliberman@habana.ai>
Sat, 9 Jul 2022 09:34:17 +0000 (12:34 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:50 +0000 (13:29 +0300)
commitf018c54e3de6619c46e33ab1c613761e9fba21d0
tree5612c3121069b27eb54fe82692ea72b663158dd5
parent5f92c1e2961912e2a7a10d8e7b998b7cd9dd1d0e
habanalabs: add uapi to retrieve engines status

Currently, to get engines status, user needed to read debugfs file
with root permissions.

This new uapi allows user apace apps retrieve status, so for example,
in case of failure, status can be retrieved immediately by the
application itself which runs without root permissions.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/debugfs.c
drivers/misc/habanalabs/common/habanalabs_ioctl.c
include/uapi/misc/habanalabs.h