[Intel-gfx] [PATCH 08/21] drm/i915/slpc: Allocate/Release/Initialize SLPC shared data

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


On Wed, Apr 27, 2016 at 06:10:52PM -0700, tom.orourke at intel.com wrote:
>  void intel_slpc_init(struct drm_device *dev)
>  {
> -	return;
> +	struct drm_i915_private *dev_priv = dev->dev_private;

So what you wanted was dev_priv not dev!

> +	struct drm_i915_gem_object *obj;
> +
> +	/* Allocate shared data structure */
> +	obj = dev_priv->guc.slpc.shared_data_obj;

This function (init) should be called exactly once. Do you intend to
also be part of the the init_hw phase?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list