drm/amd/display: Set dp_rate to dm_dp_rate_na by default
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Mon, 3 Apr 2023 21:38:09 +0000 (15:38 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:51 +0000 (16:28 -0400)
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c

index b79014f..9fadac1 100644 (file)
@@ -1300,8 +1300,7 @@ int dcn20_populate_dml_pipes_from_context(struct dc *dc,
                        pipes[pipe_cnt].pipe.dest.pixel_rate_mhz *= 2;
                pipes[pipe_cnt].pipe.dest.otg_inst = res_ctx->pipe_ctx[i].stream_res.tg->inst;
                pipes[pipe_cnt].dout.dp_lanes = 4;
-               if (res_ctx->pipe_ctx[i].stream->link)
-                       pipes[pipe_cnt].dout.dp_rate = dm_dp_rate_na;
+               pipes[pipe_cnt].dout.dp_rate = dm_dp_rate_na;
                pipes[pipe_cnt].dout.is_virtual = 0;
                pipes[pipe_cnt].pipe.dest.vtotal_min = res_ctx->pipe_ctx[i].stream->adjust.v_total_min;
                pipes[pipe_cnt].pipe.dest.vtotal_max = res_ctx->pipe_ctx[i].stream->adjust.v_total_max;