Commit 883a1a5b authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

drm/vc4: Limit fkms to modes <= 85Hz



Selecting 1080p100 and 120 has very limited gain, but don't want
to block VGA85 and similar.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
parent cbb5c28e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -822,6 +822,10 @@ vc4_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode)
		return MODE_NO_DBLESCAN;
	}

	/* Disable refresh rates > 85Hz as limited gain from them */
	if (drm_mode_vrefresh(mode) > 85)
		return MODE_BAD_VVALUE;

	/* Limit the pixel clock based on the HDMI clock limits from the
	 * firmware
	 */