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

Matthew Auld matthew.william.auld at gmail.com
Wed Apr 1 19:22:06 UTC 2020


On Tue, 31 Mar 2020 at 22:31, Chris Wilson <chris at chris-wilson.co.uk> 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 at atomically counting the bind count and
> comparing it to the number of pinned mappings of the object. This will
> only get more clumsier with asynchronous binding and unbinding.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list