Skip to content

Commit 6be50f5

Browse files
Stylon Wangalexdeucher
authored andcommitted
drm/amd/display: Fix ASSR regression on embedded panels
[Why] Regression found in some embedded panels traces back to the earliest upstreamed ASSR patch. The changed code flow are causing problems with some panels. [How] - Change ASSR enabling code while preserving original code flow as much as possible - Simplify the code on guarding with internal display flag Bug: https://bugzilla.kernel.org/show_bug.cgi?id=213779 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1620 Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 27f5355 commit 6be50f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,8 +1820,7 @@ bool perform_link_training_with_retries(
18201820
*/
18211821
panel_mode = DP_PANEL_MODE_DEFAULT;
18221822
}
1823-
} else
1824-
panel_mode = DP_PANEL_MODE_DEFAULT;
1823+
}
18251824
}
18261825
#endif
18271826

@@ -4650,7 +4649,10 @@ enum dp_panel_mode dp_get_panel_mode(struct dc_link *link)
46504649
}
46514650
}
46524651

4653-
if (link->dpcd_caps.panel_mode_edp) {
4652+
if (link->dpcd_caps.panel_mode_edp &&
4653+
(link->connector_signal == SIGNAL_TYPE_EDP ||
4654+
(link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT &&
4655+
link->is_internal_display))) {
46544656
return DP_PANEL_MODE_EDP;
46554657
}
46564658

0 commit comments

Comments
 (0)