]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
habanalabs: add comments on INFO IOCTL
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 16 Jul 2019 05:55:04 +0000 (08:55 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:25 +0000 (14:55 +0300)
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>
include/uapi/misc/habanalabs.h

index 3956c226ca35a69ec83f8001b31fc90979e9b530..a5a1d0e7ec82c814b4796244b57cb06010832871 100644 (file)
@@ -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