]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b6dca7c8189864fe996c8750ad139984ced16c1
tree4b94fd921be0a7f03911d8623ba56102fc2c1789
parent63be4b045900226577c971fe399d3c4734ab64ed
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: 5fc05667f5b6 ("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