drm/i915: Also perform gpu reset under execlist mode.
authorNiu,Bing <bing.niu@intel.com>
Fri, 3 Jul 2015 16:27:34 +0000 (00:27 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Jul 2015 12:41:25 +0000 (14:41 +0200)
commita647828afc7d7d352aeb076dbc03bd952b09b1e3
treecf1bce314a88267923d8730a918e413962cd755a
parent9e00084750c0f0603ec8a6ff15e0bcf78b8202bd
drm/i915: Also perform gpu reset under execlist mode.

It is found that i915 will not reset gpu under execlist mode when
unload module. that will lead to some issues when unload/load module
with different submission mode. e.g. from execlist mode to ring
buffer mode via loading/unloading i915. Because HW is not in a reset
state and registers are not clean under such condition.

Signed-off-by: Niu,Bing <bing.niu@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c