Commit c5f5b9d9 authored by Xiaodong Yan's avatar Xiaodong Yan Committed by Alex Deucher

drm/amd/display: blank dp stream before power off receiver

[why]
power off dp receiver directly cause garbage during hw init

[how]
blank dp stream and then power off receiver
Signed-off-by: default avatarXiaodong Yan <Xiaodong.Yan@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b3a941df
...@@ -1328,6 +1328,14 @@ void dcn10_init_hw(struct dc *dc) ...@@ -1328,6 +1328,14 @@ void dcn10_init_hw(struct dc *dc)
uint8_t dpcd_power_state = '\0'; uint8_t dpcd_power_state = '\0';
enum dc_status status = DC_ERROR_UNEXPECTED; enum dc_status status = DC_ERROR_UNEXPECTED;
/* blank all dp streams before power off receiver,
* this should only impact DP
*/
for (i = 0; i < dc->res_pool->stream_enc_count; i++) {
dc->res_pool->stream_enc[i]->funcs->dp_blank(
dc->res_pool->stream_enc[i]);
}
for (i = 0; i < dc->link_count; i++) { for (i = 0; i < dc->link_count; i++) {
if (dc->links[i]->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) if (dc->links[i]->connector_signal != SIGNAL_TYPE_DISPLAY_PORT)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment