From a455ed04669f03bbb1f22267f1237983e026739f Mon Sep 17 00:00:00 2001 From: Daniele Ceraolo Spurio Date: Wed, 13 Sep 2023 16:28:37 -0700 Subject: drm/xe/uc: Add GuC/HuC firmware path overrides When testing a new binary and/or debugging binary-related issues, it is useful to have the option to change which binary is loaded without having to update and re-compile the kernel. To support this option, this patch adds 2 new modparams to override the FW path for GuC and HuC. The HuC modparam can also be set to an empty string to disable HuC loading. Note that those modparams only take effect on platforms where we already have a default FW, so we're sure there is support for FW loading and the kernel isn't going to explode in an undefined path. v2: simplify comment (John), rebase on s/guc_submission_enabled/uc_enabled Signed-off-by: Daniele Ceraolo Spurio Cc: John Harrison Cc: Matthew Brost Reviewed-by: John Harrison Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/xe/xe_module.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/drm/xe/xe_module.h') diff --git a/drivers/gpu/drm/xe/xe_module.h b/drivers/gpu/drm/xe/xe_module.h index 2c1f9199f909..e1da1e9ca5cb 100644 --- a/drivers/gpu/drm/xe/xe_module.h +++ b/drivers/gpu/drm/xe/xe_module.h @@ -10,4 +10,6 @@ extern bool force_execlist; extern bool enable_display; extern u32 xe_force_vram_bar_size; extern int xe_guc_log_level; +extern char *xe_guc_firmware_path; +extern char *xe_huc_firmware_path; extern char *xe_param_force_probe; -- cgit v1.2.3