drm/radeon/kms: add pll debugging output
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 31 Jan 2011 21:48:51 +0000 (16:48 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Feb 2011 02:49:39 +0000 (12:49 +1000)
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_display.c

index 71788e942cb7384805e2ab7a1e35dfd700aa88d0..367365652e9a5283dcf10756a3790f271cff7de6 100644 (file)
@@ -965,6 +965,10 @@ void radeon_compute_pll(struct radeon_pll *pll,
        *frac_fb_div_p = best_frac_feedback_div;
        *ref_div_p = best_ref_div;
        *post_div_p = best_post_div;
+       DRM_DEBUG_KMS("%d %d, pll dividers - fb: %d.%d ref: %d, post %d\n",
+                     freq, best_freq / 1000, best_feedback_div, best_frac_feedback_div,
+                     best_ref_div, best_post_div);
+
 }
 
 static void radeon_user_framebuffer_destroy(struct drm_framebuffer *fb)