Skip to content

Commit f77758e

Browse files
Wesley Chalmersgregkh
authored andcommitted
drm/amd/display: Increase timeout for DP Disable
commit 37b7cb1 upstream. [WHY] When disabling DP video, the current REG_WAIT timeout of 50ms is too low for certain cases with very high VSYNC intervals. [HOW] Increase the timeout to 102ms, so that refresh rates as low as 10Hz can be handled properly. Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent aa7c61b commit f77758e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,10 @@ void enc1_stream_encoder_dp_blank(
896896
*/
897897
REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_DIS_DEFER, 2);
898898
/* Larger delay to wait until VBLANK - use max retry of
899-
* 10us*5000=50ms. This covers 41.7ms of minimum 24 Hz mode +
899+
* 10us*10200=102ms. This covers 100.0ms of minimum 10 Hz mode +
900900
* a little more because we may not trust delay accuracy.
901901
*/
902-
max_retries = DP_BLANK_MAX_RETRY * 250;
902+
max_retries = DP_BLANK_MAX_RETRY * 501;
903903

904904
/* disable DP stream */
905905
REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_ENABLE, 0);

0 commit comments

Comments
 (0)