From: Chuntao Tso <[email protected]>

[Why & How]
Enable frame skipping in 0x37B

Reviewed-by: Wenjing Liu <[email protected]>
Signed-off-by: Chuntao Tso <[email protected]>
Signed-off-by: Ray Wu <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/dc_dp_types.h                 | 5 ++++-
 .../amd/display/dc/link/protocols/link_edp_panel_control.c   | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dc_dp_types.h 
b/drivers/gpu/drm/amd/display/dc/dc_dp_types.h
index 7fa336bf1115..7e5c118b2f20 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_dp_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_dp_types.h
@@ -1363,7 +1363,10 @@ union replay_enable_and_configuration {
                unsigned char FREESYNC_PANEL_REPLAY_MODE              :1;
                unsigned char TIMING_DESYNC_ERROR_VERIFICATION        :1;
                unsigned char STATE_TRANSITION_ERROR_DETECTION        :1;
-               unsigned char RESERVED                                :5;
+               unsigned char FSFT_ENABLED                            :1;
+               unsigned char FRAME_SKIPPING_ERROR_DETECTION          :1;
+               unsigned char FRAME_SKIPPING_ENABLE                   :1;
+               unsigned char RESERVED                                :2;
        } bits;
        unsigned char raw;
 };
diff --git 
a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c 
b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
index e06a9ac65286..3db4f10d1654 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
@@ -1052,6 +1052,8 @@ bool edp_setup_freesync_replay(struct dc_link *link, 
const struct dc_stream_stat
                replay_config.bits.FREESYNC_PANEL_REPLAY_MODE = 1;
                replay_config.bits.TIMING_DESYNC_ERROR_VERIFICATION = 0;
                replay_config.bits.STATE_TRANSITION_ERROR_DETECTION = 1;
+               replay_config.bits.FRAME_SKIPPING_ERROR_DETECTION = 1;
+               replay_config.bits.FRAME_SKIPPING_ENABLE = 1;
                dm_helpers_dp_write_dpcd(link->ctx, link,
                        DP_SINK_PR_ENABLE_AND_CONFIGURATION,
                        (uint8_t *)&(replay_config.raw), sizeof(uint8_t));
-- 
2.43.0

Reply via email to