Commit 01506614 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: fix multi edp panel instancing

A previous fix attempted to correct mismatch between DM display
targets and dc panel instancing by only counting connected panels.
This behaviour breaks a feature, thus this is an alternative solution
that allows mapping display targets to dc links during mod_power_create.
Tested-by: default avatarDaniel Wheeler <Daniel.Wheeler@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 59b4c078
...@@ -338,14 +338,13 @@ static inline bool dc_get_edp_link_panel_inst(const struct dc *dc, ...@@ -338,14 +338,13 @@ static inline bool dc_get_edp_link_panel_inst(const struct dc *dc,
int edp_num, i; int edp_num, i;
*inst_out = 0; *inst_out = 0;
if (link->connector_signal != SIGNAL_TYPE_EDP || !link->local_sink) if (link->connector_signal != SIGNAL_TYPE_EDP)
return false; return false;
get_edp_links(dc, edp_links, &edp_num); get_edp_links(dc, edp_links, &edp_num);
for (i = 0; i < edp_num; i++) { for (i = 0; i < edp_num; i++) {
if (link == edp_links[i]) if (link == edp_links[i])
break; break;
if (edp_links[i]->local_sink) (*inst_out)++;
(*inst_out)++;
} }
return true; return true;
} }
......
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