drm/i915: Only dump possible panel fitter config for the platform
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 17 Nov 2016 12:30:13 +0000 (12:30 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 17 Nov 2016 15:00:35 +0000 (15:00 +0000)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/intel_display.c

index 81526ba36c7189f2cdd98e58144f050c8aeaefed..a7f832f24235e465f62508fd56f9e5422724a37f 100644 (file)
@@ -12773,14 +12773,18 @@ static void intel_dump_pipe_config(struct intel_crtc *crtc,
                              crtc->num_scalers,
                              pipe_config->scaler_state.scaler_users,
                              pipe_config->scaler_state.scaler_id);
-       DRM_DEBUG_KMS("gmch pfit: control: 0x%08x, ratios: 0x%08x, lvds border: 0x%08x\n",
-                     pipe_config->gmch_pfit.control,
-                     pipe_config->gmch_pfit.pgm_ratios,
-                     pipe_config->gmch_pfit.lvds_border_bits);
-       DRM_DEBUG_KMS("pch pfit: pos: 0x%08x, size: 0x%08x, %s\n",
-                     pipe_config->pch_pfit.pos,
-                     pipe_config->pch_pfit.size,
-                     pipe_config->pch_pfit.enabled ? "enabled" : "disabled");
+
+       if (HAS_GMCH_DISPLAY(dev_priv))
+               DRM_DEBUG_KMS("gmch pfit: control: 0x%08x, ratios: 0x%08x, lvds border: 0x%08x\n",
+                             pipe_config->gmch_pfit.control,
+                             pipe_config->gmch_pfit.pgm_ratios,
+                             pipe_config->gmch_pfit.lvds_border_bits);
+       else
+               DRM_DEBUG_KMS("pch pfit: pos: 0x%08x, size: 0x%08x, %s\n",
+                             pipe_config->pch_pfit.pos,
+                             pipe_config->pch_pfit.size,
+                             pipe_config->pch_pfit.enabled ? "enabled" : "disabled");
+
        DRM_DEBUG_KMS("ips: %i, double wide: %i\n",
                      pipe_config->ips_enabled, pipe_config->double_wide);