drm/i915: Refactor to common helpers for prepare/finish between reset & wedge
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Mar 2019 08:44:32 +0000 (08:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Mar 2019 15:18:46 +0000 (15:18 +0000)
commit67d4119c07a7f17043711a88dade69f08c3d6e03
tree3a99f49ba7f3a1311a2b0aadea2f1c80eb123954
parentd2eeaf2bc04941444bfd52285b6183d6c84c262c
drm/i915: Refactor to common helpers for prepare/finish between reset & wedge

Since both GPU reset and declaring the device wedged suspend ongoing
driver activity around a hard reset, we can reuse the same code to
reduce the likelihood of forgetting details surrounding reset from
either path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190314084432.3740-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c