[Intel-gfx] [PATCH 6/8] drm/i915: Add support for stealing purgable stolen pages

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 15 03:59:36 PST 2015


On Tue, Dec 15, 2015 at 04:26:06PM +0530, ankitprasad.r.sharma at intel.com wrote:
> +static int
> +stolen_evict(struct drm_i915_private *dev_priv, u64 size)
>  {
> -	struct drm_i915_private *dev_priv = dev->dev_private;
>  	struct drm_i915_gem_object *obj;
> -	struct drm_mm_node *stolen;
> -	int ret;
> +	struct list_head unwind, evict;
> +	struct i915_stolen_node *iter;
> +	int ret, active;

lockdep_assert_held(&dev_priv->dev->struct_mutex);

would be nice as I just spent a moment refreshing what locks we
required.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list