Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/guc: Add firmware build type to available info

Some test features are not available in production builds of the GuC
firmware. So add the build type field to the available information
that tests can inspect to decide if they should skip or run.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://lore.kernel.org/r/20250910210237.603576-3-John.C.Harrison@Intel.com

+4
+1
drivers/gpu/drm/xe/xe_uc_fw.c
··· 347 347 compatibility->minor = FIELD_GET(CSS_SW_VERSION_UC_MINOR, guc_info->submission_version); 348 348 compatibility->patch = FIELD_GET(CSS_SW_VERSION_UC_PATCH, guc_info->submission_version); 349 349 350 + uc_fw->build_type = FIELD_GET(CSS_UKERNEL_INFO_BUILDTYPE, guc_info->ukernel_info); 350 351 uc_fw->private_data_size = guc_info->private_data_size; 351 352 352 353 return 0;
+3
drivers/gpu/drm/xe/xe_uc_fw_types.h
··· 147 147 148 148 /** @private_data_size: size of private data found in uC css header */ 149 149 u32 private_data_size; 150 + 151 + /** @build_type: Firmware build type (see CSS_UKERNEL_INFO_BUILDTYPE for definitions) */ 152 + u32 build_type; 150 153 }; 151 154 152 155 #endif