Re: [Intel-gfx] [PATCH 11/11] drm/i915/gem: Drop cached obj->bind_count

2020-04-01 Thread Matthew Auld
On Tue, 31 Mar 2020 at 22:31, Chris Wilson wrote: > > We cached the number of vma bound to the object in order to speed up > shrinker decisions. This has been superseded by being more proactive in > removing objects we cannot shrink from the shrinker lists, and so we can > drop the clumsy attempt

[Intel-gfx] [PATCH 11/11] drm/i915/gem: Drop cached obj->bind_count

2020-03-31 Thread Chris Wilson
We cached the number of vma bound to the object in order to speed up shrinker decisions. This has been superseded by being more proactive in removing objects we cannot shrink from the shrinker lists, and so we can drop the clumsy attempt at atomically counting the bind count and comparing it to the