drm/amd/display: add monitor patch for delay after DP receive power up
authorMartin Tsai <martin.tsai@amd.com>
Thu, 1 Feb 2018 12:03:17 +0000 (20:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:01 +0000 (14:20 -0500)
Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_types.h

index 02e1c3b188fd059342cf633701dfa54c3599c3ed..9ede0f884f15ec8ff895a5c1ca53e948c61c1792 100644 (file)
@@ -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);
 
index fbbe92f7a33a1ff3d91f3f1cfdf1b95cc4acfe24..aa5b90e6beb78d1eb06d90fd0c594476196af1c4 100644 (file)
@@ -195,6 +195,7 @@ union display_content_support {
 
 struct dc_panel_patch {
        unsigned int disconnect_delay;
+       unsigned int dppowerup_delay;
 };
 
 struct dc_edid_caps {