habanalabs: expose device security status using info ioctl
authorOfir Bitton <obitton@habana.ai>
Wed, 3 Aug 2022 14:25:33 +0000 (17:25 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:52 +0000 (13:29 +0300)
commit38a4358009456bfd7e4893c4f98ee401efce26eb
treeb8cea6bc02fbe075a11cc49065981fe927c94f3c
parent6457271f64a2b6674b11aebb2888427eb4558c22
habanalabs: expose device security status using info ioctl

In order for the user to know if he is running on a secured device
or not, we add it also to the hw_ip info ioctl.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c
include/uapi/misc/habanalabs.h