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)
commit7c572e1bdf8dea0c84ce8da01a84cdaa26d8e138
tree56154468d357d3dd7fcaba0478ca50db613c68a1
parent3365e2268b6bc3d9fa6550f2deaf1b6a537f8732
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