drm/i915: Wrap port cancellation into a function
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 22 Sep 2017 12:43:05 +0000 (15:43 +0300)
committerMika Kuoppala <mika.kuoppala@intel.com>
Mon, 25 Sep 2017 08:33:40 +0000 (11:33 +0300)
commitcf4591d1ce1c85d589a3e8e7e5a0bbc7aa9b0027
tree5cbea8d7b49f8ceaa62b86185bc8f500cd6a5738
parent19df9a5782f51c900a730dae11e4abf85a0e5ebc
drm/i915: Wrap port cancellation into a function

On reset and wedged path, we want to release the requests
that are tied to ports and then mark the ports to be unset.
Introduce a function for this.

v2: rebase
v3: drop local, keep GEM_BUG_ON (Michał, Chris)
v4: rebase

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20170922124307.10914-3-mika.kuoppala@intel.com
drivers/gpu/drm/i915/intel_lrc.c