[Intel-gfx] [PATCH 34/55] drm/i915: Count how many VMA are bound for an object

Chris Wilson chris at chris-wilson.co.uk
Tue Jul 26 08:02:56 UTC 2016


On Tue, Jul 26, 2016 at 10:44:00AM +0300, Joonas Lahtinen wrote:
> On ma, 2016-07-25 at 18:32 +0100, Chris Wilson wrote:
> > @@ -3692,6 +3692,9 @@ i915_gem_object_pin_to_display_plane(struct drm_i915_gem_object *obj,
> >  					    old_read_domains,
> >  					    old_write_domain);
> >  
> > +	/* Increment the pages_pin_count to guard against the shrinker */
> > +	obj->pages_pin_count++;
> > +
> 
> This is new unrelated code/fix?

No. It is a change in accounting due to this patch.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list