Skip to content

Commit a2149f5

Browse files
leiojannau
authored andcommitted
Revert "drm: apple: pasrser: Reject high refresh / resolution modes"
DSC setup seems to just work for me when this higher pixel clock limit is simply removed again. With the limitation a 6K display is able to work up to 30Hz only, whereas with the limit removed, it just works without doing anything further in 6K@60Hz-10bit whereas the monitor starts reporting that DSC is in use. This reverts commit 741b581. Signed-off-by: Mart Raudsepp <[email protected]>
1 parent 26faaed commit a2149f5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/gpu/drm/apple/parser.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -505,20 +505,6 @@ static int parse_mode(struct dcp_parse_ctx *handle,
505505
(horiz.active == 3456 && vert.active == 2234)))
506506
return -EINVAL;
507507

508-
/*
509-
* HACK: reject refresh modes with a pixel clock above 926484,480 kHz
510-
* (bandwidth limit reported by dcp). This allows 4k 100Hz and
511-
* 5k 60Hz but not much beyond.
512-
* DSC setup seems to require additional steps
513-
*/
514-
if (calculate_clock(&horiz, &vert) > 926484) {
515-
pr_info("dcp: rejecting mode %lldx%lld@%lld.%03lld (pixel clk:%d)\n",
516-
horiz.active, vert.active, vert.precise_sync_rate >> 16,
517-
((1000 * vert.precise_sync_rate) >> 16) % 1000,
518-
calculate_clock(&horiz, &vert));
519-
return -EINVAL;
520-
}
521-
522508
vert.active -= notch_height;
523509
vert.sync_width += notch_height;
524510

0 commit comments

Comments
 (0)