]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/xe/guc: Add firmware build type to available info
authorJohn Harrison <John.C.Harrison@Intel.com>
Wed, 10 Sep 2025 21:02:33 +0000 (14:02 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 15 Sep 2025 16:53:23 +0000 (09:53 -0700)
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
drivers/gpu/drm/xe/xe_uc_fw.c
drivers/gpu/drm/xe/xe_uc_fw_types.h

index 57b8230cec584dc6f8986b36bd67d24bd9b81396..622b76078567db574c3416915bc55012e00e714f 100644 (file)
@@ -347,6 +347,7 @@ static int guc_read_css_info(struct xe_uc_fw *uc_fw, struct uc_css_guc_info *guc
        compatibility->minor = FIELD_GET(CSS_SW_VERSION_UC_MINOR, guc_info->submission_version);
        compatibility->patch = FIELD_GET(CSS_SW_VERSION_UC_PATCH, guc_info->submission_version);
 
+       uc_fw->build_type = FIELD_GET(CSS_UKERNEL_INFO_BUILDTYPE, guc_info->ukernel_info);
        uc_fw->private_data_size = guc_info->private_data_size;
 
        return 0;
index 9140260150195c30ea55e422bd0486fed208b763..77a1dcf8b4edcd04d9387e3c661ed5bfdb10e368 100644 (file)
@@ -147,6 +147,9 @@ struct xe_uc_fw {
 
        /** @private_data_size: size of private data found in uC css header */
        u32 private_data_size;
+
+       /** @build_type: Firmware build type (see CSS_UKERNEL_INFO_BUILDTYPE for definitions) */
+       u32 build_type;
 };
 
 #endif