]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6959bcba71df4dcd2e5ab95e75511dfd25d4b91
tree5612c3121069b27eb54fe82692ea72b663158dd5
parentf715b21690d4204a3cf29c880d8ffb107d220c4d
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