drm: print framebuffer size when plane check fail
authorMark Yao <mark.yao@rock-chips.com>
Fri, 24 Feb 2017 02:19:27 +0000 (10:19 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Fri, 24 Feb 2017 02:39:20 +0000 (10:39 +0800)
Change-Id: Id51f25e407953cf123444cf961da8a0f8f5745e8
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/drm_atomic.c

index 8f9d344b2997c592b754d55a6e8284b1618a8f33..938d331701a5d007b241ce396da97e2041748b0e 100644 (file)
@@ -752,6 +752,8 @@ static int drm_atomic_plane_check(struct drm_plane *plane,
                                 state->src_h >> 16, ((state->src_h & 0xffff) * 15625) >> 10,
                                 state->src_x >> 16, ((state->src_x & 0xffff) * 15625) >> 10,
                                 state->src_y >> 16, ((state->src_y & 0xffff) * 15625) >> 10);
+               DRM_DEBUG_ATOMIC("framebuffer size[%dx%d]\n",
+                                fb_width >> 16, fb_height >> 16);
                return -ENOSPC;
        }