lkml.org 
[lkml]   [2012]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 260/262] drm/udl: limit modes to the sku pixel limits.
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.5-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Dave Airlie <airlied@redhat.com>

    commit 3a75885848996baab5276ff37ebf7295c3c753f0 upstream.

    Otherwise when X starts we commonly get a black screen scanning
    out nothing, its wierd dpms on/off from userspace brings it back,

    With this on F18, multi-seat works again with my 1920x1200 monitor
    which is above the sku limit for the device I have.

    Reviewed-by: Alex Deucher <alexander.deucher@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/gpu/drm/udl/udl_connector.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- a/drivers/gpu/drm/udl/udl_connector.c
    +++ b/drivers/gpu/drm/udl/udl_connector.c
    @@ -69,6 +69,13 @@ static int udl_get_modes(struct drm_conn
    static int udl_mode_valid(struct drm_connector *connector,
    struct drm_display_mode *mode)
    {
    + struct udl_device *udl = connector->dev->dev_private;
    + if (!udl->sku_pixel_limit)
    + return 0;
    +
    + if (mode->vdisplay * mode->hdisplay > udl->sku_pixel_limit)
    + return MODE_VIRTUAL_Y;
    +
    return 0;
    }




    \
     
     \ /
      Last update: 2012-09-28 22:02    [W:3.767 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site