summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCruise Hung <Cruise.Hung@amd.com>2025-12-05 16:22:44 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-01-06 00:59:59 +0300
commit73d08a87d6d421aeb973bb2079386e010a792803 (patch)
tree3800eaeb345e373c3d4172629b3a367fa99afbf6
parent878a4b73c11111ff5f820730f59a7f8c6fd59374 (diff)
downloadlinux-73d08a87d6d421aeb973bb2079386e010a792803.tar.xz
drm/amd/display: Remove unnecessary divider update flag
[Why] When transitioning from 640x480 at RBRx1 to HBR3x1, both output pixel mode and pixel rate divider should update. The needs_divider_update flag was only for 8b10b and 128b132b transition. [How] Remove needs_divider_update flag. Reviewed-by: Michael Strauss <michael.strauss@amd.com> Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Cruise Hung <Cruise.Hung@amd.com> Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c b/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
index 1045c268672e..5a547d41d4a1 100644
--- a/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
+++ b/drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
@@ -70,7 +70,6 @@ static void dp_retrain_link_dp_test(struct dc_link *link,
struct dc_state *state = link->dc->current_state;
struct dc_stream_update stream_update = { 0 };
bool dpms_off = false;
- bool needs_divider_update = false;
bool was_hpo_acquired = resource_is_hpo_acquired(link->dc->current_state);
bool is_hpo_acquired;
uint8_t count;
@@ -80,9 +79,6 @@ static void dp_retrain_link_dp_test(struct dc_link *link,
int num_streams_on_link = 0;
struct dc *dc = (struct dc *)link->dc;
- needs_divider_update = (link->dc->link_srv->dp_get_encoding_format(link_setting) !=
- link->dc->link_srv->dp_get_encoding_format((const struct dc_link_settings *) &link->cur_link_settings));
-
udelay(100);
link_get_master_pipes_with_dpms_on(link, state, &count, pipes);
@@ -99,7 +95,7 @@ static void dp_retrain_link_dp_test(struct dc_link *link,
pipes[i]->stream_res.tg->funcs->disable_crtc(pipes[i]->stream_res.tg);
}
- if (needs_divider_update && link->dc->res_pool->funcs->update_dc_state_for_encoder_switch) {
+ if (link->dc->res_pool->funcs->update_dc_state_for_encoder_switch) {
link->dc->res_pool->funcs->update_dc_state_for_encoder_switch(link,
link_setting, count,
*pipes, &audio_output[0]);