drm/i915: Generalise common GPU engine reset request/unrequest code
authorTomas Elf <tomas.elf@intel.com>
Wed, 2 Mar 2016 14:46:24 +0000 (16:46 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Fri, 4 Mar 2016 13:17:05 +0000 (15:17 +0200)
commitd431440cce2427dcdd665d936865fe802637b4c2
tree3ef267d6de3fc9dc48dd7674b7bd085826c0e76d
parent37f2248e3d422f0463800b574ea9288ede97cea2
drm/i915: Generalise common GPU engine reset request/unrequest code

GPU engine reset handshaking is something that is applicable to both full GPU
reset and engine reset, which is something that is part of the upcoming TDR
per-engine hang recovery patches. Break out the common engine reset
request/unrequest code (originally written by Mika Kuoppala) for reuse later
in the TDR enablement patch series.

v2: correct indentation and drop unused returned value (Mika)
v3: We have forcewake during reset so use *_FW reg access (Mika)

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Tomas Elf <tomas.elf@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
[Mika: Fixed format warning]
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456929984-16323-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/intel_uncore.c