drm/i915: Restrict gen6_reset_rps_interrupts to gen6+
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Aug 2018 22:36:30 +0000 (23:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Aug 2018 20:20:28 +0000 (21:20 +0100)
Do not call gen6_reset_rps_interrupts() when we know the registers do not
exist.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180812223642.24865-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_pm.c

index 03654f5f68c3e8552a3ebbbfc61e11cebccd95a7..9a01560c5bd1f2f4a9ee5a7f22f2753978038fd5 100644 (file)
@@ -8260,7 +8260,7 @@ void intel_sanitize_gt_powersave(struct drm_i915_private *dev_priv)
 
        if (INTEL_GEN(dev_priv) >= 11)
                gen11_reset_rps_interrupts(dev_priv);
-       else
+       else if (INTEL_GEN(dev_priv) >= 6)
                gen6_reset_rps_interrupts(dev_priv);
 }