From: Dmytro Laktyushkin <[email protected]>

Bring this calculation in line with HW programming guide.

Signed-off-by: Dmytro Laktyushkin <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Leo Li <[email protected]>
---
 .../gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c 
b/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
index 2c7455e22a65..9df24ececcec 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c
@@ -929,8 +929,7 @@ static void dml20_rq_dlg_get_dlg_params(struct 
display_mode_lib *mode_lib,
        min_dst_y_ttu_vblank = min_ttu_vblank * pclk_freq_in_mhz / (double) 
htotal;
        dlg_vblank_start = interlaced ? (vblank_start / 2) : vblank_start;
 
-       disp_dlg_regs->min_dst_y_next_start = (unsigned int) (((double) 
dlg_vblank_start
-                       + min_dst_y_ttu_vblank) * dml_pow(2, 2));
+       disp_dlg_regs->min_dst_y_next_start = (unsigned int) ((double) 
dlg_vblank_start * dml_pow(2, 2));
        ASSERT(disp_dlg_regs->min_dst_y_next_start < (unsigned int) dml_pow(2, 
18));
 
        dml_print("DML_DLG: %s: min_dcfclk_mhz                         = 
%3.2f\n",
-- 
2.24.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to