[Intel-gfx] [PATCH 04/21] drm/i915/slpc: Add enable_slpc module parameter

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 28 07:02:44 UTC 2016


On Wed, Apr 27, 2016 at 06:10:48PM -0700, tom.orourke at intel.com wrote:
>  static void slpc_version_check(struct drm_device *dev,
>  			       struct intel_guc_fw *guc_fw)
>  {
> @@ -126,6 +141,8 @@ static void slpc_version_check(struct drm_device *dev,
>  		info = (struct intel_device_info *) &dev_priv->info;
>  		info->has_slpc = 0;
>  	}
> +
> +	slpc_enable_sanitize(dev);
>  }
>  
>  static u32 get_gttype(struct drm_i915_private *dev_priv)
> @@ -657,6 +674,8 @@ void intel_guc_ucode_init(struct drm_device *dev)
>  		fw_path = "";	/* unknown device */
>  	}
>  
> +	slpc_enable_sanitize(dev);

Calling it twice is a very bad sign that you have your ordering wrong.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list