drm/amd/display: Add monitor patch for backlight off
authorXiaodong Yan <Xiaodong.Yan@amd.com>
Wed, 16 Jan 2019 16:18:01 +0000 (00:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 02:16:23 +0000 (21:16 -0500)
[Why]
Different panel need different time from backlight disable to end of valid video data,
if the time is too short, panel will flash when dpms off

[How]
Add monitor patch to control the time from backlight disable to end of valid video data,

Signed-off-by: Xiaodong Yan <Xiaodong.Yan@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
drivers/gpu/drm/amd/display/dc/dc_types.h

index 16d441d..f7f7515 100644 (file)
@@ -119,6 +119,10 @@ bool edp_receiver_ready_T9(struct dc_link *link)
                        break;
                udelay(100); //MAx T9
        } while (++tries < 50);
+
+       if (link->local_sink->edid_caps.panel_patch.extra_delay_backlight_off > 0)
+               udelay(link->local_sink->edid_caps.panel_patch.extra_delay_backlight_off * 1000);
+
        return result;
 }
 bool edp_receiver_ready_T7(struct dc_link *link)
index 56e7f3d..da2009a 100644 (file)
@@ -201,6 +201,7 @@ union display_content_support {
 struct dc_panel_patch {
        unsigned int dppowerup_delay;
        unsigned int extra_t12_ms;
+       unsigned int extra_delay_backlight_off;
 };
 
 struct dc_edid_caps {