drm/i915: Reduce i915_request_alloc retirement to local context
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Jan 2019 21:59:32 +0000 (21:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Jan 2019 22:23:31 +0000 (22:23 +0000)
commitd22ba0cb1ffeffa5bf37b7cfab7958706daffee4
tree4b94fd921be0a7f03911d8623ba56102fc2c1789
parent4e8052af858a6ea2cf656bdb6dbcf16dd87a39c1
drm/i915: Reduce i915_request_alloc retirement to local context

In the continual quest to reduce the amount of global work required when
submitting requests, replace i915_retire_requests() after allocation
failure to retiring just our ring.

v2: Don't forget the list iteration included an early break, so we would
never throttle on the last request in the ring/timeline.
v3: Use the common ring_retire_requests()

References: 11abf0c5a021 ("drm/i915: Limit the backpressure for i915_request allocation")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190109215932.26454-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c