Skip to content

Commit 883a1a5

Browse files
6by9popcornmix
authored andcommitted
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: Dave Stevenson <[email protected]>
1 parent cbb5c28 commit 883a1a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/vc4/vc4_firmware_kms.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,10 @@ vc4_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode)
822822
return MODE_NO_DBLESCAN;
823823
}
824824

825+
/* Disable refresh rates > 85Hz as limited gain from them */
826+
if (drm_mode_vrefresh(mode) > 85)
827+
return MODE_BAD_VVALUE;
828+
825829
/* Limit the pixel clock based on the HDMI clock limits from the
826830
* firmware
827831
*/

0 commit comments

Comments
 (0)