habanalabs: expose device security status through sysfs
authorOfir Bitton <obitton@habana.ai>
Wed, 3 Aug 2022 14:16:56 +0000 (17:16 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:52 +0000 (13:29 +0300)
commit6457271f64a2b6674b11aebb2888427eb4558c22
tree56828cd8f49f74cf17c6126dbad9b60dc9b2a0d9
parent107a5bcc0b34c0f4f6c8b771321bf3a4e095335d
habanalabs: expose device security status through sysfs

In order for the user to know if he is running on a secured device
or not, a sysfs node is added.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Documentation/ABI/testing/sysfs-driver-habanalabs
drivers/misc/habanalabs/common/sysfs.c