[PATCH 07/34] drm/amd/display: add monitor patch for delay after DP receive power up
Harry Wentland
harry.wentland at amd.com
Mon Feb 12 17:15:58 UTC 2018
From: Martin Tsai <martin.tsai at amd.com>
Change-Id: Ic8ab8775d7a0df9c12ed94ec02da8b257a43a77f
Signed-off-by: Martin Tsai <martin.tsai at amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 ++++++
drivers/gpu/drm/amd/display/dc/dc_types.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index 02e1c3b188fd..9ede0f884f15 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -1260,6 +1260,12 @@ static enum dc_status enable_link_dp(
pipe_ctx->clock_source->id,
&link_settings);
+ if (stream->sink->edid_caps.panel_patch.dppowerup_delay > 0) {
+ int delay_dp_power_up_in_ms = stream->sink->edid_caps.panel_patch.dppowerup_delay;
+
+ msleep(delay_dp_power_up_in_ms);
+ }
+
panel_mode = dp_get_panel_mode(link);
dpcd_configure_panel_mode(link, panel_mode);
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h
index fbbe92f7a33a..aa5b90e6beb7 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -195,6 +195,7 @@ union display_content_support {
struct dc_panel_patch {
unsigned int disconnect_delay;
+ unsigned int dppowerup_delay;
};
struct dc_edid_caps {
--
2.14.1
More information about the amd-gfx
mailing list