]> Git Repo - linux.git/commitdiff
drm_fb_helper: Preserve capability to use atomic kms
authorJason Wessel <[email protected]>
Thu, 5 Aug 2010 14:22:32 +0000 (09:22 -0500)
committerJason Wessel <[email protected]>
Thu, 5 Aug 2010 14:22:32 +0000 (09:22 -0500)
Commit 5349ef3127c77075ff70b2014f17ae0fbcaaf199 (drm/fb: fix
FBIOGET/PUT_VSCREENINFO pixel clock handling) changed the logic of
when a pixclock was valid vs invalid.

The atomic kernel mode setting used by the kernel debugger relies upon
the drm_fb_helper_check_var() to always return -EINVAL.  Until a
better solution exists, this behavior will be restored.

CC: David Airlie <[email protected]>
CC: Jesse Barnes <[email protected]>
CC: Clemens Ladisch <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
drivers/gpu/drm/drm_fb_helper.c

index 6245add3768a3c552cd89d839588d6ea52eb0ebb..de82e201d6826d8ac0e422b22a2d0a93f8312d82 100644 (file)
@@ -685,7 +685,7 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
        struct drm_framebuffer *fb = fb_helper->fb;
        int depth;
 
-       if (var->pixclock != 0)
+       if (var->pixclock != 0 || in_dbg_master())
                return -EINVAL;
 
        /* Need to resize the fb object !!! */
This page took 0.058764 seconds and 4 git commands to generate.