Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Increase DP blank timeout from 30 ms to 50 ms

[Why]
At 24 Hz, a frame is 41.7 ms, so a 30 ms wait can (and does often)
timeout.

[How]
Bump timeout from 30 ms to 50 ms.

Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Ken Chalmers and committed by
Alex Deucher
3af91bb1 30eb85ff

+2 -2
+2 -2
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c
··· 797 797 */ 798 798 REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_DIS_DEFER, 2); 799 799 /* Larger delay to wait until VBLANK - use max retry of 800 - * 10us*3000=30ms. This covers 16.6ms of typical 60 Hz mode + 800 + * 10us*5000=50ms. This covers 41.7ms of minimum 24 Hz mode + 801 801 * a little more because we may not trust delay accuracy. 802 802 */ 803 - max_retries = DP_BLANK_MAX_RETRY * 150; 803 + max_retries = DP_BLANK_MAX_RETRY * 250; 804 804 805 805 /* disable DP stream */ 806 806 REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_ENABLE, 0);