]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Keep the execbuf client allocated across reset
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Nov 2016 12:10:23 +0000 (12:10 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Nov 2016 15:52:45 +0000 (15:52 +0000)
commit342bc855f1311dbcc02ccba4a7172ffa07a6d292
tree4867f3553a5dc68ffedffb5144c2d74324bcb69b
parent79c93f5d31ff4b2980c0b84eb9d1c2caea8ee44e
drm/i915/guc: Keep the execbuf client allocated across reset

In order to avoid some complexity in trying to reconstruct the
workqueues across reset, remember them instead. The issue comes when we
have to handle a reset between request allocation and submission, the
request has reserved space in the wq, but is not in any list so we fail
to restore the reserved space. By keeping the execbuf client intact
across the reset, we also keep the reservations.

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