Some CI systems might be configured to run with no longer supported
configuration "enable_guc=3" or "enable_guc=1". Hack that ;)

Signed-off-by: Michal Wajdeczko <michal.wajdec...@intel.com>
---
 drivers/gpu/drm/i915/intel_uc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
index a1a068511fd9..c40c8e6e6cd9 100644
--- a/drivers/gpu/drm/i915/intel_uc.c
+++ b/drivers/gpu/drm/i915/intel_uc.c
@@ -105,6 +105,12 @@ static void sanitize_options_early(struct drm_i915_private 
*i915)
        struct intel_uc_fw *guc_fw = &i915->guc.fw;
        struct intel_uc_fw *huc_fw = &i915->huc.fw;
 
+       /* HAX: prevent CI failures on configs with forced GuC */
+       if (i915_modparams.enable_guc & ENABLE_GUC_SUBMISSION) {
+               DRM_DEBUG_DRIVER("turning off ENABLE_GUC_SUBMISSION\n");
+               i915_modparams.enable_guc &= ~ENABLE_GUC_SUBMISSION;
+       }
+
        /* A negative value means "use platform default" */
        if (i915_modparams.enable_guc < 0)
                i915_modparams.enable_guc = __get_platform_enable_guc(i915);
-- 
2.19.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to