]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Keep one request in our ring_list
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 May 2018 19:51:15 +0000 (20:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 May 2018 06:26:56 +0000 (07:26 +0100)
commit6f98d503c768c2203d0f7d7ba97461b3f43b9e22
tree56154468d357d3dd7fcaba0478ca50db613c68a1
parent4b7c59833947b1c9488449fbde7c2b7c98dc8a33
drm/i915: Keep one request in our ring_list

Don't pre-emptively retire the oldest request in our ring's list if it
is the only request. We keep various bits of state alive using the
active reference from the request and would rather transfer that state
over to a new request rather than the more involved process of retiring
and reacquiring it.

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/20180503195115.22309-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c