Commit 22631bb8 authored by Jun Lei's avatar Jun Lei Committed by Alex Deucher

drm/amd/display: add flag to allow diag to force enumerate edp

[why]
SLT tests require that diag can drive eDP even if nothing is connected, this is not
typical production use case, so we need to add flag

[how]
add flag, and this flag supercedes "should destroy" logic
Signed-off-by: default avatarJun Lei <Jun.Lei@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d5ac4ff2
...@@ -194,7 +194,7 @@ static bool create_links( ...@@ -194,7 +194,7 @@ static bool create_links(
} }
} }
if (!should_destory_link) { if (dc->config.force_enum_edp || !should_destory_link) {
dc->links[dc->link_count] = link; dc->links[dc->link_count] = link;
link->dc = dc; link->dc = dc;
++dc->link_count; ++dc->link_count;
......
...@@ -220,6 +220,7 @@ struct dc_config { ...@@ -220,6 +220,7 @@ struct dc_config {
bool allow_seamless_boot_optimization; bool allow_seamless_boot_optimization;
bool power_down_display_on_boot; bool power_down_display_on_boot;
bool edp_not_connected; bool edp_not_connected;
bool force_enum_edp;
bool forced_clocks; bool forced_clocks;
bool disable_extended_timeout_support; // Used to disable extended timeout and lttpr feature as well bool disable_extended_timeout_support; // Used to disable extended timeout and lttpr feature as well
bool multi_mon_pp_mclk_switch; bool multi_mon_pp_mclk_switch;
......
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