summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2024-12-06 13:59:58 -0800
committerJeffrey Hugo <quic_jhugo@quicinc.com>2024-12-13 09:49:20 -0700
commitc1e9a0ff94b801e946f30c4aba29df247475d825 (patch)
tree0b4a6610df66eed9b2eed92acba5b1d51ea10441 /include/uapi
parentcfc722fc1c72e415d5f473affcdb3f3f556233f6 (diff)
accel/amdxdna: Add query firmware version
Enhance GET_INFO ioctl to support retrieving firmware version. Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241206220001.164049-6-lizhi.hou@amd.com
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/amdxdna_accel.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/uapi/drm/amdxdna_accel.h b/include/uapi/drm/amdxdna_accel.h
index af12af8bd699..4f15e53a548d 100644
--- a/include/uapi/drm/amdxdna_accel.h
+++ b/include/uapi/drm/amdxdna_accel.h
@@ -375,6 +375,20 @@ struct amdxdna_drm_query_hwctx {
__u64 errors;
};
+/**
+ * struct amdxdna_drm_query_firmware_version - Query the firmware version
+ * @major: The major version number
+ * @minor: The minor version number
+ * @patch: The patch level version number
+ * @build: The build ID
+ */
+struct amdxdna_drm_query_firmware_version {
+ __u32 major; /* out */
+ __u32 minor; /* out */
+ __u32 patch; /* out */
+ __u32 build; /* out */
+};
+
enum amdxdna_drm_get_param {
DRM_AMDXDNA_QUERY_AIE_STATUS,
DRM_AMDXDNA_QUERY_AIE_METADATA,
@@ -382,7 +396,7 @@ enum amdxdna_drm_get_param {
DRM_AMDXDNA_QUERY_CLOCK_METADATA,
DRM_AMDXDNA_QUERY_SENSORS,
DRM_AMDXDNA_QUERY_HW_CONTEXTS,
- DRM_AMDXDNA_NUM_GET_PARAM,
+ DRM_AMDXDNA_QUERY_FIRMWARE_VERSION = 8,
};
/**