[Intel-gfx] [PATCH 06/15] drm/i915: Mark up obj->pin_global as being atomic

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 23 16:03:46 UTC 2019


Quoting Mika Kuoppala (2019-08-23 17:00:08)
> Chris Wilson <chris at chris-wilson.co.uk> writes:
> 
> > Coming up next, we will want to manipulate the pin_global counter
> > outside of the principle locks, so convert it to an atomic.
> >
> 
> I am not yet up to speed on pin_global but
> being part of a series where where this needs
> to be atomic, the patch does what it says on the tin.

pin_global really started off life as a means to keep the shrinker at
bay. It then grew as a marker for display objects in GEM, but really we
can use obj->frontbuffer now for that role. And we already use
obj->frontbuffer to delay shrinking of those objects.

Hmm. That might work.
-Chris


More information about the Intel-gfx mailing list