drm/i915/gen10: fix WM latency printing
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 9 Aug 2017 20:52:46 +0000 (13:52 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 10 Aug 2017 20:59:28 +0000 (13:59 -0700)
Gen 10 is just like Gen 9, so let's consider that all the future
platforms are going to be like gen 9 instead of being like gen8-.

Cc: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: 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-4-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_pm.c

index f64fdae88b7dc8acbe2d53b3698e225e1eff2e3c..66495ad36973d8e52f5fcad8e52b049e32a43828 100644 (file)
@@ -2934,7 +2934,7 @@ static void intel_print_wm_latency(struct drm_i915_private *dev_priv,
                 * - latencies are in us on gen9.
                 * - before then, WM1+ latency values are in 0.5us units
                 */
-               if (IS_GEN9(dev_priv))
+               if (INTEL_GEN(dev_priv) >= 9)
                        latency *= 10;
                else if (level > 0)
                        latency *= 5;