]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Simplify eb_lookup_vmas()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Aug 2017 08:52:07 +0000 (09:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Aug 2017 10:58:29 +0000 (11:58 +0100)
commitd5e1854bb6e3a392990690903f6688cbffb415f7
treeb2b8f7fb9d9c2a51d3290160d436148d650e92e0
parent7e8c6a51e9cb3c87f6aa7c392aa39786e6543b70
drm/i915: Simplify eb_lookup_vmas()

Since the introduction of being able to perform a lockless lookup of an
object (i915_gem_object_get_rcu() in 1d5bd6b13297 ("drm/i915: Move object
release to a freelist + worker") we no longer need to split the
object/vma lookup into 3 phases and so combine them into a much simpler
single loop.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170816085210.4199-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c