Is this a real attempt or enabling GuC by default or is it only for CI validating the series? If it is the second option I'd like to see CI testing this series without this patch here as well to make sure these changes are not breaking any of the current default flow. One case or the other I believe we should have more info here on the commit message. Thanks, Rodrigo. On Tue, Dec 05, 2017 at 04:38:44PM +0000, Michal Wajdeczko wrote: > Also revert ("drm/i915/guc: Assert that we switch between > known ggtt->invalidate functions") > > v2: don't enable GuC on GLK > > Signed-off-by: Michal Wajdeczko <michal.wajdeczko@xxxxxxxxx> > --- > drivers/gpu/drm/i915/i915_gem_gtt.c | 8 ++------ > drivers/gpu/drm/i915/i915_params.h | 2 +- > drivers/gpu/drm/i915/intel_uc.c | 2 ++ > 3 files changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c > index 209bb11..a5e75a3 100644 > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c > @@ -3590,17 +3590,13 @@ int i915_ggtt_enable_hw(struct drm_i915_private *dev_priv) > > void i915_ggtt_enable_guc(struct drm_i915_private *i915) > { > - GEM_BUG_ON(i915->ggtt.invalidate != gen6_ggtt_invalidate); > - > i915->ggtt.invalidate = guc_ggtt_invalidate; > } > > void i915_ggtt_disable_guc(struct drm_i915_private *i915) > { > - /* We should only be called after i915_ggtt_enable_guc() */ > - GEM_BUG_ON(i915->ggtt.invalidate != guc_ggtt_invalidate); > - > - i915->ggtt.invalidate = gen6_ggtt_invalidate; > + if (i915->ggtt.invalidate == guc_ggtt_invalidate) > + i915->ggtt.invalidate = gen6_ggtt_invalidate; > } > > void i915_gem_restore_gtt_mappings(struct drm_i915_private *dev_priv) > diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h > index 792ce26..9725c5a 100644 > --- a/drivers/gpu/drm/i915/i915_params.h > +++ b/drivers/gpu/drm/i915/i915_params.h > @@ -45,7 +45,7 @@ > param(int, disable_power_well, -1) \ > param(int, enable_ips, 1) \ > param(int, invert_brightness, 0) \ > - param(int, enable_guc, 0) \ > + param(int, enable_guc, -1) \ > param(int, guc_log_level, -1) \ > param(char *, guc_firmware_path, NULL) \ > param(char *, huc_firmware_path, NULL) \ > diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c > index 49bccc9..22b0afe 100644 > --- a/drivers/gpu/drm/i915/intel_uc.c > +++ b/drivers/gpu/drm/i915/intel_uc.c > @@ -60,6 +60,8 @@ static int __get_platform_enable_guc(struct drm_i915_private *dev_priv) > enable_guc |= ENABLE_GUC_LOAD_HUC; > > /* Any platform specific fine-tuning can be done here */ > + if (IS_GEMINILAKE(dev_priv)) > + enable_guc = 0; /* no firmware on CI machines */ > > return enable_guc; > } > -- > 2.7.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx