drm/i915/cnl: Reuse skl_wm_get_hw_state on Cannonlake.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 9 Aug 2017 20:52:48 +0000 (13:52 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 16 Aug 2017 14:43:12 +0000 (07:43 -0700)
Otherwise it reuses the ilk that has a completely different
wm.

Cc: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170809205248.11917-6-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_display.c

index 29926244f4f2f1e555ae319deb76be6acaf78682..0e93ec201fe31092af3a6cd1cb0be6fac53fb71e 100644 (file)
@@ -15120,7 +15120,7 @@ intel_modeset_setup_hw_state(struct drm_device *dev,
        } else if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) {
                vlv_wm_get_hw_state(dev);
                vlv_wm_sanitize(dev_priv);
-       } else if (IS_GEN9(dev_priv)) {
+       } else if (INTEL_GEN(dev_priv) >= 9) {
                skl_wm_get_hw_state(dev);
        } else if (HAS_PCH_SPLIT(dev_priv)) {
                ilk_wm_get_hw_state(dev);