drm/i915: Reset ILK during GEM sanitization
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 07:53:38 +0000 (10:53 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 09:11:59 +0000 (12:11 +0300)
ILK should survive a reset without display corruption.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c

index ea34a321588dd4a2e6d3272cc36ff3d38a8ff087..f5f60574088604193b7b390ed7fc8c9734b5b997 100644 (file)
@@ -4485,10 +4485,9 @@ void i915_gem_sanitize(struct drm_i915_private *i915)
         * try to take over. The only way to remove the earlier state
         * is by resetting. However, resetting on earlier gen is tricky as
         * it may impact the display and we are uncertain about the stability
-        * of the reset, so we only reset recent machines with logical
-        * context support (that must be reset to remove any stray contexts).
+        * of the reset, so this could be applied to even earlier gen.
         */
-       if (INTEL_GEN(i915) >= 6) {
+       if (INTEL_GEN(i915) >= 5) {
                int reset = intel_gpu_reset(i915, ALL_ENGINES);
                WARN_ON(reset && reset != -ENODEV);
        }