drm/i915: Use DEBUG_KMS for the self-refresh watermarks
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Feb 2011 10:41:20 +0000 (10:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Feb 2011 12:04:52 +0000 (12:04 +0000)
For consistency and segregation from the noisy DRM_DEBUG().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index e18725735718152bbc130fb095fbf2014f05b1cd..a4acef6c14743658b0c012889ee4427f6f0b5264 100644 (file)
@@ -3805,10 +3805,10 @@ static void g4x_update_wm(struct drm_device *dev)
                I915_WRITE(FW_BLC_SELF,
                           I915_READ(FW_BLC_SELF) & ~FW_BLC_SELF_EN);
 
-       DRM_DEBUG("Setting FIFO watermarks - A: plane=%d, cursor=%d, B: plane=%d, cursor=%d, SR: plane=%d, cursor=%d\n",
-                 planea_wm, cursora_wm,
-                 planeb_wm, cursorb_wm,
-                 plane_sr, cursor_sr);
+       DRM_DEBUG_KMS("Setting FIFO watermarks - A: plane=%d, cursor=%d, B: plane=%d, cursor=%d, SR: plane=%d, cursor=%d\n",
+                     planea_wm, cursora_wm,
+                     planeb_wm, cursorb_wm,
+                     plane_sr, cursor_sr);
 
        I915_WRITE(DSPFW1,
                   (plane_sr << DSPFW_SR_SHIFT) |
@@ -3849,11 +3849,12 @@ static void i965_update_wm(struct drm_device *dev)
                entries = (((sr_latency_ns / line_time_us) + 1000) / 1000) *
                        pixel_size * hdisplay;
                entries = DIV_ROUND_UP(entries, I915_FIFO_LINE_SIZE);
-               DRM_DEBUG("self-refresh entries: %d\n", entries);
                srwm = I965_FIFO_SIZE - entries;
                if (srwm < 0)
                        srwm = 1;
                srwm &= 0x1ff;
+               DRM_DEBUG_KMS("self-refresh entries: %d, wm: %d\n",
+                             entries, srwm);
 
                entries = (((sr_latency_ns / line_time_us) + 1000) / 1000) *
                        pixel_size * 64;