Commit 280f1884 authored by Michael Strauss's avatar Michael Strauss Committed by Alex Deucher

drm/amd/display: Add DC debug option to force LTTPR mode

[WHY]
Useful for external teams debugging LTTPR issues
Reviewed-by: default avatarGeorge Shen <George.Shen@amd.com>
Acked-by: default avatarBrian Chang <Brian.Chang@amd.com>
Signed-off-by: default avatarMichael Strauss <michael.strauss@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 36ad2ec9
...@@ -5032,6 +5032,10 @@ static void determine_lttpr_mode(struct dc_link *link) ...@@ -5032,6 +5032,10 @@ static void determine_lttpr_mode(struct dc_link *link)
bool vbios_lttpr_enable = link->dc->caps.vbios_lttpr_enable; bool vbios_lttpr_enable = link->dc->caps.vbios_lttpr_enable;
bool vbios_lttpr_interop = link->dc->caps.vbios_lttpr_aware; bool vbios_lttpr_interop = link->dc->caps.vbios_lttpr_aware;
if (link->ctx->dc->debug.lttpr_mode_override != 0) {
link->lttpr_mode = link->ctx->dc->debug.lttpr_mode_override;
return;
}
if ((link->dc->config.allow_lttpr_non_transparent_mode.bits.DP2_0 && if ((link->dc->config.allow_lttpr_non_transparent_mode.bits.DP2_0 &&
link->dpcd_caps.channel_coding_cap.bits.DP_128b_132b_SUPPORTED)) { link->dpcd_caps.channel_coding_cap.bits.DP_128b_132b_SUPPORTED)) {
......
...@@ -846,6 +846,7 @@ struct dc_debug_options { ...@@ -846,6 +846,7 @@ struct dc_debug_options {
bool exit_idle_opt_for_cursor_updates; bool exit_idle_opt_for_cursor_updates;
bool enable_single_display_2to1_odm_policy; bool enable_single_display_2to1_odm_policy;
bool enable_dp_dig_pixel_rate_div_policy; bool enable_dp_dig_pixel_rate_div_policy;
enum lttpr_mode lttpr_mode_override;
}; };
struct gpu_info_soc_bounding_box_v1_0; struct gpu_info_soc_bounding_box_v1_0;
......
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