aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-07-16 08:55:04 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-09-05 14:55:25 +0300
commitf388ec7c16ad8676ee516a735a6b7588252f971d (patch)
treed2dfe0686e39c9d3b78662ddacd63b451d60376f /include/uapi
parenthabanalabs: remove write_open_cnt property (diff)
downloadlinux-dev-f388ec7c16ad8676ee516a735a6b7588252f971d.tar.xz
linux-dev-f388ec7c16ad8676ee516a735a6b7588252f971d.zip
habanalabs: add comments on INFO IOCTL
This patch adds some in-code documentation on the different opcodes of the INFO IOCTL. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/misc/habanalabs.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h
index 3956c226ca35..a5a1d0e7ec82 100644
--- a/include/uapi/misc/habanalabs.h
+++ b/include/uapi/misc/habanalabs.h
@@ -75,7 +75,19 @@ enum hl_device_status {
HL_DEVICE_STATUS_MALFUNCTION
};
-/* Opcode for management ioctl */
+/* Opcode for management ioctl
+ *
+ * HW_IP_INFO - Receive information about different IP blocks in the
+ * device.
+ * HL_INFO_HW_EVENTS - Receive an array describing how many times each event
+ * occurred since the last hard reset.
+ * HL_INFO_DRAM_USAGE - Retrieve the dram usage inside the device and of the
+ * specific context. This is relevant only for GOYA device.
+ * HL_INFO_HW_IDLE - Retrieve information about the idle status of each
+ * internal engine.
+ * HL_INFO_DEVICE_STATUS - Retrieve the device's status. This opcode doesn't
+ * require an open context.
+ */
#define HL_INFO_HW_IP_INFO 0
#define HL_INFO_HW_EVENTS 1
#define HL_INFO_DRAM_USAGE 2