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)
commit4d357af49918e21dde6ecfb9b2f431fe0ab3eff8
tree4867f3553a5dc68ffedffb5144c2d74324bcb69b
parent597bdc8bb2e8a8318d9c19bc285a95532a9ffe52
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