drm/xe: Add uAPI to query GuC firmware submission version
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 8 Feb 2024 18:35:38 +0000 (10:35 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 13 Feb 2024 21:31:51 +0000 (16:31 -0500)
commit9bc36e58d162466236a38489e4b41f38a8848c94
treee99605af13d5127be27d483aa0468587798dcf3e
parentbe46d7aacf9e66e1645e781260eeb7a14873f762
drm/xe: Add uAPI to query GuC firmware submission version

Due to a bug in GuC firmware, Mesa can't enable by default the usage of
compute engines in DG2 and newer.

A new GuC firmware fixed the issue but until now there was no way
for Mesa to know if KMD was running with the fixed GuC version or not,
so this uAPI is required.

It may be expanded in future to query other firmware versions too.

This is querying XE_UC_FW_VER_COMPATIBILITY/submission version because
that is also supported by VFs, while XE_UC_FW_VER_RELEASE don't.

i915 uAPI: https://patchwork.freedesktop.org/series/129627/
Mesa usage: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25233

v2:
- fixed drm_xe_query_uc_fw_version documentation
- moved branch_ver as the first version number

Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240208183539.185095-1-jose.souza@intel.com
drivers/gpu/drm/xe/xe_query.c
include/uapi/drm/xe_drm.h