>From 2b16db9fccc6927f3e09020144d5148acc025f58 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 21 Jan 2012 12:48:38 -0800 Subject: [PATCH] drm/i915: Output a bit of debug info for display port bandwidth Something weird is going on with link bandwidth testing; this may help sort out what's wrong. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index db3b461..796d534 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -697,10 +697,13 @@ intel_dp_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode, mode->clock = intel_dp->panel_fixed_mode->clock; } + DRM_DEBUG_KMS("using bpp %d to find link_bw and lane_count\n", bpp); for (lane_count = 1; lane_count <= max_lane_count; lane_count <<= 1) { for (clock = 0; clock <= max_clock; clock++) { int link_avail = intel_dp_max_data_rate(intel_dp_link_clock(bws[clock]), lane_count); + DRM_DEBUG_KMS("lane_count %d clock %d link_avail %d link_required %d\n", + lane_count, clock, link_avail, intel_dp_link_required(intel_dp, mode->clock, bpp)); if (intel_dp_link_required(intel_dp, mode->clock, bpp) <= link_avail) { intel_dp->link_bw = bws[clock]; -- 1.7.8.3