Skip to content

Commit c50065a

Browse files
Rodrigo Siqueiragregkh
authored andcommitted
drm/amd/display: Ensure vmin and vmax adjust for DCE
commit 2820433 upstream. [Why & How] In the commit 3295348 ("drm/amd/display: Do not update DRR while BW optimizations pending"), a modification was added to avoid adjusting DRR if optimized bandwidth is set. This change was only intended for DCN, but one part of the patch changed the code path for DCE devices and caused regressions to the kms_vrr test. To address this problem, this commit adds a modification in which dc_stream_adjust_vmin_vmax will be fully executed in DCE devices. Fixes: 3295348 ("drm/amd/display: Do not update DRR while BW optimizations pending") Reviewed-by: Aric Cyr <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9d0b2af commit c50065a

File tree

1 file changed

+3
-2
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,
405405
* Don't adjust DRR while there's bandwidth optimizations pending to
406406
* avoid conflicting with firmware updates.
407407
*/
408-
if (dc->optimized_required || dc->wm_optimized_required)
409-
return false;
408+
if (dc->ctx->dce_version > DCE_VERSION_MAX)
409+
if (dc->optimized_required || dc->wm_optimized_required)
410+
return false;
410411

411412
stream->adjust.v_total_max = adjust->v_total_max;
412413
stream->adjust.v_total_mid = adjust->v_total_mid;

0 commit comments

Comments
 (0)