diff --git a/third_party/uapi/.version b/third_party/uapi/.version new file mode 100644 index 0000000000..935da85b84 --- /dev/null +++ b/third_party/uapi/.version @@ -0,0 +1,2 @@ +git_revision: v6.9.9 +git_url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ diff --git a/third_party/uapi/README.md b/third_party/uapi/README.md index 9a88ec0855..2d600632b2 100644 --- a/third_party/uapi/README.md +++ b/third_party/uapi/README.md @@ -11,7 +11,7 @@ Source locations of Linux kernel interface headers: 1. https://repositories.intel.com/graphics/kernel-api/index.html - dg1/i915_drm.h -2. https://git.kernel.org/stable/h/v6.8.1 +2. https://git.kernel.org/stable/h/v6.9.9 - drm/drm.h - drm/drm_mode.h - drm/drm_fourcc.h diff --git a/third_party/uapi/i915/i915_drm.h b/third_party/uapi/i915/i915_drm.h index 380253f62e..7f6e9ee260 100644 --- a/third_party/uapi/i915/i915_drm.h +++ b/third_party/uapi/i915/i915_drm.h @@ -3013,6 +3013,7 @@ struct drm_i915_query_item { * - %DRM_I915_QUERY_MEMORY_REGIONS (see struct drm_i915_query_memory_regions) * - %DRM_I915_QUERY_HWCONFIG_BLOB (see `GuC HWCONFIG blob uAPI`) * - %DRM_I915_QUERY_GEOMETRY_SUBSLICES (see struct drm_i915_query_topology_info) + * - %DRM_I915_QUERY_GUC_SUBMISSION_VERSION (see struct drm_i915_query_guc_submission_version) */ __u64 query_id; #define DRM_I915_QUERY_TOPOLOGY_INFO 1 @@ -3021,6 +3022,7 @@ struct drm_i915_query_item { #define DRM_I915_QUERY_MEMORY_REGIONS 4 #define DRM_I915_QUERY_HWCONFIG_BLOB 5 #define DRM_I915_QUERY_GEOMETRY_SUBSLICES 6 +#define DRM_I915_QUERY_GUC_SUBMISSION_VERSION 7 /* Must be kept compact -- no holes and well documented */ /** @@ -3566,6 +3568,20 @@ struct drm_i915_query_memory_regions { struct drm_i915_memory_region_info regions[]; }; +/** + * struct drm_i915_query_guc_submission_version - query GuC submission interface version + */ +struct drm_i915_query_guc_submission_version { + /** @branch: Firmware branch version. */ + __u32 branch; + /** @major: Firmware major version. */ + __u32 major; + /** @minor: Firmware minor version. */ + __u32 minor; + /** @patch: Firmware patch version. */ + __u32 patch; +}; + /** * DOC: GuC HWCONFIG blob uAPI * diff --git a/third_party/uapi/xe/xe_drm.h b/third_party/uapi/xe/xe_drm.h index 6c98c3dfa8..2c350f20c0 100644 --- a/third_party/uapi/xe/xe_drm.h +++ b/third_party/uapi/xe/xe_drm.h @@ -574,6 +574,36 @@ struct drm_xe_query_engine_cycles { __u64 cpu_delta; }; +/** + * struct drm_xe_query_uc_fw_version - query a micro-controller firmware version + * + * Given a uc_type this will return the branch, major, minor and patch version + * of the micro-controller firmware. + */ +struct drm_xe_query_uc_fw_version { + /** @uc_type: The micro-controller type to query firmware version */ +#define XE_QUERY_UC_TYPE_GUC_SUBMISSION 0 + __u16 uc_type; + + /** @pad: MBZ */ + __u16 pad; + + /** @branch_ver: branch uc fw version */ + __u32 branch_ver; + /** @major_ver: major uc fw version */ + __u32 major_ver; + /** @minor_ver: minor uc fw version */ + __u32 minor_ver; + /** @patch_ver: patch uc fw version */ + __u32 patch_ver; + + /** @pad2: MBZ */ + __u32 pad2; + + /** @reserved: Reserved */ + __u64 reserved; +}; + /** * struct drm_xe_device_query - Input of &DRM_IOCTL_XE_DEVICE_QUERY - main * structure to query device information @@ -643,6 +673,7 @@ struct drm_xe_device_query { #define DRM_XE_DEVICE_QUERY_HWCONFIG 4 #define DRM_XE_DEVICE_QUERY_GT_TOPOLOGY 5 #define DRM_XE_DEVICE_QUERY_ENGINE_CYCLES 6 +#define DRM_XE_DEVICE_QUERY_UC_FW_VERSION 7 /** @query: The type of data to query */ __u32 query;