drm/i915/execlists: Move request unwinding to a separate function
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Sep 2017 19:38:59 +0000 (20:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Sep 2017 11:45:21 +0000 (12:45 +0100)
commit7e4992ac045ccdef9d5a0b4800ee8da43b5a809a
treeb826bc4ffe2bdb7bc868da2e77b7ef97cb18dab1
parent269e6ea95311130f75c4eb21bf1797a4cadfb82d
drm/i915/execlists: Move request unwinding to a separate function

In the future, we will want to unwind requests following a preemption
point. This requires the same steps as for unwinding upon a reset, so
extract the existing code to a separate function for later use.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170928193910.17988-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c