summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-11-23 20:23:04 +0100
committerDave Airlie <airlied@redhat.com>2009-11-24 02:24:21 +0100
commitf985dedb57bae741b4326415f72fe1a1e556563b (patch)
tree5977401ba9db10da04a98bcaeb599a08cc384fb5
parentdrm/kms: allocate framebuffer cmap (diff)
downloadlinux-f985dedb57bae741b4326415f72fe1a1e556563b.tar.xz
linux-f985dedb57bae741b4326415f72fe1a1e556563b.zip
drm/modes: Limit fallback modes to 60Hz
See also: http://bugzilla.redhat.com/514600 Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/drm_edid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index cea665d86dd3..dd95edfcfdc7 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -1290,6 +1290,8 @@ int drm_add_modes_noedid(struct drm_connector *connector,
ptr->vdisplay > vdisplay)
continue;
}
+ if (drm_mode_vrefresh(ptr) > 61)
+ continue;
mode = drm_mode_duplicate(dev, ptr);
if (mode) {
drm_mode_probed_add(connector, mode);