aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 08:53:58 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 09:34:19 -0400
commit644db711d3af6f7b91ce4b7e1a056a84bf34d349 (patch)
tree0ef2f80e49f6f193014f9f46f1d3d1b10afde280 /drivers/gpu/drm/i915/intel_display.c
parent912e8b12eedb41c69717deda2b2a08e7292945fc (diff)
drm/i915: dump crtc timings from the pipe config
I always get royally confused how a modeline with all zeros could possible pass the paranoid pipe config checker. Until I realize again that we only check the crtc timings. So dump the crtc timings for the adjusted mode. This will be even more important for 3D support where the crtc timings are markedly different from the input modeline if we have frame-by-frame 3d output enabled. Cc: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 5e6fa778d763..2ed974e1d08b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8333,6 +8333,17 @@ compute_baseline_pipe_bpp(struct intel_crtc *crtc,
8333 return bpp; 8333 return bpp;
8334} 8334}
8335 8335
8336static void intel_dump_crtc_timings(const struct drm_display_mode *mode)
8337{
8338 DRM_DEBUG_KMS("crtc timings: %d %d %d %d %d %d %d %d %d, "
8339 "type: 0x%x flags: 0x%x\n",
8340 mode->clock,
8341 mode->crtc_hdisplay, mode->crtc_hsync_start,
8342 mode->crtc_hsync_end, mode->crtc_htotal,
8343 mode->crtc_vdisplay, mode->crtc_vsync_start,
8344 mode->crtc_vsync_end, mode->crtc_vtotal, mode->type, mode->flags);
8345}
8346
8336static void intel_dump_pipe_config(struct intel_crtc *crtc, 8347static void intel_dump_pipe_config(struct intel_crtc *crtc,
8337 struct intel_crtc_config *pipe_config, 8348 struct intel_crtc_config *pipe_config,
8338 const char *context) 8349 const char *context)
@@ -8358,6 +8369,7 @@ static void intel_dump_pipe_config(struct intel_crtc *crtc,
8358 drm_mode_debug_printmodeline(&pipe_config->requested_mode); 8369 drm_mode_debug_printmodeline(&pipe_config->requested_mode);
8359 DRM_DEBUG_KMS("adjusted mode:\n"); 8370 DRM_DEBUG_KMS("adjusted mode:\n");
8360 drm_mode_debug_printmodeline(&pipe_config->adjusted_mode); 8371 drm_mode_debug_printmodeline(&pipe_config->adjusted_mode);
8372 intel_dump_crtc_timings(&pipe_config->adjusted_mode);
8361 DRM_DEBUG_KMS("port clock: %d\n", pipe_config->port_clock); 8373 DRM_DEBUG_KMS("port clock: %d\n", pipe_config->port_clock);
8362 DRM_DEBUG_KMS("pipe src size: %dx%d\n", 8374 DRM_DEBUG_KMS("pipe src size: %dx%d\n",
8363 pipe_config->pipe_src_w, pipe_config->pipe_src_h); 8375 pipe_config->pipe_src_w, pipe_config->pipe_src_h);