[Intel-gfx] [PATCH] drm/i915/guc: Take enable_guc_loading check out of GEM core code

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 29 10:04:43 UTC 2017


On Tue, Mar 28, 2017 at 09:53:47AM -0700, Oscar Mateo wrote:
> The should happen as soon as possible, but always within the logic that
> depends on it (and not interrupting the top-level driver control flow).
> 
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Signed-off-by: Oscar Mateo <oscar.mateo at intel.com>

>  void intel_uc_fini_hw(struct drm_i915_private *dev_priv)
>  {
> +	if (!i915.enable_guc_loading)
> +		return;
> +
>  	if (i915.enable_guc_submission) {
>  		i915_guc_submission_disable(dev_priv);
>  		gen9_disable_guc_interrupts(dev_priv);

With the understanding that this becomes more interesting in the future
:)

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list