]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Combine unbound/bound list tracking for objects
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jun 2019 10:57:20 +0000 (11:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jun 2019 12:36:43 +0000 (13:36 +0100)
commitd20f774e04823aae886abff119130d4ddf828172
tree193e1c61beac6c95ce163c74fd563fbbb5115d9b
parent13c2fee487a1c5bb87b6712df4d2bf734f08489e
drm/i915: Combine unbound/bound list tracking for objects

With async binding, we don't want to manage a bound/unbound list as we
may end up running before we even acquire the pages. All that is
required is keeping track of shrinkable objects, so reduce it to the
minimum list.

Fixes: 2d424072534c ("drm/i915: Move GEM object domain management from struct_mutex to local")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190612105720.30310-1-chris@chris-wilson.co.uk
13 files changed:
drivers/gpu/drm/i915/gem/i915_gem_domain.c
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object_types.h
drivers/gpu/drm/i915/gem/i915_gem_pages.c
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/selftests/i915_gem_evict.c
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c