drm/modes: Limit fallback modes to 60Hz
authorAdam Jackson <ajax@redhat.com>
Mon, 23 Nov 2009 19:23:04 +0000 (14:23 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Nov 2009 01:24:21 +0000 (11:24 +1000)
See also: http://bugzilla.redhat.com/514600

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index cea665d..dd95edf 100644 (file)
@@ -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);