drm/i915: Capture CCID on ILK
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 07:53:39 +0000 (10:53 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 28 Apr 2017 09:11:59 +0000 (12:11 +0300)
CCID register existed already on ILK according to the PRM (Chris
verified the address to match too).

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>
Link: http://patchwork.freedesktop.org/patch/msgid/1493366019-18380-1-git-send-email-joonas.lahtinen@linux.intel.com
drivers/gpu/drm/i915/i915_gpu_error.c

index fbdd06c43c61f65e128f31eb12f988afe399a7b2..ec526d92f908df73a0799764e9dd0fbbc4fee406 100644 (file)
@@ -1598,7 +1598,7 @@ static void i915_capture_reg_state(struct drm_i915_private *dev_priv,
                error->done_reg = I915_READ(DONE_REG);
        }
 
-       if (INTEL_GEN(dev_priv) >= 6)
+       if (INTEL_GEN(dev_priv) >= 5)
                error->ccid = I915_READ(CCID);
 
        /* 3: Feature specific registers */