]> 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)
commit5148add20a5a305f88ce1ff9151fb99c591d32fe
tree4867f3553a5dc68ffedffb5144c2d74324bcb69b
parentb63bdf24d8f3ddfeb16116e4f2d1c5e7c5c8da28
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