[Intel-gfx] [PATCH 3/4] drm/i915: Add support for stealing purgable stolen pages
Chris Wilson
chris at chris-wilson.co.uk
Wed Jul 22 08:10:08 PDT 2015
On Wed, Jul 22, 2015 at 07:21:48PM +0530, ankitprasad.r.sharma at intel.com wrote:
> +struct drm_i915_gem_object *
> +i915_gem_object_create_stolen(struct drm_device *dev, u32 size)
> +{
> + struct drm_i915_private *dev_priv = dev->dev_private;
> + struct drm_i915_gem_object *obj;
> + struct drm_mm_node *stolen;
> +
> + lockdep_assert_held(&dev->struct_mutex);
We are now using dev->smm.stolen_lock instead and do not require the
caller to take struct_mutex. Please fix up the locking accordingly.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list